Sampling-Free Privacy Accounting for Matrix Mechanisms under Random Allocation

Jan Schuchardt, Nikita KalininNeurIPS 2026

TL;DR

Training machine learning models with rigorous Differential Privacy (DP) requires adding noise, which hurts accuracy—a trade-off recently softened by combining smart batching ("balls-in-bins") with correlated noise across training steps. Until now, tracking the exact privacy loss of this combination required brute-force Monte Carlo simulations that were computationally astronomical for strict privacy settings and only offered "high-probability" guesses. This paper introduces two deterministic, sampling-free mathematical accountants that give ironclad privacy guarantees in a fraction of the time.

What Problem Does This Paper Address?

To train a deep neural network without leaking individual user data, practitioners use Differentially Private Stochastic Gradient Descent (DP-SGD): clip gradients and inject Gaussian noise. To rescue model utility from all that noise, two modern tricks are used together:

  1. Random Allocation ("Balls-in-Bins" Subsampling): Instead of flipping a coin for every data point at every step (Poisson subsampling—which is slow and leaves ~37% of data untouched per epoch), you randomly assign data to batches once and reuse that schedule across epochs. Uncertainty about batch assignment amplifies privacy.
  2. Matrix Mechanisms (Correlated Noise): Instead of adding independent noise at every step, you correlate noise across iterations using a linear matrix transformation so that the aggregate noise cancels out over time.

Together, these two tricks yield great models—but they create a mathematical nightmare for privacy accounting (proving your $(\varepsilon, \delta)$-DP budget). Standard accountants rely on training steps being independent. Random allocation tangles batch assignments across epochs, and correlated noise tangles the steps themselves.

Previously, the only way to account for this was via Monte Carlo sampling. However, Monte Carlo only yields guarantees that hold "with high probability" (a qualitatively weaker promise than true DP) unless the model randomly abstains from answering. Worse, its sample cost scales as $O(1/\delta)$: proving $(\varepsilon, 10^{-8})$-DP is 100,000 times more expensive than proving $(\varepsilon, 10^{-3})$-DP.

Methods

Because the privacy loss cannot be neatly broken into independent per-step pieces, the authors build two complementary, deterministic accountants:

  • The Rényi Accountant (Best for larger $\varepsilon$): Instead of integrating over a messy, non-convex probability region, this method analyzes the smooth moment-generating function (Rényi divergence) of the privacy loss. Computing this for arbitrary matrices is #P-complete (intractably hard). However, the authors notice that for $p$-banded strategy matrices, the resulting Gram matrix is cyclically banded—mostly zeros, except near the diagonal and corners. By "cutting" the cycle and using dynamic programming, they compute exact bounds efficiently, and can truncate non-banded matrices with a small analytical penalty.
Gram matrices showing the cyclically banded structure
  • The Conditional Composition Accountant (Best for strict, small $\varepsilon$): Converting Rényi divergence back to $(\varepsilon, \delta)$-DP loses tightness when $\varepsilon$ is small. To fix this, the authors force the steps to be independent again by splitting outcomes into "good" and "bad." A "bad" outcome is an extreme Gaussian tail event that blatantly reveals which batch a user was in; because noise is Gaussian, this is vanishingly rare and easily bounded ($\delta_E$). For the remaining "good" outcomes, the authors construct pessimistic, step-by-step independent Gaussian mixtures using reverse hazard functions and analytical AM-GM tail bounds, allowing standard, tight privacy accountants to finish the job.

Datasets

Most of the paper evaluates privacy accounting directly on mathematical matrix mechanisms—such as DP-SGD, Banded Matrix Factorization (BandMF), Banded Square Root (BSR), Banded Inverse Square Root (BISR), and Buffered Linear Toeplitz (BLT)—which depends only on training hyperparameters (iterations, epochs, bandwidth), not data. To verify downstream model utility, the authors also run image classification experiments on CIFAR-10 (detailed in their appendix). No new benchmarks are introduced.

Key Insights and Ideas

  • Escaping #P-Completeness via Cyclic Bands: Proving that exact Rényi accounting for general correlation matrices is #P-complete tells us why general formulas failed—while exploiting the cyclically banded geometry of practical matrices unlocks fast dynamic programming.
  • An Exponential-to-Polynomial Leap for DP-SGD: Even when there is no noise correlation ($p=1$, standard DP-SGD under random allocation), their dynamic program drops Rényi accounting runtime from prior work's exponential $O(2^\alpha)$ down to a crisp polynomial $O(b\alpha^2)$ (where $b$ is batches per epoch and $\alpha$ is the Rényi order).
  • Amortized Calibration: In practice, engineers tweak the noise multiplier $\sigma$ repeatedly via binary search to hit a target $(\varepsilon, \delta)$. In the Conditional Composition accountant, the heaviest math is linear in $\sigma$, meaning after one $O(N^2 b^2)$ setup pass, subsequent checks for new $\sigma$ values drop to $O(N b^2)$ (or $O(Nb \log b)$).

Key Results

  • Complementary Tightness: Evaluated at $\delta = 10^{-5}$ across $N=100$ to $1000$ iterations, the Rényi accountant closely matches the Monte Carlo reference in low-privacy regimes ($\varepsilon \ge 2\text{--}4$), while Conditional Composition beats Rényi in high-privacy regimes ($\varepsilon \le 1$), requiring noticeably smaller noise multipliers $\sigma$.
  • Massive Speedups at Small $\delta$: Because it avoids $O(1/\delta)$ sampling, deterministic accounting wins decisively at strict $\delta$ thresholds. For BSR ($p=4, N=1000, b=100$), both proposed methods are faster than Monte Carlo whenever $\delta < 10^{-5}$. With amortization, recalibrating $\sigma$ with Conditional Composition beats Monte Carlo at $\delta = 10^{-6}$ even at $N = 10^4$ steps.
  • Real Utility Gains: On CIFAR-10, the deterministic bounds are tight enough to preserve the accuracy advantage of correlated noise over standard uncorrelated DP-SGD.

Limitations and Future Work

  • The Bandwidth Bottleneck: The Rényi accountant runs in $O(b p \alpha^{2p})$ time—exponential in bandwidth $p$. For wide bands, users must truncate $p$ or limit $\alpha$, trading away bound tightness. Furthermore, converting Rényi divergence to $(\varepsilon, \delta)$-DP remains inherently lossy.
  • Coarse Partitioning & Multi-Epoch DP-SGD: Conditional Composition relies on a binary "good vs. bad" split and conservative analytical tail bounds, which notably degrade on multi-epoch uncorrelated DP-SGD (though remaining strong on correlated mechanisms).
  • Future Directions: The authors suggest tightening Conditional Composition using computational variational inference (optimizing over a family of categorical distributions they uncover) or generalizing recent exact Privacy Loss Distribution (PLD) decompositions from uncorrelated DP-SGD to correlated matrices.

Summary updated

Abstract

We study privacy amplification for differentially private model training with matrix factorization under random allocation (also known as the balls-in-bins model). Recent work by Choquette-Choo et al. (2025) proposes a sampling-based Monte Carlo approach to compute amplification parameters in this setting. However, their guarantees either only hold with some high probability or require random abstention by the mechanism. Furthermore, the required number of samples for ensuring $(\epsilon,\delta)$-DP is inversely proportional to $\delta$. In contrast, we develop sampling-free bounds based on Rényi divergence and conditional composition. The former is facilitated by a dynamic programming formulation to efficiently compute the bounds. The latter complements it by offering stronger privacy guarantees for small $\epsilon$, where Rényi divergence bounds inherently lead to an over-approximation. Our framework applies to arbitrary banded and non-banded matrices. Through numerical comparisons, we demonstrate the efficacy of our approach across a broad range of matrix mechanisms used in research and practice.
BibTeX
@inproceedings{schuchardt2026sampling,
  author = {Jan Schuchardt and Nikita Kalinin},
  title = {{Sampling-Free Privacy Accounting for Matrix Mechanisms under Random Allocation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=krYjrhQMCu},
}

Loading related content...

Figure