Connect, Not Collapse: Explaining Contrastive Learning for Unsupervised Domain Adaptation
Kendrick Shen, Robbie Jones, Ananya Kumar, Sang Michael Xie, Jeff Z. HaoChen, Tengyu Ma, Percy Liang
Abstract
We consider unsupervised domain adaptation (UDA), where labeled data from a source domain (e.g., photographs) and unlabeled data from a target domain (e.g., sketches) are used to learn a classifier for the target domain. Conventional UDA methods (e.g., domain adversarial training) learn domain-invariant features to improve generalization to the target domain. In this paper, we show that contrastive pre-training, which learns features on unlabeled source and target data and then fine-tunes on labeled source data, is competitive with strong UDA methods. However, we find that contrastive pre-training does not learn domain-invariant features, diverging from conventional UDA intuitions. We show theoretically that contrastive pre-training can learn features that vary subtantially across domains but still generalize to the target domain, by disentangling domain and class information. Our results suggest that domain invariance is not necessary for UDA. We empirically validate our theory on benchmark vision datasets.
Create a lesson
Related papers
Evaluating Compositional Generalization in Transformers: The Role of Composition Equivalence and Module Coverage
Purva Pruthi, Andrew Yuan, Alexander D'Amour et al.
Sharp Sample Complexity of KL-Regularized Reinforcement Learning
Andrew Liu
Leveraging Psychophysical Attentional Distribution for Gaze-Augmented Reward Modeling
Chaeho Lee, Junyup Kim, Wansoo Kim et al.
Deep Personalization: Continuous Context Observation for Local Proactive Agents
Yijia Shao, Song Bian, Junxian Guo et al.
SLIC: Reinforcement Fine-Tuning Small LMs for Multi-Turn Analog Circuit Optimization
Yan Xu, Zhengqi Gao, Ching-Yun Ko et al.
Fermat ProbCover: Coverage-Based Active Learning on Fermat Distance Graphs
Gokul Bhusal, Delanna Do, Kevin Miller et al.