English

Connect, Not Collapse: Explaining Contrastive Learning for Unsupervised Domain Adaptation

Machine Learning 2022-12-05 v4 Computer Vision and Pattern Recognition

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.

Keywords

Cite

@article{arxiv.2204.00570,
  title  = {Connect, Not Collapse: Explaining Contrastive Learning for Unsupervised Domain Adaptation},
  author = {Kendrick Shen and Robbie Jones and Ananya Kumar and Sang Michael Xie and Jeff Z. HaoChen and Tengyu Ma and Percy Liang},
  journal= {arXiv preprint arXiv:2204.00570},
  year   = {2022}
}

Comments

ICML 2022 (Long Talk)

R2 v1 2026-06-24T10:34:57.650Z