TL;DR
Existing backdoor attacks in Federated Learning (FL) rely on hand-crafted heuristics that are easily neutralized by modern aggregation rules and post-training defenses. This paper introduces a reinforcement learning (RL) framework that casts backdoor injection as a Markov Decision Process (MDP), learning an adaptive, non-myopic attack policy via an offline simulator that successfully evades state-of-the-art defenses while maintaining model durability.
What Problem Does This Paper Address?
Federated learning allows decentralized devices to collaboratively train a shared machine learning model without transmitting their raw data. However, malicious clients can exploit this privacy-preserving setup to inject backdoors—causing the model to output an attacker-chosen target label when a specific trigger is present, while performing normally on clean data.
To counter this, defenders employ robust aggregation rules (e.g., Krum, Median, norm-bounding) and post-training mitigations (e.g., neuron pruning, neuron clipping). Most existing backdoor attacks are myopic: they optimize for a single communication round and use static heuristics, failing to account for long-term server aggregation or defensive pruning. Consequently, they achieve poor durability or are completely thwarted by robust defenses.
Methods
The authors formulate model poisoning as an offline sequential decision-making problem (MDP) over $T$ communication rounds:
- State ($s_t$): The global model parameters (compressed to the last two hidden layers for scalability) and the count of sampled malicious devices at round $t$.
- Action ($a_t$): The crafted model updates submitted by malicious clients. To handle the massive action space, the authors introduce the Double Whammy Backdoor Attack (DWBA), splitting action generation into two sub-actions whose hyperparameters are optimized using RL:
- Local Search Policy ($\pi_1$): Learns the training hyperparameters $(\rho^t, B^t, E^t, \eta^t)$—poison ratio, batch size, local epochs, and learning rate.
- Model Crafting Policy ($\pi_2$): Learns sparsification and scaling hyperparameters $(\alpha^t, \beta^t)$ to blend benign gradients with poisoned gradients, masking the attack in low-impact parameters (inspired by Neurotoxin).
- Reward ($r_t$): Evaluated on a trade-off loss $F'(w) = \lambda F_{\text{main}}(w) + (1 - \lambda)F_{\text{backdoor}}(w)$ that directly simulates server aggregation and post-training defenses $h(\cdot)$.
- Training Architecture: Using an offline "world model" simulator built from local data and system assumptions, the policies are trained using Twin Delayed DDPG (TD3). Instead of simultaneous optimization, $\pi_1$ and $\pi_2$ are trained in an alternating schedule (10,000 steps each per iteration over 80,000 total steps), which significantly improves convergence.
Datasets
The authors evaluate their approach on standard vision benchmarks under i.i.d. client data splits:
- MNIST: Digit classification (60,000 train, 10,000 test) using a CNN with two convolutional layers and two fully connected layers. Attack objective: misclassify digit
1to7. - CIFAR-10: Object classification (50,000 train, 10,000 test) using ResNet-18. Attack objective: misclassify
airplanetotruck.
(No new datasets were introduced; standard baseline trigger patterns and distributed sub-triggers from DBA were utilized.)
Key Insights and Ideas
- Simulating Defenses Directly in the Reward Function: By modeling the server's defense mechanism (such as neuron pruning or robust averaging) inside the MDP's transition and reward dynamics, the attack policy learns update vectors specifically shaped to pass through those filters unharmed.
- Alternating Policy Optimization: Jointly optimizing gradient search and gradient crafting in a continuous space is notoriously unstable. Alternating between the local search policy ($\pi_1$) and the model crafting policy ($\pi_2$) was crucial—achieving ~100% backdoor accuracy compared to ~80% under simultaneous training.
- Long-Term Durability vs. Short-Term Greed: Standard attacks decay rapidly once malicious clients stop participating. By optimizing for a discounted cumulative reward ($\gamma = 0.99$), the RL policy embeds the backdoor into persistent model weights, dramatically slowing catastrophic forgetting.
Key Results
- Robust Aggregation Defenses (MNIST): Under Krum, Median, and norm-bounding (clip threshold 0.05), the RL attack reached ~100% backdoor accuracy within 100–220 rounds while maintaining baseline clean accuracy. In contrast, BFL stayed below 50% on norm-bounding and showed erratic performance under Krum/Median.
- Post-Training Mitigations (CIFAR-10): Under Neuron Clipping and Pruning defenses, the RL attack retained near-perfect backdoor accuracy, while BFL's backdoor success collapsed.
- Durability: When attacks ceased after round 100, the RL attack retained 80% backdoor accuracy at round 300. In contrast, baseline attacks (BFL, Neurotoxin, Anticipate) decayed to below 40%.
Limitations and Future Work
- White-Box Assumption: The policy simulator requires prior knowledge of system parameters (e.g., number of workers, subsampling rate, server defense mechanism). The authors show that in a naive black-box setting (assuming FedAvg when norm-bounding is used), the attack fails completely because the updates are overly aggressive.
- Trade-off Parameter Tuning ($\lambda$): Balancing the main task and backdoor task requires manual tuning of $\lambda$. Setting $\lambda = 0$ maximizes backdoor insertion but heavily degrades clean accuracy. The authors propose formulating this as a constrained MDP in future work.
- Scalability to Large Models: Although using the last two hidden layers mitigates state dimension explosion, applying RL-based generation to billion-parameter architectures remains computationally demanding.
Summary updated