Near Exact Privacy Amplification for Matrix Mechanisms

Christopher A. Choquette-Choo, Arun Ganesh, Saminul Haque, Thomas Steinke, Abhradeep Thakurta

TL;DR

This paper introduces a framework for computing near-exact privacy parameters for "matrix mechanisms"—a powerful class of differentially private (DP) algorithms that use correlated noise to improve utility. By combining a novel "balls-in-bins" batching scheme with Monte Carlo privacy accounting, the authors bypass the loose bounds of traditional composition theorems, enabling them to optimize noise correlation matrices directly for the first time and achieving significant accuracy gains in deep learning tasks.

What Problem Does This Paper Address?

In differentially private machine learning, two techniques are commonly used to improve the privacy-utility tradeoff:

  1. Privacy Amplification: Using randomness in how data is sampled (e.g., random batching) to "hide" individual records, effectively lowering the privacy cost.
  2. Correlated Noise (Matrix Mechanisms): Instead of adding independent noise to every gradient (as in DP-SGD), noise is correlated across training rounds (DP-FTRL) so that errors cancel out over time.

The challenge is that these two techniques are notoriously difficult to combine. Standard privacy analysis relies on composition, which assumes that the noise added in each round is independent. Because correlated noise explicitly breaks this independence, previous attempts to combine them either only worked for very specific, simple noise structures ("banded" matrices) or resulted in very loose, pessimistic privacy estimates that wiped out the utility gains.

Methods

The authors propose a two-pronged technical solution to bridge this gap:

  • Balls-in-Bins Batching: The authors introduce a new sampling scheme where each data point (a "ball") is assigned to exactly one batch (a "bin") per epoch. This is more practical to implement than Poisson sampling (which requires random access to the whole dataset) and easier to analyze than standard shuffling.
Figure 1: A comparison of the how different amplification methods might form batches. Here, we use n = 6 rounds, and form b = 3 batches per epoch for E = 2 epochs (visually represented as one row for each epoch). Note that shuffling uses fixed batch sizes, and all methods but Poisson sampling use the same batching across epochs and enforce exactly one participation per example per epoch.
  • Monte Carlo Accounting: Instead of trying to "add up" privacy costs round-by-round, the authors use Monte Carlo sampling to estimate the Privacy Loss Distribution (PLD) of the entire training run at once. This allows them to bypass composition entirely and get "near-exact" privacy parameters for any lower-triangular correlation matrix $C$.
  • Implicit Differentiation for Optimization: Because their Monte Carlo accountant is differentiable, they can use gradient descent to optimize the correlation matrix $C$ itself. They specifically optimize $C$ to minimize the Root Mean Squared Error (RMSE) of prefix sums, a standard utility metric for these mechanisms.

Datasets

The paper evaluates the proposed methods on:

  • Prefix Sum Benchmarks: A standard synthetic task used to measure the error introduced by DP mechanisms over time.
  • CIFAR-10: A classic image recognition dataset. The authors trained a VGG model to demonstrate that their theoretical improvements translate to real-world deep learning accuracy.

Key Insights and Ideas

  • Bypassing Composition is the Key: The "aha moment" is realizing that the main bottleneck wasn't the noise correlation itself, but the mathematical tools (composition theorems) used to analyze it. By looking at the training run holistically via Monte Carlo methods, the complexity of the noise structure becomes manageable.
  • The "Goldilocks" Batching Scheme: Balls-in-bins batching hits a sweet spot. It provides better privacy amplification than shuffling while avoiding the implementation headaches and potential privacy risks (like over-sampling) associated with Poisson sampling.
  • Optimization Under Amplification: Previously, researchers would optimize a noise matrix and then check how much amplification they got. This paper shows that you can—and should—optimize the matrix while accounting for the amplification, which leads to much better results.

Key Results

  • RMSE Reduction: The framework achieves up to a 10% reduction in RMSE for prefix sums compared to the previous state-of-the-art (SOTA) banded matrix methods.
  • Deep Learning Accuracy: On CIFAR-10, the optimized matrices and balls-in-bins batching provided up to a 1% absolute accuracy improvement over the previous SOTA at the same privacy level ($\epsilon$).
  • Efficiency: The authors show that their optimization procedure is scalable. Even using a relatively small number of Monte Carlo samples during the optimization phase yields high-quality matrices, saving significant computational time.
Improvement in RMSE from optimizing the correlation matrix C using the new accounting framework.

Limitations and Future Work

  • Sample Complexity: The number of Monte Carlo samples required to verify a DP guarantee scales with $1/\delta$. For extremely small $\delta$ (very high privacy), the computational cost of the final verification could become prohibitive.
  • Memory Constraints: For very long training runs (many iterations), the authors encountered memory issues when using a large number of Monte Carlo samples, suggesting a need for more memory-efficient sampling implementations.
  • Scaling to Large Models: While successful on CIFAR-10 with VGG, the authors leave the implementation of balls-in-bins batching at the scale of massive datasets and LLMs to future work. They also suggest exploring more efficient importance samplers to further reduce the variance of the Monte Carlo estimates.

Summary updated

Abstract

We study the problem of computing the privacy parameters for DP machine learning when using privacy amplification via random batching and noise correlated across rounds via a correlation matrix $\textbf{C}$ (i.e., the matrix mechanism). Past work on this problem either only applied to banded $\textbf{C}$, or gave loose privacy parameters. In this work, we give a framework for computing near-exact privacy parameters for any lower-triangular, non-negative $\textbf{C}$. Our framework allows us to optimize the correlation matrix $\textbf{C}$ while accounting for amplification, whereas past work could not. Empirically, we show this lets us achieve smaller RMSE on prefix sums than the previous state-of-the-art (SOTA). We also show that we can improve on the SOTA performance on deep learning tasks. Our two main technical tools are (i) using Monte Carlo accounting to bypass composition, which was the main technical challenge for past work, and (ii) a "balls-in-bins" batching scheme that enables easy privacy analysis and is closer to practical random batching than Poisson sampling.
BibTeX
@inproceedings{choquettechoo2025near,
  author = {Christopher A. Choquette-Choo and Arun Ganesh and Saminul Haque and Thomas Steinke and Abhradeep Thakurta},
  title = {{Near Exact Privacy Amplification for Matrix Mechanisms}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=txV4dNeusx},
}
Figure