Buffered Asynchronous Secure Aggregation for Cross-Device Federated Learning

Kun Wang, Yi-Rui Yang, Wu-Jun LiarXiv 2024 · DOI

Introduction

Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models on decentralized data while preserving user privacy. However, real-world deployments face two significant challenges: the "straggler problem" in synchronous systems and the risk of privacy leakage from individual model updates. Buffered Asynchronous Secure Aggregation (BASA) is a novel protocol designed to address these issues simultaneously. By integrating a server-side buffer with Attribute-Based Encryption (ABE), BASA enables robust privacy protections in an asynchronous environment, achieving significant training speedups without compromising security.

The Challenge of Asynchronous Privacy

Traditional FL often relies on synchronous updates, where a central server waits for a specific cohort of devices to complete training before updating the global model. This approach is highly susceptible to stragglers—devices with slow connections or limited processing power that delay the entire system.

While asynchronous FL mitigates the straggler problem by allowing devices to check in at their own pace, it introduces new privacy risks. Secure Aggregation (SA) protocols, which mask individual updates so the server only sees the aggregate sum, are typically designed for synchronous settings. These protocols require users to be online simultaneously to exchange masking keys, a requirement that fails in asynchronous scenarios. BASA bridges this gap by decoupling user identity from the aggregation process.

The BASA Protocol

The core of BASA is a "buffered" aggregation mechanism. Instead of updating the global model for every individual message, the server maintains a secure buffer of size $K$. The protocol utilizes two key technical innovations:

  1. Pairwise Masking: Users add random masks to their updates that are designed to be canceled out by subsequent users in the same buffer.
  2. Attribute-Based Encryption (ABE): To handle the uncertainty of which user will provide the canceling mask, BASA uses ABE. Masks are encrypted based on "attributes" corresponding to positions within the buffer (e.g., "the $i$-th user in the buffer") rather than specific user identities.
The BASA protocol flow: Users 1, 2, and 3 sequentially contribute masked updates and unmasking keys to a server-side buffer.

This design allows for a one-round communication pattern. Users download masks left by predecessors, add their own masked updates, and upload the necessary keys for the next user, all in a single interaction with the server. This eliminates the need for multiple back-and-forth rounds, significantly reducing communication overhead.

Experimental Evaluation

The researchers evaluated BASA against several benchmarks, including MNIST (hand-written digits), FEMNIST (federated extended MNIST), and CIFAR-10 (image classification). The experiments simulated up to 3,400 users with varying degrees of device heterogeneity and non-i.i.d. data distributions to reflect real-world conditions.

Results and Discussion

BASA demonstrates superior performance in heterogeneous environments. As shown in the experimental results, BASA consistently outperforms traditional synchronous Secure Aggregation (SecAgg) and other asynchronous variants like LightSecAgg (LSA) in terms of training time to reach target accuracy.

Comparison of training time (seconds) to reach target accuracy across different datasets and delay scales (beta).

Key findings include:

  • Efficiency Gains: BASA achieved up to a 4.7x speedup over synchronous methods in scenarios with high device heterogeneity.
  • Scalability: Unlike competing protocols that suffer from exponential overhead as the user base grows, BASA's computational costs remain relatively stable.
  • Privacy-Performance Balance: While BASA introduces some overhead compared to non-secure asynchronous learning (FedBuff), the cost is a justified trade-off for the robust privacy guarantees it provides.

Conclusion and Future Work

BASA represents a significant step forward in making secure federated learning practical for cross-device applications. By moving away from identity-dependent masking, it unlocks the efficiency of asynchronous learning while maintaining strong privacy protections. Future work will focus on expanding the threat model to account for malicious actors and optimizing the serial processing bottleneck at the server through parallel buffering strategies.

Summary updated

BibTeX
@misc{wang2024buffered,
  author = {Kun Wang and Yi-Rui Yang and Wu-Jun Li},
  title = {{Buffered Asynchronous Secure Aggregation for Cross-Device Federated Learning}},
  year = {2024},
  eprint = {2406.03516},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.03516},
}
Figure