Reward Delay Attacks on Deep Reinforcement Learning

Anindya Sarkar, Jiarui Feng, Yevgeniy Vorobeychik, Christopher D. Gill, Ning Zhang

Abstract

Deep Reinforcement Learning (DRL) typically relies on the assumption of "strong synchrony," where rewards are delivered immediately and sequentially following an action. This paper investigates the security implications of relaxing this assumption. We demonstrate that an adversary capable of delaying or reordering reward signals—without altering their numerical values—can significantly degrade agent performance or induce specific malicious behaviors. Through experiments on Atari benchmarks, we show that even minor timing disruptions can break the Bellman equation's integrity, rendering standard DRL algorithms highly vulnerable to temporal manipulation.

Introduction

Reinforcement Learning (RL) has seen significant success in complex domains, yet its robustness to adversarial interference remains a critical area of study. While prior research has largely focused on "reward poisoning"—the manipulation of reward values—this work explores a more subtle vector: the timing of reward delivery.

In many real-world applications, such as autonomous driving or robotics, rewards are derived from asynchronous perception pipelines. For instance, a vehicle's reward for staying in a lane might only be calculated after a high-latency vision model processes camera data. If an attacker compromises the system's scheduler, they can manipulate the temporal alignment of state-action-reward triplets. This paper explores whether an attacker who cannot change what an agent receives, but only when they receive it, can successfully subvert the learning process.

Threat Models

The authors define two primary attack scenarios based on the level of control an adversary has over the reward stream:

  1. Reward Delay Attack: The attacker can arbitrarily shuffle or drop rewards within a bounded temporal window ($\delta$). This represents a system where the sequence of events can be entirely scrambled.
  2. Reward Shifting Attack: A more constrained model where the attacker must preserve the original order of rewards (simulating a system with secure time-stamping) but can still shift them forward in time or drop them.

Methodology

The attack is framed as a meta-RL problem. An "Attacker Agent" observes the "Learner Agent's" training progress and manages a buffer (or "disk") of rewards to decide when to release them to the learner.

Because the attacker does not know the final performance of the learner until training concludes, the authors propose Proxy Reward Functions to guide the attacker in real-time:

  • Untargeted Attacks: The attacker’s goal is to maximize the learner's confusion. This is achieved by minimizing the correlation between successive Q-function updates, effectively forcing the learner to "forget" or fail to converge on a stable policy.
  • Targeted Attacks: The attacker uses cross-entropy loss to steer the learner’s policy toward a specific "target action" (e.g., forcing a car to remain stationary) in specific states.

Experimental Results

The researchers evaluated these attacks using the Arcade Learning Environment (ALE) on two classic Atari 2600 games: Pong and Breakout. These environments provide high-dimensional visual inputs and discrete action spaces, serving as standard benchmarks for DRL.

Key Findings

  • The Fragility of Synchrony: The mathematical integrity of the Bellman equation depends on the tight coupling of $(s_t, a_t, r_t)$. Even a "naive" random delay—where rewards are shuffled randomly within a small window—is enough to reduce the learner's reward to near-minimum levels (e.g., -21 in Pong).
  • Order-Preservation is Not a Panacea: Even in the Reward Shifting model, where the sequence of rewards remains intact, the attacker can still successfully prevent the agent from learning a useful policy.
  • Sensitivity to Short Delays: Increasing the delay window from 8 steps to 16 steps only marginally improved the attack's efficacy. This suggests that DRL is extremely sensitive to even very short-term timing disruptions.
  • Vulnerability of Pre-trained Models: The attack is not limited to agents currently in training. It can also "unlearn" or degrade the performance of a fully trained Q-network, causing its rewards to decay exponentially as it continues to "learn" under the influence of the attack.

Conclusion and Future Work

This research highlights that temporal synchrony is a fundamental, yet often overlooked, security assumption in DRL. The ability to disrupt the timing of rewards provides a potent and low-trace way for adversaries to compromise safety-critical systems.

Future work should focus on:

  • Hardware-Level Mitigations: Developing "synchrony assurance" mechanisms to guarantee that state, action, and reward remain tightly coupled.
  • Robust RL Algorithms: Designing new DRL architectures that are inherently less sensitive to timing jitter or asynchronous reward delivery.
  • Black-Box Attacks: Investigating whether these timing attacks can be executed successfully without direct access to the learner's internal Q-values or memory.

Summary updated

BibTeX
@inproceedings{sarkar2022reward,
  author = {Anindya Sarkar and Jiarui Feng and Yevgeniy Vorobeychik and Christopher D. Gill and Ning Zhang},
  title = {{Reward Delay Attacks on Deep Reinforcement Learning}},
  booktitle = {GameSec},
  year = {2022},
  doi = {10.1007/978-3-031-26369-9\_11},
}
Figure