TL;DR
Training-environment poisoning attacks (EPAs) manipulate physical hyper-parameters like friction or mass to corrupt reinforcement learning (RL) policies. Instead of relying on expensive, pre-emptive robustness defenses, this paper proposes a post-attack policy-resilience framework that couples federated learning with meta-learning. By sharing environment structural knowledge across clients, a poisoned agent can diagnose deployment dynamics in just two interaction episodes and recover near-optimal performance using imagined rollouts.
What Problem Does This Paper Address?
Reinforcement learning agents are increasingly considered for real-world cyber-physical systems (e.g., autonomous driving, robotics, smart grids). In these setups, agents are vulnerable to Environment Poisoning Attacks (EPAs) during training: an adversary subtly manipulates environmental parameters (such as terrain friction, actuator strength, or mass) to steer the agent toward an attacker-desired policy.
Most defenses focus on robustness—trying to ensure the policy trains correctly despite perturbations. However, defending against all potential training-time perturbations introduces steep design overheads and often harms nominal performance. The authors argue for shifting the objective to resilience: acknowledging that training may be compromised, but enabling the agent to quickly detect the true deployment conditions and restore its performance on the fly with minimal time and compute.
Methods
The authors structure policy resilience as a three-stage pipeline (Preparation, Diagnosis, and Recovery) operating across a federated fleet of agents governed by a central server within a Hidden-Parameter MDP (HiP-MDP) formulation:
[Preparation: Federated Meta-Learning]
Clients collect transitions ──> Local MAML-style gradients ──> Server updates global prior θ*_S
│
▼
[Diagnosis: Fast Deployment Adaptation]
Poisoned Agent <── Retrieves θ*_S + Few deployment steps (1-2 eps) ──> Fine-tuned model D_θ'
│
▼
[Recovery: Policy Restoration via Imagination]
Model-Free: Model-Based Value Expansion (MVE)
Model-Based: Model Predictive Control with Cross-Entropy Method (MPC-CEM)
-
Preparation (Federated Meta-Learning): During decentralized training across $K$ client environments, the underlying environment structures are identical, but their specific hyper-parameters vary (and some may be poisoned). Rather than simply averaging dynamics weights (like standard FedAvg), the server uses Model-Agnostic Meta-Learning (MAML). Each client splits local transitions into support ($\mathcal{T}^{spt}$) and query ($\mathcal{T}^{qry}$) sets, evaluates local gradient updates, and transmits validation losses back to the server. The server optimizes global dynamics parameters $\theta_S^*$ specifically for fast adaptation to unseen conditions.
-
Diagnosis: Before deployment, a poisoned agent initializes its dynamics model with the meta-learned initialization $\theta_S^*$ and fine-tunes it using a few samples ($\approx 1\text{–}2$ episodes) collected in the deployment environment.
-
Recovery: The agent repairs its policy using trajectories imagined by the fine-tuned dynamics model:
-
Model-Free (MF) Agents: Use Model-Based Value Expansion (MVE), unrolling the dynamics model up to depth $h$ to replace standard Q-targets with low-variance, model-expanded target values.
- Model-Based (MB) Agents: Use Model Predictive Control (MPC) combined with the Cross-Entropy Method (CEM) to plan action sequences online against the adapted model.
Datasets
The evaluation relies on two standard reinforcement learning testbeds adapted for environment poisoning:
- 3D Grid World (Discrete State Space): A $5 \times 5$ rugged terrain navigation task (adapted from prior EPA literature), where cell elevation functions as the environmental hyper-parameter manipulated by the attacker to alter transition probabilities.
- Cartpole (Continuous State Space): A classical control benchmark where the pole length is manipulated during training (fixed at $0.5$) by the DBB-EPA attack, while deployment environments feature pole lengths spanning from $0.1$ to $0.9$.
Key Insights and Ideas
- Exploiting Structural Invariance: EPAs change the parameters of the environment function, not its physical structure. Treating training instances as distinct tasks in a meta-learning setup allows the network to learn a general structural inductive bias.
- Meta-Learning Outperforms Federated Averaging under Attack: When client environments are heavily poisoned, standard Federated Averaging blends corrupted dynamics together, ruining the server model. In contrast, MAML treats poisoned systems as diverse task variations, training the server model to "learn how to adapt" rather than memorizing a single consensus environment.
- Sensitivity to Model Errors Differs by Agent Class: An isolated baseline (updating a local model without server initialization) completely failed for model-free agents—actually performing worse than no defense at all—because MVE is brittle to inaccurate dynamic unrolls. The shared meta-prior provided the accuracy threshold necessary to make imagined rollouts beneficial.
Key Results
- 3D Grid World: The proposed method restored poisoned policies to near-optimal returns within 2 episodes of deployment interaction. Even when 100% of the federated clients were trained under poisoned conditions, the meta-learned initialization maintained sufficient adaptive capacity to successfully recover deployment returns (Mean Return $\approx -7$), while the non-meta-learning baseline collapsed (Mean Return $< -14$).
- Continuous Control (Cartpole):
- Model-Free (DDPG + MVE): Restored deployment scores to near the maximum ceiling of 500 across pole lengths $0.1$ through $0.9$. Without resilience, scores lingered around $100\text{–}280$; with isolated local updates, scores dropped below $100$ due to model errors.
- Model-Based (MPC + CEM): Achieved near-maximum scores ($\approx 500$) across the full hyper-parameter spectrum ($0.1\text{–}0.9$), significantly outperforming both the unmitigated policy and isolated local dynamics tuning.
Limitations and Future Work
- Federated Security Assumptions: The framework assumes the communication channel and aggregation server are trustworthy and immune to Byzantine failures or data inference attacks.
- Multi-System Prerequisite: The method requires an ecosystem of connected RL clients (e.g., a vehicle fleet or cloud robotics). It cannot support an isolated, single-agent system during training.
- Scalability to High-Dimensional Spaces: Experiments were restricted to low-dimensional physics control (Cartpole, Grid World). Scaling meta-learned dynamics to complex pixel observations or high-dimensional manipulation remains an open challenge.
Summary updated