Differentially Private (DP) machine learning is notorious for severely degrading model accuracy. To protect individual training examples, standard algorithms like DP-SGD clip gradients to a maximum norm and inject Gaussian noise. Unfortunately, this process destroys a significant amount of the gradient's useful signal, leading to massive drops in model accuracy (e.g., 65% accuracy on CIFAR10 for a private model vs. >90% for a non-private one).
Recent works have attempted to recover this lost utility by using publicly available, non-private data to pre-train the model before fine-tuning it privately. However, simply pre-training leaves a lot of utility on the table. This paper introduces DOPE-SGD, a novel training algorithm that integrates public data more deeply into the DP-SGD algorithm itself to minimize the destructive effects of gradient clipping and noise.
Methods: Maximizing the Value of Public Data
The authors propose a three-pronged approach to close the utility gap between private and non-private models:
1. DOPE-SGD (Differentially Private Origin Estimation SGD)
In standard DP-SGD, gradients are clipped around the origin (zero), which introduces significant bias. DOPE-SGD instead calculates the gradient on a batch of public data and uses this as an "estimated origin." Private gradients are then clipped around this public gradient rather than zero.
Because the private gradients are usually closer to the public gradient than to zero, the clipping is less aggressive. This preserves more signal and effectively reduces the relative impact of the injected noise.
2. Advanced Data Augmentation via Generative Models
Because public data is often scarce, the authors use Denoising Diffusion Probabilistic Models (DDPMs) trained strictly on the small public dataset to synthesize a massive amount of artificial public data. Training a diffusion model on a tiny slice of public data (e.g., 2,000 images) to generate 40,000 synthetic images provides a massive boost to the public gradient's reliability without touching the privacy budget. This prevents the model from overfitting to the small public set during training.
3. Ensembling Intermediate Private Models
DP-SGD injects a lot of independent noise at every step, meaning intermediate model checkpoints bounce around the loss landscape. The authors leverage the "post-processing" property of differential privacy: once a model is trained privately, any subsequent operations on it incur no extra privacy cost. By ensembling the last $n$ intermediate models (via majority voting or averaging logits), they smooth out the variance and get a "free" accuracy boost.
Key Results
The proposed methods were evaluated across vision (CIFAR10, CIFAR100, PathMNIST), language (WikiText-2), and tabular (Purchase10) datasets.
- Massive Accuracy Gains: On CIFAR10, assuming a privacy budget of $\epsilon = 2.0, \delta = 10^{-5}$ and access to just 2,000 public images, DOPE-SGD achieves 75.1% accuracy. For comparison, the standard DP-SGD baseline with pre-training only achieves 68.1%.
- Language Modeling: When fine-tuning a GPT-2 model on WikiText-2 ($\epsilon = 1.0$), DOPE-SGD drops the perplexity to 19.09, compared to 21.23 for the DP-SGD baseline.
- Ablation Insights: An ablation study reveals that just adding the generated public data to the training set yields a +1.7% accuracy bump. Adding the DOPE-SGD adaptive clipping and the checkpoint ensemble pushes that to a +7.6% total improvement.
- Federated Learning: Applied to a user-level privacy setting on EMNIST, DOPE-SGD outperformed standard Fed-SGD baselines, proving the technique works in decentralized, highly private environments.
Limitations and Future Work
While highly effective, DOPE-SGD is computationally heavy. Training a diffusion model and generating tens of thousands of images takes significant GPU time. Furthermore, calculating the public gradient at every training step makes the core DOPE-SGD loop 2-3x slower than standard DP-SGD.
Additionally, the method shines brightest when the public data comes from the same distribution as the private data. If the public data is out-of-distribution (e.g., using CIFAR100 to help train CIFAR10), the accuracy gains shrink significantly. While the authors introduce a modified scaling factor to mitigate this, OOD public data remains a challenge.
Future work may explore combining this adaptive clipping approach with other recent DP advancements, such as projecting gradients into smaller subspaces, for even greater utility.
Summary updated