Skip to main content
QUICK REVIEW

[Paper Review] FLDetector: Defending Federated Learning Against Model Poisoning Attacks via Detecting Malicious Clients

Zaixi Zhang, Xiaoyu Cao|arXiv (Cornell University)|Jul 19, 2022
HIV, Drug Use, Sexual RiskMedicine10 citations
TL;DR

FLDetector defends federated learning against model poisoning by detecting malicious clients through inconsistency in their model updates across iterations. By predicting expected updates using historical data and flagging deviations via the Cauchy mean value theorem and L-BFGS optimization, FLDetector achieves high detection accuracy, enabling robust FL methods to learn accurate global models even under large-scale attacks.

ABSTRACT

Federated learning (FL) is vulnerable to model poisoning attacks, in which malicious clients corrupt the global model via sending manipulated model updates to the server. Existing defenses mainly rely on Byzantine-robust FL methods, which aim to learn an accurate global model even if some clients are malicious. However, they can only resist a small number of malicious clients in practice. It is still an open challenge how to defend against model poisoning attacks with a large number of malicious clients. Our FLDetector addresses this challenge via detecting malicious clients. FLDetector aims to detect and remove the majority of the malicious clients such that a Byzantine-robust FL method can learn an accurate global model using the remaining clients. Our key observation is that, in model poisoning attacks, the model updates from a client in multiple iterations are inconsistent. Therefore, FLDetector detects malicious clients via checking their model-updates consistency. Roughly speaking, the server predicts a client's model update in each iteration based on its historical model updates using the Cauchy mean value theorem and L-BFGS, and flags a client as malicious if the received model update from the client and the predicted model update are inconsistent in multiple iterations. Our extensive experiments on three benchmark datasets show that FLDetector can accurately detect malicious clients in multiple state-of-the-art model poisoning attacks. After removing the detected malicious clients, existing Byzantine-robust FL methods can learn accurate global models.Our code is available at https://github.com/zaixizhang/FLDetector.

Motivation & Objective

  • To address the open challenge of defending federated learning against model poisoning attacks when a large number of clients are malicious.
  • To detect malicious clients without relying on a clean validation dataset, which is often unavailable in real-world FL settings.
  • To improve the effectiveness of Byzantine-robust and provably robust FL methods by removing malicious clients before global model aggregation.
  • To develop a detection mechanism that is robust to adaptive attacks and hyperparameter variations.
  • To enable accurate global model learning even under high non-iid data distribution and large numbers of malicious clients.

Proposed method

  • FLDetector monitors model updates from each client across multiple training iterations to assess consistency.
  • It predicts a client’s expected model update in each iteration using historical updates via an L-BFGS-based optimization process.
  • The method quantifies inconsistency between predicted and actual model updates using the Cauchy mean value theorem to compute suspicious scores.
  • Clients with consistently high suspicious scores across multiple iterations are flagged as malicious.
  • The server removes detected malicious clients before aggregation, allowing robust FL methods to learn a reliable global model.
  • The detection mechanism is designed to be resilient to adaptive attacks by minimizing false positives and maintaining stability under varying hyperparameters.

Experimental results

Research questions

  • RQ1Can FLDetector accurately detect malicious clients in federated learning when a large number of clients are compromised?
  • RQ2How effective is FLDetector against adaptive model poisoning attacks that specifically target detection mechanisms?
  • RQ3Does FLDetector improve the performance of Byzantine-robust FL methods when malicious clients are removed?
  • RQ4How sensitive is FLDetector to hyperparameters such as window size and sampling rate?
  • RQ5How does data non-iid distribution affect the detection accuracy of FLDetector?

Key findings

  • FLDetector achieves a detection accuracy of over 95% on CIFAR10, ImageNet, and Fashion-MNIST under multiple state-of-the-art model poisoning attacks.
  • In the A Little is Enough Attack, FLDetector detects 26 out of 28 malicious clients, reducing the attack success rate to 7.1%.
  • Even when the number of malicious clients exceeds the theoretical tolerance of Krum (e.g., >30 clients), FLDetector enables robust FL methods to learn accurate global models.
  • FLDetector maintains high detection accuracy (DACC > 90%) even when the data distribution is highly non-iid (degree of non-iid > 0.5).
  • The method is robust to hyperparameters: detection accuracy remains stable across different window sizes (N) and sampling rates (B), with optimal performance at N=10 and B=20.
  • After removing detected malicious clients, the global model’s test accuracy (TACC) remains comparable or superior to models trained without detection, while the attack success rate (ASR) drops significantly.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.