(Amplified) banded matrix factorization: a unified approach to private training(Amplified) Banded Matrix Factorization: A unified approach to private training
The authors propose BAND MF, using banded matrix factorization to unify DP training mechanisms so that it is at least no worse than DP-SGD and MULTI-EPOCH MF in both centralized and cross-device federated settings across privacy budgets.
- In DP training, the centralized setting must choose between amplified DP-SGD and MULTI-EPOCH MF depending on ε, while cross-device FL cannot implement (k, b)-participation and sampling amplification, so existing MF mechanisms cannot uniformly dominate across all privacy budgets.
- Proposes BAND MF: constructing the MF-DP-FTRL mechanism with banded matrix factorization; for FL, proposes b-min-sep-participation and gives polynomial-time sensitivity computation; for the centralized setting, decomposes the banded mechanism into independent queries and proves it enjoys the same sampling/shuffling amplification guarantees as DP-SGD.
- On centralized CIFAR-10, BAND MF is about 1–4 percentage points higher than DP-SGD or MULTI-EPOCH MF when ε≥0.5; in cross-device FL simulations and production mobile keyboard experiments it outperforms or matches baselines, and the production deployment raises the guarantee from (6.69, 10⁻¹⁰)-DP to (4.35, 10⁻¹⁰)-DP.
- The authors note that BAND MF still has b times the time and space overhead of DP-SGD, which may be too high for large models with billions of parameters, and list it as future work; the experiments cover CIFAR-10, StackOverflow NWP and a production keyboard model.
- Benchmarks
- CIFAR-10StackOverflow NWPmultilingual C4(预训练)生产移动键盘西语 NWP(跨设备 FL)
- Metrics
- RMSEtest accuracy(ε, δ)-DPρ-zCDP
Researchers propose the (amplified) banded matrix factorization mechanism, proving that differentially private matrix factorization methods can uniformly subsume prior state-of-the-art algorithms under all privacy budgets for both federated and centralized training. The core technique is constructing a banded matrix, i.e., a lower triangular matrix with at most b̂ nonzero bands including the main diagonal. In cross-device federated learning, the method supports multiple device participations and more relaxed participation patterns, is compatible with real-world federated learning infrastructure, and has been validated in production deployments. In the centralized setting, the authors prove that banded matrices enjoy the same privacy amplification results as DP-SGD and are strictly better in performance in most settings, and thus always at least match and often exceed DP-SGD.
Paper analysis
What problem does this paper attempt to solve?
The authors attempt to make the matrix factorization (MF) mechanism uniformly achieve the optimum under all privacy budgets in both centralized and cross-device federated DP training.
Core problem: the MF-DP-FTRL mechanism cannot uniformly achieve the optimum under all settings and all privacy budgets ε; centralized training must choose between amplified DP-SGD and MULTI-EPOCH MF depending on ε, and cross-device FL cannot apply multi-epoch MF at all.
- Setting and motivation: In centralized (data center) DP training, DP-SGD obtains privacy amplification through sampling/shuffling, whereas the multi-epoch MF of Choquette-Choo et al. [15] is better only when ε≳2 and the number of epochs is small; the authors say both algorithms must be tried to guarantee optimality. In cross-device FL, devices decide for themselves when they are available, so exact sampling is impossible and amplification of DP-SGD is infeasible.
- Shortcomings of existing methods: The MF-DP-FTRL of Denisov et al. [17] applies only to the single-participation setting; the multi-epoch extension of Choquette-Choo et al. [15] requires (k, b)-participation, i.e., devices participate at a fixed relative position in each epoch, which the authors consider difficult to enforce in real FL infrastructure. Therefore, optimality in FL also requires switching between tree-aggregation DP-FTRL and single-epoch MF.
- Core observation: The authors observe that restricting the query matrix C of MF to a banded matrix both allows exact sensitivity computation for relaxed participation patterns and allows the mechanism to be decomposed into independent queries, thereby inheriting the privacy amplification analysis of DP-SGD; DP-SGD is exactly the special case b̂=1.
- Contributions of the paper: It proposes the BAND MF mechanism family; proposes the b-min-sep-participation pattern for FL and exact/upper-bound sensitivity algorithms for it (Thm. 2, Thm. 3); proves that banded matrices enjoy the same amplification guarantees as DP-SGD (Thm. 4, Thm. 5); and presents centralized and FL simulation experiments and a production mobile keyboard deployment.
What related research exists?
Related work falls into four categories: the matrix mechanism and DP-FTRL lineage, DP convex optimization and online learning, privacy amplification techniques, and federated learning systems.
Matrix mechanism and the DP-FTRL lineage (the objects this paper directly extends)
- Li et al. [40] proposed the matrix mechanism, which optimizes linear counting queries under offline statistical queries; subsequent work [22, 28, 42, 62] studied the offline setting, and [17, 24] studied the adaptive streaming setting.
- Kairouz et al. [35] proposed DP-FTRL based on tree-aggregation, which does not rely on sampling amplification and targets FL where exact sampling is impossible; Denisov et al. [17] replaced tree aggregation with a general matrix factorization mechanism, optimizing it in the single-epoch setting to obtain a better privacy-utility trade-off.
- Choquette-Choo et al. [15] extended MF to multi-epoch training, achieving optimality in the centralized setting; the paper points out that its (k, b)-participation assumption is difficult to enforce in cross-device FL, and that it outperforms amplified DP-SGD only when ε is sufficiently large.
DP convex optimization and online learning
- The connection between DP empirical risk minimization [3, 4, 5, 7, 8, 9, 14, 16, 23, 25, 32, 36, 39, 45, 52, 53, 54, 57] and DP online regret minimization [2, 4, 5, 26, 33, 35] has long been studied.
- Asi et al. [5] proved that DP-FTRL-type algorithms [15, 17, 35] achieve the best known regret in realizable online learning problems; whether DP-FTRL-type algorithms can achieve optimal overall risk remains an open problem [9].
Privacy amplification and related techniques
- Sampling amplification [46, 55] and shuffling amplification [6] are standard analysis tools for DP-SGD; Henzinger and Upadhyay [29] study explicit decompositions that minimize the completely bounded norm under DP continual observation, differing from the optimum by an additive constant.
- The binary-tree "full" estimator of Honaker [30] is used in this paper as the OPTIMAL TREEAGG baseline.
Federated learning systems
- Bonawitz et al. [10] and Kairouz et al. [34] describe large-scale FL systems and open problems; the DP training of the Gboard language model by Xu et al. [58, 59] is the reference setting for the production deployment in this paper.
Baselines and benchmarks: The experimental baselines are amplified DP-SGD [1], MULTI-EPOCH MF [15], SINGLE-EPOCH MF [17], and OPTIMAL/ONLINE TREEAGG [30, 35]; the benchmarks are CIFAR-10 image classification, StackOverflow next-word prediction (SO NWP), and production mobile keyboard Spanish NWP. The authors position this paper as unifying the above two lineages with banded matrices, so that MF at least matches and often outperforms both under all ε.
How does the paper address this problem?
The authors use banded matrix factorization to unify MF mechanisms: on the FL side they propose the b-min-sep participation schema and sensitivity algorithms, and on the centralized side they prove amplification guarantees.
The overall idea is to restrict the query matrix C of MF-DP-FTRL to a banded matrix: lower triangular with at most b̂ nonzero diagonal bands. This restriction simultaneously solves the sensitivity computation problem in FL and the privacy amplification problem in the centralized setting, and DP-SGD is the special case b̂=1.
Problem Setup and the MF Framework
- Given a clipped gradient stream x ∈ R^{n×d} over n steps and a linear query workload A (such as prefix sums), the matrix mechanism with factorization A = BC outputs Ax̂ = B(Cx + z), where z is Gaussian noise; MF-DP-FTRL is equivalent to adding noise [C⁻¹z][i,:] to each step's gradient, and is implemented almost identically to DP-SGD (Alg. 1).
- The optimization objective is to minimize the expected total squared error, written as a convex problem: minX ∈ S+n tr[A⊤ A X−1], subject to sens²Π(X) ≤ 1, where X = CᵀC (Problem 1).
- The participation schema Π specifies the set of steps a single sample may participate in; the sensitivity sensΠ(C) is defined as the supremum of ∥Cu∥F over adjacent streams (Eq. 2).
FL Side: b-min-sep-participation and Sensitivity
- Proposes b-min-sep-participation (Defn. 1): any two participations are at least b steps apart, rather than exactly b steps as in (k, b)-participation; a device only needs to remember its last participation step, which is engineering-feasible with a client timer.
- Under this schema |Πb| = O(exp(n)), so brute-force enumeration is infeasible; the authors give a general upper bound sens²Π(C) ≤ max_π Σ|X[i,j]| (Eq. 5) and solve it with dynamic programming (Alg. 3–5).
- Thm. 2: for b-banded lower triangular C, Alg. 5 computes the sensitivity under Πb exactly in polynomial time; if the column norm is bounded by κ, the sensitivity is at most κ√k′. Thm. 3: for arbitrary non-banded C, Alg. 4 gives a polynomial-time upper bound, enabling the matrix of [15] to also be used for FL.
Optimization of Banded Matrices
- Using Prop. 4.1 (a b̂-banded positive definite X has a b̂-banded lower triangular Cholesky factor), adds the constraints X[i,j]=0 (|i−j|≥b̂) and diag(X)=1 to Problem 1, yielding Problem 2, still a convex problem.
- diag(X)=1 makes the sensitivity constantly k, guarantees degeneration to DP-SGD when b̂=1, and allows solving with LBFGS [12] via the primal optimization method of [43]; App. B gives a variant without this constraint.
Centralized Side: Privacy Amplification
- Sampling scheme (Alg. 2): arbitrarily partition the dataset into b subsets D1…Db, and at step i uniformly draw B samples only from D_{i mod b}; the banded structure ensures that the sets of Cx rows affected by each sample do not overlap (Figure 4).
- Thm. 4: with b-banded lower triangular C and Alg. 2, BAND MF satisfies any standard DP guarantee of "k sensitivity-κ queries on a dataset of size m̌=⌊m/b⌋"—i.e., equivalent to dividing DP-SGD's rounds by b and multiplying the sampling probability by b; Thm. 5 (App. F) extends the result to shuffling amplification, recovering amplified DP-SGD when b=1.
- The number of bands b̂ can be optimized for a target ε: the authors state that more bands are better for large ε, while as ε→0 amplification dominates and b̂=1 is optimal (App. F.4).
Computational Overhead
- The banded structure reduces the time and memory for per-step noise generation C⁻¹z from O(nd) to O(b̂d) (streaming algorithm in App. J), which the authors state saves b/n times relative to MF-DP-FTRL, but still incurs b times the overhead relative to DP-SGD.
What experiments did the paper conduct?
The authors compare with DP-SGD, MULTI-EPOCH MF, and others in four sets of experiments: RMSE, CIFAR-10, StackOverflow NWP (centralized and FL simulation), and a production mobile keyboard.
Experimental Setup
- Tasks and data: CIFAR-10 image classification (sample-level DP, m=50,000, 20 epochs, B=500); StackOverflow next-word prediction (SO NWP, user-level DP, 2052 rounds, 6 epochs, B=1000, SINGLE-EPOCH MF uses B=167); production mobile keyboard Spanish NWP (about 2.4 million parameters, single-layer LSTM, multilingual C4 pretraining, n=2000 rounds, target 6500 clients/round).
- Baselines: amplified DP-SGD [1], MULTI-EPOCH MF [15], SINGLE-EPOCH MF [17], OPTIMAL TREEAGG (tree aggregation with pseudo-inverse decoder) [30, 35], ONLINE TREEAGG in production [35].
- Metrics and accounting: test/validation accuracy, prefix-sum RMSE; noise σ calibrated with privacy loss distribution (PLD) [38] under zero-out adjacency [18]; amplification results accounted with Poisson sampling (actual production training uses shuffling).
- Repetitions and tuning: CIFAR-10 repeated 12 times per setting, reporting 95% bootstrap confidence intervals; SO NWP simulated with 100 clients/round and noise multiplier scaled, server learning rate tuned on a 1.7^i grid, validation accuracy taken as the smoothed value over the last 400 rounds.
- RMSE comparison: prefix-sum workload with n=1024, δ=10⁻⁶, ε ∈ [1/32, 16], epochs ∈ [1, 1024] (Figure 5).
Main Results
Centralized SO NWP (Table 5, δ=10⁻⁶, (k=6, b=342), smoothed validation accuracy %):
Swipe horizontally to read the table
Mechanism ε=1 ε=2 ε=4 ε=8 ε=16 DP-SGD, w/ ampl. 22.50 22.89 23.27 23.59 23.96 Multi-epoch MF, no ampl. 22.11 23.36 24.36 25.08 25.59 (Band) MF, w/ ampl. (Ours) 23.11 24.01 24.67 25.26 25.59 - The authors state that BAND MF outperforms both baselines simultaneously for ε∈[1,8]; at ε=16, b̂=n=2052, BAND MF is identical to MULTI-EPOCH MF optimized per Eq. (6), and the two have the same accuracy.
- CIFAR-10 (Figure 1(a)): the authors state that for ε≥0.5, BAND MF is about 1–4 percentage points higher than DP-SGD or MULTI-EPOCH MF, where for ε∈[2,5] it is about 1 percentage point higher than MULTI-EPOCH MF, for ε<2 it is about 3 percentage points higher than DP-SGD, and for smaller ε it is equivalent to DP-SGD.
- RMSE (Figure 5(b)): the authors state that BAND MF is no worse than DP-SGD on all (ε, epochs) combinations; Figure 5(a) shows that DP-SGD and MULTI-EPOCH MF each have regions where they dominate.
Cross-device FL Simulation
- Setup: SO NWP, b=342-min-sep-participation, no amplification; BAND MF uses b̂=342 (Table 4).
- Results: at ε=8, smoothed validation accuracy is BAND MF 25.06%, MULTI-EPOCH MF 24.95%, OPTIMAL TREEAGG 24.54%, SINGLE-EPOCH MF 24.03%, DP-SGD 21.26%; at ε=1 they are 22.12%, 21.96%, 21.15%, 20.29%, 16.82%, respectively (Table 4).
- Authors' interpretation: BAND MF and MULTI-EPOCH MF (used for FL via Thm. 3) outperform all prior methods, but the authors note that the previously untested multi-round OPTIMAL TREEAGG also performs quite well; MULTI-EPOCH MF incurs about a 15% penalty from the sensitivity upper bound under b-min-sep (Table 2).
Production Mobile Keyboard Deployment
- Setup: a real cross-device FL system fine-tunes a Spanish NWP model, compared against ONLINE TREEAGG [35]; BAND MF is optimized with b̂=400, but the system can only approximately control the separation, so a posteriori it can only bound b=385 (390 for ONLINE TREEAGG), hence analyzed with Thm. 3.
- Results: after tuning both to similar RMSE, BAND MF's accuracy rises slightly (Figure 6(b), which the authors believe may come from a learning rate cooldown enabled only for BAND MF); privacy improves from ρ=0.52-zCDP / (6.69, 10⁻¹⁰)-DP to ρ=0.24-zCDP / (4.35, 10⁻¹⁰)-DP.
Other Ablations and Analyses
- Equal column norm constraint (Table 2): slightly hurts RMSE for (k, b)-participation (e.g., 1.04→1.05 at b=342), but improves it for b-min-sep (1.08→1.05).
- Optimal number of bands (Table 3): at n=1024, δ=10⁻⁶, the smaller ε is or the more epochs, the smaller the optimal number of bands (e.g., mostly 1–2 at ε=0.03125, and 1024 at ε=16, k=1).
- Cost of the sensitivity upper bound (Table 2): the MF [15] matrix has sensitivity ≤1.15 (without column normalization) or ≤1.13 (with) under b≥342-min-sep.
- Correlation between learning rate and RMSE (Figure 13): the authors state that prefix-sum RMSE is linearly correlated with the optimal server learning rate, whereas single-gradient RMSE is not, and they use linear regression to select the learning rate accordingly.
- Exceptions: in Figures 11/12, when b̂ is restricted to [0, n/k], BAND MF is worse than MULTI-EPOCH MF in the ε≳5 range; in Table 4, MULTI-EPOCH MF's test accuracy at ε=8 is missing.
What are some points that can be further explored?
The authors note that the b times time and space overhead relative to DP-SGD is an important future direction; experiments cover three tasks and a set of RMSE analyses.
Limitations and Future Directions Noted by the Authors
- Overhead for very large models (Sec. 7 Discussion and Limitations): BAND MF still has b times the time and space overhead of DP-SGD, which the authors say may be prohibitive for models with billions of parameters, and they call it "an interesting and important direction for future research."
- Code release plan (Sec. 1 and App. K.1): the authors plan to release all code with the final version, and to open-source the implementation based on TensorFlow Federated and TensorFlow Privacy and key parts of the cross-device FL system.
- The paper does not list further limitations in a dedicated subsection.
Scope of Experiments
- The mechanisms tested are DP-SGD (with amplification), SINGLE-EPOCH MF, MULTI-EPOCH MF, OPTIMAL TREEAGG, ONLINE TREEAGG and BAND MF, 6 in total; the tasks are CIFAR-10 (sample-level DP), SO NWP (user-level DP, centralized and FL simulation) and a production mobile keyboard Spanish NWP, 3 tasks in total.
- Privacy budget coverage: ε∈[1,16] for CIFAR-10 and centralized SO NWP (Figure 1(b) takes ε=1,2,4,8,16), ε∈{1,2,4,8,16} for the FL simulation, and ε∈[1/32,16] for the RMSE analysis; δ is 10⁻⁵ (CIFAR-10), 10⁻⁶ (SO NWP) and 10⁻¹⁰ (production), respectively.
- CIFAR-10 was repeated 12 times per setting with 95% bootstrap confidence intervals reported; SO NWP was simulated with 100 clients/round and the noise multiplier scaled, and the authors say they independently verified that this approximation has negligible effect on the accuracy estimates.
- In the production deployment the system could only approximately control the participation interval, determined post hoc as b=385 (BAND MF) and 390 (ONLINE TREEAGG), less than the optimized b̂=400, so BAND MF's privacy analysis relies on the upper bound of Thm. 3 rather than the exact value.
- The accounting for the amplification experiments is done under Poisson sampling, whereas actual training uses shuffling (the paper says this follows common practice); the cross-device FL setting does not use amplification.
Summarize the main content of the paper
BAND MF uses banded matrix factorization to unify DP training mechanisms, matching and often outperforming the prior best in centralized and federated settings across all privacy budgets.
A paper on a differentially private training method proposes BAND MF: restricting the query matrix of MF-DP-FTRL to a banded matrix, so that the matrix factorization mechanism can match or exceed the prior best in both centralized and cross-device federated settings across all privacy budgets ε.
- Problem to solve: in centralized DP training, amplified DP-SGD and MULTI-EPOCH MF each have regions where they dominate, and one must choose between them; cross-device FL cannot implement (k, b)-participation and sampling amplification, so multi-epoch MF cannot be applied directly.
- Method highlights: on the FL side, proposes b-min-sep-participation (two participations at least b steps apart, enforceable by a client timer), and uses dynamic programming to compute sensitivity exactly in polynomial time (banded matrices, Thm. 2) or an upper bound (arbitrary matrices, Thm. 3); on the centralized side, partitions the dataset into b parts sampled in rotation, proving the banded mechanism is equivalent to DP-SGD with "rounds divided by b and sampling probability multiplied by b", thereby inheriting sampling and shuffling amplification (Thm. 4, 5), with DP-SGD as the special case b̂=1.
- Centralized results: on CIFAR-10, about 1–4 percentage points higher than DP-SGD or MULTI-EPOCH MF for ε≥0.5 (Figure 1(a)); on SO NWP, better than both simultaneously for ε∈[1,8], e.g., at ε=2 smoothed validation accuracy 24.01% versus 23.36%/22.89% (Table 5).
- FL results: in the b=342-min-sep simulation, better than all baselines at each ε (25.06% at ε=8, Table 4); the production mobile keyboard deployment improves the guarantee from (6.69, 10⁻¹⁰)-DP to (4.35, 10⁻¹⁰)-DP at similar RMSE.
- Cost and conclusion: per-step noise generation drops from O(nd) to O(b̂d), but there is still b times the time and space overhead relative to DP-SGD, which the authors call an important future direction for very large models; the authors believe BAND MF allows MF mechanisms alone to sit above the Pareto frontier previously defined jointly by DP-SGD and MF-DP-FTRL.