Synthetic data for model selection

Alon Shoshan, Nadav Bhonker, Igor Kviatkovsky, Matan Fintz, Gérard G. Medioni

Recent breakthroughs in synthetic data generation have made it possible to produce highly photorealistic images that are nearly indistinguishable from real ones. While a large body of research has focused on using these synthetic images to augment and enlarge training datasets, this paper explores a novel alternative: can synthetic data be used for model selection?

When data is scarce, every image counts. By replacing the traditional held-out validation set with synthetic data, researchers can use 100% of their real data for training. Through a novel calibration method, the authors demonstrate that synthetic datasets can accurately rank model performance, often leading to better final models than those chosen using standard data-splitting protocols.

The "Validation Tax" Dilemma

In the standard machine learning pipeline, practitioners pay a "validation tax." To choose the best hyperparameters, architectures, or training epochs, a portion of precious real-world data must be set aside as a validation set, never to be seen by the model during training.

This creates a fundamental dilemma:

  1. Large validation set: Leaves less data available for training, which directly hurts the model's final performance.
  2. Small validation set: Makes the estimate of model performance noisy and unreliable, leading to suboptimal model selection.

The authors ask a provocative question: Can we use "fake" data to pick the best "real" model? If synthetic data—generated by modern GANs or Diffusion models—can accurately rank which model is better, we could stop splitting our datasets and use every single real image for training.

The Synthetic Protocol and Rank Preservation

To solve this, the researchers propose a "Synthetic Protocol" for model selection. Instead of a traditional train/validation split, they train a generative model (like StyleGAN2 or a Diffusion Transformer) on the available data to create an unlimited synthetic validation set.

The core challenge in this approach is the domain gap. Because synthetic images aren't perfect, a model’s error rate on synthetic data ($\hat{\epsilon}_s$) will not exactly match its error on real data ($\hat{\epsilon}_r$). However, the authors argue that for model selection, we don't need the exact error rate; we only need rank preservation. If Model A performs better than Model B on synthetic data, it should also perform better on real data.

Correlation between synthetic data error and real test error across different training set sizes. Notice how the relative ranking of models is preserved despite the domain gap (especially visible with WGAN-GP).

The authors provide a theoretical grounding for this, establishing a sufficient condition for rank preservation based on the Total Variation (TV) distance between real and synthetic distributions. As long as the synthetic set maintains the relative ordering of models, it serves as a successful validation tool.

Calibration: Bridging the Domain Gap

To make this practical, the paper introduces a "secret sauce": Synthetic Dataset Calibration.

They use a small set of "calibration models" with known real-world error rates to learn specific weights for individual synthetic samples. Using ridge regression, they re-weight the synthetic images so that the weighted error on the synthetic set closely tracks the real-world error.

This calibration step is remarkably powerful. It allows even mediocre synthetic generators to become highly effective for ranking. For instance, the authors found that BigGAN—which initially had a negative correlation with real ImageNet performance—became an excellent ranker (Spearman correlation of 0.978) after calibration.

Experimental Validation & Key Results

The authors validated their approach across two major benchmarks (CIFAR-10 and ImageNet) using various generative models, including StyleGAN2, WGAN-GP, BigGAN, and Diffusion Transformers (DiT).

  • The "More Data" Advantage: The primary win comes from training on the full dataset. In CIFAR-10 experiments (10k subset), the performance boost from using 100% of the data for training outweighed the noise introduced by using synthetic data for validation. The synthetic protocol achieved an average test error of 17.74%, outperforming the standard split protocol (18.06%).
  • High Ranking Accuracy: On ImageNet, the calibrated synthetic set using DiT achieved a Spearman rank correlation of 0.986 compared to real-world performance. For context, the "gold standard" ImageNetV2 (a real-world replication set) has a correlation of 0.994–0.996.
  • High Efficiency: Calibration proved highly effective even with very few models. Using just 5 models for calibration was enough to significantly improve ranking capabilities.

Limitations and Future Directions

While highly promising, the approach has limitations. The calibration method requires a small set of models with known real-world error rates, meaning some "ground truth" performance data is still necessary. Furthermore, while calibration helps overcome domain gaps, the synthetic data must still contain enough discriminative information. If a generator completely fails to capture a specific class or feature, the synthetic validation will be blind to models that fail on those features.

Looking forward, the authors suggest exploring this protocol for tasks beyond classification—such as object detection or segmentation—where data labeling is even more expensive and synthetic data could provide even higher value.

Summary updated

BibTeX
@inproceedings{shoshan2023synthetic,
  author = {Alon Shoshan and Nadav Bhonker and Igor Kviatkovsky and Matan Fintz and Gérard G. Medioni},
  title = {{Synthetic data for model selection}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=QwFkJ3QVii},
}
Figure