Introduction
Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models on decentralized data. By allowing a central server to aggregate model updates from thousands of user devices (clients) without accessing raw data, FL provides a baseline for privacy. However, individual model updates can still leak sensitive information about a client's local dataset. Secure Aggregation (SecAgg) protocols address this by ensuring the server only learns the aggregate sum of all updates, effectively masking individual contributions.
Despite their benefits, existing state-of-the-art SecAgg protocols (such as BBGLR) face significant performance bottlenecks in real-world deployments. These protocols are typically designed for "one-shot" summation, whereas FL requires hundreds or thousands of training rounds. In these systems, handling client dropouts—devices going offline mid-round—requires a complex setup phase for every single round. This leads to high latency, as the server must wait for multiple round-trips from geodistributed, often slow, mobile devices. Flamingo is designed to overcome these limitations by providing a high-performance SecAgg system optimized for the multi-round nature of FL.
Methodology
Flamingo shifts the SecAgg paradigm from a "per-round setup" to a "one-time setup," utilizing three core technical innovations to reduce latency and communication overhead.
1. Lightweight Dropout Resilience
Traditional protocols often require every client to share secret "shards" with neighbors to recover from dropouts. Flamingo instead employs threshold decryption. Clients encrypt their masks using a system-wide public key. A small, randomly selected subset of stable clients, designated as decryptors, assists the server in removing the masks of dropped-out clients. This mechanism significantly reduces the number of interactions required from the general client pool, allowing the server to proceed as soon as a sufficient number of inputs are received.
2. Reusable Secrets
To avoid the overhead of a fresh security handshake every round, Flamingo utilizes long-term pairwise secrets between clients. To maintain privacy across multiple rounds, clients apply a Pseudo-Random Function (PRF) to these long-term secrets. This process derives fresh, unique masks for every training round from the initial handshake, enabling the security setup to be performed only once at the beginning of the training session.
3. Per-Round Graph Generation
To maintain communication efficiency, clients mask their inputs only with a small "neighborhood" of other clients rather than the entire pool. Flamingo introduces a method for clients to unilaterally determine their neighbors for each round. By using a shared random seed and a PRF, clients can calculate their position in the communication graph without requiring the server to coordinate a new graph for every round.
Experimental Evaluation
The authors evaluated Flamingo using two standard computer vision benchmarks in a simulated federated environment:
- (Extended) MNIST: A dataset of handwritten digits and letters comprising approximately 340,000 training samples.
- CIFAR-100: A complex dataset of images across 100 classes, requiring large model weight vectors (500,000 entries).
Performance Results
Flamingo demonstrates substantial improvements in training speed and scalability:
- Speedup: For a 10-round summation task, Flamingo is 3x faster than the BBGLR protocol. In a full training session on EMNIST, Flamingo reached convergence in 40 minutes, compared to 3.5 hours for BBGLR—a 5.5x improvement.
- Scalability: The system successfully handled high-dimensional vectors (up to 500,000 entries) and thousands of clients. The results indicate that the overhead of added ciphertexts is negligible compared to the benefits of reduced network round-trips.
- Accuracy: Flamingo achieves the exact same model accuracy as non-private federated learning systems, ensuring that privacy does not come at the cost of model quality.
Discussion and Insights
A key insight from the Flamingo evaluation is that in geodistributed systems, latency is the primary bottleneck. By reducing the protocol to essentially one interaction per client per round, Flamingo bypasses the "long tail" of slow device responses that typically plague multi-round protocols.
Furthermore, Flamingo improves data quality. Because the protocol requires clients to communicate only once per round, it is less likely to exclude "weak" devices with slow or intermittent connections. This leads to a more representative and less biased trained model compared to protocols that require multiple rounds of synchronization.
Limitations and Future Work
While Flamingo represents a significant step forward, several areas for future research remain:
- Adversarial Models: The current security proof assumes a static adversary. Future work is needed to formally account for adaptive adversaries who might corrupt clients mid-session based on observed traffic.
- Dynamic Client Pools: Flamingo currently assumes a fixed set of $N$ clients known at the start. Supporting "dynamic joins," where new users enter the system during a multi-day training session, remains a challenge.
- Model Poisoning: Flamingo protects privacy but does not inherently prevent malicious clients from sending fake updates to ruin the model. Integrating computationally efficient zero-knowledge proofs for input validation is a promising next step.
Summary updated