Debiasing Synthetic Data Generated by Deep Generative Models

Alexander Decruyenaere, Heidelinde Dehaene, Paloma Rabaey, Johan Decruyenaere, Christiaan Polet, Thomas Demeester, Stijn Vansteelandt

Introduction

Deep generative models (DGMs), such as Generative Adversarial Networks (GANs) and Variational Autoencoders (VAEs), have become pivotal in creating privacy-preserving synthetic datasets. These datasets allow researchers to share and analyze sensitive information without compromising individual privacy. However, a critical flaw has emerged: synthetic data often fails to preserve the statistical properties necessary for valid scientific inference. This paper addresses the "statistically wonky" nature of DGM-generated data, where confidence intervals are frequently too narrow and p-values are misleading, and proposes a generator-agnostic debiasing strategy to restore statistical reliability.

The Problem: The "Slow Convergence" Trap

When researchers perform statistical inference—such as calculating a population mean or a regression coefficient—they rely on the "root-n" convergence rate. This principle dictates that as the sample size ($n$) increases, the estimation error should shrink at a rate of $1/\sqrt{n}$.

Because DGMs are highly data-adaptive black boxes, they prioritize optimizing the overall data distribution rather than specific statistical parameters. This leads to regularization bias, causing synthetic estimators to converge much slower than the ideal $1/\sqrt{n}$ rate. In practice, this means standard errors are underestimated and confidence intervals (CIs) fail to cover the true population value. The result is a high rate of false positives, where synthetic data appears "too good to be true," leading researchers to overconfident but incorrect conclusions.

Methodology: Targeted Post-Processing

The authors introduce a debiasing strategy rooted in Targeted Minimum Loss-Based Estimation (TMLE) and Debiased Machine Learning. Unlike previous attempts to fix the generative process itself, this approach is a post-processing step that "fixes" the output samples before they reach the analyst.

1. Efficient Influence Curves (EIC)

The mathematical foundation of this method is the EIC, a functional derivative that describes how a specific statistical parameter (e.g., a mean) changes in response to shifts in the underlying data distribution.

2. Two-Step Debiasing

  • Robust Estimation: The method utilizes EIC-based estimators that are inherently more resilient to the "noise" and biases of the generative model.
  • Data Shifting: Most innovatively, the researchers apply a targeted "nudge" to the synthetic data. For a population mean, this involves an additive shift so the synthetic mean aligns with the original sample mean. For linear regression, synthetic outcomes are adjusted based on the residuals of the covariates.

Because this is a post-processing step, it is generator-agnostic. It can be applied to any model, such as CTGAN or TVAE, without requiring the user to retrain the underlying neural network.

Experimental Validation

The researchers evaluated their debiasing strategy across several benchmarks:

  • Toy Simulation: A hypothetical disease dataset with four variables (age, atherosclerosis stage, therapy, and blood pressure) governed by a known causal structure.
  • International Stroke Trial (IST): A real-world medical dataset of over 19,000 cases used to estimate the risk difference of death for patients taking aspirin.
  • Adult Census Income: A standard benchmark (45,222 cases) used to infer mean working hours and sex-adjusted age differences.

The strategy was tested using two popular tabular DGMs: CTGAN (GAN-based) and TVAE (VAE-based).

Key Results and Insights

Restoring Statistical Integrity

The paper quantifies the failure of default synthetic data, noting convergence exponents as low as 0.01 (where error barely shrinks with more data). After debiasing, the exponent was restored to the ideal 0.5 ($1/\sqrt{n}$). In simulation studies, 95% confidence intervals for default synthetic data often had coverage as low as 25%. Post-debiasing, coverage returned to the nominal 95% level.

Eliminating False Positives

In the International Stroke Trial case study, default synthetic data led to false conclusions in 7 out of 15 trials, suggesting aspirin had a significant effect when it did not. The debiased data eliminated these false positives, matching the behavior of the original raw data. The authors proved that with a sufficiently large synthetic sample, the debiased analysis becomes asymptotically equivalent to analyzing the original data.

Limitations and Future Work

While powerful, the current method has specific requirements:

  • Analysis-Specific: The generator must know the specific analysis to be performed (e.g., a specific mean or regression) to apply the correct EIC. It is not yet a "universal" fix for all possible queries.
  • Conditional Sampling: For regression debiasing, the DGM must support sampling data conditional on certain covariates.
  • High-Dimensional Scaling: While effective for tabular data, scaling this to high-dimensional data like images or complex genomics remains a challenge.

Conclusion

This research demonstrates that the bias inherent in deep generative models can be corrected through targeted post-processing. By applying Efficient Influence Curves to shift synthetic outputs, researchers can ensure that synthetic data analysis is as reliable and "honest" as analyzing the real-world data it replaces.

Summary updated

BibTeX
@inproceedings{decruyenaere2024debiasing,
  author = {Alexander Decruyenaere and Heidelinde Dehaene and Paloma Rabaey and Johan Decruyenaere and Christiaan Polet and Thomas Demeester and Stijn Vansteelandt},
  title = {{Debiasing Synthetic Data Generated by Deep Generative Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=aetbfmCcwg},
}
Figure