POLAR: Policy-based Layerwise Reinforcement Learning for Stealthy Backdoor Attacks in Federated Learning

Kuai Yu, Xiaoyu Wu, Peishen Yan, Linshan Jiang, Qingqian Yang, Hao Wang, Yang Hua, Tao Song, Haibing Guan · Submission to ICLR 2026 · Rejected

TL;DR

Existing backdoor attacks in Federated Learning (FL) struggle with a fundamental trade-off: modifying the entire model makes attacks easily detectable, while rule-based selection of "backdoor-critical" layers fails against modern defenses because it ignores inter-layer dependencies. POLAR reframes layer selection as a reinforcement learning (RL) problem, using a lightweight policy gradient framework with Bernoulli sampling and footprint regularization to adaptively find minimal, high-impact layer subsets. It consistently bypasses six state-of-the-art FL defenses, outperforming prior attacks by up to 40% in backdoor success rate.

What Problem Does This Paper Address?

Federated Learning enables decentralized clients to collaboratively train a shared model without centralizing private data. However, malicious clients can inject backdoors that force targeted misclassifications when a specific trigger is present.

Two primary strategies traditionally exist:

  1. Model-wise attacks (e.g., BadNets, DBA) perturb parameters across the whole network. While effective in unconstrained settings, their massive parameter deviations are easily caught by modern robust aggregation defenses (e.g., MultiKrum, FLAME, RLR).
  2. Layer-wise attacks (e.g., LP Attack) target a small subset of "backdoor-critical" (BC) layers to stay stealthy. However, existing methods rely on static or rule-based heuristics (like forward–backward parameter substitution). These fail to capture complex inter-layer interactions, fluctuate wildly in their layer selection across rounds, and perform poorly on compact architectures.

Brute-force searching all $2^N$ layer combinations is computationally impossible for deep networks. The authors set out to develop an automated, adaptive layer-selection mechanism that remains stealthy, effective, and computationally practical for FL clients.

Methods

POLAR (POlicy-based LAyerwise Reinforcement learning) optimizes layer selection across FL rounds using policy gradients:

  • Lightweight Bernoulli Policy: Instead of training a bulky deep RL network, each layer $l$ is assigned a continuous logit parameter $\theta_l$. Binary selection actions $S^{(l)} \in \{0, 1\}$ are drawn via independent Bernoulli trials parameterized by $p_l = \sigma(\theta_l)$. This keeps the action space factorized and scalable.
  • Reward Formulation: The reward measures the improvement in Backdoor Success Rate (BSR) of the partially poisoned model relative to a baseline fully poisoned model: $$\text{Reward} = \text{BSR}(S_k) - \text{BSR}(W_r^M)$$
  • Footprint Regularization: To prevent the agent from modifying too many layers (which increases detectability) or zero layers (which cripples the attack), the REINFORCE loss function incorporates a regularization term $\lambda \sum_{l=1}^N \log(p_l)$.
  • Inter-Round Continuity: The optimized logits $\theta$ from round $r-1$ initialize the policy in round $r$, allowing the policy to track global model dynamics over time while requiring only a small number of local RL optimization steps ($T=10, K=50$).

Datasets

The authors evaluated POLAR across standard FL vision benchmarks under Non-IID ($q = 0.5$) and IID settings:

  • CIFAR-10 evaluated on ResNet-18 and VGG-19.
  • Fashion-MNIST evaluated on a 5-layer CNN.

Attacks were tested against FedAvg and six robust defenses: FLARE, FLDetector, FLTrust, FLAME, RLR, and MultiKrum (MK).

Key Insights and Ideas

  • Inter-layer synergy matters: Heuristic approaches often evaluate layers in isolation. By optimizing a joint distribution over layer masks, POLAR captures how combinations of layers work together to preserve benign accuracy while embedding the trigger.
  • Stable convergence to fewer layers: Unlike LP Attack, which erratically changes modified layers across rounds, POLAR quickly converges to a small, stable subset of ~5 critical layers. This drastically shrinks the adversarial footprint.
  • Compensating for low participation: When attack frequency is constrained (e.g., attacking only once every 5 rounds) or malicious client pools are small ($2\%$), increasing local client training epochs enables POLAR to recover high backdoor efficacy without sacrificing stealth.

Key Results

  • Dominant Attack Success: Across Non-IID settings on CIFAR-10 and Fashion-MNIST, POLAR achieves the highest average and best BSR (ABSR/BBSR) against almost all defenses. Against RLR on VGG-19, POLAR achieves 89.23% ABSR compared to 67.32% for LP Attack and 73.54% for BadNets. Against MultiKrum on ResNet-18, POLAR achieves 91.24% ABSR vs. LP Attack's 87.94% and BadNets' 3.59%.
  • Superior Evasion (Stealthiness): Under MultiKrum and RLR, POLAR consistently achieves the highest Malicious Acceptance Rate (MAR)—frequently reaching 0.92–1.00—proving that servers routinely aggregate POLAR updates while filtering out competing attacks.
  • Linear Complexity: Despite running RL, POLAR's evaluation-dominated complexity matches LP Attack's linear scaling ($O(K \cdot T \cdot E)$ vs. $O(N \cdot E)$), running in ~126s compared to ~789s for 2-layer brute-force enumeration.

Limitations and Future Work

  • Local Validation Requirement: The attack assumes the adversary possesses sufficient local validation data to compute empirical BSR and evaluate candidate layer masks during training.
  • Hyperparameter Sensitivity: The ablation study indicates that the regularization weight $\lambda$ requires careful tuning; setting $\lambda$ too high ($\lambda=20$) overly suppresses layer selection and collapses BSR (dropping to 37.75%).
  • Evaluation Scope: Experiments focused on computer vision models (CNNs, ResNet, VGG); validation on large-scale transformer architectures (e.g., Vision Transformers or LLMs in federated settings) remains unexplored.

Summary updated

BibTeX
@misc{yu2025polar,
  author = {Kuai Yu and Xiaoyu Wu and Peishen Yan and Linshan Jiang and Qingqian Yang and Hao Wang and Yang Hua and Tao Song and Haibing Guan},
  title = {{POLAR: Policy-based Layerwise Reinforcement Learning for Stealthy Backdoor Attacks in Federated Learning}},
  year = {2025},
  eprint = {2510.19056},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.19056},
}
Figure