Setup Once, Secure Always: A Single-Setup Secure Federated Learning Aggregation Protocol with Forward and Backward Secrecy for Dynamic Users

Nazatul Haque Sultan, Yan Bo, Yansong Gao, Seyit Camtepe, Arash Mahboubi, Hang Thanh Bui, Aufeef Chauhan, Hamed Aboutorab, Michael Bewong, Praveen Gauravaram, Dineshkumar Singh, Md. Rafiqul Islam, Sharif Abuadbba

TL;DR

The authors introduce a highly efficient secure aggregation protocol for Federated Learning (FL) that requires only a single cryptographic setup phase. Unlike existing single-setup methods, it guarantees forward and backward secrecy and allows users to dynamically join or leave mid-training. By leveraging lightweight homomorphic encryption and intermediate edge servers, the protocol slashes user-side computation by up to 99% compared to state-of-the-art baselines.

What Problem Does This Paper Address?

Federated Learning allows multiple devices (like smartphones or hospital servers) to collaboratively train a machine learning model without sharing their raw, sensitive data. However, the model updates (gradients) they send to the central server can still be reverse-engineered to leak private information.

To prevent this, systems use secure aggregation, which masks individual updates so the server only sees the final, summed-up global model. Older protocols required a heavy cryptographic setup phase every single training round, which is painfully slow. Newer "single-setup" protocols (like Flamingo or e-SeaFL) fixed the speed issue by establishing long-term secret keys once at the start.

But this introduces a massive security flaw: they lack Forward Secrecy (FS) and Backward Secrecy (BS). If a device's long-term key is compromised by malware on day 10 of training, the attacker can retroactively unmask all updates from days 1-9 (breaking FS) and proactively unmask future updates (breaking BS). Furthermore, these protocols lock in the user pool at the start, meaning new devices can't easily join the training later. This paper aims to build a single-setup protocol that is fast, supports dynamic users, and guarantees FS and BS.

Methods

The authors propose a novel architecture that shifts away from long-term shared secrets and complex user-to-user communication.

  • Symmetric Homomorphic Encryption with Key Negation: Instead of using long-term seeds and Pseudo-Random Functions (PRFs) to generate masks, users generate fresh, random masks (one-time pads) every round. These masks are mathematically structured as a directed cycle (key negation) so that when all masked models are added together, the random noise perfectly cancels out, leaving only the true aggregated model.
  • Intermediate Servers: To avoid the nightmare of users having to coordinate keys with each other (which breaks if a user drops offline), the protocol introduces a layer of intermediate servers (e.g., edge or fog nodes). Users send their masked updates to these servers, which partially aggregate them before passing them to the central aggregator.
  • MACs for Model Verification: To prevent a malicious central server from sending different versions of the global model to different users to trick them into revealing data (a "model inconsistency attack"), the protocol uses lightweight Message Authentication Codes (MACs). Users cross-check these MACs to ensure everyone received the exact same global model.

Datasets

  • MNIST (handwritten digits) and CIFAR-10 (images) were used to evaluate the real-world learning accuracy of the protocol using a LeNet-5 architecture.
  • Simulated Random Data Vectors (ranging from 16K to 64K elements) were used to benchmark the raw computational speed and scalability of the cryptographic operations.

Key Insights and Ideas

  • Fresh Randomness Beats PRFs: By ditching long-term seeds and PRFs in favor of simple, fresh random masks per round, the protocol achieves forward and backward secrecy. Surprisingly, because generating random numbers is computationally cheaper than evaluating PRFs for every parameter in a massive neural network, this actually speeds up the process.
  • Decoupling Users Enables Dynamism: Introducing intermediate servers breaks the need for direct user-to-user communication. This is the secret sauce that allows dynamic participation—users can drop in and out of the training process at any round without breaking the cryptographic web or requiring a system reboot.
  • Security vs. Efficiency Trade-off is a Myth Here: Usually, adding forward/backward secrecy adds massive overhead. By shifting to modular arithmetic and key negation, the authors managed to make the protocol strictly more secure and orders of magnitude faster than the state-of-the-art.

Key Results

  • Massive Speedups: User-side computation time is reduced by ~99% compared to the state-of-the-art e-SeaFL protocol. For example, processing a 48K vector took e-SeaFL ~194 million microseconds per user, while this new protocol took just ~6,140 microseconds.
  • Server Efficiency: Intermediate server computation was reduced by 600x to 2100x, and central aggregator computation by 300x to 580x in semi-honest settings.
  • Accuracy: The protocol maintains competitive accuracy (89.9% on MNIST, 38% on CIFAR-10). There is a very minor drop compared to standard, non-secure Federated Averaging (FedAvg) because floating-point weights must be encoded as integers for the cryptographic masking to work, leading to a slight loss of precision.

Limitations and Future Work

  • Always-Online Intermediaries: The protocol currently assumes that the intermediate servers remain online and stable throughout the entire training process. In messy, real-world edge networks (like ad-hoc IoT deployments), this assumption might not hold.
  • Future Directions: The authors plan to extend the protocol to handle dynamic intermediate servers (allowing edge nodes to drop out or join, just like users). They also intend to deploy the system on physical IoT testbeds to measure real-world communication latency and bandwidth overhead under practical network conditions.

Summary updated

BibTeX
@inproceedings{sultan2026setup,
  author = {Nazatul Haque Sultan and Yan Bo and Yansong Gao and Seyit Camtepe and Arash Mahboubi and Hang Thanh Bui and Aufeef Chauhan and Hamed Aboutorab and Michael Bewong and Praveen Gauravaram and Dineshkumar Singh and Md. Rafiqul Islam and Sharif Abuadbba},
  title = {{Setup Once, Secure Always: A Single-Setup Secure Federated Learning Aggregation Protocol with Forward and Backward Secrecy for Dynamic Users}},
  booktitle = {AsiaCCS},
  year = {2026},
  doi = {10.1145/3779208.3785414},
}
Figure