Temporal Logic-Based Multi-Vehicle Backdoor Attacks against Offline RL Agents in End-to-end Autonomous Driving

Xuan Chen, Shiwei Feng, Zikang Xiong, Shengwei An, Yunshu Mao, Lu Yan, Guanhong Tao, Wenbo Guo, Xiangyu Zhang

Introduction

Autonomous driving (AD) systems are increasingly reliant on Reinforcement Learning (RL) agents to navigate complex environments. However, these agents are vulnerable to "backdoor" attacks, where a hidden trigger causes the system to malfunction. Traditional backdoor attacks often rely on visual artifacts like physical stickers or digital overlays. This research explores a more insidious threat: coordinated multi-vehicle trajectories as triggers. By using the movement of surrounding cars as a secret signal, attackers can force an ego vehicle into dangerous maneuvers while remaining undetected by standard safety protocols.

The multi-vehicle trajectory trigger causes the poisoned ego car to perform a sudden, dangerous left turn.

The Problem: Moving Beyond Visual Glitches

Most existing backdoor research focuses on the vision system, assuming an attacker can manipulate camera feeds or place physical patches on road signs. These methods are often impractical due to environmental variables like lighting and weather. This paper addresses this gap by proposing trajectory-based triggers. Instead of a visual "glitch," the trigger is a specific "dance" of surrounding vehicles—such as two cars bypassing the ego car simultaneously—which signals the poisoned RL agent to execute a malicious action.

Methodology: Formal Precision and Stealth

The authors introduce a two-phase framework designed for mathematical precision and high stealth.

1. Temporal Logic-Based Trigger Generation

The framework utilizes Signal Temporal Logic (STL) to formally define trigger behaviors. STL allows for the specification of precise spatial and temporal constraints (e.g., "Vehicle A must be in region X at time $t$"). The system iteratively adjusts vehicle starting positions and speeds until the generated trajectories perfectly satisfy the STL specifications.

2. Trigger Insertion & Training Optimization

To ensure the attack remains dormant during normal driving, the authors employ "negative training." They include "patch trajectories" in the training set—scenarios that closely resemble the trigger but lack the specific coordinated movement. By training the agent to behave normally in these "near-miss" scenarios, the backdoor only activates under the exact intended conditions.

The proposed framework for generating trigger trajectories using temporal logic and optimizing training for stealth.

Datasets and Evaluation

The attack was evaluated using:

  • MetaDrive: A high-fidelity simulator used to test the attack across various map complexities, including crossroads and roundabouts.
  • NGSIM: A real-world trajectory dataset used to ensure the designed triggers are rare but physically plausible, maintaining the attack's "dormant" nature in everyday traffic.

Key Results

Testing across five different offline RL agents (including BC, BCQ, and Coptidice) revealed significant vulnerabilities:

  • High Success Rate: The Mission Violation Rate (MVR) increased from near 0% to 100% when the trigger was present.
  • Significant Deviation: The Average Displacement Error (ADE) surged from under 1.0 meter to over 100 meters in some scenarios, indicating complete loss of control.
  • Defense Resistance: Standard defenses like trajectory smoothing and Differential Privacy (DP-SGD) failed to mitigate the attack effectively.

Conclusion and Future Directions

This work demonstrates that AD systems can be compromised by exploiting contextual awareness rather than just visual inputs. While highly effective, the authors note that current triggers are sensitive to velocity and rely on relatively simple logic. Future research will explore more complex, multi-stage triggers and the dynamics of real-time poisoning in online RL environments.

Summary updated

BibTeX
@inproceedings{chen2025temporal,
  author = {Xuan Chen and Shiwei Feng and Zikang Xiong and Shengwei An and Yunshu Mao and Lu Yan and Guanhong Tao and Wenbo Guo and Xiangyu Zhang},
  title = {{Temporal Logic-Based Multi-Vehicle Backdoor Attacks against Offline RL Agents in End-to-end Autonomous Driving}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=ifavjJaKQa},
}
Figure