Avoiding Pitfalls for Privacy Accounting of Subsampled Mechanisms Under Composition

Christian Janos Lebeda, Matthew Regehr, Gautam Kamath, Thomas Steinke

TL;DR

This paper identifies critical flaws in how researchers calculate privacy budgets for composed, subsampled mechanisms like DP-SGD. The authors demonstrate that "worst-case" datasets for a single step aren't always worst-case after multiple steps, and they show that switching between Poisson sampling and sampling without replacement can unexpectedly explode your privacy loss from $\varepsilon \approx 1$ to $\varepsilon > 10$.

What Problem Does This Paper Address?

Differential Privacy (DP) relies on "privacy accounting"—calculating the cumulative privacy loss ($\varepsilon, \delta$) as an algorithm interacts with data multiple times. To get the most utility out of a model, researchers strive for "tight" accounting, using numerical tools to squeeze every bit of accuracy out of a fixed privacy budget.

However, these tools often rely on two dangerous assumptions:

  1. Static Worst-Cases: That the pair of datasets causing the most privacy leakage in one iteration will remain the worst-case pair when that iteration is repeated (composed) many times.
  2. Sampling Interchangeability: That different ways of picking a "batch" of data (like Poisson sampling vs. fixed-size sampling without replacement) yield nearly identical privacy guarantees.

This paper proves these assumptions are often false, leading to privacy guarantees that are either mathematically unsound or significantly looser than realized.

Methods

The authors employ the Privacy Loss Distribution (PLD) formalism and hockey-stick divergence to analyze privacy curves. Unlike simpler methods that provide a single upper bound, PLDs allow for the numerical computation of privacy parameters to arbitrary precision using Fast Fourier Transforms (FFTs) for composition.

To prove their points, they use:

  • Counterexamples: Specifically using the subsampled Laplace mechanism and a simplified "Randomized Response" mechanism to show where traditional accounting fails.
  • Dominating Pairs of Distributions: A framework that generalizes worst-case datasets to ensure privacy bounds remain valid under composition.
  • Monte Carlo Simulations: Used to estimate privacy curves for complex composed mechanisms where exact analytical solutions are difficult.

Datasets

As a theoretical work focused on the mathematical foundations of DP, the paper does not use standard machine learning benchmarks (like CIFAR-10). Instead, it uses synthetic datasets designed to represent extreme "neighboring" states:

  • Datasets consisting of all zeros vs. a single one (for add/remove relations).
  • Datasets of all -1s vs. a dataset where one -1 is replaced by a 1 (for substitution relations).
  • Mathematical models of the Gaussian and Laplace mechanisms, which are the workhorses of private data analysis.

Key Insights and Ideas

  • The "Crossing" Phenomenon: For some mechanisms, the "remove" relation is more private than the "add" relation for a single step, but after several compositions, the "add" relation becomes the one that leaks more. If an accountant only looks at the single-step worst case, it will underestimate the total privacy loss.
Privacy curves for the subsampled Laplace mechanism. Note how the "Add" and "Remove" curves cross as the number of iterations ($k$) increases.
  • Sampling Matters (A Lot): In Poisson subsampling, the center of the noise distribution shifts by 1 if a specific point is included. In sampling without replacement (WOR), including a new point "pushes out" another, effectively shifting the center by 2. This subtle difference means WOR can require twice the noise of Poisson sampling to achieve the same privacy level.
  • Substitution is Harder: The "substitution" neighboring relation (swapping one record for another) is more complex to account for than "add/remove." The authors show that for the Laplace mechanism, there isn't a single worst-case dataset pair for all privacy levels ($\varepsilon$); the worst case depends on how much privacy you are trying to guarantee.

Key Results

  • The $\varepsilon$ Explosion: The authors provide a realistic DP-SGD parameter set where an accountant assuming Poisson sampling would calculate $\varepsilon \approx 1$. However, if the actual implementation used sampling without replacement, the true privacy loss is $\varepsilon > 10$.
  • Noise Multiplier Gaps: In low-sampling-rate regimes (common in large-scale deep learning), the noise multiplier $\sigma$ required for WOR is significantly higher than for Poisson. For a target $\delta = 10^{-6}$ and 10,000 iterations, a sampling rate of 0.001 results in $\varepsilon = 0.96$ for Poisson but a staggering $\varepsilon = 15.26$ for WOR using the same noise level.
  • Conjecture for Gaussian: While they found pitfalls for the Laplace mechanism, the authors conjecture that the Gaussian mechanism (used in DP-SGD) might be better behaved, suggesting that for the Gaussian case, the "remove" relation might always dominate the "add" relation under composition.

Limitations and Future Work

  • The Gaussian Conjecture: The paper leaves as an open conjecture whether the Gaussian mechanism is immune to the "worst-case crossing" pitfall. Proving this would provide much-needed peace of mind for DP-SGD practitioners.
  • Shuffled Sampling: While the paper compares Poisson and WOR, many systems use "shuffle-and-partition" batching. The authors note that concurrent work is looking into this, but a unified, tight accountant for all common sampling schemes remains an open challenge.
  • Public $n$ Assumption: The analysis assumes the total dataset size $n$ is public knowledge. In strictly "add/remove" DP, $n$ itself is private, and the authors suggest that privately estimating $n$ adds another layer of complexity to the accounting that needs further study.

Summary updated

BibTeX
@inproceedings{lebeda2025avoiding,
  author = {Christian Janos Lebeda and Matthew Regehr and Gautam Kamath and Thomas Steinke},
  title = {{Avoiding Pitfalls for Privacy Accounting of Subsampled Mechanisms Under Composition}},
  booktitle = {SaTML},
  year = {2025},
  doi = {10.1109/satml64287.2025.00060},
}
Figure