Federated Learning Lab

Train models on distributed data without moving it: try FedAvg, FedProx and SCAFFOLD in a simulator that really computes in your browser, with privacy, medical applications, projects and quizzes.

14interactive experiments

Poisoning and backdoor attacks

Privacy and Security · Privacy and security

The idea

Malicious clients send updates crafted to corrupt the global model (untargeted poisoning) or to plant a hidden behavior triggered by a pattern (backdoor) (Sun et al., 2019).

The risk

Since the server does not see data, a malicious client is hard to detect; real non-IID data is hard to tell from poisoning.

How it works

The simulator supports label flipping, sign flipping, update boosting and a digit backdoor. The “poisoning” experiment compares aggregation rules under a fraction of attackers.

Defenses

  • Robust aggregation (median, trimmed mean, Krum)
  • Norm clipping and weak noise (Sun et al., 2019)
  • Outlier detection

Limits

Results concern a small model and simple attacks; an adaptive attacker may bypass every defense here.

Related experiments

References

  1. Sun, Kairouz, Suresh, McMahan (2019). Can You Really Backdoor Federated Learning?. arXiv:1911.07963 (preprint). Link
  2. Blanchard, El Mhamdi, Guerraoui, Stainer (2017). Machine Learning with Adversaries: Byzantine Tolerant Gradient Descent. NeurIPS 2017. Link