Abstract
Training machine learning models with Differential Privacy (DP) often relies on the matrix factorization (MF) mechanism to reduce noise accumulation. However, finding the optimal factorization typically requires solving a massive, time-consuming semi-definite program (SDP). This paper introduces Banded Square Root (BSR) factorization, an analytical approach that provides near-optimal noise structures using simple closed-form expressions. By exploiting the Toeplitz structure of standard optimization workloads, BSR transforms a pre-computation step that previously required days of computation into one that takes mere seconds, without sacrificing model utility.
1. Introduction
Differentially Private Stochastic Gradient Descent (DP-SGD) is the standard for training models with privacy guarantees. By adding noise to gradients, DP-SGD protects individual data points, but this noise accumulates over thousands of training steps, often degrading model accuracy. Recent advancements have introduced the Matrix Factorization (MF) mechanism, which views the training process as a linear operator (a "workload matrix") applied to gradients. By factorizing this matrix, researchers can inject correlated noise that cancels itself out over time, significantly improving the privacy-utility trade-off.
Despite its benefits, the MF mechanism faces a significant deployment hurdle: the "optimal" factorization (AOF) is found via numerical optimization. For large-scale training, this optimization becomes a massive computational bottleneck, often taking days to solve or failing due to numerical instability. This paper addresses this bottleneck by proposing an analytical alternative.
2. The Matrix Factorization Mechanism
In the MF framework, the training process is represented by a lower-triangular workload matrix $A$. The goal is to find a factorization $A = BC$ such that the noise added to the gradients (via $C$) results in minimal error in the final model states (determined by $B$).
Traditionally, finding $B$ and $C$ to minimize the total variance requires solving a Semi-Definite Program (SDP). As the number of training steps $n$ increases, the size of the matrices grows quadratically, making the SDP increasingly intractable for modern deep learning workloads involving tens of thousands of iterations.
3. Banded Square Root (BSR) Factorization
The authors propose Banded Square Root (BSR) factorization, an approach that replaces numerical optimization with mathematical derivation. Their method is built on three core pillars:
3.1 The Square Root Insight
The authors prove that for standard SGD-like workloads (including those with momentum and weight decay), the workload matrix $A$ is a lower triangular Toeplitz matrix. They derive an explicit, closed-form expression for the unique matrix square root $C$ such that $A = C^2$. They demonstrate that this square root is remarkably close to the numerically "optimal" solutions found by SDP solvers.
3.2 Banding for Multi-Epoch Training
In practical settings, data is often reused across multiple epochs. To handle this, the authors "band" the square root matrix, retaining only the entries near the diagonal. This ensures that noise remains "local" to the window in which specific data points participate, maintaining privacy while preserving the efficiency of the factorization.
3.3 Analytical Sensitivity
A critical component of DP is calculating the "sensitivity" of the mechanism to ensure the privacy budget is not exceeded. BSR provides a closed-form formula for the sensitivity of these banded Toeplitz matrices. This eliminates the need for the complex dynamic programming or simulations required by previous methods.
4. Computational and Theoretical Advantages
Unlike previous state-of-the-art methods that are purely numerical, BSR is analytical. By plugging in hyperparameters like learning rate, momentum, and weight decay, the noise structure is generated instantly.
- Toeplitz Efficiency: Because standard SGD uses constant hyperparameters, the relationship between gradients and model states is shift-invariant. This allows BSR to utilize Fast Fourier Transforms (FFTs) for extremely fast computation.
- Numerical Stability: Numerical SDP solvers often struggle with high-dimensional, poorly conditioned matrices. Because BSR uses an exact formula, it is immune to the "solver jitter" and precision issues that plague numerical approaches.
5. Experimental Results
The authors evaluated BSR against the previous state-of-the-art (AOF) and naive DP-SGD using CIFAR-10 and synthetic workloads.
5.1 Computational Speedup
The most striking result is the reduction in pre-computation time. For a training run of 700 steps, the previous "optimal" method (AOF) required several days of CPU time to compute the factorization. In contrast, BSR computed the equivalent factorization in less than one second.
5.2 Accuracy and Utility
In classification tasks on CIFAR-10, BSR achieved accuracy virtually identical to (and in some cases, slightly better than) the computationally expensive AOF. Both MF-based methods significantly outperformed standard DP-SGD, proving that the analytical approximation does not sacrifice the utility gains of the MF mechanism.
5.3 Asymptotic Optimality
Theoretical analysis confirms that BSR achieves the same optimal error rates—specifically $O(\sqrt{k} \log n)$ for certain settings—as the best possible theoretical factorizations, grounding the empirical success in rigorous theory.
6. Conclusion and Future Work
Banded Square Root factorization represents a significant step toward making advanced DP training mechanisms practical for real-world use. By replacing slow numerical optimization with fast analytical formulas, BSR removes a major barrier to the adoption of the Matrix Factorization mechanism.
Future work remains in extending these closed-form results to adaptive optimizers like Adam, which are non-linear and do not currently fit the linear workload matrix model. Additionally, the authors suggest that the current theoretical lower bounds for repeated participation may be too pessimistic, indicating that even more efficient factorizations may yet be discovered.
Summary updated