Private Synthetic Data Meets Ensemble Learning

Haoyuan Sun, Navid Azizan, Akash Srivastava, Hao WangarXiv 2023

Abstract

When machine learning models are trained on synthetic data and then deployed on real data, there is often a performance drop due to the distribution shift between synthetic and real data. In this paper, we introduce a new ensemble strategy for training downstream models, with the goal of enhancing their performance when used on real data. We generate multiple synthetic datasets by applying a differential privacy (DP) mechanism several times in parallel and then ensemble the downstream models trained on these datasets. While each synthetic dataset might deviate more from the real data distribution, they collectively increase sample diversity. This may enhance the robustness of downstream models against distribution shifts. Our extensive experiments reveal that while ensembling does not enhance downstream performance (compared with training a single model) for models trained on synthetic data generated by marginal-based or workload-based DP mechanisms, our proposed ensemble strategy does improve the performance for models trained using GAN-based DP mechanisms in terms of both accuracy and calibration of downstream models.

Introduction

In an era of strict data regulations like GDPR and CCPA, sharing raw datasets is increasingly difficult. Synthetic data generation—creating a "fake" dataset that mirrors the statistical properties of the real one—offers a way out. However, to truly protect privacy, these generators must be trained with Differential Privacy (DP), which involves injecting noise into the process.

This noise creates a dilemma: it often causes a "distribution shift," where the synthetic data looks different enough from the real data that models trained on it fail in production. Specifically, GAN-based DP generators are notorious for mode collapse, where they fail to capture the full diversity of the original data (the "outliers" or rare cases). This research investigates whether ensemble learning—a classic technique for improving model reliability—can bridge this gap by boosting sample diversity.

Methodology

The study compares four distinct strategies for training downstream models on private synthetic data:

  1. Without Ensemble (Baseline): Training a single model on one synthetic dataset generated with the full privacy budget ($\epsilon, \delta$).
  2. Model Ensemble: Training multiple models on a single synthetic dataset.
  3. Simple DP Ensemble: Dividing the privacy budget into $k$ parts, generating $k$ different synthetic datasets, and training one model on each before averaging predictions.
  4. DP Ensemble + Subsampling: The primary contribution. Before each of the $k$ runs, the original data is randomly subsampled. Utilizing the Privacy Amplification by Subsampling principle, this allows each run to use a slightly larger "effective" privacy budget, resulting in higher-quality and more diverse synthetic datasets.
Comparison of the traditional strategy versus the proposed DP ensemble strategy with subsampling. The right panel illustrates how multiple DP mechanisms cover a broader area of the data distribution compared to a single mechanism.

The authors prove that all these strategies maintain the overall ($\epsilon, \delta$)-DP guarantee, regardless of the number of models in the ensemble. Experiments were conducted on three tabular datasets from the UCI Machine Learning Repository: Adult, Bank-Marketing, and Online-Shoppers, representing common classification tasks with mixed feature types.

Key Insights and Results

The core finding is a diversity-quality trade-off. While individual synthetic datasets in a "Simple DP Ensemble" are noisier due to budget splitting, the independent noise injection across runs allows the collection to cover more of the original data distribution.

GANs Benefit Most

Ensembling is not a universal fix. It works exceptionally well for GAN-based mechanisms (like DP-CTGAN) because they are prone to instability and mode collapse. The ensemble acts as a stabilizer. Conversely, for marginal-based or workload-based mechanisms (like MST or GEM), ensembling provides negligible gains as these methods are already mathematically optimized for specific statistical properties.

Performance and Calibration

On GAN-based synthetic data, the proposed ensemble strategy consistently outperformed the baseline. Notably, the "DP ensemble + subsampling" approach significantly improved both test error and Expected Calibration Error (ECE). This indicates that the models are not only more accurate but also provide more reliable uncertainty estimates.

Experimental results showing Test Error and Calibration Error (ECE) across different ensemble strategies. The DP ensemble methods show competitive or superior performance, particularly in calibration.

Conclusion

This work demonstrates that for GAN-based private synthetic data, ensembling multiple models trained on diverse synthetic datasets significantly improves robustness. While computationally more expensive, the gains in accuracy and calibration are substantial. Future work may involve theoretical explorations of why marginal-based methods do not benefit similarly and the integration of Distributionally Robust Optimization (DRO) to further mitigate distribution shifts.

Summary updated

BibTeX
@misc{sun2023private,
  author = {Haoyuan Sun and Navid Azizan and Akash Srivastava and Hao Wang},
  title = {{Private Synthetic Data Meets Ensemble Learning}},
  year = {2023},
  eprint = {2310.09729},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.09729},
}
Figure