Abstract
Contrastive Learning (CL) traditionally relies on massive datasets and aggressive data augmentations to learn robust representations. While the advent of high-quality diffusion models suggests that synthetic data could satisfy this data hunger, empirical results have been inconsistent. This paper investigates the "inflation paradox"—where adding millions of synthetic images can actually degrade performance. By employing an augmentation graph-based theoretical framework, we demonstrate that data inflation and manual augmentations serve a complementary role in improving graph connectivity. We propose Adaptive Inflation (AdaInf), a strategy that reweights real data and weakens augmentations, achieving a new state-of-the-art linear accuracy of 94.70% on CIFAR-10 using SimCLR without external data.
Introduction
Self-supervised Contrastive Learning (CL) has revolutionized representation learning by training models to recognize similarities between different augmented views of the same image. However, the efficacy of CL is heavily dependent on two factors: the volume of data and the intensity of manual augmentations (e.g., color jittering, extreme cropping).
With the proliferation of generative models like Denoising Diffusion Probabilistic Models (DDPM), researchers have attempted "data inflation"—supplementing real datasets with millions of synthetic samples. Surprisingly, this does not always lead to better models. In some instances, adding 1 million synthetic images to a standard benchmark like CIFAR-10 results in a performance drop. This paper explores the underlying mechanics of this phenomenon and provides a principled approach to integrating synthetic data effectively.
The Connectivity Paradox: A Graph-Theoretic View
To understand why synthetic data can hurt performance, we model the training set as an augmentation graph. In this framework:
- Nodes represent individual images (real or synthetic).
- Edges represent the transformations (augmentations) that connect one image to another.
The goal of CL is to learn representations where connected nodes are close in the embedding space. The "spectral gap" of the graph's Laplacian serves as a measure of connectivity.
The Complementary Relationship
Our analysis reveals that data inflation and strong augmentations are two different paths to the same goal: increasing graph connectivity.
- In small datasets, the graph is sparse. Strong augmentations are necessary to create edges that bridge the gaps between isolated samples.
- In inflated datasets, the millions of synthetic samples naturally fill the gaps in the data distribution, creating a well-connected graph even without heavy transformations.
When strong augmentations are applied to an already dense, inflated dataset, they often push samples beyond the semantic boundaries of their original "class," creating "labeling errors" (e.g., a crop so aggressive it turns a cat into an unidentifiable texture). This noise outweighs the benefits of the extra data, leading to performance degradation.
Adaptive Inflation (AdaInf)
Based on these insights, we introduce Adaptive Inflation (AdaInf), a data-centric strategy designed to optimize the use of synthetic data in CL. AdaInf consists of two primary components:
1. Data Reweighting (The 10:1 Rule)
Real data remains qualitatively superior to synthetic data. We found that a single real image is approximately as valuable as 10 to 15 generated images. To prevent the model from drifting away from the true data distribution, AdaInf upweights real samples during training (e.g., a 10:1 ratio), ensuring the model stays anchored to high-fidelity features.
2. Weakening Augmentations
As the dataset size increases through inflation, the need for aggressive cropping and jittering diminishes. AdaInf systematically reduces augmentation intensity. For example, by increasing the minimum scale in a Random Resized Crop from 0.08 to 0.2, we reduce semantic noise while leveraging the density provided by the synthetic samples.
Experimental Results
We evaluated AdaInf across several benchmarks (CIFAR-10, CIFAR-100, Tiny ImageNet) using various generative models (DDPM, EDM, STF, and StyleGAN2-ADA).
- State-of-the-Art Performance: Applying AdaInf to SimCLR on CIFAR-10 yielded a linear accuracy of 94.70%, surpassing existing methods that do not use external pre-training.
- Framework Agnosticism: The strategy proved effective across multiple CL frameworks, including MoCo V2 and Barlow Twins. On CIFAR-100, SimCLR performance rose from 66.81% to 69.6%.
- Data-Scarce Scenarios: In a controlled test using only 5,000 real CIFAR-10 images, AdaInf boosted accuracy from 74.83% to 79.15%, highlighting the utility of synthetic data when real data is limited.
- Strategy > Quality: Interestingly, the specific strategy (weighting and augmentation) had a more significant impact on final accuracy than the raw quality (FID score) of the generative model used.
Conclusion and Future Work
This research demonstrates that more data is only better if the training strategy adapts to the changing density of the data manifold. By weakening augmentations and reweighting real samples, AdaInf turns synthetic data from a potential liability into a powerful asset.
While highly effective, limitations remain. Generating millions of images is computationally intensive, and the strategy's effectiveness varies with certain architectures like BYOL. Future research will focus on scaling these graph-theoretic insights to high-resolution datasets like ImageNet-1K and investigating the specific augmentation requirements of asymmetric CL frameworks.
Summary updated