Byzantine-robust Federated Learning through Spatial-temporal Analysis of Local Model Updates

Zhuohang Li, Luyang Liu, Jiaxin Zhang, Jian Liu

Introduction

Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models across decentralized devices while maintaining data privacy. However, the inability of the central server to inspect raw client data introduces a significant vulnerability: "Byzantine" clients. These participants can intentionally or accidentally send malicious model updates that derail the training process. This paper introduces STPA (Spatial-Temporal Pattern Analysis), a robust aggregation strategy designed to filter out these attackers and ensure model convergence even in highly dynamic environments.

The Challenge of Robust Aggregation

Standard aggregation methods, such as FedAvg, rely on simple averaging of client updates. A single malicious update can disproportionately influence the global model, preventing it from learning or causing it to converge to a poisoned state. While existing robust aggregators like Krum or Median provide some protection, they often fail in "cross-device" FL scenarios where client participation is unpredictable, or against sophisticated "stealthy" attacks like ALiE (A Little is Enough) that mimic benign behavior.

The STPA Framework

STPA addresses these challenges by analyzing model updates from two distinct perspectives: spatial geometry and temporal history.

1. Spatial Perspective: Clustering-based Detection

The authors observed that malicious updates often exhibit distinguishable geometric patterns in the parameter space. Even when attackers try to hide, the direction (cosine similarity) of their updates often betrays them compared to the consensus of benign clients.

Geometric separation of malicious and benign updates under Byzantine, Noisy, and Label-flipping attack scenarios.

At each round, the server calculates an affinity matrix based on the cosine similarity between all pairs of received updates. It then uses agglomerative clustering to group these updates. Assuming the majority of participants are benign, the server selects the largest cluster for aggregation and discards the outliers as potentially malicious.

2. Temporal Perspective: Momentum-based Speculation

To defend against attackers whose behavior evolves over time, STPA incorporates a temporal check. The server maintains an exponential moving average (momentum) of past gradients to "speculate" what a reasonable next step should look like. If the current aggregated update aligns well with this historical momentum, the learning rate remains high. If there is a significant disagreement, the server automatically reduces the learning rate or discards the update, preventing sudden perturbations from derailing the model.

Experimental Evaluation

The researchers evaluated STPA using four diverse datasets—MNIST, Fashion-MNIST, Spambase, and CIFAR-10—across both cross-silo (fixed clients) and cross-device (dynamic participation) scenarios.

Key Results

STPA demonstrated remarkable resilience compared to industry-standard baselines:

  • Label-Flipping Resilience: In scenarios with 34% malicious clients, STPA maintained a test error of approximately 1%, whereas popular baselines like Krum saw error rates spike to over 80%.
  • Stealthy Attack Defense: STPA was the only method to achieve stable convergence on the CIFAR-10 dataset when faced with the "A Little is Enough" (ALiE) attack.
  • Cross-Device Stability: The method provided significantly smoother convergence curves in dynamic settings where the set of participating clients changes every round.
Comparative test error rates under label-flipping attacks, highlighting STPA's stability and convergence.

Conclusion and Future Work

STPA offers a robust, identity-agnostic defense for Federated Learning. By treating every round as a fresh start and utilizing historical momentum as a shield, it remains compatible with privacy-enhancing technologies like secure shuffling.

Despite its strengths, STPA relies on the assumption that the majority of active clients in any given round are benign. Future research may focus on optimizing the computational overhead of pairwise similarity calculations for massive client populations and further refining hyperparameter tuning for extremely heterogeneous (non-IID) data environments.

Summary updated

Abstract

Federated Learning (FL) enables multiple distributed clients (e.g., mobile devices) to collaboratively train a centralized model while keeping the training data locally on the clients' devices. Compared to traditional centralized machine learning, FL offers many favorable features such as offloading operations which would usually be performed by a central server and reducing risks of serious privacy leakage. However, Byzantine clients that send incorrect or disruptive updates due to system failures or adversarial attacks may disturb the joint learning process, consequently degrading the performance of the resulting model. In this paper, we propose to mitigate these failures and attacks from a spatial-temporal perspective. Specifically, we use a clustering-based method to detect and exclude incorrect updates by leveraging their geometric properties in the parameter space. Moreover, to further handle malicious clients with time-varying behaviors, we propose to adaptively adjust the learning rate according to momentum-based update speculation. Extensive experiments on 4 public datasets demonstrate that our algorithm achieves enhanced robustness comparing to existing methods under both cross-silo and cross-device FL settings with faulty/malicious clients.
BibTeX
@inproceedings{li2021byzantine,
  author = {Zhuohang Li and Luyang Liu and Jiaxin Zhang and Jian Liu},
  title = {{Byzantine-robust Federated Learning through Spatial-temporal Analysis of Local Model Updates}},
  booktitle = {ICPADS},
  year = {2021},
  url = {https://openreview.net/forum?id=opQO9n4E_E},
}
Figure