Efficient Secure Aggregation Based on SHPRG For Federated Learning

Zizhen Liu, Si Chen, Jing Ye, Junfeng Fan, Huawei Li, Xiaowei LiarXiv 2021

Introduction

Federated Learning (FL) enables multiple clients to collaboratively train a machine learning model without sharing their raw data. However, the central server responsible for aggregating model updates can still potentially infer private information from individual updates. Secure Aggregation (SA) protocols address this by ensuring the server only learns the aggregate sum.

The current industry standard, SecAgg, relies on pairwise masking where clients agree on shared secrets. While secure, SecAgg faces significant scalability challenges: its computational complexity scales quadratically ($O(N^2M)$) with the number of clients ($N$) and model parameters ($M$). Furthermore, client dropouts necessitate expensive "secret reconstruction" phases, creating a bottleneck in large-scale deployments.

The SASH Protocol

The SASH (Seed Homomorphic Pseudo-Random Generator) protocol, introduced at UAI 2022, proposes a more efficient alternative. Instead of complex pairwise masks, SASH utilizes the homomorphic properties of specific Pseudo-Random Generators (PRGs).

Seed Homomorphic PRG (SHPRG)

A standard PRG expands a small seed into a large random string. A Seed Homomorphic PRG satisfies the property: $$G(s_1 + s_2) \approx G(s_1) + G(s_2)$$ This property allows the server to remove masks by operating on the sum of seeds rather than individual masks.

Protocol Workflow

The SASH workflow simplifies the aggregation process into several key steps:

  1. Masking: Each client $i$ generates a random seed $k_i$ and masks their update $m_i$ as $y_i = m_i + G(k_i)$.
  2. Aggregation: The server collects masked updates from online clients ($U_1$) and sums them: $\sum y_i$.
  3. Seed Agreement: Through a lightweight Masking Key Agreement protocol (e.g., SecAgg), the server obtains the sum of seeds $k_0 = \sum k_i$ for the surviving clients ($U_2$).
  4. Demasking: The server computes $G(k_0)$ and subtracts it from the aggregated updates to recover $\sum m_i$.
Overview of the SASH Homomorphic Model Aggregation Protocol

By shifting mask management from the parameter level ($M$) to the seed level, SASH reduces the server's primary computational burden to $O(M + N^2)$.

Performance and Scalability

The authors evaluated SASH against SecAgg across various models (CNN, ResNet18, LSTM) and synthetic datasets.

Key Results

  • Efficiency: SASH achieves up to a 20x speedup over SecAgg in scenarios with high dropout rates (e.g., 30%).
  • Scalability: As shown in the experimental results, SASH's running time grows linearly with the number of parameters and significantly slower than SecAgg as the number of clients increases.
  • Robustness: Unlike SecAgg, which requires intensive computation to handle dropouts, SASH remains highly efficient because a dropout simply changes the terms in the seed sum.
  • Accuracy: Despite the "approximate" nature of the SHPRG (which introduces minor noise $\in \{-1, 0, 1\}$), the protocol maintains the same model accuracy as standard FedAvg, as deep learning models are naturally noise-tolerant.
Performance comparison of SASH vs. SecAgg across model parameters (M), number of clients (N), and dropout fraction (d).

Conclusion and Future Work

SASH represents a significant step forward in making secure aggregation practical for large-scale Federated Learning. By leveraging seed homomorphic PRGs, it eliminates the quadratic bottleneck associated with pairwise masking and provides natural resilience to client dropouts. Future research directions include extending the protocol to handle malicious (Byzantine) clients and exploring its application in cross-silo FL environments where high precision might be required.

Summary updated

BibTeX
@misc{liu2021efficient,
  author = {Zizhen Liu and Si Chen and Jing Ye and Junfeng Fan and Huawei Li and Xiaowei Li},
  title = {{Efficient Secure Aggregation Based on SHPRG For Federated Learning}},
  year = {2021},
  eprint = {2111.12321},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.12321},
}
Figure