Boosting Communication Efficiency of Federated Learning's Secure Aggregation

Niousha Nazemi, Omid Tavallaie, Shuaijun Chen, Albert Y. Zomaya, Ralph Holz

Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models across decentralized devices while keeping data localized. However, ensuring the privacy of these local updates against a potentially curious central server remains a significant challenge. Traditional secure aggregation methods, while effective, often impose prohibitive communication costs. Researchers from the University of Sydney and the University of Münster have recently introduced CESA (Communication-Efficient Secure Aggregation), a novel protocol designed to achieve robust privacy with significantly lower overhead.

The Challenge: Scalability in Secure Aggregation

In standard FL, a central server aggregates gradients from multiple clients. An "honest-but-curious" server might attempt "model inversion attacks" to reconstruct sensitive user data from these gradients. To prevent this, Google's SecAgg protocol employs "double masking," using a combination of individual random elements and secrets shared between every pair of clients.

While SecAgg provides high security, its complexity is its downfall. As the number of clients ($C$) increases, the communication and computation costs for the server grow quadratically ($O(C^2)$). This scaling behavior makes SecAgg impractical for large-scale deployments or resource-constrained mobile environments.

The CESA Protocol: Streamlining Privacy

CESA addresses these inefficiencies by simplifying the masking process into three distinct phases:

  1. Initialization: The server broadcasts the global model and public parameters. Each client generates a single public-private key pair.
  2. Shared Mask Generation: Unlike SecAgg, where every client must establish a secret with every other participant, CESA clients use modular arithmetic to identify exactly two partners. They then perform a standard Diffie-Hellman-style key exchange to create only two shared secrets.
  3. Training & Masking: After local training, clients mask their models by adding these two shared secrets. The protocol is structured such that if client A adds a secret shared with client B, client B subtracts it.
Comparison of communication topologies: SecAgg's dense connectivity (left) vs. CESA's sparse, efficient pairing (right).

When the server aggregates the masked models, these pairwise secrets mathematically cancel out, leaving the clean, aggregated global model. By eliminating individual random masks and the need to encrypt the masks themselves, CESA drastically reduces the data transfer requirements.

Key Insights: The Power of Two

The fundamental breakthrough of CESA is the realization that a full mesh of secrets is unnecessary. By arranging clients in a "ring-like" structure where each node only interacts with two neighbors, the protocol ensures that all masks cancel out during aggregation. This leads to complexity independence: the communication cost for the server remains constant regardless of network size, while the cost for each client is $O(1)$.

Performance and Scalability

The researchers evaluated CESA's communication complexity against SecAgg. The results highlight a stark contrast in scalability.

Communication overhead comparison between SecAgg and CESA across different network sizes (|C|) over 100 training rounds.

In SecAgg, the message count explodes as the network grows, reaching nearly 1 million messages for 100 clients over 100 rounds. In contrast, CESA's message count remains significantly lower and more predictable. For the server, the number of messages sent to clients remains constant, making it viable for networks with thousands of nodes.

Limitations and Future Directions

While CESA offers impressive efficiency, it is currently optimized for "stable networks." Because the cancellation of masks depends on specific pairs, client dropouts during a round can disrupt the aggregation process. It is best suited for environments with low latency and high reliability. Furthermore, the current protocol focuses on the "honest-but-curious" threat model; future iterations may address "active" malicious actors who might attempt to disrupt aggregation with malformed data. Finally, the pairing logic requires a minimum network size of 7 nodes to operate as intended.

Summary updated

BibTeX
@inproceedings{nazemi2024boosting,
  author = {Niousha Nazemi and Omid Tavallaie and Shuaijun Chen and Albert Y. Zomaya and Ralph Holz},
  title = {{Boosting Communication Efficiency of Federated Learning's Secure Aggregation}},
  booktitle = {DSN-S},
  year = {2024},
  doi = {10.1109/dsn-s60304.2024.00045},
}
Figure