Bridging the Gap: Enhancing the Utility of Synthetic Data via Post-Processing Techniques

Eugenio Lomurno, Andrea Lampis, Matteo MatteucciBMVC 2023 · DOI

TL;DR

This paper tackles the challenge of synthetic data not quite matching real-world data performance for training deep learning models. They introduce a novel pipeline called "Gap Filler" (GaFi) that uses three post-processing techniques to significantly improve the utility of synthetic data, achieving state-of-the-art results and narrowing the performance gap with real data.

What Problem Does This Paper Address?

Training deep learning models requires vast amounts of labeled data, which is often expensive and time-consuming to acquire and annotate. Generative models offer a promising solution by creating synthetic datasets that can augment or even replace real data. However, a key limitation is that synthetic data, despite looking perceptually similar to real data, often leads to lower performance when used to train classifiers for downstream tasks. This "utility gap" means that models trained on synthetic data don't perform as well as those trained on real data. The authors aim to bridge this gap by improving the quality and diversity of synthetic data after it's generated, without altering the generative model itself.

Methods

The core of the paper is the Gap Filler (GaFi) pipeline, a systematic approach to enhance synthetic data quality. GaFi orchestrates several post-processing techniques:

  • Dynamic Sample Filtering: This technique, inspired by prior work, uses an auxiliary classifier to filter out poorly generated synthetic samples. It adaptively adjusts filtering thresholds based on the dataset and generative model, aiming to retain only the most informative samples.
  • Dynamic Dataset Recycle: Building on existing "Dataset Smoothing" ideas, this method involves replacing the entire synthetic dataset with newly generated samples at specific intervals during classifier training. The authors found that recycling the entire dataset, rather than just a portion, yields better results, and they propose doing this every N epochs to balance performance and computational cost.
  • Expansion Trick: This novel technique contrasts with the "Truncation Trick." Instead of limiting the input noise space for the generator, the Expansion Trick expands it by sampling from a normal distribution with a higher standard deviation than used during training. This encourages the generator to explore less-sampled regions of the data distribution, leading to more diverse outputs. However, this can reduce individual sample quality, making it most effective when combined with sample filtering.

The GaFi pipeline integrates these techniques in a specific order: Generative Model Training, Checkpoint Optimization (finding the best generative model checkpoint), Stddev Optimization (tuning for Expansion Trick), Threshold Optimization (tuning for Dynamic Sample Filtering), and finally, training the classifier using the "Accurate Pipeline" with optimized hyperparameters and frequent dataset recycling. They also propose a "Fast Pipeline" for hyperparameter tuning.

Datasets

The experiments were conducted on three standard image classification datasets:

  • Fashion-MNIST: 60,000 grayscale 28x28 images (resized to 32x32 with zero padding).
  • CIFAR-10: 50,000 RGB 32x32 images.
  • CIFAR-100: 50,000 RGB 32x32 images.

These are standard benchmarks for evaluating classification models, and the authors use them to measure the Classification Accuracy Score (CAS) of classifiers trained on their enhanced synthetic data.

Key Insights and Ideas

  • Post-processing is key: The paper strongly argues that significant improvements in synthetic data utility can be achieved after generation, without needing to redesign the generative model architecture itself.
  • Diversity vs. Quality Trade-off: The Expansion Trick highlights a fundamental trade-off: increasing sample diversity can degrade individual sample quality. This underscores the necessity of combining it with filtering techniques.
  • Dataset complexity matters: The effectiveness of techniques like Dynamic Sample Filtering and Dynamic Dataset Recycle can vary significantly with dataset complexity (e.g., CIFAR-100 being more challenging than Fashion-MNIST).
  • Hyperparameter tuning is crucial: The GaFi pipeline emphasizes the importance of systematically optimizing parameters like standard deviation for noise sampling and filtering thresholds to maximize performance.
  • Checkpoint selection is vital: Not all checkpoints from a generative model's training are equally useful. Identifying the optimal checkpoint is a critical step for achieving the best downstream performance.

Key Results

The GaFi pipeline demonstrates substantial improvements in the Classification Accuracy Score (CAS):

  • Reduced Gap: The pipeline significantly narrows the gap between synthetic data performance and real data performance. The error compared to real accuracy was reduced to 2.03% (Fashion-MNIST), 1.78% (CIFAR-10), and 3.99% (CIFAR-100).
  • State-of-the-Art: The results represent a new state-of-the-art for synthetic data generation in terms of CAS.
  • Comparison to Prior Work: GaFi outperforms previous state-of-the-art methods (like Dat et al.) even when using fewer generative models. For instance, with just one generator, GaFi achieved higher accuracy than Dat et al.'s best result using six generators.
  • Individual Technique Gains: On average, Dynamic Sample Filtering improved CAS by 2%, Dynamic Dataset Recycle by up to 1.94%, and the Expansion Trick (when combined with filtering) by 3.47% to 5.29% across datasets.

Limitations and Future Work

  • Computational Cost: While the GaFi pipeline aims to be efficient, optimizing hyperparameters and training multiple checkpoints can still be computationally intensive. The paper mentions training a ResNet-20 classifier takes 1-2.5 hours, while training a BigGAN Deep takes around 48 hours.
  • Philosophical Question: The authors acknowledge that a small gap still remains between synthetic and real data performance, raising a philosophical question about whether generative models can perfectly replicate real-world distributions.
  • Future Directions: The authors are optimistic that their approach can be extended to other generative models and that further research can continue to bridge the remaining gap, potentially leading to synthetic data that outperforms real data for certain tasks. They suggest that the effectiveness of GaFi opens new avenues for research and could revolutionize various fields.

Summary updated

BibTeX
@misc{lomurno2023bridging,
  author = {Eugenio Lomurno and Andrea Lampis and Matteo Matteucci},
  title = {{Bridging the Gap: Enhancing the Utility of Synthetic Data via Post-Processing Techniques}},
  year = {2023},
  eprint = {2305.10118},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.10118},
}
Figure