FLDetector: Defending Federated Learning Against Model Poisoning Attacks via Detecting Malicious Clients

Zaixi Zhang, Xiaoyu Cao, Jinyuan Jia, Neil Zhenqiang Gong
7/19/2022
450 citations
cs.CRcs.AI
federated

Official code: zaixizhang/FLDetector (87 stars, Python, last commit 2023-02-23).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

The official code of KDD22 paper "FLDetecotor: Defending Federated Learning Against Model Poisoning Attacks via Detecting Malicious Clients"

8719PythonJul 18, 20223 years ago
adversarial-attacksanomaly-detectionfederated-learning

Similar Papers

Cite this paper

@article{zhang2022fldetector,
  title  = {FLDetector: Defending Federated Learning Against Model Poisoning Attacks via Detecting Malicious Clients},
  author = {Zaixi Zhang and Xiaoyu Cao and Jinyuan Jia and Neil Zhenqiang Gong},
  year   = {2022},
  eprint = {2207.09209},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.09209v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2207.09209.svg)](https://codeofpaper.com/paper/2207.09209)

Discussion