[Paper Review] CDTrans: Cross-domain Transformer for Unsupervised Domain Adaptation
CDTrans introduces a weight-sharing triple-branch Transformer with cross-attention for unsupervised domain adaptation, using a two-way center-aware pseudo-labeling to align source and target domains and achieve state-of-the-art results on VisDA-2017 and DomainNet.
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.
Motivation & Objective
- Motivate unsupervised domain adaptation (UDA) and address noise in pseudo labels within category-level alignment.
- Propose a pure Transformer-based framework (CDTrans) that uses cross-attention for robust source-target alignment.
- Introduce a two-way center-aware pseudo labeling method to generate high-quality pseudo labels.
- Demonstrate state-of-the-art performance on major UDA benchmarks (VisDA-2017, DomainNet).
Proposed method
- Propose a weight-sharing triple-branch Transformer (source, target, and source-target branches).
- Apply self-attention in source/target branches and cross-attention in the source-target branch for domain alignment.
- Use a distillation loss from the source-target branch to supervise the target branch during training.
- Design a two-way center-aware labeling algorithm to generate and filter pseudo labels based on cross-domain similarity and center-based refinement.
- Train with classification loss on source/target branches and a distillation loss between source-target and target branches; inference uses only the target branch.
Experimental results
Research questions
- RQ1Can a pure Transformer with cross-attention improve UDA by robustly aligning two domains despite noisy pseudo labels?
- RQ2Does a two-way center-aware pseudo labeling strategy produce higher-quality input pairs for cross-domain Transformer training?
- RQ3How does the CDTrans framework perform on standard UDA benchmarks compared to state-of-the-art methods?
- RQ4What is the impact of different losses (cls vs dtl) on the UDA performance when using cross-attention?
Key findings
- CDTrans with cross-attention and three weight-sharing branches achieves strong UDA performance, outperforming many state-of-the-art methods on public benchmarks.
- The two-way center-aware labeling method improves pseudo-label quality, approaching upper-bound performance trained with ground-truth pairs.
- A comprehensive ablation shows that combining classification and distillation losses yields the best VisDA-2017 results.
- Transformers provide robust generalization in UDA, with notable gains over CNN-based baselines on multiple datasets (VisDA-2017, Office-Home, Office-31, DomainNet).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.