Get Rid Of Your Trail: Remotely Erasing Backdoors in Federated Learning

Manaar Alam, Hithem Lamri, Michail ManiatakosarXiv 2023

TL;DR

While most security research focuses on how to inject backdoors into Federated Learning (FL) models, this paper explores the opposite: how attackers can cover their tracks. The authors propose a novel machine unlearning framework that allows adversaries to remotely erase injected backdoors once their goals are met, evading detection while keeping the model's primary performance intact.

What Problem Does This Paper Address?

Federated Learning allows multiple clients to collaboratively train a global model without sharing raw data, but this decentralized nature makes it highly vulnerable to backdoor attacks. However, persistent backdoors are a double-edged sword for attackers. If a central server detects a backdoor later on, it can analyze historical updates and penalize or ban the malicious client.

To remain truly stealthy, an attacker needs a way to cleanly remove the backdoor after achieving their objective. Standard machine unlearning techniques fail in this context because they cause "catastrophic forgetting" of legitimate features or create highly anomalous model updates that easily trigger server-side anomaly defenses.

Figure 1: Problem Landscape: A Federated Learning framework featuring a single compromised participant under the control of an adversary. The adversary is capable of

Methods

The authors repurpose machine unlearning—typically used as a defense or for data privacy compliance (like the "right to be forgotten")—into a tool for adversaries. To cleanly erase the backdoor without alerting the central server, they introduce two key strategies:

  1. Memory Preservation: The unlearning loss (driven by gradient ascent on the backdoor trigger set) is jointly optimized with a standard cross-entropy loss on the client's benign data. This ensures the model retains its performance on the main task.
  2. Dynamic Penalization: Instead of modifying all parameters uniformly, the method calculates the importance of each parameter for both the benign task ($I_\theta^{(b)}$) and the backdoor task ($I_\theta^{(m)}$). It applies a weighted $L_1$-norm penalty that heavily restricts changes to parameters critical to the main task, while allowing backdoor-specific parameters to be safely reset.

Datasets

The methodology was evaluated using two standard image classification benchmarks:

  • CIFAR-10 paired with a VGG-11 classifier.
  • CIFAR-100 paired with a ResNet-18 classifier.

The attacks evaluated included state-of-the-art backdoor insertion methods like Constraint-and-Scale and Neurotoxin across various semantic trigger patterns (e.g., misclassifying green cars as birds, or edge-case airplane images as trucks).

Key Insights and Ideas

  • Weaponizing Privacy Tools: Machine unlearning can be effectively inverted to help malicious actors erase their digital footprints.
  • The Persistence Dilemma: For an attacker, a backdoor that lasts too long is a security risk. This paper shifts the paradigm from making attacks more durable to making them dynamically removable.
  • Selective Parameter Targeting: The core "aha moment" lies in the parameter importance ratio ($I_\theta^{(b)} / I_\theta^{(m)}$). By identifying which weights are uniquely responsible for the backdoor behavior, the attacker can surgically remove the malicious functionality without distorting the overall decision boundary of the global model.
Figure 2: A basic illustration of decision boundary distortion in the global model resulting from a typical backdoor attack, highlighting the impact on classification outcomes.

Key Results

  • Successful Erasure: The proposed method successfully reduced backdoor accuracy by 41% to 49% on average across different client selection strategies, bringing backdoor performance down to random guess levels (10% for CIFAR-10, 1% for CIFAR-100).
  • High Stealthiness: The $L_2$-norm of the malicious client's updates during the unlearning phase overlapped perfectly with the updates of benign clients, meaning central anomaly detectors could not flag the unlearning activity.
  • Importance of Weighting: Incorporating the weighted dynamic penalization strategy reduced final backdoor accuracy by an additional 4% to 18% compared to unweighted unlearning baselines, proving that selective parameter targeting is vital to prevent over-unlearning.

Limitations and Future Work

The current study assumes that client data is independently and identically distributed (IID). In real-world FL deployments, data is highly non-IID (heterogeneous across clients). The authors note that extending this backdoor unlearning framework to accommodate non-IID data distributions presents a critical and promising direction for future research.

Summary updated

BibTeX
@misc{alam2023get,
  author = {Manaar Alam and Hithem Lamri and Michail Maniatakos},
  title = {{Get Rid Of Your Trail: Remotely Erasing Backdoors in Federated Learning}},
  year = {2023},
  eprint = {2304.10638},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.10638},
}
Figure