[Paper Review] Training on Thin Air: Improve Image Classification with Generated Data
This paper proposes Diffusion Inversion, a method that leverages Stable Diffusion to generate high-quality, diverse training data for image classification by inverting real images into latent space and conditioning on noisy latent vectors. The approach achieves 2–3× sample complexity improvement and 6.5× faster sampling than baseline methods, outperforming prompt-based generation and KNN retrieval across diverse datasets, including those with significant distribution shifts.
Acquiring high-quality data for training discriminative models is a crucial yet challenging aspect of building effective predictive systems. In this paper, we present Diffusion Inversion, a simple yet effective method that leverages the pre-trained generative model, Stable Diffusion, to generate diverse, high-quality training data for image classification. Our approach captures the original data distribution and ensures data coverage by inverting images to the latent space of Stable Diffusion, and generates diverse novel training images by conditioning the generative model on noisy versions of these vectors. We identify three key components that allow our generated images to successfully supplant the original dataset, leading to a 2-3x enhancement in sample complexity and a 6.5x decrease in sampling time. Moreover, our approach consistently outperforms generic prompt-based steering methods and KNN retrieval baseline across a wide range of datasets. Additionally, we demonstrate the compatibility of our approach with widely-used data augmentation techniques, as well as the reliability of the generated data in supporting various neural architectures and enhancing few-shot learning.
Motivation & Objective
- To address the challenge of acquiring high-quality, diverse training data for image classification, especially in data-scarce or specialized domains.
- To close the performance gap between real and synthetic data by ensuring distributional fidelity and data coverage in generated samples.
- To develop a scalable, efficient data augmentation method compatible with standard deep learning pipelines and neural architectures.
- To demonstrate that synthetic data generated via latent inversion can surpass real data in model performance when combined with proper conditioning and sampling strategies.
Proposed method
- Invert real training images into the latent space of Stable Diffusion using the text encoder’s output, preserving semantic and distributional characteristics.
- Condition the generative model on noisy versions of the inverted latent vectors to produce diverse, novel training images with semantic consistency.
- Learn condition vectors to generate low-resolution (128×128) images directly, reducing sampling time by 6.5× compared to high-resolution generation and downsampling.
- Use latent interpolation between two inverted embeddings with varying strengths (α) to generate intermediate, diverse image variants.
- Apply Gaussian noise perturbation to latent vectors during generation to enhance diversity, with optimal noise strength λ=0.2 for extended sampling.
- Evaluate and tune hyperparameters such as inference steps (100), noise strength, and interpolation strength to balance quality, diversity, and performance.
Experimental results
Research questions
- RQ1Can pre-trained generative models like Stable Diffusion be used to generate synthetic data that matches or exceeds the performance of real data in image classification?
- RQ2What components are essential for synthetic data to achieve superior sample complexity and generalization compared to real data?
- RQ3How does latent inversion with noise conditioning compare to prompt-based or KNN-based data generation in terms of distributional fidelity and model accuracy?
- RQ4To what extent can generated data enhance few-shot learning and generalization in specialized domains with data distribution shifts?
Key findings
- Diffusion Inversion achieves 2–3× improvement in sample complexity, meaning models trained on generated data reach higher accuracy with fewer samples than models trained on real data.
- The method reduces sampling time by 6.5× by generating low-resolution images directly instead of upscaling, significantly improving efficiency.
- Generated data outperforms generic prompt-based steering and KNN retrieval from LAION-5B across all evaluated datasets, including medical imaging with large distribution shifts.
- Optimal performance is achieved with a noise strength of λ=0.2 and interpolation strength α≈0.1, balancing diversity and quality as measured by FID, precision, recall, and coverage metrics.
- Latent interpolation between compatible embeddings generates realistic, novel images at all α values, but performance degrades sharply at high α due to semantic inconsistency.
- The approach is compatible with standard data augmentation techniques and improves few-shot learning across multiple neural architectures, including ResNet18.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.