Abstract
Differentially Private Stochastic Gradient Descent (DP-SGD) is the industry standard for training private AI. While theoretical guarantees often rely on Poisson subsampling, practical implementations frequently use data shuffling for hardware efficiency. This paper investigates whether the assumption that Poisson-based privacy bounds apply to shuffling is safe. By developing a novel auditing framework, the authors demonstrate a significant "privacy gap," where models trained with shuffling can leak up to 4x more privacy than their theoretical guarantees suggest.
Introduction
The training of large-scale machine learning models with privacy guarantees typically employs DP-SGD. Theoretically, this mechanism requires Poisson subsampling—where each data point is included in a batch with a fixed probability—to provide tight privacy bounds. However, Poisson subsampling is computationally inefficient on modern hardware due to variable batch sizes. Consequently, practitioners often substitute it with shuffling, where the dataset is permuted and partitioned into fixed-size batches.
Despite its ubiquity, tight theoretical privacy bounds for shuffling remain an open research problem. Many developers simply report the privacy numbers calculated for Poisson subsampling, assuming they are equivalent. This research challenges that assumption, asking if we are systematically overestimating the privacy of our models.
Methodology: The Auditing Framework
To measure empirical privacy leakage ($\epsilon_{emp}$), the authors introduce a rigorous auditing framework centered on a Distinguishing Game.
The framework utilizes several key components:
- Likelihood Ratio Auditing: Using the Neyman-Pearson lemma, the authors employ likelihood ratio functions to create an "optimal" adversary capable of distinguishing training runs more effectively than standard loss-based checks.
- Batched Gaussian Mechanism (BGM): A simplified version of DP-SGD is used to isolate the effects of shuffling from the complexities of neural network gradients.
- Adversarial Modeling: The study evaluates three levels of adversaries, including a "Partially-Informed" model that balances realistic threat constraints with high auditing effectiveness.
Experimental Results
The study evaluated standard benchmarks across NLP (MNLI, QNLI, SST-2, Persona-Chat) and Computer Vision (CIFAR-10, Places-365).
The "Poisson Lie"
The most significant finding is that reporting Poisson-based privacy guarantees for shuffled training is fundamentally misleading. In the majority of state-of-the-art (SOTA) settings studied, the actual leakage was significantly higher than the reported theoretical value.
Key quantitative findings include:
- MNLI: A theoretical $\epsilon = 3$ resulted in an audited empirical leakage of $\epsilon_{emp} = 12.73$ (a 4.25x increase).
- Places-365: A theoretical $\epsilon = 7.53$ was audited at $\epsilon_{emp} = 13.54$.
- Implementation Bugs: The authors identified a common "batch-then-shuffle" bug in public repositories that can spike privacy leakage by up to 10x.
Discussion and Future Work
The results demonstrate that DP auditing is a vital tool for developers to catch "privacy bugs" in training pipelines that theoretical analysis might miss. However, challenges remain:
- Computational Cost: Accurate estimation of $\epsilon_{emp}$ requires thousands of training runs, making it expensive for large models.
- Epoch Constraints: Current audits are often limited to a single epoch due to cost, though real-world training involves many epochs that may compound leakage.
- Upper Bounds: While this work provides a lower bound on leakage, finding tight theoretical upper bounds for shuffling remains a critical open problem.
Future research should focus on "one-shot" auditing techniques to make these essential privacy checks more accessible to the broader developer community.
Summary updated