SecureAFL: Secure Asynchronous Federated Learning

Anjun Gao, Feng Wang, Zhenglin Wan, Yueyang Quan, Zhuqing Liu, Minghong Fang

TL;DR

SecureAFL is a novel defense framework that protects asynchronous federated learning (FL) from malicious poisoning attacks without requiring a trusted server-side dataset. By combining Lipschitz-based filtering, L-BFGS-driven update estimation for missing clients, and robust median aggregation, it maintains high model accuracy and thwarts advanced attacks even under severe network delays and data heterogeneity.

What Problem Does This Paper Address?

Federated Learning (FL) allows multiple clients to collaboratively train a machine learning model without sharing their raw, private data. Traditional FL is synchronous: the server waits for updates from a large batch of clients before updating the global model. This creates a massive bottleneck known as the "straggler problem," where slow networks or weak hardware delay the entire system.

Asynchronous FL solves this by updating the global model immediately whenever any single client submits an update. While highly efficient, its decentralized, one-at-a-time nature makes it incredibly vulnerable to poisoning attacks, where malicious actors upload corrupted gradients to degrade model accuracy or inject backdoors. Existing defenses either fail against sophisticated attacks or rely on an unrealistic assumption: that the central server has access to a clean, auxiliary "trusted dataset" to validate incoming updates. SecureAFL eliminates this assumption, providing robust defense using only historical training data.

Methods

SecureAFL secures asynchronous FL through a three-step pipeline executed entirely on the server side:

  1. Local Model Updates Filtering: To catch anomalous or malicious updates, the server tracks the evolution of each client's submissions over time. It calculates a Lipschitz factor to measure the smoothness of the incoming update against the client's historical baseline. If an update exhibits an abrupt deviation that exceeds a percentile-based threshold, it is flagged and discarded.
  2. Local Model Updates Estimation: In an asynchronous setup, aggregating a single client's update can bias the model. SecureAFL compensates for partial participation by estimating what the other $n-1$ non-reporting clients would have submitted. It uses the Cauchy mean value theorem and leverages the memory-efficient L-BFGS algorithm to approximate Hessian-vector products, avoiding computationally expensive explicit Hessian matrix calculations.
  3. Local Model Updates Aggregation: Finally, the server combines the received update (if it passed the filter) with the $n-1$ estimated updates. Instead of a simple average, it applies a Byzantine-robust aggregation rule—specifically, the coordinate-wise median—to neutralize any remaining adversarial influence.
Table 2: Comparison of Synchronous FL, Semi-asynchronous FL, and Asynchronous FL.

Datasets

The authors evaluated SecureAFL across five distinct datasets spanning different domains:

  • Fashion-MNIST, CIFAR-10, CIFAR-100, and Tiny-ImageNet: Standard benchmarks used for image classification tasks, simulated under challenging non-IID (heterogeneous) data distributions.
  • Udacity: A real-world autonomous driving dataset used for regression tasks, where the model predicts a vehicle's steering angle based on onboard camera images.

Key Insights and Ideas

  • History as a Proxy for Trust: Rather than relying on an external, clean dataset to validate gradients (which is rarely available in practice), SecureAFL treats a client's own historical trajectory as its benchmark for "normal" behavior.
  • Enabling Batch Defenses in a Single-Update World: Byzantine-robust aggregation rules like the coordinate-wise median typically require a batch of simultaneous updates to work. By continuously estimating the states of missing clients, SecureAFL mathematically reconstructs a "batch" at every single round, unlocking these powerful synchronous defenses for asynchronous architectures.
  • Computational Efficiency via L-BFGS: Estimating updates for dozens or hundreds of clients every round could easily overwhelm a server. Approximating the integrated Hessian matrix using L-BFGS keeps the computational complexity linear ($O(n\epsilon d)$), making it highly practical for real-world engineering pipelines.

Key Results

SecureAFL was thoroughly tested against 10 different poisoning attacks (5 untargeted, 5 targeted/backdoor, and 1 adaptive attack) and compared against 7 recent asynchronous FL baselines.

  • Benign Settings: When no attack is present, SecureAFL introduces no performance penalties, matching the accuracy of standard AsyncSGD (e.g., achieving a testing error rate of 0.23 on CIFAR-10).
  • Resilience to Poisoning: Under severe untargeted attacks like Gaussian noise on the CIFAR-10 dataset, SecureAFL limited the testing error rate (TER) to 0.30, whereas standard AsyncSGD and defenses like BASGD collapsed to an error rate of 0.80+.
  • Thwarting Backdoors: For targeted backdoor attacks (such as 3DFed or Neurotoxin), SecureAFL consistently suppressed the Attack Success Rate (ASR) to near-zero levels (often below 0.05) while maintaining low testing error rates across all image datasets.

The framework's robust performance on the CIFAR-10 dataset across various attacks is detailed below:

Quantitative performance (Testing Error Rate / Attack Success Rate) on the CIFAR-10 dataset under 10 different poisoning attacks.

Limitations and Future Work

  • Privacy Trade-offs: Because the server reconstructs missing client updates based on their historical trajectories, it implicitly infers how a client's local objective function changes over time. While this data is never shared externally, it slightly expands the server's inference capabilities under an "honest-but-curious" server threat model.
  • Resource Overhead: Storing historical buffers and running L-BFGS approximations introduces modest server-side storage and computational costs. While it scales linearly, it is still heavier than vanilla, undefended asynchronous SGD.
  • Future Directions: The authors note that future iterations could integrate standard privacy-preserving mechanisms—such as differential privacy (noise injection) or secure multi-party computation—directly into the estimation step to mitigate potential information leakage to the server.

Summary updated

BibTeX
@inproceedings{gao2026secureafl,
  author = {Anjun Gao and Feng Wang and Zhenglin Wan and Yueyang Quan and Zhuqing Liu and Minghong Fang},
  title = {{SecureAFL: Secure Asynchronous Federated Learning}},
  booktitle = {AsiaCCS},
  year = {2026},
  doi = {10.1145/3779208.3807486},
}
Figure