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.
Introduction
Differentially Private (DP) machine learning relies on two key strategies to optimize the privacy-utility trade-off: privacy amplification through random data sampling and the use of correlated noise via matrix mechanisms. While amplification "hides" individual data points and correlated noise (as seen in DP-FTRL) allows for error cancellation across training rounds, combining these methods has historically been mathematically intractable. Traditional privacy accountants rely on composition theorems that assume independent noise per step. When noise is correlated, these theorems produce loose privacy bounds, forcing practitioners to add excessive noise and sacrificing model accuracy.
Technical Framework
This work introduces a framework to provide near-exact privacy parameters for any lower-triangular, non-negative correlation matrix $\mathbf{C}$.
Monte Carlo Accounting
The primary innovation is the shift from closed-form composition formulas to Monte Carlo (MC) accounting. By simulating the privacy loss distribution for the entire training trajectory as a single high-dimensional mechanism, the framework bypasses the need for composition theorems entirely. This process is formalized in the Estimate-Verify-Release algorithm.
"Balls-in-Bins" Sampling
To bridge the gap between theoretical analysis and practical implementation, the authors propose a "balls-in-bins" batching scheme. Unlike Poisson sampling, which results in variable batch sizes that are difficult to handle in hardware-accelerated environments like XLA, balls-in-bins assigns each data point to exactly one of $b$ fixed-size batches per epoch. This scheme is both hardware-friendly and easily analyzed within the MC framework.
Differentiable Matrix Optimization
Because the MC analysis is differentiable, the correlation matrix $\mathbf{C}$ can be optimized directly to minimize error while accounting for privacy amplification. This allows for the discovery of noise structures that are specifically tuned for the amplified regime, a capability missing in previous SOTA methods.
Empirical Results
The framework demonstrates significant improvements across standard benchmarks:
- Prefix Sums: Achieved a 10% reduction in Root Mean Squared Error (RMSE) compared to previous state-of-the-art methods.
- Image Classification: On CIFAR-10 with a VGG model, the method provided up to a 1% absolute accuracy boost for the same privacy budget ($\epsilon$).
- Efficiency: The framework supports memory-efficient "3-buffer" BLT matrices, which outperform traditional banded matrix approaches.
Conclusion
By treating the training process as a holistic high-dimensional mechanism rather than a sequence of independent steps, this research provides a path toward tighter privacy bounds and higher-utility private models. While Monte Carlo accounting introduces additional computational overhead, the resulting accuracy gains and the practicality of the "balls-in-bins" scheme make it a compelling choice for production-grade DP machine learning.
Summary updated