Do Generated Data Always Help Contrastive Learning?

Yifei Wang, Jizhe Zhang, Yisen Wang
2/12/2026

No official code found. Best implementation: PKU-ML/adainf (31 stars, last commit 2024-04-04).

Abstract

Contrastive Learning (CL) has emerged as one of the most successful paradigms for unsupervised visual representation learning, yet it often depends on intensive manual data augmentations. With the rise of generative models, especially diffusion models, the ability to generate realistic images close to the real data distribution has been well recognized. These generated high-equality images have been successfully applied to enhance contrastive representation learning, a technique termed ``data inflation''. However, we find that the generated data (even from a good diffusion model like DDPM) may sometimes even harm contrastive learning. We investigate the causes behind this failure from the perspective of both data inflation and data augmentation. For the first time, we reveal the complementary roles that stronger data inflation should be accompanied by weaker augmentations, and vice versa. We also provide rigorous theoretical explanations for these phenomena via deriving its generalization bounds under data inflation. Drawing from these insights, we propose Adaptive Inflation (AdaInf), a purely data-centric strategy without introducing any extra computation cost. On benchmark datasets, AdaInf can bring significant improvements for various contrastive learning methods. Notably, without using external data, AdaInf obtains 94.70% linear accuracy on CIFAR-10 with SimCLR, setting a new record that surpasses many sophisticated methods. Code is available at https://github.com/PKU-ML/adainf.

View on arXivView PDF

Code Implementations(1)

PKU-ML/adainfCommunity100%

Official code for ICLR 2024 paper "Do Generated Data Always Help Contrastive Learning?"

311Shell, PythonMar 19, 20242 years ago

Similar Papers

Cite this paper

@article{wang2026generated,
  title  = {Do Generated Data Always Help Contrastive Learning?},
  author = {Yifei Wang and Jizhe Zhang and Yisen Wang},
  year   = {2026},
  eprint = {2403.12448},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2403.12448},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.12448.svg)](https://codeofpaper.com/paper/2403.12448)

Discussion