Aggregation Service for Federated Learning: An Efficient, Secure, and More Resilient Realization

Yifeng Zheng, Shangqi Lai, Yi Liu, Xingliang Yuan, Xun Yi, Cong Wang

TL;DR

This paper introduces a novel secure aggregation framework for Federated Learning (FL) that protects client privacy using lightweight cryptographic masking rather than heavy homomorphic encryption. Crucially, it remains highly resilient when clients drop out mid-round without exposing their secret keys, integrates a secure quantization scheme to slash communication costs by up to $4\times$, and enforces server-side computation integrity using hardware-assisted trusted execution environments (Intel SGX).

What Problem Does This Paper Address?

Federated Learning allows multiple clients to collaboratively train a machine learning model without sharing their raw datasets. However, simply sharing local model updates (gradients) isn't enough to guarantee privacy; malicious servers or observers can reverse-engineer private training data from these updates.

To prevent this, researchers use Secure Aggregation. Existing solutions, however, suffer from three major pain points:

  1. High Computational Overhead: Many protocols rely on expensive Additively Homomorphic Encryption (AHE).
  2. Fragile Dropout Handling: Lightweight masking alternatives (like the state-of-the-art protocol by Bonawitz et al.) expose a client's secret key to the server if that client drops out mid-round. This prevents the client from safely participating in future rounds without an expensive key re-setup.
  3. Passive Server Assumptions: Most protocols assume the cloud server is "semi-honest" (i.e., it won't alter the math). They fail if an active adversary manipulates the aggregation logic to leak information or corrupt the model.

The authors address these gaps by designing an aggregation service that is simultaneously lightweight, dropout-resilient, communication-efficient, and secure against active server attacks.

Comparison of federated learning systems with secure aggregation.

Methods

The proposed system architecture coordinates a service requester, data-holding clients, and a cloud-based secure FL service.

Overview of our system architecture.

The core technical design relies on four pillars:

  • Lightweight Pairwise Masking: Instead of AHE, clients generate zero-sum blinding factors using Diffie-Hellman key exchanges and cryptographic hashing. When the server sums the obscured updates, the masks naturally cancel out, revealing only the true aggregate model.
  • Persistent Dropout Resilience: If a client drops out, the remaining online clients send a specific combination of their shared secret keys to help the server strip out the dropped client's masks. Unlike prior work, the dropped client's individual private key is never exposed, allowing them to seamlessly rejoin in the next round.
  • Symmetric Quantization: To optimize bandwidth, the authors integrate an $r$-bit symmetric quantization scheme. Clients compress their model updates ($\Delta$) into low-bit integers before masking. The quantization is uniquely structured so that aggregation can happen directly on the ciphertext domain without needing a complex de-quantization step beforehand.
  • Transparent Enclaves for Integrity: To thwart an actively malicious server, the aggregation code runs inside an Intel SGX enclave. Crucially, the authors do not trust SGX to maintain data confidentiality (which is vulnerable to side-channel attacks). Instead, they use it purely as a transparent enclave to verify computation integrity via secure code attestation and cryptographic signatures.

Datasets

The authors evaluated their system across three popular machine learning benchmarks:

  • MNIST: 60,000 training and 10,000 testing examples of handwritten digits, evaluated using a standard CNN (21,840 parameters).
  • CIFAR-10: 50,000 training and 10,000 testing color images across 10 classes, evaluated using AlexNet (23,272,266 parameters).
  • CelebA: A large-scale celebrity attributes dataset from the LEAF benchmark framework, used here for gender classification via ResNet-18 (13,962,562 parameters).

Key Insights and Ideas

  • Decoupling Privacy from Hardware: By using cryptographic masking for privacy and Intel SGX only for integrity, the system remains secure even if the underlying hardware suffers from modern side-channel privacy leaks (like Spectre or Meltdown).
  • "Key-Safe" Dropouts: The realization that online clients can collectively neutralize a dropped client's mask without revealing the dropped client's secret key is a major step forward for practical, long-running FL deployments where network instability is common.
  • Quantization-Masking Synergy: Quantizing model updates into integers aligns perfectly with the algebraic structure required for cryptographic masking, allowing communication compression and privacy preservation to work hand-in-hand.

Key Results

  • Accuracy Preservation: Across IID and non-IID settings, the secure framework achieved model accuracy virtually identical to the plaintext baseline.
  • Bandwidth Reduction: Integrating 8-bit and 16-bit quantization yielded a $4\times$ and $2\times$ reduction in model update sizes, respectively, without harming final model accuracy.
  • High Efficiency: Under zero-dropout scenarios, the client-side cost was up to $39\times$ faster than the Bonawitz et al. protocol. When dropouts did occur, the computational overhead remained highly practical (limited to a $2.3\times$ increase).
  • Negligible Integrity Overhead: Running the aggregation inside an SGX enclave to defend against active adversaries introduced almost zero overhead ($1\times$ to $1.013\times$ slowdown) compared to the semi-honest setup, primarily because the design avoids expensive enclave memory paging.

Limitations and Future Work

  • Orthogonal Privacy Risks: The system focuses strictly on protecting individual updates during aggregation. It does not inherently prevent information leakage from the final aggregate model itself (e.g., via membership inference attacks). The authors note that integrating complementary differential privacy techniques would be a natural next step.
  • Client Scaling: Client-side computation scales linearly with the number of selected clients per round due to blinding factor generation. While the authors propose a "group management" optimization to mitigate this, massive cross-device scaling remains a challenge.
  • Poisoning Attacks: The framework assumes clients submit honest updates; it does not currently address Byzantine robustness or data poisoning attacks.

Summary updated

BibTeX
@article{zheng2023aggregation,
  author = {Yifeng Zheng and Shangqi Lai and Yi Liu and Xingliang Yuan and Xun Yi and Cong Wang},
  title = {{Aggregation Service for Federated Learning: An Efficient, Secure, and More Resilient Realization}},
  journal = {IEEE Trans. Dependable Secur. Comput.},
  year = {2023},
  url = {https://openreview.net/forum?id=UgJ35vsyygu},
}
Figure