Do Generated Data Always Help Contrastive Learning?
<|reference_start|>Do Generated Data Always Help Contrastive Learning?: 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.<|reference_end|>
@article{wang2024do,
    title={Do Generated Data Always Help Contrastive Learning?},
    author={Yifei Wang, Jizhe Zhang, Yisen Wang},
    journal={arXiv preprint arXiv:2403.12448},
    year={2024},
    archivePrefix={arXiv},
    eprint={2403.12448},
    primaryClass={cs.LG cs.AI cs.CV stat.ML}
}