Abstract
We introduce SynCLR, a novel approach for learning visual representations exclusively from synthetic images and synthetic captions, without any real data. We synthesize a large dataset of image captions using LLMs, then use an off-the-shelf text-to-image model to generate multiple images corresponding to each synthetic caption. We perform visual representation learning on these synthetic images via contrastive learning, treating images sharing the same caption as positive pairs. The resulting representations transfer well to many downstream tasks, competing favorably with other general-purpose visual representation learners such as CLIP and DINO v2 in image classification tasks. Furthermore, in dense prediction tasks such as semantic segmentation, SynCLR outperforms previous self-supervised methods by a significant margin, e.g., improving over MAE and iBOT by 6.2 and 4.3 mIoU on ADE20k for ViT-B/16.
Introduction
In the field of computer vision, the prevailing mantra has long been "more data is better." State-of-the-art models like CLIP and DINO v2 are the products of scraping billions of images from the open web. However, this approach faces a "dilemma of scale": researchers must choose between massive, noisy, uncurated web data or small, high-quality, but expensive curated datasets.
A new framework, SynCLR, proposes a third path: Learning from Models. Instead of observing the real world directly, SynCLR distills the collective intelligence captured within Large Language Models (LLMs) and text-to-image diffusion models. This approach demonstrates that visual representations learned entirely from synthetic data can match or even outperform models trained on massive real-world datasets.
Methodology
The SynCLR pipeline consists of three main stages designed to generate high-quality training signals without real-world imagery.
1. Synthesizing Captions
The process begins with Llama-2 generating a massive corpus of image descriptions. To ensure semantic diversity, the authors utilize a concept list derived from ImageNet-21k and employ three templates:
- Concept only: Simple descriptions like "A zebra is trotting across the savannah."
- Concept + Background: Using GPT-4 to suggest plausible settings (e.g., a "tiger" in a "forest").
- Concept + Spatial Relation: Descriptions involving positioning, such as "A cat is sitting in front of a sofa."
2. Synthesizing Images
For every synthetic caption, Stable Diffusion 1.5 generates four distinct images. By employing a low Classifier-Free Guidance (CFG) scale, the system ensures visual diversity while maintaining adherence to the caption's semantics.
3. Representation Learning
The core innovation of SynCLR lies in its definition of visual classes. While standard self-supervised learning (like SimCLR) treats every image as its own class, and supervised learning groups all images of a category (e.g., "dogs") together, SynCLR finds a "Goldilocks" granularity by treating each caption as a class.
SynCLR uses a multi-positive contrastive loss, pulling embeddings of images generated from the same caption together. This is augmented by iBOT (masked image modeling) and an EMA (Exponential Moving Average) teacher model to capture fine-grained local features and improve training stability.
Results and Analysis
The authors evaluated SynCLR using the SynCaps-150M dataset, which contains 600 million synthetic images derived from 150 million captions.
ImageNet Performance
A ViT-B/16 model trained with SynCLR achieved 80.7% linear probing accuracy on ImageNet-1K. This result is particularly striking as it outperforms OpenAI’s CLIP (80.2%), despite CLIP having seen 400 million real image-text pairs.
Dense Prediction Tasks
On the ADE20k semantic segmentation benchmark, SynCLR showed significant gains, outperforming MAE and iBOT by 6.2 and 4.3 mIoU, respectively. This suggests that synthetic data is exceptionally effective at teaching models about object boundaries and spatial relationships.
Scaling and Generalization
SynCLR exhibits robust scaling laws; performance consistently improved as the dataset size increased from 1M to 150M captions. Furthermore, the model's ability to transfer to real-world images despite being trained solely on synthetic data suggests that the visual logic captured by diffusion models is sufficient for high-level reasoning.
Discussion and Conclusion
SynCLR represents a significant shift in visual representation learning, suggesting that the next generation of vision models might be trained in the "imagination" of other models. However, limitations remain. The pipeline currently depends on a predefined concept list, and generating 600 million images is computationally intensive. Additionally, synthetic data inherits the biases of its source models (LLMs and diffusion models), necessitating further study into the ethical implications of model-to-model distillation.
Despite these challenges, SynCLR proves that "learning from models" is a viable and powerful alternative to traditional web-scraping, offering a level of control and scalability previously unattainable.
Summary updated