NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

This Dataset Does Not Exist: Training Models from Generated Images

Victor Besnier, Himalaya Jain, Andrei Bursuc, Matthieu Cord, Patrick Pérez

TL;DR

This paper explores whether we can train high-performing image classifiers using only synthetic data generated by GANs. By introducing techniques to increase sample diversity and bridge the "domain gap" between synthetic and real images, the authors demonstrate that a model trained entirely on BigGAN-generated images can match or even slightly exceed the performance of one trained on real ImageNet data.

What Problem Does This Paper Address?

Generative Adversarial Networks (GANs) like BigGAN can now produce incredibly realistic, high-resolution images. This suggests a future where we no longer need massive, expensive, or privacy-sensitive real-world datasets; we could simply "spawn" infinite training data from a pre-trained generator.

However, there is a catch: classifiers trained on randomly sampled GAN images typically perform much worse on real-world test sets than those trained on real images (a drop of nearly 28% in some studies). The authors identify two main reasons for this:

  1. Lack of Diversity: Randomly sampling from a GAN often produces "easy" or repetitive images that don't cover the full variety of a real dataset.
  2. Domain Gap: Even if they look real to humans, synthetic images have different underlying statistics than real ones, confusing deep learning models during deployment.

Methods

The authors propose three standalone strategies to overcome these hurdles:

1. Hard Sample Mining (HSM)

Instead of just taking whatever the GAN gives them, the authors "mine" the generator's latent space for difficult examples. They optimize the input latent code ($z$) to find images that the current classifier finds difficult to categorize. This forces the model to learn more robust features. To ensure the images remain recognizable, they constrain the optimization so the latent code doesn't drift too far from the GAN's expected distribution.

Visualizing how HSM produces more challenging images for the classifier compared to random sampling.

2. Dataset Smoothing (DS)

Training on a fixed synthetic dataset limits the model to a small slice of what the GAN can produce. Conversely, generating a brand-new dataset every epoch is computationally expensive and can make training unstable. Dataset Smoothing is a middle ground: in every training epoch, a fraction ($r$) of the dataset is replaced with fresh samples. This provides the model with much higher overall diversity over time while maintaining training stability.

The pipeline for HSM and DS: HSM finds hard codes, while DS refreshes the dataset across epochs.

3. Batch Norm statistics Adaptation (BNA)

This is a post-training "calibration" step. Because the model was trained on synthetic statistics, its Batch Normalization layers are tuned for GAN data. BNA passes a small number of real (unlabeled) images through the network to update these internal statistics (mean and variance) without changing the learned weights. This effectively "re-aligns" the model for the real world.

Datasets

  • BigGAN: Used as the fixed, pre-trained generator.
  • ImageNet-10: A subset of 10 ImageNet classes (e.g., aircraft carrier, gazelle, tabby cat) chosen to mimic the diversity of CIFAR-10 but at a higher resolution ($128 \times 128$).
  • Evaluation: The models are trained on synthetic images and tested on the original real-world ImageNet validation set for those 10 classes.

Key Insights and Ideas

  • Diversity > Photorealism: The primary bottleneck for training on GANs isn't that the images look "fake," but that they are too "polite." Random sampling misses the edge cases that define the boundaries between classes.
  • The Generator is a Teacher: By using HSM, the authors treat the GAN not just as a printer, but as a flexible teacher that can provide harder "homework" as the student (the classifier) improves.
  • The Domain Gap is Statistical: Much of the performance loss when moving from synthetic to real data can be recovered simply by fixing Batch Norm statistics, suggesting the "features" learned from GANs are actually quite good, even if the "calibration" is off.

Key Results

The authors show a steady climb in accuracy as they layer their methods:

  • Baseline (Random GAN samples): 70.6% Top-1 Accuracy.
  • With HSM + DS + BNA: 85.6% Accuracy.
  • Long Training (1500 epochs): 88.8% Accuracy.

Crucially, a classifier trained on the actual real images from ImageNet-10 achieved 88.4%. This means the synthetic-only pipeline successfully matched the performance of the real-data pipeline.

The impact of the replacement fraction (r) in Dataset Smoothing, showing how BNA consistently boosts performance.

Limitations and Future Work

  • Scale: The study was limited to 10 classes. Scaling this to the full 1,000-class ImageNet would be computationally intensive due to the cost of generating images on the fly and performing latent optimization.
  • GAN Quality: The success of this method depends on the underlying GAN. If a GAN is particularly poor at a certain class (e.g., producing blobs instead of dogs), no amount of mining will fix the training data.
  • Computational Overhead: HSM and DS increase training time significantly compared to training on a static, pre-saved dataset. Future work could look into more efficient ways to "mine" the latent space.

Summary updated

BibTeX
@inproceedings{besnier2020this,
  author = {Victor Besnier and Himalaya Jain and Andrei Bursuc and Matthieu Cord and Patrick Pérez},
  title = {{This Dataset Does Not Exist: Training Models from Generated Images}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2020},
  url = {https://openreview.net/forum?id=x7IfWdtOVqS},
}
Figure