[Paper Review] Exploiting Both Domain-specific and Invariant Knowledge via a Win-win Transformer for Unsupervised Domain Adaptation
This paper proposes WinTR, a Win-win Transformer framework for unsupervised domain adaptation that separately learns domain-specific knowledge via individual classifiers for source and target domains while enabling cross-domain knowledge transfer through source-guided label refinement and single-sided feature alignment. Experiments show WinTR achieves state-of-the-art performance, outperforming prior methods by up to 12.2% on DomainNet and demonstrating superior transferability over CNNs.
Unsupervised Domain Adaptation (UDA) aims to transfer knowledge from a labeled source domain to an unlabeled target domain. Most existing UDA approaches enable knowledge transfer via learning domain-invariant representation and sharing one classifier across two domains. However, ignoring the domain-specific information that are related to the task, and forcing a unified classifier to fit both domains will limit the feature expressiveness in each domain. In this paper, by observing that the Transformer architecture with comparable parameters can generate more transferable representations than CNN counterparts, we propose a Win-Win TRansformer framework (WinTR) that separately explores the domain-specific knowledge for each domain and meanwhile interchanges cross-domain knowledge. Specifically, we learn two different mappings using two individual classification tokens in the Transformer, and design for each one a domain-specific classifier. The cross-domain knowledge is transferred via source guided label refinement and single-sided feature alignment with respect to source or target, which keeps the integrity of domain-specific information. Extensive experiments on three benchmark datasets show that our method outperforms the state-of-the-art UDA methods, validating the effectiveness of exploiting both domain-specific and invariant
Motivation & Objective
- To address the limitation of existing UDA methods that force a single classifier on both source and target domains, which compromises domain-specific feature expressiveness.
- To explore whether vision Transformers can better preserve in-domain knowledge while enabling effective cross-domain knowledge transfer compared to CNNs.
- To resolve the inherent trade-off between domain-invariant representation learning and domain-specific feature learning in UDA.
- To validate the effectiveness of using two separate classification heads with shared backbone and cross-domain knowledge distillation via pseudo-label refinement.
Proposed method
- The method employs a vision Transformer backbone (DeiT) with two distinct classification tokens—one for source and one for target—enabling separate learning of domain-specific representations.
- It introduces a source-guided label refinement mechanism to improve the quality of target pseudo-labels using predictions from the source classifier.
- Single-sided feature alignment is applied to align features from one domain to the other (e.g., target to source) while preserving domain-specific features via stop-gradient operations.
- The training proceeds in two stages: first, a source-only model is trained on ImageNet-pretrained weights to generate initial target pseudo-labels; second, the model is reinitialized and jointly optimized with domain-specific classifiers and contrastive losses.
- Contrastive losses are computed independently on source and target features, with gradients stopped on the opposite domain’s features to maintain domain-specific integrity.
- Pseudo-labels are iteratively updated during training using the latest model predictions to improve consistency and robustness.
Experimental results
Research questions
- RQ1Can a single Transformer backbone with two separate classification heads effectively learn both domain-specific and domain-invariant features in unsupervised domain adaptation?
- RQ2Does using a vision Transformer instead of a CNN improve transferability in UDA, especially under large domain shifts?
- RQ3Can source-guided label refinement and single-sided feature alignment jointly enhance knowledge transfer without sacrificing domain-specific feature expressiveness?
- RQ4Is it feasible and effective to train a dedicated target classifier using only unlabeled target data and pseudo-labels in a Transformer-based UDA framework?
Key findings
- WinTR-B achieves an average accuracy of 46.8% on the DomainNet benchmark, which is 12.2% higher than its DeiT-B backbone.
- WinTR-S outperforms CDTrans-B by 4.8% on average and surpasses all ResNet-50-based UDA methods on DomainNet.
- On Office-Home, WinTR achieves state-of-the-art performance, with significant gains in transferability compared to CNN-based models.
- Visualization results show that the vision Transformer focuses on relevant objects in target domains, unlike CNNs that often attend to background or style artifacts.
- The ablation study confirms that both source-guided label refinement and single-sided feature alignment contribute significantly to performance gains.
- The method demonstrates superior robustness under large domain shifts, such as Ar → Cl in Office-Home, where CNNs fail to attend to main objects.
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.