SEBA: Sample-Efficient Black-Box Attacks on Visual Reinforcement Learning

Tairan Huang, Yulin Jin, Junxu Liu, Qingqing Ye, Haibo Hu

TL;DR

SEBA (Sample-Efficient Black-box Attacks) is a novel adversarial framework designed to expose vulnerabilities in visual reinforcement learning (RL) agents, particularly in challenging continuous-control environments. By combining a shadow Q-model, a generative adversarial network (GAN), and a learned world model, SEBA successfully forces agents into catastrophic failures using visually imperceptible perturbations while requiring a fraction of the real-world environment queries used by prior methods.

What Problem Does This Paper Address?

Visual reinforcement learning allows autonomous systems, like robots and self-driving cars, to make decisions directly from raw pixel inputs. However, these systems are highly susceptible to adversarial attacks—tiny, carefully crafted pixel perturbations that can completely disrupt an agent's control policy.

While white-box attacks assume full access to an agent's internal parameters, real-world threat models are typically black-box, meaning the attacker can only observe the agent's inputs and outputs. Designing black-box attacks for continuous-action visual RL is incredibly difficult because:

  1. The action space is infinite, making it hard to deduce vulnerabilities.
  2. The observation space (pixels) is high-dimensional.
  3. Estimating gradients by repeatedly querying the real environment is prohibitively expensive.

SEBA addresses this triple challenge by balancing attack strength, visual imperceptibility, and sample efficiency.

Methods

SEBA introduces a multi-component architecture that eliminates the need for direct gradient access to the victim policy:

  1. Shadow Q Model ($Q_{\shadow}$): This acts as a differentiable surrogate for the victim policy. It estimates cumulative rewards under adversarial conditions, providing the necessary gradient signals to guide the attack in a fully black-box setting.
  2. GAN-based Perturbation Generator ($G_\phi$ & $D_\psi$): A generator creates bounded pixel perturbations to mislead the agent, while a discriminator enforces realism by distinguishing clean states from adversarial ones.
  3. World Model ($\mathcal{W}$): To prevent sample-guzzling queries to the real environment, SEBA trains an IRIS-style world model (a discrete image tokenizer combined with an autoregressive Transformer). This model simulates environment dynamics and generates synthetic rollouts for training the attack framework offline.
  4. Two-Stage Alternating Optimization: To stabilize training, SEBA alternates between updating the shadow critic on perturbed states (Stage 1) and refining the GAN generator/discriminator (Stage 2).
Figure 1. SEBA overview. The world model is first trained to predict visual dynamics and generate synthetic rollouts. SEBA then alternates between updating the shadow critic on perturbed states and optimizing the GAN.

Datasets

The authors evaluated SEBA across two distinct domains:

  • Pixel-based MuJoCo Continuous Control: Five physics-based simulation tasks (Cheetah Run, Walker Walk, Walker Run, Reacher Hard, Hopper Stand) where victim agents were trained using the state-of-the-art DrQ-SAC algorithm.
  • Atari Benchmarks: Three discrete-action games (Freeway, Pong, Alien) using a Rainbow victim agent to test cross-domain generality.

Key Insights and Ideas

  • Direct Generation over RL Policies: Prior state-of-the-art black-box attackers (like OPTIMAL) treat the attacker as an RL policy exploring a massive, high-dimensional perturbation space ($\mathbb{R}^{2\times 10^4}$). SEBA bypasses this inefficient exploration by directly training a generator network guided by the shadow critic's gradients, making pixel-space optimization highly effective.
  • The Importance of Noisy Training: Through ablation studies, the authors found that training the shadow critic on perturbed (noisy) states rather than clean states is vital. It ensures the critic accurately models the value distribution under attack, providing stable and reliable gradient guidance to the generator.
  • World Models as an Attacker's Tool: While world models are traditionally used to help RL agents learn faster, SEBA demonstrates that they are equally powerful for adversaries, enabling them to simulate long-horizon consequences of perturbations entirely offline.

Key Results

  • Devastating Attack Effectiveness: On MuJoCo tasks, SEBA consistently reduced victim rewards to near zero. For example, on Cheetah Run, the victim's reward plummeted from a clean score of 859.26 down to just 1.61, outperforming both white-box and black-box baselines.
  • Unmatched Visual Subtlety: SEBA achieved the lowest Fréchet Inception Distance (FID) scores across all tasks (e.g., 62.43 on MuJoCo compared to >90 for other RL attackers), meaning its perturbations are virtually invisible to the human eye.
  • Extreme Sample Efficiency: SEBA required only 160K real environment queries during training compared to the 4 million queries demanded by competing frameworks like PA-AD and OPTIMAL. Furthermore, it requires zero victim queries during execution.
  • Fine-Grained Targeted Control: SEBA can be adapted to steer specific action dimensions of the victim into desired target ranges (e.g., forcing a robot to move a specific joint within a precise sub-interval) with success rates exceeding 90%.
Figure 2. Visual comparison of perturbations. SEBA produces subtle yet highly effective perturbations on pixel-based MuJoCo tasks. Each row shows clean and adversarial observations under different attack methods.

Limitations and Future Work

Although SEBA drastically reduces real-world query costs, it still relies on periodic real-environment queries to correct for "model drift" within its learned world model. Additionally, while the framework excels in simulation benchmarks, future work is required to evaluate how effectively SEBA scales to complex, real-world robotic deployments where environment dynamics are significantly harder to model accurately.

Summary updated

BibTeX
@inproceedings{huang2026seba,
  author = {Tairan Huang and Yulin Jin and Junxu Liu and Qingqing Ye and Haibo Hu},
  title = {{SEBA: Sample-Efficient Black-Box Attacks on Visual Reinforcement Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=mlhq18e85Z},
}
Figure