Diffusion Guided Adversarial State Perturbations in Reinforcement Learning
Xiaolin Sun, Feidi Liu, Zhengming Ding, ZiZhan Zheng
TL;DR
This work addresses the vulnerability of reinforcement learning agents to semantic perturbations in vision-based inputs by introducing SHIFT, a diffusion-guided, policy-agnostic attack. SHIFT leverages classifier-free guidance, policy guidance via the victim's $Q^\pi$, and autoencoder realism to produce states that semantically differ from true states yet remain realistic and history-aligned, thereby evading diffusion-based defenses. Across a range of environments and defenses, SHIFT markedly degrades cumulative rewards while maintaining stealth, highlighting a trilemma between semantic change, historical alignment, and trajectory faithfulness. The results emphasize the need for robust RL policies that can withstand semantics-aware perturbations in real-world deployments.
Abstract
Reinforcement learning (RL) systems, while achieving remarkable success across various domains, are vulnerable to adversarial attacks. This is especially a concern in vision-based environments where minor manipulations of high-dimensional image inputs can easily mislead the agent's behavior. To this end, various defenses have been proposed recently, with state-of-the-art approaches achieving robust performance even under large state perturbations. However, after closer investigation, we found that the effectiveness of the current defenses is due to a fundamental weakness of the existing $l_p$ norm-constrained attacks, which can barely alter the semantics of image input even under a relatively large perturbation budget. In this work, we propose SHIFT, a novel policy-agnostic diffusion-based state perturbation attack to go beyond this limitation. Our attack is able to generate perturbed states that are semantically different from the true states while remaining realistic and history-aligned to avoid detection. Evaluations show that our attack effectively breaks existing defenses, including the most sophisticated ones, significantly outperforming existing attacks while being more perceptually stealthy. The results highlight the vulnerability of RL agents to semantics-aware adversarial perturbations, indicating the importance of developing more robust policies.
