Introduction
This paper introduces a comprehensive end-to-end system for privacy-preserving Federated Learning (FL) that seamlessly integrates Secure Aggregation (SecAgg) and Differential Privacy (DP). By having clients discretize their updates and add discrete Gaussian noise before aggregation, the proposed method achieves tight Concentrated DP guarantees while avoiding modular wrap-around errors. Remarkably, it matches the accuracy of centralized continuous DP mechanisms using less than 16 bits of precision per parameter.
The Challenge: SecAgg vs. Differential Privacy
Federated Learning trains models on decentralized data, often utilizing two key privacy technologies:
- Secure Aggregation (SecAgg): Uses cryptography to ensure the server only sees the sum of client updates.
- Differential Privacy (DP): Adds noise to ensure the final aggregated sum doesn't leak information about any individual user.
Combining these two is notoriously difficult. SecAgg operates on finite groups (integers modulo $m$), requiring discrete inputs. Standard DP mechanisms, however, use continuous noise (like real-valued Gaussians), which breaks SecAgg's modular arithmetic.
Previous attempts at "distributed DP" (like the binomial mechanism used in cpSGD) require clients to add discrete noise, but they fail to provide tight Rényi or Concentrated DP guarantees. This makes privacy accounting across thousands of FL rounds highly inefficient, resulting in models that require too much noise to be useful. Furthermore, naive discretization and modular arithmetic can cause catastrophic "wrap-around" errors if the sum of the noisy vectors exceeds the modulo field size.
The Distributed Discrete Gaussian Mechanism
The authors propose a novel protocol where clients locally perturb their data before SecAgg. The pipeline includes several clever techniques:
- Vector Flattening: Clients apply a Walsh-Hadamard transform and random sign flips to their update vectors. This acts as a mixing step, spreading the magnitude of large coordinates across the entire vector to ensure no single coordinate is too large.
- Conditional Randomized Rounding: The continuous vector is scaled and randomly rounded to a discrete integer grid. If the rounding increases the vector's norm beyond a strict threshold, the process is repeated. This ensures a hard bound on the sensitivity of the update, which is crucial for DP.
- Discrete Gaussian Noise: Clients independently sample and add noise from a discrete Gaussian distribution.
- Modular Arithmetic: The noisy, discrete vector is subjected to modulo $m$ arithmetic and sent to the server via SecAgg. The server then reverses the flattening and scaling steps on the aggregated sum.
Key Insights
- Sums of Discrete Gaussians are (Almost) Discrete Gaussians: The sum of independent discrete Gaussians is technically not a discrete Gaussian. However, the authors mathematically prove that the difference is vanishingly small (bounded by an exponentially small max divergence). This allows them to use the sharp Concentrated DP accounting tools previously reserved for continuous Gaussians.
- Flattening Prevents Wrap-Around: Modular arithmetic in SecAgg is dangerous; if a value exceeds the maximum integer $m$, it wraps around to a negative number, destroying the model update. By applying the unitary Walsh-Hadamard transform, the authors mathematically guarantee that the vector's maximum coordinate value (infinity norm) is kept small, making modular clipping highly improbable.
- The Trilemma of FL: The theoretical guarantees highlight a complex tension between communication (bit-width $m$), privacy (noise scale), and accuracy (granularity of rounding). Finer granularity reduces rounding error but increases the risk of modular wrap-around unless communication bandwidth is increased.
Experimental Results
The authors evaluate their method on synthetic data for Distributed Mean Estimation (DME) and two realistic, user-level Federated Learning tasks: Federated EMNIST and Stack Overflow Next Word Prediction (SO-NWP).
Key findings include: * Matches Centralized Baselines: The proposed distributed discrete Gaussian mechanism achieves utility matching the strong centralized continuous Gaussian baseline using 16 bits or fewer per coordinate. * Strong FL Performance: On the large-scale SO-NWP task with 1,000 clients per round, the method matches the continuous Gaussian's validation accuracy (~25.2% at a privacy budget of $\varepsilon \approx 10$) using an 18-bit width. * Optimal Asymptotic Error: The authors provide a rigorous end-to-end theoretical bound showing the mean squared error of their system is asymptotically $O(c^2d/\varepsilon^2)$, which exactly matches the theoretical error floor for differential privacy in the trusted central model.
Limitations and Future Work
While a significant step forward, the method has a few limitations:
- Padding Overhead: The Walsh-Hadamard transform requires the vector dimension $d$ to be a power of 2. For arbitrary model sizes, this requires zero-padding the vectors, which wastes communication bandwidth. Exploring the Discrete Fourier Transform is a suggested workaround.
- Generic Amplification Bounds: The privacy analysis relies on generic privacy amplification via sampling bounds. A precise, bespoke analysis of the subsampled distributed discrete Gaussian could yield even tighter privacy guarantees.
- Parameter Tuning: The method introduces several hyperparameters (clipping thresholds, granularity, bit-width). Developing self-tuning algorithms to dynamically set these parameters on the fly remains an open challenge.
Summary updated