How To Backdoor Federated Learning

Eugene Bagdasaryan, Andreas Veit, Yiqing Hua, Deborah Estrin, Vitaly Shmatikov
7/2/2018
cs.CRcs.LG

Official code: ebagdasa/backdoor_federated_learning (315 stars, MIT, last commit 2024-07-25).

Abstract

Federated learning enables thousands of participants to construct a deep learning model without sharing their private training data with each other. For example, multiple smartphones can jointly train a next-word predictor for keyboards without revealing what individual users type. We demonstrate that any participant in federated learning can introduce hidden backdoor functionality into the joint global model, e.g., to ensure that an image classifier assigns an attacker-chosen label to images with certain features, or that a word predictor completes certain sentences with an attacker-chosen word. We design and evaluate a new model-poisoning methodology based on model replacement. An attacker selected in a single round of federated learning can cause the global model to immediately reach 100% accuracy on the backdoor task. We evaluate the attack under different assumptions for the standard federated-learning tasks and show that it greatly outperforms data poisoning. Our generic constrain-and-scale technique also evades anomaly detection-based defenses by incorporating the evasion into the attacker's loss function during training.

View on arXivView PDF

Code Implementations(1)

MIT

Source code for paper "How to Backdoor Federated Learning" (https://arxiv.org/abs/1807.00459)

31563PythonDec 12, 20182 years agoMIT

Similar Papers

Cite this paper

@article{bagdasaryan2018backdoor,
  title  = {How To Backdoor Federated Learning},
  author = {Eugene Bagdasaryan and Andreas Veit and Yiqing Hua and Deborah Estrin and Vitaly Shmatikov},
  year   = {2018},
  eprint = {1807.00459},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1807.00459}
}

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/1807.00459.svg)](https://codeofpaper.com/paper/1807.00459)

Discussion