TL;DR
When engineers train private machine learning models using Differentially Private SGD (DP-SGD), they almost always shuffle the data into batches, yet they calculate privacy guarantees using math designed for independent coin-flip sampling. This paper closes that dangerous theory-practice gap by proving a clean reduction from data shuffling to a simpler "balls-and-bins" random allocation scheme. The result is the first asymptotically optimal theoretical bound and accurate numerical privacy accountant for shuffled DP-SGD—revealing that most published setups actually need 1.5x to 2x more noise to be as private as claimed.
What Problem Does This Paper Address?
Differential privacy (DP) guarantees that an algorithm's output doesn't change much if one person's data is added or removed, quantified by a privacy budget $\varepsilon$ (lower is more private) and a tiny failure probability $\delta$. In DP-SGD, gradients are clipped and masked with Gaussian noise. Crucially, we get "privacy amplification" by only feeding random subsets of data into each step—if an adversary doesn't know when your data was used, your privacy improves.
Standard DP-SGD math assumes Poisson subsampling, where every data point is independently flipped into each batch like a coin toss. Practically, nobody does this: it’s computationally clunky, breaks standard data loaders, and hurts model accuracy. Instead, engineers shuffle the dataset once per epoch and slice it into consecutive batches, while still reporting Poisson privacy numbers.
Because shuffling couples everyone's batch assignments together, analyzing its true privacy has lagged behind. Previous bounds for Gaussian shuffling suffered from an extra $\sqrt{\ln(n/\delta)}$ penalty factor in $\varepsilon$ (where $n$ is dataset size) and lacked an accurate numerical accountant. Meanwhile, recent work showed that at low noise, shuffling is genuinely less private than Poisson sampling. Practitioners were flying blind without tight math to bridge the two.
Methods
The authors connect shuffling to 1-out-of-$m$ random allocation (independently tossing each data point into one of $m$ steps), a scheme whose privacy math was recently solved.
- Random Allocation among Clones: Imagine comparing a dataset containing your data $x$ against one where $x$ is replaced by a null element $\perp$ (which contributes zero gradient, outputting pure Gaussian noise—the "reference distribution"). Because each step has baseline privacy, any other person's output distribution overlaps with the pure noise distribution by some fraction $p = e^{-\varepsilon_0}$ (up to a tiny deficit $\delta_0$, which the authors patch via a mathematical coupling argument). You can view each person as flipping a biased coin: with probability $p$, they output a pure noise sample—a clone. If we hand the adversary the exact identities and positions of everyone who didn't produce a clone, your data $x$ is still hidden at a uniformly random spot among $K-1$ identical noise clones! This reduces $n$-element shuffling directly to 1-out-of-$K$ random allocation.
- PLD Envelope Accountant: To track privacy across multiple training epochs, we need a Privacy Loss Distribution (PLD). What choice of clone probability $p$ is best? Instead of picking just one, the authors compute bounds across a grid of 1,001 clone probabilities and wrap their lower convex hull into a single tight "envelope" PLD that composes cleanly across epochs.
- Multi-Pass Lower Bounds: To check if their upper bounds are needlessly conservative at low noise, the authors analyze a worst-case 1D Gaussian setup (where everyone else pushes toward $-1$ and $x$ pushes toward $+1$). By completing the square on Gaussian likelihood ratios to make every term non-negative, they use Multiscale Fast Fourier Transforms (MS-FFT) to compute rigorous multi-epoch privacy lower bounds.
Datasets
Rather than training new models, the authors audit the privacy parameters ($N$, batch size, epochs, $\varepsilon$, $\delta$, and noise $\sigma$) of 20 published DP-SGD training runs from seven prominent papers (14 of which used shuffling in code while reporting Poisson math). These span image, text, tabular, and recommendation benchmarks up to 1.3 million examples, including MNIST, Fashion-MNIST, CIFAR-10, ImageNet-1k, CheXpert, MIMIC-CXR, SST-2, QNLI, MNLI, E2E NLG, DART, IMDb, StackOverflow, Adult income, and MovieLens 1M.
Key Insights and Ideas
- Using Null Clones Beats Neighbor Clones in High Dimensions: Prior shuffling analyses hid target data among clones of neighboring inputs, which breaks down or incurs heavy penalties with high-dimensional Gaussian noise. Using the null element (pure noise) as the clone reference makes the reduction completely dimension-independent.
- Why Shuffling Leaks More at Low Noise: In random allocation, every non-target slot is pure noise, so every slot is equally likely to hide the target. In shuffling, other data points actively push the output away from zero (e.g., toward $-1$). At low noise, if a step outputs something near $+1$, the posterior probability overwhelmingly points to that specific slot containing the target $x$, destroying the hiding-in-the-crowd effect.
Key Results
- Optimal Asymptotics: For Gaussian noise $\sigma = \Omega(\sqrt{\ln(n/\delta)})$, the reduction removes the $\sqrt{\ln(n/\delta)}$ overhead, achieving the optimal $\varepsilon = O(\sqrt{\ln(1/\delta)}/(\sigma\sqrt{n}))$ and approaching random allocation within a $1 + o(1)$ factor as noise grows.
- Tight Numerical Tracking: As shown in Figure 1 ($t=10,000, \delta=10^{-6}$), the authors' upper bound hugs the true lower bound within a factor of 1.3 for $\sigma \le 1.2$, confirming the massive gap above Poisson subsampling at low noise is real, not an artifact of loose math. At high noise ($\sigma \ge 32, n=1,000$), shuffling comes within 10% of random allocation.
- Auditing Real-World DP-SGD: Across the 20 published setups, the noise $\sigma$ proven sufficient by the new upper bound is within a median factor of 1.19x (at most 1.39x) of the noise proven necessary by their lower bound. In 18 of the 20 runs, true shuffling requires 1.47x to 1.94x more noise than Poisson subsampling to hit the reported $(\varepsilon, \delta)$ targets.
Limitations and Future Work
- Pure DP with Large $\varepsilon_0$: Because the clone probability $e^{-\varepsilon_0}$ shrinks exponentially, the reduction is built for $\varepsilon_0 = O(1)$; for generic pure-DP mechanisms with large $\varepsilon_0$, older two-input clone methods can be tighter.
- Implementation Nuances: The audited DP-SGD runs assume fresh, full-dataset permutations every epoch; they do not model practical quirks like fixed batching (reusing one permutation) or finite streaming shuffle buffers. Additionally, while the multi-pass lower bound uses rigorous interval arithmetic, the upper-bound accountant uses standard floating-point math rather than formal interval certificates.
Summary updated