Introduction
Differentially private stochastic gradient descent (DP-SGD) is the cornerstone of privately training deep learning models. It provides a mathematical framework to control and track the privacy loss incurred during training. At the heart of this computation is a subsampling method that leverages a "privacy amplification" lemma to enhance the guarantees provided by additive noise.
This paper introduces a new, significantly tighter privacy accountant for DP-SGD using fixed-size minibatches, improving existing theoretical bounds by a factor of 4. The authors demonstrate that fixed-size batching—the standard in deep learning engineering—is not only more memory-efficient than variable-sized Poisson subsampling but also offers lower gradient variance without sacrificing privacy guarantees.
The Problem: Poisson vs. Fixed-Size Subsampling
Training deep learning models with Differential Privacy (DP) typically relies on subsampling: picking a small subset of data to compute gradients at each step. Theoretically, the most popular method is Poisson subsampling, where each data point is included in a batch with a fixed probability. While mathematically convenient, this leads to variable batch sizes. In practice, variable batch sizes are a nightmare for GPU memory management and can cause unexpected "out-of-memory" (OOM) errors if a batch happens to be unusually large.
Practitioners overwhelmingly prefer fixed-size minibatches for predictable performance, constant memory usage, and higher throughput. However, the mathematical privacy amplification provided by fixed-size batching is notoriously harder to analyze. Previous privacy accountants for fixed-size subsampling were "loose"—they overestimated the privacy risk. This forced researchers to accept worse privacy-utility trade-offs just to use hardware-friendly batching.
Methodology: A Tighter RDP Accountant
To close this gap, the authors develop a holistic Rényi Differential Privacy (RDP) accountant for two main regimes:
- FSwoR (Fixed-Size without Replacement): The standard "shuffle and slice" method used in most deep learning frameworks.
- FSwR (Fixed-Size with Replacement): Often used to handle class imbalance or in federated learning.
Their core technical innovation is a Taylor expansion approach to bound the Rényi divergence. By precisely capturing the leading-order behavior of the sampling probability and employing rigorous remainder bounds, they avoid the looseness of previous general-purpose methods. Furthermore, they provide the first non-asymptotic RDP analysis for the "with replacement" (FSwR) case, including explicit upper and lower bounds.
Key Insights
- The Factor of 4 Improvement: The authors found that previous bounds were overly conservative. By better accounting for how adjacent datasets are coupled during the subsampling process, they improved the computable RDP bounds for FSwoR by a factor of 4.
- Privacy Parity: A major theoretical breakthrough is the proof that under "replace-one" adjacency (where neighboring datasets differ by one swapped element), fixed-size subsampling and Poisson subsampling provide the same privacy level to leading order. This justifies using fixed-size batches without the penalty of "leaving privacy on the table."
- Variance Benefits: Beyond memory stability, fixed-size batching exhibits lower gradient estimator variance than Poisson subsampling when the model is away from a local minimum. This suggests that fixed-size batching might actually help models converge more smoothly.
- The FSwR "Phase Transition": For sampling with replacement, the authors discovered a critical threshold. If the batch size is too large relative to the privacy parameter $\alpha$, the privacy guarantee degrades rapidly. This "phase transition" is a unique characteristic of the "with replacement" setting.
Key Results
In practical settings (e.g., training for 250 epochs on CIFAR-10), the new accountant yields significantly lower $\epsilon$ values for the same model accuracy compared to previous state-of-the-art bounds.
The paper also quantifies the engineering benefits: while Poisson subsampling memory usage fluctuates wildly (peaking at ~23.3 GB in their tests), FS-RDP stays perfectly constant at ~14.8 GB. Finally, the authors validate their new upper bounds by showing they are remarkably close to the theoretical lower bounds, indicating that their analysis is nearly as tight as mathematically possible.
Limitations and Future Work
While fixed-size and Poisson subsampling are equal under "replace-one" adjacency, Poisson subsampling still holds a factor of 2 advantage under "add/remove" adjacency. Additionally, for the FSwR case, there remains a small gap between the upper and lower bounds at high $\alpha$ values. The authors suggest that using higher-order Taylor expansions could further tighten this gap. Finally, while the accountant is publicly available, integrating it into standard libraries like Opacus or JAX-DP remains an important next step for the privacy community.
Summary updated