Can Generative Models Improve Self-Supervised Representation Learning?

Sana Ayromlou, Vahid Reza Khazaie, Fereshteh Forghani, Arash Afkanpour

TL;DR

Joint-embedding self-supervised learning (SSL) typically relies on simplistic transformations like random crops and color jitter, which struggle to reflect realistic visual diversity. This paper introduces an instance-conditioned generative augmentation pipeline using image-conditioned latent diffusion (Stable Diffusion) and GANs (ICGAN) to generate semantically consistent yet diverse views of source images. Adding these generative views to standard SSL pipelines boosts downstream linear probing accuracy by up to 10% across multiple SSL frameworks and transfer datasets.

What Problem Does This Paper Address?

Modern joint-embedding SSL algorithms (such as SimCLR, BYOL, and MoCo) learn generalizable visual features by forcing different augmented "views" of the same image to map close together in latent space. However, standard augmentation pipelines rely on hand-engineered pixel manipulations (cropping, blurring, color jittering). These heuristics have two major shortcomings:

  1. Limited diversity: They fail to represent complex variations found in the real world (e.g., changes in 3D perspective, background context, or minor pose variations).
  2. Unrealistic artifacts: Heavy pixel alterations (such as extreme color distortions) can produce unnatural inputs that diverge from natural image distributions.

While recent methods have leveraged synthetic text-to-image data, they depend heavily on textual descriptions or image captions. This paper investigates whether direct, image-conditioned generative models can synthesize realistic, semantically faithful augmentations without needing any text prompts.

Methods

The authors propose Generative Augmentation, where a source image $x$ is transformed into a synthetic counterpart $G(z; \phi(x))$ using an instance-conditioned generator $G$ conditioned on an image embedding $\phi(x)$ (such as a frozen CLIP vision encoder) and latent noise $z \sim \mathcal{N}(0, I)$.

Source Image ──► Pretrained Vision Encoder ──► Generative Model ──► Synthetic Variant
                                                                            │
                                                        [Standard SSL Augmentations]
                                                                            ▼
                                                                     SSL Encoder
  • Generative Models Explored:
  • Stable Diffusion (latent diffusion conditioned on CLIP visual embeddings).
  • ICGAN (Instance-Conditioned GAN).
  • Training Pipeline: With probability $p$, a view is replaced by a pre-generated synthetic sample; standard spatial and photometric augmentations (random crop, Gaussian blur, color jitter, horizontal flip) are then applied downstream. To make training feasible, 10 synthetic samples per ImageNet image were precomputed offline.
  • SSL Frameworks Tested: Evaluated across five joint-embedding architectures: SimCLR, SimSiam, BYOL, MoCo, and Barlow Twins, each using a ResNet-50 backbone pretrained on ImageNet-1k for 100 epochs.

Datasets

  • Pretraining: ImageNet-1k (1.28M training images).
  • Evaluation (Linear Probing):
  • In-distribution: ImageNet validation set.
  • Out-of-distribution (Transfer): Food 101, Places 365, iNaturalist 2018, CIFAR-10, and CIFAR-100.
  • No new benchmark datasets were introduced.

Key Insights and Ideas

  • Generative models complement, but cannot replace, standard augmentations: Dropping standard augmentations entirely and relying only on generative samples yielded a modest +1.96% gain over the baseline. However, pairing generative variations with standard transformations (especially random cropping) yielded a +6.27% gain. Geometric operations remain necessary to force local-to-global spatial invariance.
  • The "sweet spot" for synthetic views is $p = 0.5$: Applying generative augmentations to both positive views at probability $p = 0.5$ offered the best balance. Setting $p = 1.0$ introduces excessive semantic drift away from the real data distribution, leading to degraded performance compared to the 50/50 mix.
  • The SSL model is not just cloning CLIP: Because Stable Diffusion was conditioned on a pretrained CLIP image encoder, a crucial question arose: does the SSL encoder simply mirror CLIP’s representation space? Using Centered Kernel Alignment (CKA) and Orthogonal Procrustes Distance (OPD), the authors proved the learned representations differed substantially from CLIP's latent space, confirming genuine representation learning rather than shortcut distillation.
  • Diffusion outperforms GANs: Stable Diffusion consistently delivered higher accuracy improvements than ICGAN, likely because diffusion models trained on broad web-scale data (LAION-400M) generate higher-fidelity, more diverse variations than GANs trained strictly on ImageNet.

Key Results

  • ImageNet Top-1 Accuracy: Adding Stable Diffusion augmentations significantly improved performance across all five SSL algorithms on ImageNet:
  • MoCo: $60.2\% \rightarrow 70.1\%$ (+9.9%)
  • BYOL: $62.2\% \rightarrow 70.2\%$ (+8.0%)
  • SimCLR: $61.8\% \rightarrow 68.1\%$ (+6.2%)
  • SimSiam: $65.5\% \rightarrow 69.4\%$ (+3.9%)
  • Barlow Twins: $67.7\% \rightarrow 70.8\%$ (+3.1%)
  • Transfer Generalization: Across all 5 out-of-distribution datasets, generative augmentations outperformed standard baselines in nearly every configuration. For example, MoCo jumped from 16.52% to 26.29% (+9.97%) on iNaturalist 2018, and BYOL jumped from 28.70% to 38.71% (+10.01%) on CIFAR-100.

Limitations and Future Work

  • Computation and Storage Costs: Generating high-resolution diffusion samples on the fly is too slow during training; generating and storing 10 synthetic samples offline for over 1.2 million images requires massive precomputation and disk storage.
  • Dependence on Pretrained Generative Models: The representations risk inheriting biases, artifacts, or privacy issues present in the foundation generative models and their large-scale training corpuses (e.g., LAION).
  • Future Directions: Developing online, lightweight generative augmentation modules or exploring co-training frameworks where the instance-conditioned generator and the SSL encoder are trained jointly without collapsing to trivial solutions.

Summary updated

BibTeX
@inproceedings{ayromlou2025can,
  author = {Sana Ayromlou and Vahid Reza Khazaie and Fereshteh Forghani and Arash Afkanpour},
  title = {{Can Generative Models Improve Self-Supervised Representation Learning?}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=YpoNdtAqR6},
}

Loading related content...

Figure