Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

CDTrans: Cross-domain Transformer for Unsupervised Domain Adaptation

About

Unsupervised domain adaptation (UDA) aims to transfer knowledge learned from a labeled source domain to a different unlabeled target domain. Most existing UDA methods focus on learning domain-invariant feature representation, either from the domain level or category level, using convolution neural networks (CNNs)-based frameworks. One fundamental problem for the category level based UDA is the production of pseudo labels for samples in target domain, which are usually too noisy for accurate domain alignment, inevitably compromising the UDA performance. With the success of Transformer in various tasks, we find that the cross-attention in Transformer is robust to the noisy input pairs for better feature alignment, thus in this paper Transformer is adopted for the challenging UDA task. Specifically, to generate accurate input pairs, we design a two-way center-aware labeling algorithm to produce pseudo labels for target samples. Along with the pseudo labels, a weight-sharing triple-branch transformer framework is proposed to apply self-attention and cross-attention for source/target feature learning and source-target domain alignment, respectively. Such design explicitly enforces the framework to learn discriminative domain-specific and domain-invariant representations simultaneously. The proposed method is dubbed CDTrans (cross-domain transformer), and it provides one of the first attempts to solve UDA tasks with a pure transformer solution. Experiments show that our proposed method achieves the best performance on public UDA datasets, e.g. VisDA-2017 and DomainNet. Code and models are available at https://github.com/CDTrans/CDTrans.

Tongkun Xu, Weihua Chen, Pichao Wang, Fan Wang, Hao Li, Rong Jin• 2021

Related benchmarks

TaskDatasetResultRank
Unsupervised Domain AdaptationOffice-Home (test)
Average Accuracy80.5
332
Image ClassificationOffice-31
Average Accuracy92.6
308
Unsupervised Domain AdaptationOffice-Home
Average Accuracy80.5
250
Image ClassificationDomainNet
Accuracy (ClipArt)69
206
Domain AdaptationOffice-31 unsupervised adaptation standard
Accuracy (A to W)96.7
162
Image ClassificationOffice-Home
Average Accuracy80.5
148
Unsupervised Domain AdaptationDomainNet
Average Accuracy51.5
142
Domain AdaptationOffice-Home (test)
Mean Accuracy80.5
112
Object ClassificationVisDA synthetic-to-real 2017
Mean Accuracy88.4
108
Unsupervised Domain AdaptationVisDA unsupervised domain adaptation 2017
Mean Accuracy88.4
98
Showing 10 of 27 rows

Other info

Code

Follow for update