Asymmetric Tri-training for Unsupervised Domain Adaptation

Kuniaki Saito, Yoshitaka Ushiku, Tatsuya Harada

Introduction

With the development of deep neural networks including deep convolutional neural networks (CNN) (Krizhevsky et al., 2012), the recognition abilities of images and languages have improved dramatically. Training deep-layered networks with a large number of labeled samples enables us to correctly categorize samples in diverse domains. In addition, the transfer learning of CNN is utilized in many studies. For object detection or segmentation, we can transfer the knowledge of a CNN trained with a large-scale dataset by fine-tuning it on a relatively small dataset (Girshick et al., 2014; Long et al., 2015a). Moreover, features from a CNN trained on ImageNet (Deng et al., 2009) are useful for multimodal learning tasks including image captioning (Vinyals et al., 2015) and visual question answering (Antol et al., 2015).

One of the problems of neural networks is that although they perform well on the samples generated from the same distribution as the training samples, they may find it difficult to correctly recognize samples from different distributions at the test time. One example is images collected from the Internet, which may come in abundance and be fully labeled. They have a distribution different from the images taken from a camera. Thus, a classifier that performs well on various domains is important for practical use. To realize this, it is necessary to learn domain-invariantly discriminative representations. However, acquiring such representations is not easy because it is often difficult to collect a large number of labeled samples and because samples from different domains have domain-specific characteristics.

In unsupervised domain adaptation, we try to train a classifier that works well on a target domain on the condition that we are provided labeled source samples and unlabeled target samples during training. Most of the previous deep domain adaptation methods have been proposed mainly under the assumption that the adaptation can be realized by matching the distribution of features from different domains. These methods aimed to obtain domain-invariant features by minimizing the divergence between domains as well as a category loss on the source domain (Ganin & Lempitsky, 2014; Long et al., 2015b, 2016). However, as shown in (Ben-David et al., 2010), theoretically, if a classifier that works well on both the source and the target domains does not exist, we cannot expect a discriminative classifier for the target domain. That is, even if the distributions are matched on the non-discriminative representations, the classifier may not work well on the target domain. Since directly learning discriminative representations for the target domain, in the absence of target labels, is considered very difficult, we propose to assign pseudo-labels to target samples and train target-specific networks as if they were true labels.

Co-training and tri-training (Zhou & Li, 2005) leverage multiple classifiers to artificially label unlabeled samples and retrain the classifiers. However, the methods do not assume labeling samples from different domains. Since our goal is to classify unlabeled target samples that have different characteristics from labeled source samples, we propose asymmetric tri-training for unsupervised domain adaptation. By asymmetric, we mean that we assign different roles to three classifiers.

In this paper, we propose a novel tri-training method for unsupervised domain adaptation, where we assign pseudo-labels to unlabeled samples and train neural networks utilizing the samples. As described in Fig. 1, two networks are used to label unlabeled target samples and the remaining network is trained by the pseudo-labeled target samples. Our method does not need any special implementations. We evaluate our method on the digit classification task, traffic sign classification task and sentiment analysis task using the Amazon Review dataset, and demonstrate state-of-the-art performance in nearly all experiments. In particular, in the adaptation scenario, MNIST→\rightarrowSVHN, our method outperformed other methods by more than 10%.

Related Work

As many methods have been proposed to tackle various tasks in domain adaptation, we present details of the research most closely related to our paper.

A number of previous methods attempted to realize adaptation by utilizing the measurement of divergence between different domains (Ganin & Lempitsky, 2014; Long et al., 2015b; Li et al., 2016). The methods are based on the theory proposed in (Ben-David et al., 2010), which states that the expected loss for a target domain is bounded by three terms: (i) expected loss for the source domain; (ii) domain divergence between source and target; and (iii) the minimum value of a shared expected loss. The shared expected loss means the sum of the loss on the source and target domain. As the third term, which is usually considered to be very low, cannot be evaluated when labeled target samples are absent, most methods try to minimize the first term and the second term. With regards to training deep architectures, the maximum mean discrepancy (MMD) or a loss of domain classifier network is utilized to measure the divergence corresponding to the second term (Gretton et al., 2012; Ganin & Lempitsky, 2014; Long et al., 2015b, 2016; Bousmalis et al., 2016). However, the third term is very important in training CNN, which simultaneously extract representations and recognize them. The third term can easily be large when the representations are not discriminative for the target domain. Therefore, we focus on how to learn target-discriminative representations considering the third term. In (Long et al., 2016) the focus was on the point we have stated and a target-specific classifier was constructed using a residual network structure. Different from their method, we constructed a target-specific network by providing artificially labeled target samples.

Several transductive methods use similarity of features to provide labels for unlabeled samples (Rohrbach et al., 2013; Khamis & Lampert, 2014). For unsupervised domain adaptation, in (Sener et al., 2016), a method was proposed to learn labeling metrics by using the kk-nearest neighbors between unlabeled target samples and labeled source samples. In contrast to this method, our method explicitly and simply backpropagates the category loss for target samples based on pseudo-labeled samples. Our approach does not require any special modules.

Many methods proposed to give pseudo-labels to unlabeled samples by utilizing the predictions of a classifier and retraining it including the pseudo-labeled samples, which is called self-training. The underlying assumption of self-training is that one’s own high-confidence predictions are correct (Zhu, 2005). As the predictions are mostly correct, utilizing samples with high confidence will further improve the performance of the classifier. Co-training utilizes two classifiers, which have different views on one sample, to provide pseudo-labels (Blum & Mitchell, 1998; Tanha et al., 2011). Then, the unlabeled samples are added to training set if at least one classifier is confident about the predictions. The generalization ability of co-training is theoretically ensured (Balcan et al., 2004; Dasgupta et al., 2001) under some assumptions and applied to various tasks (Wan, 2009; Levin et al., 2003). In (Chen et al., 2011), the idea of co-training was incorporated into domain adaptation. Tri-training can be regarded as the extension of co-training (Zhou & Li, 2005). Similar to co-training, tri-training uses the output of three different classifiers to give pseudo-labels to unlabeled samples. Tri-training does not require partitioning features into different views; instead, tri-training initializes each classifier differently. However, tri-training does not assume that the unlabeled samples follow the different distributions from the ones which labeled samples are generated from. Therefore, we develop a tri-training method suitable for domain adaptation by using three classifiers asymmetrically.

In (Lee, 2013), the effect of pseudo-labels in a neural network was investigated. They argued that the effect of training a classifier with pseudo-labels is equivalent to entropy regularization, thus leading to a low-density separation between classes. In addition, in our experiment, we observe that target samples are separated in hidden features.

Method

In this section, we provide details of the proposed model for domain adaptation. We aim to construct a target-specific network by utilizing pseudo-labeled target samples. Simultaneously, we expect two labeling networks to acquire target-discriminative representations and gradually increase accuracy on the target domain.

We show our proposed network structure in Fig. 2. Here FF denotes the network which outputs shared features among three networks, F1F_{1} and F2F_{2} classify features generated from FF. Their predictions are utilized to give pseudo-labels. The classifier FtF_{t} classifies features generated from FF, which is a target-specific network. Here F1,F2F_{1},F_{2} learn from source and pseudo-labeled target samples and FtF_{t} learns only from pseudo-labeled target samples. The shared network FF learns from all gradients from F1,F2,FtF_{1},F_{2},F_{t}. Without such a shared network, another option for the network architecture we can think of is training three networks separately, but this is inefficient in terms of training and implementation. Furthermore, by building a shared network FF, F1F_{1} and F2F_{2} can also harness the target-discriminative representations learned by the feedback from FtF_{t}.

The set of source samples is defined as \bigl{\{}({x_{i}},{y_{i}})\bigr{\}}^{m_{s}}_{i=1}\sim\mathcal{S}, the unlabeled target set is \bigl{\{}({x_{i}})\bigr{\}}^{m_{t}}_{i=1}\sim\mathcal{T}, and the pseudo-labeled target set is \bigl{\{}({x_{i}},{\hat{y}_{i}})\bigr{\}}^{n_{t}}_{i=1}\sim\mathcal{T}_{l}.

In the existing works (Chen et al., 2011) on co-training for domain adaptation, given features are divided into separate parts and considered to be different views.

As we aim to label target samples with high accuracy, we expect F1,F2F_{1},F_{2} to classify samples based on different viewpoints. Therefore, we make a constraint for the weight of F1,F2F_{1},F_{2} to make their inputs different to each other. We add the term ∣W1TW2∣|{W_{1}}^{T}{W_{2}}| to the cost function, where W1,W2{W_{1}},{W_{2}} denote fully connected layers’ weights of F1F_{1} and F2F_{2} which are first applied to the feature F(xi)F(x_{i}). Each network will learn from different features with this constraint. The objective for learning F1,F2F_{1},F_{2} is defined as

where LyL_{y} denotes the standard softmax cross-entropy loss function. We decided the trade-off parameter λ\lambda based on validation split.

2 Learning Procedure and Labeling Method

Pseudo-labeled target samples will provide target-discriminative information to the network. However, since they certainly contain false labels, we have to pick up reliable pseudo-labels. Our labeling and learning method is aimed at realizing this.

The entire procedure of training the network is shown in Algorithm 1. First, we train the entire network with source training set S\mathcal{S}. Here F1,F2F_{1},F_{2} are optimized by Eq. (1) and FtF_{t} is trained on standard category loss. After training on S\mathcal{S}, to provide pseudo-labels, we use predictions of F1F_{1} and F2F_{2}, namely y1,y2y^{1},y^{2} obtained from xkx_{k}. When C1,C2C_{1},C_{2} denote the class which has the maximum predicted probability for y1,y2y^{1},y^{2}, we assign a pseudo-label to xkx_{k} if the following two conditions are satisfied. First, we require C1=C2C_{1}=C_{2} to give pseudo-labels, which means two different classifiers agree with the prediction. The second requirement is that the maximizing probability of y1y^{1} or y2y^{2} exceeds the threshold parameter, which we set as 0.9 or 0.95 in the experiment. We suppose that unless one of two classifiers is confident of the prediction, the prediction is not reliable. If the two requirements are satisfied, \bigl{(}{{x_{k}},{\hat{y}_{k}}=C_{1}=C_{2}}\bigr{)} is added to Tl\mathcal{T}_{l}. To prevent the overfitting to pseudo-labels, we resample the candidate for labeling samples in each step. We set the number of the initial candidates NinitN_{init} as 5,000. We gradually increase the number of the candidates Nt=k/20∗nN_{t}=k/20*n, where nn denotes the number of all target samples and kk denotes the number of steps, and we set the maximum number of pseudo-labeled candidates as 40,000. After the pseudo-labeled training set Tl\mathcal{T}_{l} is composed, F,F1,F2F,F_{1},F_{2} are updated by the objective Eq. (1) on the labeled training set L=S∪TlL=\mathcal{S}\cup\mathcal{T}_{l}. Then, F,FtF,F_{t} are simply optimized by the category loss for Tl\mathcal{T}_{l}.

Discriminative representations will be learned by constructing a target-specific network trained only on target samples. However, if only noisy pseudo-labeled samples are used for training, the network may not learn useful representations. Then, we use both source samples and pseudo-labeled samples for training F,F1,F2F,F_{1},F_{2} to ensure the accuracy. Also, as the learning proceeds, FF will learn target-discriminative representations, resulting in an improvement in accuracy in F1,F2F_{1},F_{2}. This cycle will gradually enhance the accuracy in the target domain.

3 Batch Normalization for Domain Adaptation

Batch normalization (BN) (Ioffe & Szegedy, 2015), which whitens the output of the hidden layer in a CNN, is an effective technique to accelerate training speed and enhance the accuracy of the model. In addition, in domain adaptation, whitening the hidden layer’s output is effective for improving the performance, which make the distribution in different domains similar (Sun et al., 2016; Li et al., 2016).

Input samples of F1,F2F_{1},F_{2} include both pseudo-labeled target samples and source samples. Introducing BN will be useful for matching the distribution and improves the performance. We add the BN layer in the last layer in FF.

Analysis

In this section, we provide a theoretical analysis to our approach. First, we provide an insight into existing theory, then we introduce a simple expansion of the theory related to our method.

In (Ben-David et al., 2010), an equation was introduced showing that the upper bound of the expected error in the target domain depends on three terms, which include the divergence between different domains and the error of an ideal joint hypothesis. The divergence between source and target domain, HΔH\mathcal{H}\Delta\mathcal{H}-distance, is defined as follows:

This distance is frequently used to measure the adaptability between different domains.

The ideal joint hypothesis is defined as h^{*}=\mathop{\rm arg~{}min}\limits_{h\in H}\bigl{(}R_{\mathcal{S}}(h^{*})+R_{\mathcal{T}}(h^{*})\bigr{)}, and its corresponding error is C=RS(h∗)+RT(h∗)C=R_{\mathcal{S}}(h^{*})+R_{\mathcal{T}}(h^{*}), where RR denotes the expected error on each hypothesis. The theorem is as follows.

(Ben-David et al., 2010) Let HH be the hypothesis class. Given two different domains S,T\mathcal{S},\mathcal{T}, we have

∀h∈H,RT(h)≤RS(h)+12dHΔH(S,T)+C\forall h\in H,R_{\mathcal{T}}(h)\leq R_{\mathcal{S}}(h)+\frac{1}{2}{d_{\mathcal{H}\Delta\mathcal{H}}(\mathcal{S},\mathcal{T})}+C

This theorem means that the expected error on the target domain is upper bounded by three terms, the expected error on the source domain, the domain divergence measured by the disagreement of the hypothesis, and the error of the ideal joint hypothesis. In the existing work (Ganin & Lempitsky, 2014; Long et al., 2015b), CC was disregarded because it was considered to be negligibly small. If we are provided with fixed features, we do not need to consider the term because the term is also fixed. However, if we assume that xs∼S, xt∼Tx_{s}\sim\mathcal{S},\ x_{t}\sim\mathcal{T} are obtained from the last fully connected layer of deep models, we note that CC is determined by the output of the layer, and further note the necessity of considering this term.

We consider the pseudo-labeled target samples set T_{l}=\bigl{\{}(x_{i},\hat{y}_{i})\bigr{\}}^{m_{t}}_{i=1} given false labels at the ratio of ρ\rho. The shared error of h∗h^{*} on S,Tl\mathcal{S},\mathcal{T}_{l} is denoted as C′C^{\prime}. Then, the following inequality holds:

∀h∈H,RT(h)≤RS(h)+12dHΔH(S,T)+C                          ≤RS(h)+12dHΔH(S,T)+C′+ρ\forall h\in H,R_{\mathcal{T}}(h)\leq R_{\mathcal{S}}(h)+\frac{1}{2}{d_{\mathcal{H}\Delta\mathcal{H}}(\mathcal{S},\mathcal{T})}+C\\ \\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \leq R_{\mathcal{S}}(h)+\frac{1}{2}{d_{\mathcal{H}\Delta\mathcal{H}}(\mathcal{S},\mathcal{T})}+C^{\prime}+\rho

We show a simple derivation of the inequality in the Supplementary material. In Theorem 1, we cannot measure CC in the absence of labeled target samples. We can approximately evaluate and minimize it by using pseudo-labels. Furthermore, when we consider the second term on the right-hand side, our method is expected to reduce this term. This term intuitively denotes the discrepancy between different domains in the disagreement of two classifiers. If we regard certain hh and h′h^{\prime} as F1F_{1} and F2F_{2}, respectively, Ex∼Sx[h(x)≠h′(x)]\underset{{\bf x}\sim\mathcal{S}_{{\bf x}}}{\mathbf{E}}\left[h({\bf x})\neq h^{\prime}({\bf x})\right] should be very low because training is based on the same labeled samples. Moreover, for the same reason, Ex∼Tx[h(x)≠h′(x)]\underset{{\bf x}\sim\mathcal{T}_{{\bf x}}}{\mathbf{E}}\left[h({\bf x})\neq h^{\prime}({\bf x})\right] is expected to be low, although we use the training set Tl\mathcal{T}_{l} instead of genuine labeled target samples. Thus, our method will consider both the second and the third term in Theorem 1.

Experiment and Evaluation

We perform extensive evaluations of our method on image datasets and a sentiment analysis dataset. We evaluate the accuracy of target-specific networks in all experiments.

Visual Domain Adaptation For visual domain adaptation, we perform our evaluation on the digits datasets and traffic signs datasets. Digits datasets include MNIST (LeCun et al., 1998), MNIST-M (Ganin & Lempitsky, 2014), Street View House Numbers (SVHN) (Netzer et al., 2011), and Synthetic Digits (SYN DIGITS) (Ganin & Lempitsky, 2014). We further evaluate our method on traffic sign datasets including Synthetic Traffic Signs (SYN SIGNS) (Moiseev et al., 2013) and German Traffic Signs Recognition Benchmark (Stallkamp et al., 2011) (GTSRB). In total, five adaptation scenarios are evaluated in this experiment. As the datasets used for evaluation are varied in previous works, we extensively evaluate our method on the five scenarios.

We do not evaluate our method on Office (Saenko et al., 2010), which is the most commonly used dataset for visual domain adaptation. As pointed out by (Bousmalis et al., 2016), some labels in that dataset are noisy and some images contain other classes’ objects. Furthermore, many previous studies have evaluated the fine-tuning of pretrained networks using ImageNet. This protocol assumes the existence of another source domain. In our work, we want to evaluate the situation where we have access to only one source domain and one target domain.

Adaptation in Amazon Reviews To investigate the behavior on language datasets, we also evaluated our method on the Amazon Reviews dataset (Blitzer et al., 2006) with the same preprocessing as used by (Chen et al., 2011; Ganin et al., 2016). The dataset contains reviews on four types of products: books, DVDs, electronics, and kitchen appliances. We evaluate our method on 12 domain adaptation scenarios. The results are shown in Table 1.

Baseline Methods We compare our method with five methods for unsupervised domain adaptation including state-of-the art methods in visual domain adaptation; Maximum Mean Discrepancy (MMD) (Long et al., 2015b), Domain Adversarial Neural Network (DANN) (Ganin & Lempitsky, 2014), Deep Reconstruction Classification Network (DRCN) (Ghifary et al., 2016), Domain Separation Networks (DSN) (Bousmalis et al., 2016), and kk-Nearest Neighbor based adaptation (kkNN-Ad) (Sener et al., 2016). We cite the results of MMD from (Bousmalis et al., 2016). In addition, we compare our method with CNN trained only on source samples. We compare our method with Variational Fair AutoEncoder (VFAE) (Louizos et al., 2015) and DANN (Ganin et al., 2016) in the Amazon Reviews experiment.

In experiments on image datasets, we employ the architecture of CNN used in (Ganin & Lempitsky, 2014). For a fair comparison, we separate the network at the hidden layer from which (Ganin & Lempitsky, 2014) constructed discriminator networks. Therefore, when considering one classifier, for example, F1∘FF_{1}\circ F, the architecture is identical to previous work. We also follow (Ganin & Lempitsky, 2014) in the other protocols. We set the threshold value for the labeling method as 0.95 in MNIST→\rightarrowSVHN. In other scenarios, we set it as 0.9. We use MomentumSGD for optimization and set the momentum as 0.90.9, while the learning rate is determined on validation splits and uses either [0.01,0.05][0.01,0.05]. λ\lambda is set 0.01 in all scenarios. In our Supplementary material, we provide details of the network architecture and hyper-parameters.

For experiments on the Amazon Reviews dataset, we use a similar architecture to that used in (Ganin et al., 2016): with sigmoid activated, one dense hidden layer with 50 hidden units, and softmax output. We extend the architecture to our method similarly in the architecture of CNN. λ\lambda is set as 0.001 based on the validation. Since the input is sparse, we use Adagrad (Duchi et al., 2011) for optimization. We repeat this evaluation 10 times and report mean accuracy.

2 Experimental Result

In Tables 1 and 3, we show the main results of the experiments. When training only on source samples, the effect of the BN is not clear as in Tables 1. However, in all image recognition experiments, the effect of BN in our method is clear; at the same time, the effect of our method is also clear when we do not use BN in the network architecture. The effect of the weight constraint is obvious in MNIST→\rightarrowSVHN.

MNIST→\rightarrowMNIST-M First, we evaluate the adaptation scenario between the hand-written digits dataset MNIST and its transformed dataset MNIST-M. MNIST-M is composed by merging the clip of the background from BSDS500 datasets (Arbelaez et al., 2011). A patch is randomly taken from the images in BSDS500, merged to MNIST digits. Even with this simple domain shift, the adaptation performance of CNN is much worse than the case where it was trained on target samples. From 59,001 target training samples, we randomly select 1,000 labeled target samples as a validation split and tuned hyper-parameters.

Our method outperforms the other existing method by about 7%. Visualization of features in the last pooling layer is shown in Fig. 33(a)3(b). We can observe that the red target samples are more dispersed when adaptation is achieved. We show the comparison of the accuracy between the actual labeling accuracy on target samples during training and the test accuracy in Fig. 4. The test accuracy is very low at first, but as the steps increase, the accuracy becomes closer to that of the labeling accuracy. In this adaptation, we can clearly see that the actual labeling accuracy gradually improves with the accuracy of the network.

SVHN↔\leftrightarrowMNIST We increase the gap between distributions in this experiment. We evaluate adaptation between SVHN (Netzer et al., 2011) and MNIST in a ten-class classification problem. SVHN and MNIST have distinct appearance, thus this adaptation is a challenging scenario especially in MNIST→\rightarrowSVHN. SVHN is colored and some images contain multiple digits. Therefore, a classifier trained on SVHN is expected to perform well on MNIST, but the reverse is not true. MNIST does not include any samples containing multiple digits and most samples are centered in images, thus adaptation from MNIST to SVHN is rather difficult. In both settings, we use 1,000 labeled target samples to find the optimal hyperparameters.

We evaluate our method on both adaptation scenarios and achieved state-of-the-art performance on both datasets. In particular, for the adaptation MNIST→\rightarrowSVHN, we outperformed other methods by more than 10%. In Fig. 33(c)3(d), we visualize the representations in MNIST→\rightarrowSVHN. Although the distributions seem to be separated between domains, the red SVHN samples become more discriminative using our method compared with non-adapted embedding. We also show the comparison between actual labeling method accuracy and testing accuracy in Fig. 44(b)4(c). In this figure, we can see that the labeling accuracy rapidly drops in the initial adaptation stage. On the other hand, testing accuracy continues to improve, and finally exceeds the labeling accuracy. There are two questions about this interesting phenomenon. The first question is why does the labeling method continue to decrease despite the increase in the test accuracy? Target samples given pseudo-labels always include mistakenly labeled samples whereas those given no labels are ignored in our method. Therefore, the error will be reinforced in the target samples that are included in training set. The second question is why does the test accuracy continue to increase despite the lower labeling accuracy? The assumed reasons are that the network already acquires target discriminative representations in this phase and they can improve the accuracy using source samples and correctly labeled target samples.

In Fig. 4(f), we also show the comparison of accuracy of the three networks F1,F2,FtF_{1},F_{2},F_{t} in SVHN→\rightarrowMNIST. The accuracy of three networks is nearly the same in every step. The same thing is observed in other scenarios. From this result, we can state that the target-discriminative representations are shared in all three networks.

SYN DIGITS→\rightarrowSVHN In this experiment, we aimed to address a common adaptation scenario from synthetic images to real images. The datasets of synthetic numbers (Ganin & Lempitsky, 2014) consist of 500,000 images generated from Windows fonts by varying the text, positioning, orientation, background and stroke colors, and the amount of blur. We use 479,400 source samples and 73,257 target samples for training, and 26,032 target samples for testing. We use 1,000 SVHN samples as a validation set.

Our method also outperforms other methods in this experiment. In this experiment, the effect of BN is not clear compared with other scenarios. The domain gap is considered small in this scenario as the performance of the source-only classifier shows. In Fig. 4(d), although the labeling accuracy is dropping, the accuracy of the learned network’s prediction is improving as in MNIST↔\leftrightarrowSVHN.

SYN SIGNS→\rightarrowGTSRB This setting is similar to the previous setting, adaptation from synthetic images to real images, but we have a larger number of classes, namely 43 classes instead of 10. We use the SYN SIGNS dataset (Ganin & Lempitsky, 2014) for the source dataset and the GTSRB dataset (Stallkamp et al., 2011) for the target dataset, which consist of real traffic sign images. We select randomly 31,367 samples for target training samples and evaluate accuracy on the rest of the samples. A total of 3,000 labeled target samples are used for validation.

In this scenario, our method outperforms other methods. This result shows that our method is effective for the adaptation from synthesized images to real images, which have diverse classes. In Fig. 4(e), the same tendency as in MNIST↔\leftrightarrowSVHN is observed in this adaptation scenario.

Gradient Stop Experiment We evaluate the effect of the target-specific network in our method. We stop the gradient from upper layer networks F1,F2F_{1},F_{2}, and FtF_{t} to examine the effect of FtF_{t}. Table 2 shows three scenarios including the case where we stop the gradient from F1,F2F_{1},F_{2}, and FtF_{t}. In all scenarios, when we backward all gradients from F1,F2,FtF_{1},F_{2},F_{t}, we obtain clear performance improvements.

In the experiment MNIST→\rightarrowMNIST-M, we can assume that only the backpropagation from F1,F2F_{1},F_{2} cannot construct discriminative representations for target samples and confirm the effect of FtF_{t}. For the adaptation MNIST→\rightarrowSVHN, the best performance is realized when FF receives all gradients from upper networks. Backwarding all gradients will ensure both target-specific discriminative representations in difficult adaptations. In SYN SIGNS→\rightarrowGTSRB, backwarding only from FtF_{t} produces the worst performance because these domains are similar and noisy pseudo-labeled target samples worsen the performance.

A\mathcal{A}-distance From the theoretical results in (Ben-David et al., 2010), A\mathcal{A}-distance is usually used as a measure of domain discrepancy. The way of estimating empirical A\mathcal{A}-distance is simple, in which we train a classifier to classify a domain from each domains’ feature. Then, the approximate distance is calculated as d^A=2(1−2ϵ)\hat{d}_{\mathcal{A}}=2(1-2\epsilon), where ϵ\epsilon is the generalization error of the classifier. In Fig. 4(g), we show the A\mathcal{A}-distance calculated from each CNN features. We used linear SVM to calculate the distance. From this graph, we can see that our method certainly reduces the A\mathcal{A}-distance compared with the CNN trained on only source samples. In addition, when comparing DANN and our method, although DANN reduces A\mathcal{A}-distance much more than our method, our method shows superior performance. This indicates that minimizing the domain discrepancy is not necessarily an appropriate way to achieve better performance.

Amazon Reviews Reviews are encoded in 5,000 dimensional vectors of bag-of-words unigrams and bigrams with binary labels. Negative labels are attached to the samples if they are ranked with 1–3 stars. Positive labels are attached if they are ranked with 4 or 5 stars. We have 2,000 labeled source samples and 2,000 unlabeled target samples for training, and between 3,000 and 6,000 samples for testing. We use 200 of labeled target samples for validation.

From the results in Table 3, our method performs better than VFAE (Louizos et al., 2015) and DANN (Ganin et al., 2016) in nine settings out of twelve. Our method is effective in learning a shallow network on different domains.

Conclusion

In this paper, we have proposed a novel asymmetric tri-training method for unsupervised domain adaptation, which is simply implemented. We aimed to learn discriminative representations by utilizing pseudo-labels assigned to unlabeled target samples. We utilized three classifiers, two networks assign pseudo-labels to unlabeled target samples and the remaining network learns from them. We evaluated our method both on domain adaptation on a visual recognition task and a sentiment analysis task, outperforming other methods. In particular, our method outperformed the other methods by more than 10% in the MNIST→\rightarrowSVHN adaptation task.

Acknowledgement

This work was funded by ImPACT Program of Council for Science, Technology and Innovation (Cabinet Office, Government of Japan) and supported by CREST, JST.

References

Proof of Theorem

We introduce the derivation of theorem of the main paper. The ideal joint hypothesis is defined as h^{*}=\mathop{\rm arg~{}min}\limits_{h\in H}\bigl{(}R_{\mathcal{S}}(h^{*})+R_{\mathcal{T}}(h^{*})\bigr{)}, and its corresponding error is C=RS(h∗)+RT(h∗)C=R_{\mathcal{S}}(h^{*})+R_{\mathcal{T}}(h^{*}), where RR denotes the expected error on each hypothesis.

We consider the pseudo-labeled target samples set T_{l}=\bigl{\{}(x_{i},\hat{y}_{i})\bigr{\}}^{m_{t}}_{i=1} given false labels at the ratio of ρ\rho. The minimum shared error on S,Tl\mathcal{S},\mathcal{T}_{l} is denoted as C′C{{}^{\prime}}. Then, the following inequality holds:

∀h∈H,RT(h)≤RS(h)+12dHΔH(SX,TX)+C                          ≤RS(h)+12dHΔH(SX,TX)+C′+ρ\forall h\in H,R_{\mathcal{T}}(h)\leq R_{\mathcal{S}}(h)+\frac{1}{2}{d_{\mathcal{H}\Delta\mathcal{H}}(\mathcal{S}_{{\bf X}},\mathcal{T}_{{\bf X}})}+C\\ \\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \leq R_{\mathcal{S}}(h)+\frac{1}{2}{d_{\mathcal{H}\Delta\mathcal{H}}(\mathcal{S}_{{\bf X}},\mathcal{T}_{{\bf X}})}+C{{}^{\prime}}+\rho

The probabiliy of false labels in the pseudo-labeled set TlT_{l} is ρ\rho. When we consider 0-1 loss function for ll, the difference between the error based on the true labeled set and pseudo-labeled set is

Then, the difference in the expected error is,

From the characteritic of the loss function, the triangle inequality will hold, then

From this result, the main inequality holds. ∎

CNN Architectures and training detail

Four types of architectures are used for our method, which is based on (Ganin & Lempitsky, 2014). The network topology is shown in Figs 6, 7 and 8. The other hyperparameters are decided on the validation splits. The learning rate is set to 0.05 in SVHN↔\leftrightarrowMNIST. In the other scenarios, it is set to 0.01. The batchsize for training Ft,FF_{t},F is set as 128, the batchsize for training F1,F2,FF_{1},F_{2},F is set as 64 in all scenarios.

In MNIST→\rightarrowMNIST-M, the dropout rate used in the experiment is 0.2 for training FtF_{t}, 0.5 for training F1,F2F_{1},F_{2}. In MNIST→\rightarrowSVHN, we did not use dropout. We decreased learning rate to 0.001 after step 10. In SVHN→\rightarrowMNIST, the dropout rate used in the experiment is 0.5. In SYNDIGITS→\rightarrowSVHN, the dropout rate used in the experiment is 0.5. In SYNSIGNS→\rightarrowGTSRB, the dropout rate used in the experiment is 0.5.

Supplementary experiments on MNIST→→\rightarrowMNIST-M

We observe the behavior of our model when increasing the number of steps up to one hundred. We show the result in Fig. 5. Our model’s accuracy gets about 97%. In our main experiments, we set the number of steps thirty, but from this experiment, further improvements can be expected.