Introduction
Reinforcement Learning (RL) agents typically learn optimal behaviors by maximizing a scalar reward signal. However, in many practical deployments—such as recommendation engines or autonomous robotics—these rewards are derived from external sensors or human feedback, making them susceptible to adversarial manipulation. While previous research has explored "reward poisoning," most work has assumed a "white-box" setting where the attacker possesses full knowledge of the agent's architecture and environment dynamics. This paper introduces the first black-box targeted reward poisoning attack against online Deep Reinforcement Learning (DRL), demonstrating that an oblivious attacker can force an agent into a specific target policy with minimal perturbations.
Methodology: The Adaptive Target Attack
The proposed Adaptive Target Attack operates under the assumption that modern DRL agents are "efficient learners"—they will eventually converge to the optimal policy for whatever environment they are placed in. The attacker's goal is to subtly modify the reward signal so that the attacker's desired "target policy" $\pi^\dagger$ becomes the new optimal solution.
At each timestep, the attacker observes the agent's action $a$ and the true environment reward $R$. The poisoned reward $\hat{R}$ is calculated as: $$\hat{R}(s, a) = R(s, a) - \Delta \cdot d(a, \pi^\dagger(s))$$ where $\Delta$ is an attack budget parameter and $d$ is a distance metric between the agent's action and the target action. This linear penalty provides a consistent gradient that guides the agent toward the target behavior.
As shown in Figure 2, increasing the budget parameter $\Delta$ generally reduces the policy error $\epsilon$, indicating a more successful convergence to the target policy.
Experimental Evaluation
The attack was evaluated across a variety of standard DRL benchmarks, including discrete action spaces (MountainCar, Acrobot, CartPole) and continuous action spaces (HalfCheetah, Hopper, Walker2d, Swimmer). The researchers tested the attack against several state-of-the-art algorithms, including DQN, SAC, TD3, and PPO. The target policies ranged from random behaviors to expert-level performance, testing the attack's versatility.
Key Results and Discussion
The Adaptive Target Attack demonstrated universal success across all tested environments and algorithms. A critical finding is the attack's efficiency: it achieves the desired policy shift with significantly lower total perturbation compared to simpler "greedy" baselines.
Figure 3 highlights two main advantages of the adaptive approach. First, it consistently achieves low policy error ($\epsilon$) across different target behaviors (random, medium, expert). Second, the cost of the attack ($C/T$) is orders of magnitude lower than the greedy approach in discrete environments (MC) and significantly lower than neighborhood-based penalties in continuous environments (HC). This low cost makes the attack harder to detect through standard performance monitoring.
Furthermore, the attack is computationally efficient, running approximately 50 times faster than existing white-box methods because it avoids complex backpropagation through the agent's internal model.
Conclusion
This work exposes a significant vulnerability in online DRL systems. By treating the agent as a black box and strategically shaping the reward landscape, an attacker can reliably steer the agent's learning process. The persistence of the malicious policy even after the attack ceases suggests that poisoned rewards can have long-lasting effects on agent behavior. These findings underscore the urgent need for DRL algorithms that are robust to adversarial reward signals.
Summary updated