Abstract
Recent research on reinforcement learning (RL) has suggested that trained agents are vulnerable to maliciously crafted adversarial samples. In this work, we show how such samples can be generalised from White-box and Grey-box attacks to a strong Black-box case, where the attacker has no knowledge of the agents, their training parameters and their training methods. We use sequence-to-sequence models to predict a single action or a sequence of future actions that a trained agent will make. First, we show our approximation model, based on time-series information from the agent, consistently predicts RL agents' future actions with high accuracy in a Black-box setup on a wide range of games and RL algorithms. Second, we find that although adversarial samples are transferable from the target model to our RL agents, they often outperform random Gaussian noise only marginally. This highlights a serious methodological deficiency in previous work on such agents; random jamming should have been taken as the baseline for evaluation. Third, we propose a novel use for adversarial samples in Black-box attacks of RL agents: they can be used to trigger a trained agent to misbehave after a specific time delay. This appears to be a genuinely new type of attack. It potentially enables an attacker to use devices controlled by RL agents as time bombs.
1. Introduction
Reinforcement learning (RL) agents have demonstrated remarkable performance in complex tasks, yet they remain susceptible to adversarial perturbations. While previous research has largely focused on white-box or grey-box scenarios—where the attacker possesses internal knowledge of the agent—this study investigates the "strong black-box" case. In this setting, the attacker acts as a passive observer with no knowledge of the agent’s architecture, training parameters, or algorithms.
2. Methodology
The core of the proposed attack is the treatment of agent behavior as a sequence-to-sequence (seq2seq) prediction problem. By observing the agent's interactions, an attacker can train a proxy model to anticipate future actions.
2.1 The Attack Pipeline
The attack follows a systematic loop: observing the environment, storing data in a FIFO rollout buffer, training an approximator model, and generating perturbations that are injected back into the environment to influence the agent's behavior.
2.2 Approximator Model Architecture
To capture the temporal dynamics of the agent, a multi-head neural network architecture is employed. This model integrates three distinct information streams: past observations, past actions, and the current state. These inputs are processed through LSTMs to predict not just the immediate next action, but a sequence of future actions.
2.3 Time-Bomb Attacks
A significant contribution of this work is the "time-bomb" attack. Unlike standard adversarial attacks that aim for immediate failure, this method calculates a perturbation for the current frame designed to trigger a specific malicious action after a predetermined delay. This allows an attacker to "set a trap" that activates only when the agent reaches a critical state in the future.
3. Experimental Setup
The attacks were evaluated across three benchmarks: Cartpole, Atari Space Invaders, and Atari Pong. To ensure algorithm-agnosticism, the target agents were trained using three popular RL methods: DQN, A2C, and Rainbow.
4. Results and Analysis
4.1 Prediction and Attack Success
The seq2seq proxy models achieved high fidelity, predicting target agent actions with approximately 90% accuracy. This high accuracy enabled successful black-box sabotage, reducing agent rewards to near-zero levels, matching the performance of grey-box attacks that require significantly more information.
4.2 The Random Noise Baseline
A critical finding of this study is that many sophisticated adversarial attacks only marginally outperform random Gaussian noise. This suggests a methodological deficiency in existing RL security literature; random jamming should be the standard baseline for evaluating attack efficacy.
4.3 Time-Bomb Effectiveness
The time-bomb attacks achieved a success rate exceeding 70% for triggering specific future actions. This proves that an attacker can use devices controlled by RL agents as "time bombs," where a single perturbation leads to a delayed catastrophic failure.
5. Conclusion
This research demonstrates that RL agents are highly vulnerable to strong black-box attacks that leverage temporal information. The introduction of time-bomb attacks highlights a new class of threats where devices can be programmed to misbehave after a delay. Future work must focus on developing robust defenses against these delayed-trigger perturbations before RL agents are widely deployed in safety-critical systems.
Summary updated