Skip to main content
QUICK REVIEW

[Paper Review] Learning to Backdoor Federated Learning

Henger Li, Wu Chen|arXiv (Cornell University)|Mar 6, 2023
Adversarial Robustness in Machine LearningComputer Science6 citations
TL;DR

This paper proposes a reinforcement learning (RL)-based backdoor attack framework for federated learning that trains an adaptive, non-myopic attack policy in a simulated environment using local data and system knowledge. The method achieves near-perfect backdoor accuracy (up to 100%) and superior durability under both state-of-the-art training-stage defenses (e.g., Krum, Median, norm-bounding) and post-training defenses (e.g., Neuron Clipping, Pruning), outperforming existing attacks like BFL, DBA, and Anticipate.

ABSTRACT

In a federated learning (FL) system, malicious participants can easily embed backdoors into the aggregated model while maintaining the model's performance on the main task. To this end, various defenses, including training stage aggregation-based defenses and post-training mitigation defenses, have been proposed recently. While these defenses obtain reasonable performance against existing backdoor attacks, which are mainly heuristics based, we show that they are insufficient in the face of more advanced attacks. In particular, we propose a general reinforcement learning-based backdoor attack framework where the attacker first trains a (non-myopic) attack policy using a simulator built upon its local data and common knowledge on the FL system, which is then applied during actual FL training. Our attack framework is both adaptive and flexible and achieves strong attack performance and durability even under state-of-the-art defenses.

Motivation & Objective

  • To address the limitations of existing backdoor attacks in federated learning, which are often myopic and ineffective against advanced defenses.
  • To develop a more adaptive and durable backdoor attack that can compromise both training-stage aggregation defenses and post-training mitigation techniques.
  • To demonstrate that current defenses are insufficient against intelligent, long-term attack strategies that anticipate system responses.
  • To show that reinforcement learning can be used to optimize attack hyperparameters dynamically, improving attack performance and stealth.

Proposed method

  • Formulate the backdoor attack as a Markov Decision Process (MDP), where the attacker learns a policy to maximize long-term reward on both main and backdoor tasks.
  • Build a simulator (world model) using local data and system knowledge to emulate the FL environment and train the attack policy in a controlled setting.
  • Use deep reinforcement learning to jointly optimize two-stage attack hyperparameters: (1) model update strategy and (2) weight adjustment for backdoor injection.
  • Implement a Double Whammy Backdoor Attack (DWBA) to compress the action space and improve efficiency while maintaining high attack performance.
  • Incorporate defense behaviors (e.g., Krum, Median, Neuron Clipping) into the reward function to make the attack robust to future system responses.
  • Apply the trained RL policy in real FL training, with optional noise injection to evade detection.

Experimental results

Research questions

  • RQ1Can a reinforcement learning-based attack outperform heuristic-based backdoor attacks in federated learning under strong aggregation and post-training defenses?
  • RQ2How does the durability of an RL-based backdoor attack compare to existing attacks when defenses are applied after training?
  • RQ3To what extent can an RL agent learn to anticipate and adapt to the behavior of robust aggregation rules like Krum and Median?
  • RQ4Does incorporating defense mechanisms into the reward function improve the attack's resilience and stealth in real-world FL systems?

Key findings

  • The RL-based attack achieves 100% backdoor accuracy within 100 training rounds under Krum and Median defenses, significantly outperforming BFL, which shows fluctuating and lower performance.
  • Under norm-bounding defense (threshold 0.05), the RL attack reaches ~100% backdoor accuracy after 220 rounds, while BFL’s backdoor accuracy never exceeds 50%.
  • The attack maintains high main-task accuracy comparable to baselines, demonstrating that performance on the primary task is not compromised.
  • The RL attack bypasses post-training defenses such as Neuron Clipping and Pruning by learning to anticipate their effects during policy training.
  • After 300 FL rounds, the RL attack retains 80% backdoor accuracy, while other attacks decay below 40%, proving superior durability.
  • The attack’s success is attributed to its non-myopic, long-term optimization strategy, which accounts for future system behavior in the reward function.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.