In the landscape of non-private machine learning, small batch sizes are frequently celebrated as a "secret sauce" for generalization. The stochastic noise inherent in small batches is thought to help the optimizer escape sharp local minima, leading to better-performing models. However, practitioners of Differentially Private Stochastic Gradient Descent (DP-SGD) have observed the exact opposite: massive batch sizes consistently lead to superior utility.
The paper "Subsampling is not Magic" provides a rigorous theoretical explanation for this phenomenon. By challenging the common intuition surrounding subsampling amplification, the authors demonstrate why the privacy-utility trade-off in DP-SGD fundamentally favors larger batches.
The Paradox of Subsampling Amplification
Differential Privacy (DP) requires the injection of noise into gradients to mask the influence of any single data point. To mitigate the impact of this noise, researchers rely on subsampling amplification. This principle suggests that if an algorithm only observes a small, random subset (a batch) of the data, the privacy leakage is naturally reduced. Theoretically, this allows for a smaller noise multiplier ($\sigma$) for a given privacy budget ($\epsilon, \delta$).
This creates a tension. If smaller batches (lower subsampling rate $q$) allow for less noise, why does empirical evidence suggest that larger batches are better? Previous explanations were largely heuristic; this work seeks to provide a formal mathematical answer.
Theoretical Framework: Variance Decomposition
To understand the impact of batch size, the authors analyze the Poisson subsampled Gaussian mechanism, which serves as the mathematical foundation for DP-SGD. They decompose the total gradient variance into two distinct components:
- Subsampling-induced variance: The error introduced by approximating the full dataset gradient with a small subset.
- Noise-induced variance: The variance of the Gaussian noise injected to satisfy differential privacy.
Using Taylor expansions of Kullback-Leibler (KL) divergence and Privacy Loss Random Variables (PLRVs), the authors study the behavior of these components as the number of training iterations ($T$) approaches infinity. Crucially, they utilize "tight" privacy accounting oracles (such as Google’s Privacy Loss Distribution accountant) to ensure their theoretical bounds match the most accurate privacy measurements available.
The "Washout" Effect
The core discovery of the paper is a linear relationship between the noise scale and the subsampling rate. In the limit of many iterations, the required noise scale $\sigma$ becomes a linear function of the subsampling rate $q$. Specifically:
$$\sigma(q, T) \approx q \sigma(1, T)$$
In DP-SGD, we typically scale the noisy gradient sum by $1/q$ to maintain an unbiased estimate of the true gradient. If the noise scale $\sigma$ increases linearly with $q$, then the "effective" noise $(\sigma/q)$ remains essentially constant regardless of the batch size.
This reveals a "washout" effect: the privacy benefit gained from a smaller batch (which allows for a smaller $\sigma$) is exactly canceled out by the need to scale up that noise when averaging the gradient.
Why Large Batches Prevail
If the effective DP noise is invariant to batch size, the total variance is determined by the subsampling-induced noise. Because larger batches are more representative of the full dataset, they inherently have lower subsampling variance.
Consequently, as the batch size increases:
- The effective DP noise stays roughly the same.
- The subsampling variance decreases.
- The total gradient variance decreases.
This leads to the paper's primary conclusion: larger batches always provide better utility for a fixed privacy budget, provided one has the computational resources to process them.
Rethinking the Role of Subsampling
The authors argue that the "magic" of subsampling is not about improving the privacy-utility trade-off, but rather about computational efficiency. Subsampling allows a practitioner to take many small, computationally cheap steps instead of one large, expensive step. While this might be faster, it does not provide a better model than a large-batch approach would, given equal iterations.
Key Results and Limitations
- Asymptotic Proofs: Theorem 5.3 and Corollary 5.4 formally prove that the ratio of effective noise between subsampled and non-subsampled mechanisms approaches 1 as $T \to \infty$.
- Numerical Confirmation: Simulations using the PLD accountant confirm that effective noise decreases monotonically as $q$ increases, eventually reaching a floor.
- Finite Iterations: While the asymptotic limit is reached quickly in practice, the theoretical interpolation for very small $T$ remains an area for future research.
- Compute Constraints: While larger batches are better for utility, they are more expensive. The practical challenge remains finding the "sweet spot" where the utility gains of a larger batch justify the increased compute cost.
Summary updated