Abstract: We show that the canonical approach for training differentially private GANs -- updating the discriminator with differentially private stochastic gradient descent (DPSGD) -- can yield significantly improved results after modifications to training. Specifically, we propose that existing instantiations of this approach neglect to consider how adding noise only to discriminator updates inhibits discriminator training, disrupting the balance between the generator and discriminator necessary for successful GAN training. We show that a simple fix -- taking more discriminator steps between generator steps -- restores parity between the generator and discriminator and improves results. Additionally, with the goal of restoring parity, we experiment with other modifications -- namely, large batch sizes and adaptive discriminator update frequency -- to improve discriminator training and see further improvements in generation quality. Our results demonstrate that on standard image synthesis benchmarks, DPSGD outperforms all alternative GAN privatization schemes.
Introduction
Generating synthetic data that preserves privacy is a critical goal for machine learning on sensitive datasets. Differential Privacy (DP) provides a rigorous mathematical framework for this, typically implemented by adding noise to gradients during training (DPSGD). However, when applied to Generative Adversarial Networks (GANs), this "vanilla" approach—known as DPGAN—historically produced poor results. This led the research community to develop increasingly complex, bespoke privatization schemes. This paper asks a fundamental question: Is the DPGAN framework actually broken, or have we just been training it wrong?
The Parity Problem
We identify a "parity" problem: because noise is added only to the discriminator, it becomes too weak to guide the generator, leading to rapid mode collapse and poor data quality. In a standard GAN, the generator and discriminator are in a delicate "arms race." In a DPGAN, we tie one arm behind the discriminator's back by injecting noise into its gradients. If the generator isn't slowed down to match, it quickly "wins" the race by finding a single shortcut, and the training fails.
Restoring Parity through Improved Training
We propose a "return to basics" with three key modifications to the standard DPGAN training recipe:
- Increased Discriminator Steps ($n_D$): By taking many discriminator updates (sometimes up to 100) for every single generator update, the discriminator has enough time to overcome the "weakness" introduced by DP noise and provide useful signals to the generator.
- Adaptive Update Frequency: Rather than picking a fixed number of steps, we monitor the discriminator's accuracy on fake samples. If the discriminator starts "losing" to the generator, the training automatically increases the number of discriminator steps.
- Large Batch Sizes: Using much larger batch sizes (up to $B=2048$) helps the discriminator better distinguish signal from noise.
Crucially, these changes do not increase the "privacy cost" of the model, as the privacy budget is tied to the number of times the discriminator looks at the real sensitive data, not how many times the generator updates.
Key Results
Our tuned DPGAN outperformed all previous GAN-based privatization schemes across MNIST and FashionMNIST benchmarks.
- Massive Utility Gains: On MNIST, increasing discriminator steps from 1 to 50 improved the Fréchet Inception Distance (FID) from a dismal 205.3 to a highly competitive 18.5.
- Downstream Accuracy: Synthetic data produced by this method allowed a downstream classifier to achieve 95.1% accuracy on the real MNIST test set, compared to only ~80% for previous DPGAN implementations.
- Efficiency: While DP Diffusion models still hold the absolute crown for image quality, DPGANs are significantly faster to train (e.g., 7.5 hours on a single GPU vs. 24 hours on eight GPUs for diffusion).
Conclusion
This work demonstrates that the "canonical" DPSGD approach is more robust than the complex alternatives the field had pivoted toward. This suggests that many "failures" of DP in deep learning might simply be hyperparameter tuning issues. While DPGANs still slightly trail the very best DP Diffusion models in terms of raw image diversity, they offer a compelling, efficient alternative for private synthetic data generation.
Summary updated