FLIP: A Provable Defense Framework for Backdoor Mitigation in Federated Learning

Kaiyuan Zhang, Guanhong Tao, Qiuling Xu, Siyuan Cheng, Shengwei An, Yingqi Liu, Shiwei Feng, Guangyu Shen, Pin-Yu Chen, Shiqing Ma, Xiangyu Zhang

Introduction

FLIP (Federated LearnIng Provable defense) is a new framework designed to protect Federated Learning (FL) systems from backdoor attacks. Instead of relying solely on the central server to filter out malicious updates, FLIP "hardens" benign clients. By combining reverse-engineered trigger detection with adversarial training, FLIP provides the first theoretical guarantee that a defense can significantly reduce attack success rates without sacrificing the model's accuracy on clean data.

The Threat of Backdoor Attacks in FL

Federated Learning allows multiple parties to train a global model collaboratively without sharing raw data. However, this decentralization introduces vulnerabilities. Malicious participants can execute backdoor attacks by "poisoning" their local training data. Consequently, the final global model learns to misclassify any input containing a specific trigger (e.g., a small pixel pattern) into a target label, such as seeing a "Stop" sign with a sticker and classifying it as a "Speed Limit" sign.

Existing defenses typically operate at the central server, attempting to detect and reject suspicious model updates. Unfortunately, these methods often fail against continuous attacks, where adversaries participate over many training rounds, stealthily injecting the backdoor. Furthermore, many current defenses require the server to hold a "root" set of clean data, which undermines the fundamental privacy goals of FL.

The FLIP Methodology

FLIP shifts the defensive burden from the server to the benign clients. The framework operates in three primary stages:

  1. Trigger Inversion: Benign clients use optimization techniques to reverse-engineer potential backdoor triggers. They search for the smallest possible input pattern that could force a set of images to be misclassified into a different class.
  2. Model Hardening (Adversarial Training): Once a candidate trigger is identified, clients perform adversarial training. They stamp their clean local data with the "guessed" trigger but retain the original correct labels. This process teaches the model to ignore the trigger and focus on legitimate image features.
  3. Low-Confidence Sample Rejection: Because the hardening process makes the model uncertain when faced with backdoor triggers, poisoned inputs yield low-confidence predictions during inference. FLIP applies a threshold to reject these low-confidence samples.
Overview of the FLIP framework

To make this computationally feasible for edge devices, FLIP employs a Cached Warm-up strategy. This prioritizes "promising" pairs of classes most likely to be targeted, significantly reducing the search space for triggers.

Key Insights and Theoretical Guarantees

  • Offense as Defense: The most robust way to mitigate a backdoor is to make the model inherently immune to the trigger. By having benign clients proactively train against potential triggers, the global model naturally resists poisoning.
  • Provable Robustness: Unlike many empirical security defenses, FLIP provides a provable condition. The authors demonstrate mathematically that if the reverse-engineered trigger is sufficiently close to the actual trigger, the loss on backdoored samples will inevitably rise, forcing the Attack Success Rate (ASR) to drop.

Experimental Results

The authors evaluated FLIP using three standard computer vision benchmarks (MNIST, Fashion-MNIST, and CIFAR-10) in a non-i.i.d. setting to mimic real-world data distributions. FLIP was compared against nine state-of-the-art (SOTA) defenses, including Krum, FLTrust, and FoolsGold.

Continuous Attack Resilience: Most SOTA defenses are designed for "single-shot" attacks and fail dramatically against continuous poisoning. In the most challenging continuous attack scenarios, existing defenses often suffered an ASR of nearly 100%. FLIP successfully slashed the ASR down to approximately 22% on CIFAR-10 and under 2% on MNIST.

Performance of FLIP vs baselines under continuous attacks

Accuracy Trade-off: While robust defenses often degrade the model's performance on its main task, FLIP maintained high clean accuracy, typically staying within 2-5% of a standard, undefended model. Furthermore, FLIP remained effective even against adaptive attackers designed specifically to bypass the defense.

Limitations and Future Work

  • Computational Cost: Trigger inversion requires additional client-side computation. Despite the Cached Warm-up strategy, this may still be burdensome for low-power IoT devices.
  • Static vs. Dynamic Backdoors: The current framework focuses on static "patch" backdoors. Defending against dynamic backdoors—where triggers change or rely on complex semantic features—remains an open challenge.
  • Scaling to Massive Models: While empirical results on ResNet-18 were strong, extending the full theoretical framework from simpler architectures to massive models like Transformers is a frontier for future research.

Summary updated

BibTeX
@inproceedings{zhang2023flip,
  author = {Kaiyuan Zhang and Guanhong Tao and Qiuling Xu and Siyuan Cheng and Shengwei An and Yingqi Liu and Shiwei Feng and Guangyu Shen and Pin-Yu Chen and Shiqing Ma and Xiangyu Zhang},
  title = {{FLIP: A Provable Defense Framework for Backdoor Mitigation in Federated Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=Xo2E217_M4n},
}
Figure