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

Kuai Yu, Xiaoyu Wu, Peishen Yan, Qingqian Yang, Linshan Jiang, Hao Wang, Yang Hua, Tao Song, Haibing Guan · OpenReview

Abstract

Federated Learning (FL) enables decentralized model training across multiple clients without exposing local data, but its distributed feature makes it vulnerable to backdoor attacks. Despite early FL backdoor attacks modifying entire models, recent studies have explored the concept of backdoor-critical (BC) layers, which poison the chosen influential layers to maintain stealthiness while achieving high effectiveness. However, existing BC layers approaches rely on rule-based selection without consideration of the interrelations between layers, making them ineffective and prone to detection by advanced defenses. In this paper, we propose POLAR (POlicy-based LAyerwise Reinforcement learning), the first pipeline to creatively adopt RL to solve the BC layer selection problem in layer-wise backdoor attack. Different from other commonly used RL paradigm, POLAR is lightweight with Bernoulli sampling. POLAR dynamically learns an attack strategy, optimizing layer selection using policy gradient updates based on backdoor success rate (BSR) improvements. To ensure stealthiness, we introduce a regularization constraint that limits the number of modified layers by penalizing large attack footprints. Extensive experiments demonstrate that POLAR outperforms the latest attack methods by up to 40% against six state-of-the-art (SOTA) defenses.

Introduction

Federated Learning (FL) allows multiple participants to train a shared model without exchanging raw data, providing significant privacy benefits. However, this decentralized nature introduces a critical security vulnerability: backdoor attacks. In these attacks, an adversary injects "poisoned" updates into the global model, causing it to misclassify specific triggered inputs while maintaining normal performance on clean data.

A fundamental challenge for attackers is balancing stealthiness with effectiveness. Traditional "model-wise" attacks modify the entire model, making them susceptible to detection by robust defenses that identify statistical shifts in parameters. To evade detection, "layer-wise" attacks target only specific "backdoor-critical" (BC) layers. However, current layer selection methods rely on static, hand-crafted rules that ignore inter-layer dependencies, often leading to unstable attacks that are eventually detected.

Methodology

POLAR (POlicy-based LAyerwise Reinforcement learning) addresses these limitations by treating layer selection as an optimization problem solved through reinforcement learning.

The POLAR framework architecture, illustrating the RL training loop with Bernoulli sampling and policy gradient updates.

The framework consists of several key components:

  • RL Agent with Bernoulli Sampling: To maintain efficiency, POLAR avoids heavy deep Q-networks. Instead, it uses a lightweight Bernoulli sampling strategy where each layer has a "logit" score representing the probability of its selection for poisoning.
  • Reward Function: The agent's objective is to maximize the Backdoor Success Rate (BSR). It learns to favor layer combinations that yield higher attack success through feedback from the global model.
  • Stealth via Regularization: A regularization penalty is integrated into the loss function to minimize the "attack footprint." This forces the agent to identify the minimal set of layers required for a successful attack, enhancing stealthiness.
  • Dynamic Feedback Loop: In each FL round, the attacker evaluates the global model's response to the trigger, updates the RL policy using the REINFORCE algorithm, and submits the optimized partial update.

Experimental Setup

POLAR was evaluated using standard computer vision benchmarks:

  • Datasets: CIFAR-10 and Fashion-MNIST.
  • Architectures: ResNet18, VGG19, and a 5-layer CNN.
  • Environment: Simulations were conducted in Non-IID (Independent and Identically Distributed) settings to reflect realistic FL scenarios where client data distributions vary significantly.

Results and Discussion

POLAR demonstrates significant improvements over both traditional model-wise attacks (e.g., BadNets) and the previous state-of-the-art layer-wise method, the LP Attack (LPA).

Comparison of POLAR and LPA performance under RLR and MultiKrum (MK) defenses, showing main task accuracy and backdoor task success rates.

Key findings include:

  • Superior Effectiveness: POLAR achieves up to a 40% higher BSR compared to existing methods when facing sophisticated defenses.
  • Enhanced Stealthiness: The Malicious client Acceptance Rate (MAR) for POLAR is significantly higher. Poisoned updates were accepted nearly 100% of the time by servers employing defenses like MultiKrum and RLR, which successfully blocked competing attacks.
  • Inter-layer Synergy: Unlike rule-based methods that pick layers greedily, POLAR captures hidden dependencies between layers. It recognizes that a layer's importance may depend on which other layers are simultaneously poisoned.
  • Adaptability: The learning-based approach makes POLAR "defense-aware." It can dynamically shift its focus to different layers if a defense begins blocking updates to previously targeted ones.

Conclusion and Future Work

POLAR represents a major advancement in adversarial FL research by introducing a dynamic, policy-based approach to layer selection. While highly effective, the method currently relies on the attacker's ability to calculate BSR locally, which may be challenging in some restricted environments. Future work will explore reducing this feedback dependency and investigating how defenses might evolve to detect the specific "layer-consistent" anomalies produced by such adaptive attacks.

Summary updated

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