English

The Power of Contrast for Feature Learning: A Theoretical Analysis

Machine Learning 2023-12-21 v4 Machine Learning

Abstract

Contrastive learning has achieved state-of-the-art performance in various self-supervised learning tasks and even outperforms its supervised counterpart. Despite its empirical success, theoretical understanding of the superiority of contrastive learning is still limited. In this paper, under linear representation settings, (i) we provably show that contrastive learning outperforms the standard autoencoders and generative adversarial networks, two classical generative unsupervised learning methods, for both feature recovery and in-domain downstream tasks; (ii) we also illustrate the impact of labeled data in supervised contrastive learning. This provides theoretical support for recent findings that contrastive learning with labels improves the performance of learned representations in the in-domain downstream task, but it can harm the performance in transfer learning. We verify our theory with numerical experiments.

Keywords

Cite

@article{arxiv.2110.02473,
  title  = {The Power of Contrast for Feature Learning: A Theoretical Analysis},
  author = {Wenlong Ji and Zhun Deng and Ryumei Nakada and James Zou and Linjun Zhang},
  journal= {arXiv preprint arXiv:2110.02473},
  year   = {2023}
}

Comments

78 pages, accepted by JMLR