Towards Efficient and Certified Recovery from Poisoning Attacks in Federated Learning

Yu Jiang, Jiyuan Shen, Ziyao Liu, Chee Wei Tan, Kwok-Yan Lam · OpenReview

Abstract

Federated learning (FL) is vulnerable to poisoning attacks, where malicious clients manipulate their updates to affect the global model. Although various methods exist for detecting those clients in FL, identifying malicious clients requires sufficient model updates, and hence by the time malicious clients are detected, FL models have been already poisoned. Thus, a method is needed to recover an accurate global model after malicious clients are identified. Current recovery methods rely on (i) all historical information from participating FL clients and (ii) the initial model unaffected by the malicious clients, leading to a high demand for storage and computational resources. In this paper, we show that highly effective recovery can still be achieved based on (i) selective historical information rather than all historical information and (ii) a historical model that has not been significantly affected by malicious clients rather than the initial model. In this scenario, while maintaining comparable recovery performance, we can accelerate the recovery speed and decrease memory consumption. Following this concept, we introduce Crab, an efficient and certified recovery method, which relies on selective information storage and adaptive model rollback. Theoretically, we demonstrate that the difference between the global model recovered by Crab and the one recovered by train-from-scratch can be bounded under certain assumptions. Our empirical evaluation, conducted across three datasets over multiple machine learning models, and a variety of untargeted and targeted poisoning attacks reveals that Crab is both accurate and efficient, and consistently outperforms previous approaches in terms of both recovery speed and memory consumption.

Introduction

Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models across decentralized data sources while preserving privacy. However, its distributed nature makes it susceptible to poisoning attacks. Malicious participants can submit deceptive model updates to either degrade overall performance (untargeted attacks) or introduce specific backdoors (targeted attacks).

The primary challenge in securing FL is not just detection, but recovery. By the time a malicious actor is identified, the global model has typically already been compromised. Existing recovery strategies, such as retraining from scratch or storing every historical update, are prohibitively expensive in terms of time, computation, and storage. This paper introduces Crab (Certified Recovery from poisoning Attack), a framework designed to provide efficient and mathematically certified recovery by optimizing how historical data is stored and utilized.

The Crab Framework

Crab addresses the "recovery tax" through two primary innovations: selective information storage and adaptive model rollback.

Selective Information Storage

Instead of hoarding every update from every client in every round, Crab identifies and stores only the most critical information. This is achieved through two selection mechanisms:

  1. Round Selection: Using Kullback-Leibler (KL) divergence, the server identifies rounds where the model state changed significantly. If a round contributes little to the model's evolution, its state is not saved.
  2. Client Selection: Within the selected rounds, cosine similarity is used to identify "high-contribution" clients—those whose updates most closely align with the global model's progress. Only updates from these influential clients are stored.

Adaptive Model Rollback

Traditional recovery often reverts to the initial model state ($M_0$), losing all training progress. Crab utilizes sensitivity analysis to find the most recent historical model that remains relatively untainted by malicious updates. This "adaptive rollback" allows the recovery process to start from a much more advanced state, significantly reducing the time required to reach convergence.

System architecture of the Crab framework, contrasting standard Federated Learning with the Recovery Process.

Certified Recovery

A key contribution of Crab is its theoretical foundation. The authors provide a mathematical proof demonstrating that the divergence between a model recovered by Crab and one retrained from scratch is bounded. This certification ensures that the efficiency gains of the framework do not come at the cost of model integrity or reliability.

Experimental Evaluation

The framework was rigorously tested using three benchmark datasets: MNIST, Fashion-MNIST, and CIFAR-10. The evaluation covered both untargeted (Trim) and targeted (Backdoor) attacks, with malicious client ratios ranging from 10% to 50%.

Key Results

  • Efficiency: Crab demonstrated superior storage and speed. On the MNIST dataset, Crab achieved a recovery speed of 0.68 seconds per round, compared to 1.47 seconds for retraining and 2.67 seconds for FedRecover.
  • Accuracy Restoration: Even under a heavy attack (50% malicious clients), Crab restored MNIST accuracy to 88.11%, nearing the 93.28% baseline of a clean retrained model.
  • Backdoor Mitigation: In targeted attack scenarios, Crab successfully reduced the Backdoor Attack Success Rate (ASR) from nearly 100% to approximately 10%, effectively neutralizing the malicious triggers.
Comparison of loss convergence for Crab, Retrain, FedRecover, and FedEraser across MNIST, Fashion-MNIST, and CIFAR10 datasets.

Conclusion

Crab represents a significant step forward in making Federated Learning resilient to poisoning. By leveraging the "80/20 rule" of model updates—where a minority of updates drive the majority of learning—Crab slashes the resource requirements for recovery. While it introduces new hyperparameters like the sensitivity threshold, its ability to provide certified, high-speed recovery makes it a robust solution for real-world FL deployments. Future work may focus on automating hyperparameter tuning and extending these recovery principles to fully decentralized, peer-to-peer learning environments.

Summary updated

Abstract

Federated learning (FL) is vulnerable to poisoning attacks, where malicious clients manipulate their updates to affect the global model. Although various methods exist for detecting those clients in FL, identifying malicious clients requires sufficient model updates, and hence by the time malicious clients are detected, FL models have been already poisoned. Thus, a method is needed to recover an accurate global model after malicious clients are identified. Current recovery methods rely on (i) all historical information from participating FL clients and (ii) the initial model unaffected by the malicious clients, leading to a high demand for storage and computational resources. In this paper, we show that highly effective recovery can still be achieved based on (i) selective historical information rather than all historical information and (ii) a historical model that has not been significantly affected by malicious clients rather than the initial model. In this scenario, while maintaining comparable recovery performance, we can accelerate the recovery speed and decrease memory consumption. Following this concept, we introduce Crab, an efficient and certified recovery method, which relies on selective information storage and adaptive model rollback. Theoretically, we demonstrate that the difference between the global model recovered by Crab and the one recovered by train-from-scratch can be bounded under certain assumptions. Our empirical evaluation, conducted across three datasets over multiple machine learning models, and a variety of untargeted and targeted poisoning attacks reveals that Crab is both accurate and efficient, and consistently outperforms previous approaches in terms of both recovery speed and memory consumption.
BibTeX
@article{jiang2025towards,
  author = {Yu Jiang and Jiyuan Shen and Ziyao Liu and Chee Wei Tan and Kwok-Yan Lam},
  title = {{Towards Efficient and Certified Recovery from Poisoning Attacks in Federated Learning}},
  journal = {IEEE Transactions on Information Forensics and Security},
  year = {2025},
  url = {https://openreview.net/forum?id=sVrJ8Hm4Kf},
}
Figure