DeepJDOT: Deep Joint Distribution Optimal Transport for Unsupervised Domain Adaptation
Bharath Bhushan Damodaran Benjamin Kellenberger Rémi Flamary Devis Tuia Nicolas Courty




headings



18SubNumber2583  



DeepJDOT

B.B. Damodaran et al.






Université de Bretagne Sud, IRISA, UMR 6074, CNRS, France
Wageningen University, the Netherlands
Université Côte d'Azur, OCA, UMR 7293, CNRS, Laboratoire Lagrange, France
 
 


DeepJDOT: Deep Joint Distribution Optimal Transport for Unsupervised Domain Adaptation
    Bharath Bhushan Damodaran^1authors contributed equally , Benjamin Kellenberger^2*, Rémi Flamary^3, Devis Tuia^2, Nicolas Courty^1
    December 30, 2023
=====================================================================================================================================




In computer vision, one is often confronted with problems of domain shifts, which occur when one applies a classifier trained on a source dataset to target data sharing similar characteristics (e.g. same classes), but also different latent data structures (e.g. different acquisition conditions). In such a situation, the model will perform poorly on the new data, since the classifier is specialized to recognize visual cues specific to the source domain. In this work we explore a solution, named DeepJDOT, to tackle this problem: through a measure of discrepancy on joint deep representations/labels based on optimal transport, we not only learn new data representations aligned between the source and target domain, but also simultaneously preserve the discriminative information used by the classifier.
We applied DeepJDOT to a series of visual recognition tasks, where it compares favorably against state-of-the-art deep domain adaptation methods.





§ INTRODUCTION



The ability to generalize across datasets is one of the holy grails of computer vision. Designing models that can perform well on datasets sharing similar characteristics such as classes, but also presenting different underlying data structures (for instance different backgrounds, colorspaces, or acquired with different devices) is key in applications where labels are scarce or expensive to obtain. However, traditional learning machines struggle in performing well out of the datasets (or domains) they have been trained with. This is because models generally assume that both training (or source) and test (or target) data are issued from the same generating process. In vision problems, factors such as objects position, illumination, number of channels or seasonality break this assumption and call for adaptation strategies able to compensate for such shifts, or domain adaptation strategies <cit.>.


In a first rough subdivision, domain adaptation strategies can be separated into unsupervised and semi-supervised domain adaptation: the former assumes that no labels are available in the target domain, while the latter assumes the presence of a few labeled instances in the target domain that can be used as reference points for the adaptation. In this paper, we propose a contribution for the former, more challenging case. 
Let 𝐱^s ∈𝕏^S be the source domain examples with the associated labels y^s ∈𝕐^S. Similarly, let 𝐱^t ∈𝕏^T be the target domain images, but with unknown labels. The goal of the unsupervised domain adaptation is to learn the classifier f in the target domain by leveraging the information from the source domain. To this end, we have access to a source domain dataset {𝐱^s_i,y^s }_i=1,…,n^s and a target domain dataset {𝐱^t_i }_i=1,…,n^t with only observations and no labels.


Early unsupervised domain adaptation research tackled the problem as the one of finding a common representation between the domains, or a latent space, where a single classifier can be used independently from the datapoint's origin <cit.>. In <cit.>, the authors propose to use discrete optimal transport to match the shifted marginal distributions of the two domains under constraints of class regularity in the source. In <cit.> a similar logic is used, but the joint distributions are aligned directly using a coupling accounting for the marginals and the class-conditional distributions shift jointly. However, the method has two drawbacks, for which we propose solutions in this paper: 1) first, the JDOT method in <cit.> scales poorly, as it must solve a n_1 × n_2 coupling, where n_1 and n_2 are the samples to be aligned; 2) secondly, the optimal transport coupling γ is computed between the input spaces (and using a ℓ_2 distance), which is a poor representation to be aligned, since we are interested in matching more semantic representations supposed to ease the work of the classifier using them to take decisions.


We solve the two problems above by a strategy based on deep learning. On the one hand, using deep learning algorithms for domain adaptation has found an increasing interest and has shown impressive results in recent computer vision literature <cit.>. On the other hand (and more importantly), a Convolutional Neural Network (CNN) offers the characteristics needed to solve our two problems:  1) by gradually adapting the optimal transport coupling along the CNN training, we obtain a scalable solution, an approximated and stochastic version of JDOT; 2) by learning the coupling in a deep layer of the CNN, we align the representation the classifier is using to take its decision, which is a more semantic representation of the classes. In summary, we learn jointly the embedding between the two domains and the classifier in a single CNN framework. We use a domain adaptation-tailored loss function based on optimal transport and therefore call our proposition Deep Joint Distribution Optimal Transportation (DeepJDOT).

We test DeepJDOT on a series of visual domain adaptation tasks and compare favorably against several recent state of the art competitors.




§ RELATED WORKS






  
Unsupervised domain adaptation. Unsupervised domain adaptation studies the situation where the source domain carries labeled instances, while the target domain is unlabeled, yet accessible during training <cit.>. 
Earlier approaches consider projections aligning data spaces to each other <cit.>, thus trying to exploit shift-invariant information to match the domains in their original (input) space. Later works extended such logic to deep learning, typically by weight sharing <cit.>/reconstruction <cit.>, by adding Maximum Mean Discrepancy (MMD) and association-based losses between source and target layers <cit.>. Other major developments focus on the inclusion of adversarial loss functions pushing the CNN to be unable to discriminate whether a sample comes from the source or the target domain <cit.>. Finally, the most recent works extend this adversarial logic to the use of GANs <cit.>, for example using two GAN modules with shared weights <cit.>, forcing image to image architectures to have similar activation distributions <cit.> or simply fooling a GAN's discriminator discerning between domains <cit.>. These adversarial image generation based methods <cit.> use a class-conditioning or cycle consistency term to learn the discriminative embedding, such that semantically similar images in both domains are projected closeby in the embedding space. Our proposed DeepJDOT uses the concept of a shared embedding for both domains <cit.> and is built on a similar logic as the MMD-based methods, yet adding a clear discriminative component to the alignment: 
the proposed DeepJDOT associates representation and discriminative learning, since the optimal transport coupling ensures that distributions are matched, while i) the JDOT class loss performs source label propagation to the target samples  and ii) the fact of learning the coupling in deep layers of the CNN ensures discrimination power.  




  
Optimal transport in domain adaptation. Optimal transport <cit.> has been used in domain adaptation to learn the transformation between domains <cit.>, with associated theoretical guarantees <cit.>. In those works, the coupling γ is used to transport (i.e. transform) the source data samples through an estimated mapping called barycentric mapping. Then, a new classifier is trained on the transported source data representation. But those different methods can only address problems of small to medium sizes because they rely on the exact solution of the OT problem on all samples. 
Very recently, Shen et al. <cit.> used the Wasserstein distance as a loss in a deep learning setting to promote similarities between embedded representations using the dual formulation of the problem exposed in <cit.>. However, none of those approaches considers an adaptation w.r.t. the discriminative content of the representation, as we propose in this paper.




§ OPTIMAL TRANSPORT FOR DOMAIN ADAPTATION



Our proposal is based on optimal transport. After recalling the associated basic notions and its relation with domain adaptation, we detail the JDOT method <cit.>, which is the starting point of our proposition.
 


 §.§ Optimal Transport

Optimal transport <cit.> (OT) is a theory that allows to compare probability distributions in a geometrically sound manner. It permits to work on empirical distributions and to exploit the geometry of the data embedding space. Formally, OT searches a probabilistic coupling γ∈Π(μ_1,μ_2) between two distributions μ_1 and μ_2 which yields a minimal displacement cost 
  
    OT_c(μ_1,μ_2) = inf_γ∈Π(μ_1,μ_2)∫_ℛ^2 c(𝐱_1,𝐱_2)d γ(𝐱_1,𝐱_2)

w.r.t. a given cost function c(𝐱_1,𝐱_2) measuring the dissimilarity between samples 𝐱_1 and 𝐱_2. Here, Π(μ_1,μ_2) describes the
space of joint probability distributions with marginals μ_1 and μ_2. In a discrete setting (both distributions are empirical) this becomes:
 
    OT_c(μ_1,μ_2) = min_γ∈Π(μ_1,μ_2)  <γ, 𝐂>_F,

 where ⟨·, ·⟩_F is the Frobenius dot product, 𝐂≥ 0 is a cost matrix ∈ℝ^n_1× n_2 representing the pairwise costs c(𝐱_i,𝐱_j), and γ is a matrix of size n_1× n_2 with prescribed marginals. The minimum of this optimization problem can be used as a distance between distributions, and, whenever the cost c is a norm, it is referred to as the Wasserstein distance. Solving equation (<ref>) is a simple linear programming problem with equality constraints, but scales super-quadratically with the size of the sample. Efficient computational schemes were proposed with entropic regularization <cit.> and/or stochastic versions using the dual formulation of the problem <cit.>, allowing to tackle small to middle sized problems. 



 §.§ Joint Distribution Optimal Transport

Courty et al. <cit.> proposed the joint distribution optimal transport (JDOT) method to prevent the two-steps adaptation (i.e. first adapt the representation and then learn the classifier on the adapted features) by directly learning a classifier embedded in the cost function c. The underlying idea is to align the joint features/labels distribution instead of only considering the features distribution. Consequently, μ_s and μ_t are measures of the product space 𝒳×𝒴. The generalized cost associated to this space is expressed as a weighted combination of costs in the feature and label spaces, reading
 
    d ( 𝐱_i^s, 𝐲_i^s;𝐱_j^t, 𝐲_j^t ) = α c(𝐱_i^s,𝐱_j^t) + λ_t L(𝐲_i^s,𝐲_j^t)

 for the i-th source and j-th target element, and where c(·,·) is chosen as a ℓ^2_2 distance and L(·,·) is a classification loss (e.g. hinge or cross-entropy). Parameters α and λ_t are two scalar values weighing the contributions of distance terms. Since target labels 𝐲_j^t are unknown, they are replaced by a surrogate version f(𝐱_j^t), which depends on a classifier f:𝒳→𝒴. Accounting for the classification loss leads to the following minimization problem:
 
    min_f,γ∈Π(μ_s,μ_t)  <γ, 𝐃_f>_F,

 where  𝐃_f depends on f and gathers all the pairwise costs d(·,·). As a by-product of this optimization problem, samples that share a common representation and a common label (through classification) are matched, yielding better discrimination. Interestingly, it is proven in <cit.> that minimizing this quantity is equivalent to minimizing a learning bound on the domain adaptation problem. However, JDOT has two major drawbacks: i) on large datasets, solving for γ becomes intractable because γ scales quadratically in size to the number of samples; ii) the cost c(𝐱_i^s,𝐱_j^t) is taken in the input space as the squared Euclidean norm on images and can be uninformative of the dissimilarity between two samples. Our proposed DeepJDOT solves those two issues by introducing a stochastic version computing only small couplings along the iterations of a CNN, and by the fact that the optimal transport is learned between the semantic representations in the deeper layers of the CNN, rather than in the image space. 




§ PROPOSED METHOD




 §.§ Deep Joint Distribution Optimal Transport(DeepJDOT)




The DeepJDOT model, illustrated in Fig. <ref>, is composed of two parts: an embedding function g:𝐱→𝐳, where the input is mapped into the latent space Z, and the classifier f: 𝐳→𝐲, which maps the latent space to the label space on the target domain. 
The latent space can be any feature layer provided by a model, as in our case the penultimate fully connected layer of a CNN.

DeepJDOT optimizes jointly this feature space and the classifier to provide a method that performs well on the target domain. 
The solution to this problem can be achieved by minimizing the following objective function:

    min_γ∈Π(μ_s,μ_t), f,g  ∑_i∑_j γ_ij d ( g(𝐱_i^s), 𝐲_i^s;g(𝐱_j^t), f(g(𝐱_j^t)) ),

where d ( g(𝐱_i^s), 𝐲_i^s;g(𝐱_j^t), f(g(𝐱_j^t) ) =α‖ g(x_i^s) - g(x_j^t) ‖^2 + λ_t L(y_i^s,f(g(x_j^t))), and α and λ_t are the parameters controlling the tradeoff between the two terms, as in equation (<ref>). Similarly to JDOT, the first term in the loss compares the compatibility of the embeddings for the source and target domain, while the second term considers the classifier f learned in the target domain and its regularity with respect to the labels available in the source. Despite similarities with the formulation of JDOT <cit.>, our proposition comes with the notable difference that, in DeepJDOT, the Wasserstein distance is minimized between the joint (embedded space/label) distributions within the CNN, rather than between the original input spaces. As the deeper layers of a CNN encode both spatial and semantic information, we believe them to be more apt to describe the image content for both domains, rather than the original features that are affected by a number of factors such as illumination, pose or relative position of objects.

One can note that the formulation reported in equation (<ref>) only depends on the classifier learned in the target domain. By doing so, one puts the emphasis on learning a good classifier for the target domain, and disregards the performance of the classifier when considering source samples. In recent literature, such a degradation in the source domain has been named as `catastrophic forgetting' <cit.>. To avoid such forgetting, one can easily re-incorporate the loss on the source domain in (<ref>), leading to the final DeepJDOT objective:

 
    min_γ, f,g1/n^s∑_i L_s(y_i^s, f(g(x_i^s))) + ∑_i,jγ_ij(α‖ g(x_i^s) - g(x_j^t) ‖^2 + λ_t L_t(y_i^s,f(g(x_j^t))) ).

This last formulation is the optimization problem solved by DeepJDOT. However, for large sample sizes the constraint of computing a full γ yields a computationally infeasible problem, both in terms of memory and time complexity. In the next section, we propose an approximation method based on stochastic optimization.




 §.§ Solving the optimization problem with stochastic gradients


In this section, we describe the approximate optimization procedure for solving DeepJDOT. Equation (<ref>) involves two groups of variables to be optimized: the OT matrix γ and the models f and g. This suggest the use of an alternative minimization approach (as proposed in the original JDOT). 
Indeed,  when ĝ and f̂ are fixed, solving equation (<ref>) boils down to a standard OT problem with associated cost matrix C_ij = α‖ĝ(x_i^s) - ĝ(x_j^t) ‖^2 + λ_t  L_t(y_i^s,f̂(ĝ(x_j^t))). When fixing γ̂, optimizing g and f is a classical deep learning problem. 
However, computing the optimal coupling with the classical OT solvers is not scalable to large-scale datasets. Despite some recent development for large scale OT with general ground loss <cit.>, the model does not scale sufficiently to meet requirements of recent computer vision tasks.

Therefore, in this work we propose to solve the problem with a stochastic approximation using minibatches from both the source and target domains <cit.>. This approach has two major advantages: it is scalable to large datasets and can be easily integrated in modern deep learning frameworks.
More specifically, the objective function (<ref>) is approximated by sampling a mini-batch of size m, leading to the following optimization problem:
 
    min_f,g𝔼[1/m∑_i=1^m L_s(y_i^s, f(g(x_i^s)) +min_γ∈Δ∑_i,j^mγ_ij(α‖ g(x_i^s) - g(x_j^t) ‖^2 + λ_t L_t(y_i^s,f(g(x_j^t))) )]


where 𝔼 is the expected value with respect to the randomly sampled minibatches drawn from both source and target domains. The classification loss functions for the source (L_s) and target (L_t) domains can be any general class of loss functions that are twice differentiable. We opted for a traditional cross-entropy loss in both cases. Note that, as discussed in <cit.>, the expected value over the minibtaches does not converge to the true OT coupling between every pair of samples, which might then lead to the appearance of connections between samples that would not have been connected in the full coupling. However, this can also be seen as a regularization that will promote sharing of the mass between neighboring samples. Finally note that we did not use the regularized version of OT as in <cit.>, since it introduces an additional regularization parameter that should be cross-validated, which can make the model calibration even more complex. Still, the extension of DeepJDOT to regularized OT is straightforward and could be beneficial for high-dimensional embeddings g.


Consequently, we propose to obtain the stochastic update for Eq.(<ref>)
as follows (and summarized in Algorithm <ref>):

    
  * With fixed CNN parameters (ĝ,f̂) and for every randomly drawn minibatch (of m samples), obtain the coupling
    
    min_γ∈Π(μ_s,μ_t)  ∑_i,j=1^mγ_ij(α‖ĝ(x_i^s) - ĝ(x_j^t) ‖^2 + λ_t  L_t(y_i^s,f̂(g(x_j^t))) )

    using the network simplex flow algorithm. 
    
  * With fixed coupling γ̂ obtained at the previous step, update the embedding function (g) and classifier (f) with stochastic gradient update for the following loss on the minibatch:
    
    1/m∑_i=1^m L_s(y_i^s, f(g(x_i^s))) + ∑_i,j=1^mγ̂_ij(α‖ g(x_i^s) - g(x_j^t) ‖^2 + λ_t  L_t(y_i^s,f(g(x_j^t))) ).

The domain alignment term aligns only the source and target samples with similar activation/labels and the sparse matrix γ̂ will automatically perform label propagation between source and target samples. The classifier f is simultaneously learnt in both source and target domain.



 

 



§ EXPERIMENTS AND RESULTS


We evaluate DeepJDOT on three adaptation tasks: digits classification (Section <ref>), the OfficeHome dataset (Section <ref>), and the Visual Domain Adaptation challenge (visDA; Section <ref>). For each dataset, we first present the data, then detail the implementation and finally present and discuss the results.






 §.§ Digit classification




  §.§.§ Datasets
 We consider four data sources (domains) from the digits classification field: MNIST <cit.>, USPS <cit.>, MNIST-M, and the Street View House Numbers (SVHN) <cit.> dataset. Each dataset involves a 10-class classification problem (retrieving numbers 0-9):



  - USPS. The USPS datasets contains 7`291 training and 2`007 test grayscale images of handwritten images, each one of size 16 ×16 pixels.

  - MNIST. The MNIST dataset contains 60`000 training and 10`000 testing grayscale images of size 28 × 28.

  - MNIST M. We generated the MNIST-M images by following the protocol in <cit.>. MNIST-M is a variation on MNIST, where the (black) background is replaced by random patches extracted from the Berkeley Segmentation Data Set (BSDS500) <cit.>. The number of training and testing samples are the same as the MNIST dataset discussed above.

  - SVHN. The SVHN dataset contains house numbers extracted from Google Street View images. We used the Format2 version of SVHN, where the images are cropped into 32 × 32 pixels. Multiple digits can appear in a single image, the objective is to detect the digit in the center of the image. This dataset contains 73`212 training images, and 26`032 testing images of size 32× 32×3. The respective examples of the each dataset is shown in Figure <ref>.






The three following experiments were run (the arrow direction corresponds to the sense of the domain adaptation):


  - USPS↔MNIST. The USPS images are zero-padded to reach the same size as MNIST dataset.
The adaptation is considered in both directions: USPS → MNIST, and MNIST → USPS.


  - SVHN→MNIST. The single-channel MNIST images are replicated three times to form a gray 3 channels image, and resized to match the resolution of the SVHN images. Here, the adaptation is considered in only one direction: SVHN→MNIST. Adapting SVHN images to MNIST is challenging due to the variations in the SVHN images <cit.>  

  - MNIST→MNIST-M. MNIST is considered as the source domain and MNIST-M as the target domain. The color MNIST-M images can be easily identified by a human, however it is challenging for the CNN trained on MNIST, which is only grayscale. Again, the gray scale MNIST images are replicated three times to match the color resolution of the MNIST-M images.




  §.§.§ Model
 For all digits adaptation experiments, our embedding function g is trained from scratch with six 3×3 convolutional layers containing 32, 32, 64, 64, 128 and 128 filters, and one fully-connected layer of 128 hidden units followed by a sigmoid nonlinearity respectively. Classifier f then consists of a fully-connected layer, followed by a softmax to provide the class scores.
The Adam optimizer (lr = 2e-4) is used to update our model using mini-batch sizes of m_S = m_T = 500 for the two domains (50 samples per class in the source mini-batch). The hyper-parameters of DeepJDOT, α = 0.001 and λ_t = 0.0001, are fixed experimentally. 

We compare DeepJDOT with the following methods: 


  * non-adversarial discrepancy methods: DeepCORAL <cit.>, MMD<cit.>, DRCN<cit.>, DSN <cit.>, AssocDA<cit.>, Self-ensemble<cit.>[we report a comparison against <cit.> by using minimal data augmentation (corresponding to MT+CT^* in
Table 1 of <cit.>). We do not compare against their full model, as they use a much heavier data augmentation and different networks.], 

  * adversarial discrepancy methods: DANN<cit.>, ADDA<cit.>, 

  * adversarial image generation methods: CoGAN<cit.>, UNIT<cit.>,  GenToAdapt<cit.> and I2I Adapt<cit.>. 

To ensure fair comparison, we re-implemented the most relevant competitors (CORAL, MMD, DANN, and ADDA). For the other methods, the results are directly reported from the respective articles.




  §.§.§ Results
 The performance of DeepJDOT on the four digits adaptation tasks is reported in Table <ref>. The first row () shows the accuracies on target test data achieved with classifiers trained on source data without adaptation, and the row () reports accuracies on the target test data achieved with classifiers trained on the target training data. This  method is considered as an upper bound for our proposed method and can be seen as our gold standard.  (stochastic adaptation of JDOT) refers to the accuracy of our proposed method, when the discrepancy between source and target domain is computed with an ℓ_2 distance in the original image space. Lastly,  indicates the source data accuracy, after adapting to the target domain, and can be considered a measure of catastrophic forgetting.

The experimental results show that DeepJDOT achieves accuracies comparable or higher to the current state-of-the-art methods. When the methods in the first block of Table <ref> are considered,  outperforms the competitors by large margins, with the exception of  that have similar performance on the MNIST→USPS task. In the more challenging adaptation settings (SVHN→MNIST and MNIST→MNIST-M),
the state-of-the-art methods[For <cit.> in the SVHN→MNIST adaptation task the accuracy is reported from the paper, as we were not able to further improve the source only accuracy ]
 were not able to adapt well to the target domain. Next, when the methods in the second block of Table <ref> is considered, our method showed impressive performance, despite  not using any complex procedure for generating target images to perform the adaptation. 







  §.§.§ t-SNE embeddings
 
We visualize the quality of the embeddings for the source and target domain learnt by ,  and  using t-SNE embedding on the MNIST→MNIST-M adaptation task (Figure <ref>). As expected, in the source model the samples from the source domain are well clustered and target samples are more scattered. The t-SNE embeddings with the  were not able to align the distributions well, and this observation also holds for . It is noted that  does not align the distributions, but learns the classifier in target domain directly. The poor embeddings of the target samples with  shows the necessity of computing the ground metric (cost function) of optimal transport in the deep CNN layers. Finally,  perfectly aligns the source domain samples and target domain samples to each other, which explains the good numerical performances reported above. The “tentacle”-shaped and near-perfect separation of the classes in the embedding illustrate the fact that  finds an embedding that both aligns the source/target distribution, but also maximizes the margin between the classes.






  §.§.§ Ablation study
 
Table <ref> reports the results obtained in the USPS→MNIST and MNIST→ MNIST-M cases for models using only parts of our proposed loss (equation (<ref>)).
When only the JDOT loss is considered (α d+L_t case), the accuracy drops in both adaptation cases. This behavior might be due to overfitting of the target classifier to the noisy pseudo- (propagated) labels. However, the performance is comparable to non-adversarial discrepancy-based methods reported in Table <ref>. On the contrary, when only the feature space distribution is included in Equation (<ref>), i.e. the L_s+α d experiment, the accuracy is close to our full model in USPS→MNIST direction, but drops in the MNIST→ MNIST-M one. Overall the accuracies are improved compared to the original JDOT model, which highlights the importance of including the information from the source domain. Moreover, this also highlights the importance of simultaneously updating the classifier both in the source and target domain. Summarizing, this ablation study showed that the individual components bring complimentary information to achieve the best classification results.













 §.§ Office-Home




  §.§.§ Dataset
 The Office-Home dataset <cit.> contains around 15'500 images in 65 categories from four different domains: artistic paintings, clipart, product and real-world images.



  §.§.§ Model
 In this case, we use a pre-trained VGG-16 model <cit.> with the last layer replaced, but perform no data augmentation. We use 3'250 samples per domain to compute the optimal couplings. We compared our model with following state-of-the-art methods: CORAL<cit.>, JDA<cit.>, DAN<cit.>, DANN<cit.>, and DAH<cit.>.



  §.§.§ Results


Table <ref> lists the performance of DeepJDOT compared to a series of other adaptation methods. As can be seen, DeepJDOT outperforms all other models by a margin on all tasks, except for the adaptation from domain “product” to “clipart”.

 






 


 §.§ VisDA-2017




  §.§.§ Dataset
 The Visual Domain Adaptation classification challenge of 2017 (VisDA-2017; <cit.>) requires training a model on renderings of 3D models for each of the 12 classes and adapting to natural images sampled from MS-COCO <cit.> (validation set) and YouTube BoundingBoxes <cit.> (test set), respectively. The test set performances reported here were evaluated on the official server.



  §.§.§ Model
 Due to VisDA's strong adaptation complexity, we employ ResNet-50 <cit.> as a base model, replacing the last layer with two MLPs that map to 512 hidden an then to the 12 classes, respectively. We train a model on the source domain and then freeze it to calculate source feature vectors, adapting an intially identical copy to the target set. We use 4'096 samples per domain to calculate the couplings. Data augmentation follows the scheme of <cit.>.

 


  §.§.§ Results
 DeepJDOT's performance on VisDA-2017 is reported in Table <ref> along with the baselines (DeepCORAL, DAN) from the evaluation server[<> ]. Our entry in the evaluation server is mentioned as . 
We can see that our method achieved better accuracy than the distribution matching methods (DeepCORAL <cit.>, DAN <cit.>) with all the classes, expect . We observe a negative transfer for the class  for DeepJDOT, however this phenomena is also valid with the most of the current methods (see the evaluation server results).
For a fair comparison with the rest of the methods in the evaluation server, we also showed (values in bracket of Table <ref>) the accuracy difference between the source model and target model. Our method is ranked sixth when the mean accuracy is considered, and third when the difference between the source model and target model is considered at the time of publication. It is noted that the performance of our method depends on the capacity of the source model: if a larger CNN is used, the performance of our method could be improved further.


 



 



§ CONCLUSIONS

In this paper, we proposed the DeepJDOT model for unsupervised deep domain adaptation based on optimal transport. The proposed method aims at learning a common latent space for the source and target distributions, that conveys discriminant information for both domains. This is achieved by minimizing the discrepancy of joint deep feature/labels domain distributions by means of optimal transport. We propose an efficient stochastic algorithm that solves this problem, and despite being simple and easily integrable into modern deep learning frameworks, our method outperformed the state-of-the-art on cross domain digits and office-home adaptation, and provided satisfactory results on the VisDA-2017 adaptation.

Future works will consider the evaluation of this method in multi-domains scenario, as well as more complicated cost functions taking into account similarities of the representations across the embedding layers and/or similarities of labels across different classifiers.




§ ACKNOWLEDGEMENT

This work benefited from the support of Region Bretagne grant and  OATMIL ANR-17-CE23-0012 project of the French National Research Agency (ANR). We gratefully acknowledge the support of NVIDIA Corporation with the donation of the Titan Xp GPU used for this research. The constructive comments and suggestions of anonymous reviewers are gratefully acknowledged.


splncs

