The Distributed Discrete Gaussian Mechanism for Federated Learning with Secure Aggregation

Peter Kairouz, Ziyu Liu, Thomas Steinke

TL;DR

This paper introduces a novel system for privacy-preserving federated learning that combines discrete Gaussian noise with secure aggregation. It achieves strong theoretical privacy guarantees while matching the accuracy of centralized differential privacy, even with limited communication budgets (as few as 16 bits per value).

What Problem Does This Paper Address?

Training machine learning models often requires large datasets, which are frequently distributed across many user devices. This raises significant privacy concerns, as sensitive user data could be exposed. While federated learning (FL) keeps raw data on devices and secure aggregation (SecAgg) prevents servers from seeing individual updates, combining these with robust privacy guarantees like differential privacy (DP) has been challenging. Existing approaches often struggle with the finite precision and modular arithmetic inherent in secure aggregation, leading to accuracy trade-offs or weaker privacy guarantees. This paper aims to bridge this gap by developing a practical, end-to-end system that rigorously combines FL, DP, and SecAgg.

Methods

The core of the proposed system is the Distributed Discrete Gaussian Mechanism. This involves:

  1. Client-side Discretization and Noise Addition: Each client discretizes its model update and adds discrete Gaussian noise. This is a key departure from continuous Gaussian noise, as it's more amenable to modular arithmetic.
  2. Secure Aggregation (SecAgg): Clients send their noisy, discretized updates to a server, which uses SecAgg to compute the sum of these updates modulo a large number m. The server only sees this aggregated, noisy sum, not individual contributions.
  3. Novel Privacy Analysis: The paper provides a new theoretical analysis for the privacy guarantees of sums of discrete Gaussians, accounting for the effects of data quantization and modular arithmetic. This is crucial because the sum of discrete Gaussians is not itself a discrete Gaussian.
  4. Flattening and Modular Clipping: To handle potential issues with modular arithmetic (especially with limited bit-widths), the system employs a "flattening" technique using a random unitary matrix to spread out the data, followed by modular clipping to keep values within a manageable range.

Datasets

The paper evaluates its approach on several standard datasets:

  • Federated EMNIST: An image classification dataset.
  • Stack Overflow Tag Prediction (SO-TP): A text dataset for tag prediction.
  • Stack Overflow Next Word Prediction (SO-NWP): A text dataset for next word prediction.

These datasets are noted for being larger and more challenging than those typically used in prior FL research, featuring real-world client heterogeneity and label/size imbalance.

Key Insights and Ideas

  • Discrete Gaussian Noise is Key: Using discrete Gaussian noise is a critical enabler for combining DP with secure aggregation, as it plays more nicely with modular arithmetic than continuous noise.
  • The Tension Between Communication, Privacy, and Accuracy: The paper meticulously analyzes how choices in parameters like bit-width (B), granularity (γ), and noise scale (σ) create trade-offs. Higher bit-widths improve accuracy but increase communication, while stronger privacy (smaller ε) often requires more noise, impacting accuracy.
  • Flattening and Modular Clipping are Essential: The "flattening" step and careful modular clipping are vital for managing errors introduced by the finite precision of secure aggregation, especially at low bit-widths.
  • Practicality at Low Bit-widths: A major achievement is demonstrating that the proposed method can match centralized DP accuracy with as few as 16 bits per coordinate, which is crucial for communication-constrained environments.

Key Results

  • Theoretical Guarantees: The paper provides theoretical guarantees for ε²-concentrated differential privacy for the proposed system.
  • Accuracy Matching: Experimental results show that the Distributed Discrete Gaussian mechanism can match the accuracy of the continuous Gaussian mechanism under similar privacy budgets, especially when sufficient communication bits are available.
  • 16-bit Precision: The system achieves near-central DP accuracy with less than 16 bits of precision per value.
  • Performance on Benchmarks: The method demonstrates strong performance on EMNIST, SO-TP, and SO-NWP, showing competitive results against baselines.

Limitations and Future Work

  • Generic Amplification Bounds: The paper notes that for FL, they use generic amplification bounds for privacy, which might lead to slightly more noise than necessary. A more precise analysis of subsampled distributed discrete Gaussian mechanisms could improve this.
  • Alternative Transforms: Exploring discrete Fourier transforms or other matrix-based methods instead of Walsh-Hadamard transforms could potentially avoid padding issues.
  • Private Self-Tuning: Developing algorithms that can automatically tune their parameters for optimal performance in a privacy-preserving manner is a promising future direction.
  • Lower Bounds: Proving a lower bound on the modulus m would help confirm if the current approach is order-optimal or if better mechanisms exist.

Summary updated

BibTeX
@inproceedings{kairouz2021distributed,
  author = {Peter Kairouz and Ziyu Liu and Thomas Steinke},
  title = {{The Distributed Discrete Gaussian Mechanism for Federated Learning with Secure Aggregation}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=GJzHaC0ZdG},
}
Figure