Abstract
Unsupervised domain adaptation (UDA) aims to transfer knowledge from a model trained on a labeled source domain to an unlabeled target domain. To this end, we propose in this paper a novel cycle class consistency framework, named COOK, which leverages distributional optimal transport and knowledge distillation. By matching target samples to source class-conditional distributions and refining these matches through a teacher-student distillation cycle, COOK ensures class-aware adaptation and mitigates label shift.
Introduction
In Unsupervised Domain Adaptation (UDA), the primary challenge is the "domain shift" between a labeled source dataset and an unlabeled target dataset. While many modern approaches utilize Optimal Transport (OT) to align these domains in a shared latent space, standard OT methods are often "class-blind." This lack of class awareness can lead to "label shift," where target samples are incorrectly matched to source samples of different classes simply because they appear similar in the feature space.
To address this, we introduce COOK (Cycle Class COnsistency with Optimal Transport and Knowledge distillation). COOK makes OT class-aware by transporting target samples toward source class-conditional distributions rather than individual points, and it refines this process through a self-reinforcing teacher-student cycle.
Methodology
The COOK framework integrates three core components into a unified cycle to achieve robust domain adaptation.
Distributional Optimal Transport (DOT)
Unlike traditional OT that matches individual target samples to individual source samples, COOK employs Distributional Optimal Transport (DOT). Here, target samples are matched to source class-conditional distributions. The transport cost for a target sample to a source class is defined as the negative log-likelihood of that sample belonging to the class distribution. This explicit use of source label information ensures that the transport plan is class-aware from the start.
Teacher-Student Knowledge Distillation
The framework utilizes two models: a Teacher ($h^T$) and a Student ($h^S$).
- The Teacher ($h^T$): This model is trained on the target data using pseudo-labels derived from the OT transport plan. To maintain high label quality, a confidence filtering mechanism is applied, only utilizing pseudo-labels that fall within the top percentile of lowest entropy.
- The Student ($h^S$): The Student is trained on the labeled source data while simultaneously "distilling" knowledge from the Teacher. This distillation process allows the Student to inherit the Teacher's target-domain expertise while maintaining its own proficiency in the source domain.
The COOK Cycle
The interaction between these components forms a closed loop. The Student’s predictions are used to update the cost function for the next iteration of Optimal Transport. This creates a self-improving cycle: OT provides labels to the Teacher, the Teacher guides the Student, and the Student enhances the accuracy of the OT cost function.
Clustering and Decision Boundaries
To further refine the adaptation, COOK incorporates Virtual Adversarial Training (VAT) and entropy minimization. These techniques enforce a "clustering assumption," pushing the model's decision boundaries into low-density regions of the feature space, which helps in separating different classes more effectively in the target domain.
Experimental Evaluation
We evaluated COOK on three standard UDA benchmarks: Office-31, Office-Home, and ImageCLEF-DA.
Key Results
- Office-31: COOK achieved an average accuracy of 94.1%, outperforming previous state-of-the-art methods by 3.5%. Notably, on the challenging "Webcam to Amazon" ($W \to A$) task, it achieved a significant 9.2% improvement.
- Office-Home: The framework surpassed baselines in 7 out of 12 transfer tasks, yielding a 2.8% average improvement. It proved particularly effective for difficult shifts like Clip Art to Product ($Cl \to Pr$).
- ImageCLEF-DA: COOK reached an average accuracy of 90.7%, outperforming other OT-based methods such as RWOT and ETD.
Conclusion
COOK presents a powerful approach to UDA by combining class-aware distributional optimal transport with a teacher-student distillation cycle. By ensuring that target samples are matched to the correct source class distributions and iteratively refining these matches, COOK achieves superior performance on diverse benchmarks. Future work may explore reducing hyperparameter sensitivity and extending the framework to source-free adaptation scenarios.
Summary updated