Collapsing Sequence-Level Data-Policy Coverage via Poisoning Attack in Offline Reinforcement Learning

Xue Zhou, Dapeng Man, Chen Xu, Fanyi Zeng, Tao Liu, Huan Wang, Shucheng He, Chaoyang Gao, Wu Yang

Abstract

Offline reinforcement learning (RL) relies heavily on the quality and coverage of pre-collected datasets. While existing security research often focuses on single-step data-policy coverage, this paper identifies a more potent vulnerability: sequence-level coverage. We present the Collapsing Sequence-Level Data-Policy Coverage (CSDPC) framework, a four-stage poisoning attack designed to eliminate rare but essential behavioral patterns. Experimental results across MuJoCo and Carla-Lane benchmarks show that perturbing as little as 1% of the data can degrade agent performance by over 90%. This work demonstrates that sequence-level coverage is a fragile yet vital component of offline RL, posing significant risks for real-world deployment.

Introduction

Offline RL allows agents to learn from static datasets, avoiding the risks of real-world exploration. However, its success depends on data-policy coverage: the dataset must sufficiently cover the states and actions the agent might encounter. Most existing research focuses on "single-step" coverage—ensuring data matches choices at any given moment. Yet RL is inherently sequential; a single "bad" step can derail an entire trajectory. This paper argues that ignoring the multi-step nature of RL leaves a massive security gap. If an attacker can identify and "erase" rare but necessary sequences, the agent will fail in real-world scenarios.

The CSDPC Framework

The authors introduce Collapsing Sequence-Level Data-Policy Coverage (CSDPC), a sophisticated pipeline designed to collapse an agent's learnable distribution through minimal data perturbation.

The four-stage CSDPC attack pipeline: Conversion, Extraction, Poisoning, and Training/Testing.

The attack follows four stages:

  1. Decision Unit Conversion: Discretizing continuous RL data into "decision units" using k-means clustering on high-level features.
  2. Decision Pattern Extraction: Merging consecutive identical units to capture behavioral logic rather than high-frequency noise.
  3. Rare Pattern Identification: Identifying the "long tail" of the dataset—sequences that are infrequent but essential for full coverage.
  4. Poisoning via Perturbation: Applying stealthy perturbations (within a 5% magnitude limit) to push rare sequences into common clusters, effectively erasing them from the agent's perspective.

Experimental Evaluation

The researchers evaluated CSDPC using standard benchmarks: the MuJoCo robot simulator tasks (Walker2D, Hopper, and Half-Cheetah) and the Carla-Lane autonomous driving simulator. The attack targets the data distribution itself, making it algorithm-agnostic. It was tested against various offline RL algorithms, including CQL, BEAR, BCQ, and Behavioral Cloning (BC).

Key Insights and Results

Performance Collapse

The attack proved devastatingly effective. On the Walker2D task, poisoning just 1% of the data resulted in an 86% to 92% drop in the agent's average cumulative reward (ACR). Across all tested environments and algorithms, the attack consistently achieved high Attack Effectiveness Rates (AER).

Detailed performance metrics across different algorithms and environments, comparing clean data to raw and feature-level poisoning.

Stealth and Robustness

Unlike brute-force attacks, CSDPC operates at a low 1% poisoning rate. It successfully evaded state-of-the-art anomaly detectors like GradCon, maintaining an F1 detection score of only 12.5%. Furthermore, the attack is robust; even with access to only 1% of the total dataset for analysis, attackers could achieve 86% of the effectiveness of a full-access attack.

Theoretical Foundation

The authors mathematically demonstrate that while single-step coverage errors are linear, sequence-level coverage errors grow exponentially with sequence length. This explains why minor sequence perturbations lead to catastrophic failures.

Conclusion

This research serves as a critical warning for the offline RL community. As these agents move toward safety-critical deployments, security metrics must evolve beyond single-step analysis to protect the entire behavioral sequence. Future work will focus on developing robust defense strategies, such as coverage-aware data augmentation and sequence consistency checking.

Summary updated

Abstract

Offline reinforcement learning (RL) heavily relies on the coverage of pre-collected data over the target policy's distribution. Existing studies aim to improve data-policy coverage to mitigate distributional shifts, but overlook security risks from insufficient coverage, and the single-step analysis is not consistent with the multi-step decision-making nature of offline RL. To address this, we introduce the sequence-level concentrability coefficient to quantify coverage, and reveal its exponential amplification on the upper bound of estimation errors through theoretical analysis. Building on this, we propose the Collapsing Sequence-Level Data-Policy Coverage (CSDPC) poisoning attack. Considering the continuous nature of offline RL data, we convert state-action pairs into decision units, and extract representative decision patterns that capture multi-step behavior. We identify rare patterns likely to cause insufficient coverage, and poison them to reduce coverage and exacerbate distributional shifts. Experiments show that poisoning just 1% of the dataset can degrade agent performance by 90%. This finding provides new perspectives for analyzing and safeguarding the security of offline RL.
BibTeX
@inproceedings{zhou2025collapsing,
  author = {Xue Zhou and Dapeng Man and Chen Xu and Fanyi Zeng and Tao Liu and Huan Wang and Shucheng He and Chaoyang Gao and Wu Yang},
  title = {{Collapsing Sequence-Level Data-Policy Coverage via Poisoning Attack in Offline Reinforcement Learning}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=slgbttYuHM},
}
Figure