Steerable Adversarial Scenario Generation through Test-Time Preference Alignment

Tong Nie, Yuewen Mei, Yihong Tang, Junlin He, Jie Sun, Haotian Shi, Wei Ma, Jian Sun

TL;DR

SAGE (Steerable Adversarial scenario GEnerator) is a new framework that allows researchers to "steer" the trade-off between realism and aggressiveness in simulated driving scenarios at test-time without retraining. By interpolating the weights of two specialized expert models, SAGE generates a continuous spectrum of adversarial behaviors, leading to more robust safety assessments and superior training for autonomous driving policies.

What Problem Does This Paper Address?

Testing autonomous driving (AD) systems is a high-stakes game of finding "corner cases"—those rare, dangerous situations that reveal a system's flaws. To do this efficiently, researchers use adversarial scenario generation. However, existing methods suffer from a "fixed trade-off" problem.

If you optimize purely for adversariality (causing a crash), the agents often behave like kamikaze pilots, executing physically impossible maneuvers that would never happen in the real world. If you optimize for realism, the scenarios might be too "polite" to actually test the AD system’s limits. Currently, if a researcher wants a slightly more realistic or slightly more aggressive scenario, they usually have to retrain the entire model from scratch. Furthermore, many existing models struggle to distinguish between "soft" preferences (how aggressive an agent is) and "hard" constraints (not driving through a building).

Methods

The authors introduce SAGE, which reframes scenario generation as a multi-objective preference alignment problem.

SAGE Framework Overview

It consists of three main pillars:

  1. Hierarchical Group-based Preference Optimization (HGPO): This is a data-efficient offline fine-tuning method. It uses a "feasibility first" approach, treating map compliance (staying on the road) as a non-negotiable precondition before optimizing for soft preferences like realism or adversariality.
  2. Test-Time Weight Interpolation: Instead of training one model, SAGE fine-tunes two "experts" from the same pretrained base—one biased toward realism and one toward adversariality. At inference time, a user can simply slide a dial (a coefficient $\lambda$) to linearly interpolate the weights of these two models. This creates a new, "mixed" model that produces the exact desired behavior without any new training.
  3. Linear Mode Connectivity (LMC) Justification: The authors provide a theoretical "why" for weight interpolation. Because both experts are fine-tuned from the same starting point, they reside in the same "low-loss basin." This means the path between them in the parameter space is a "high-reward ridge," allowing for smooth transitions in behavior.

Datasets

The researchers used the Waymo Open Motion Dataset (WOMD), a massive collection of real-world driving logs. They filtered this down to a subset of 370 interactive scenarios for training and 70 for evaluation. All experiments were conducted within the MetaDrive simulator, which allows for closed-loop testing where the AD system can react to the generated adversarial agents in real-time.

Key Insights and Ideas

  • Weight Space > Output Space: One of the most interesting findings is that interpolating model weights is superior to interpolating model outputs (ensembling). Because the reward landscape is concave, the "average" of two models' weights actually performs better than the average of their trajectories.
Pareto Front and Collision Rate Transition
  • Decoupling Constraints: By treating map compliance as a hard constraint rather than a penalty term in a loss function, SAGE avoids the "reward hacking" where agents take unrealistic off-road shortcuts to cause collisions.
  • The Dual-Axis Curriculum: When using SAGE to train an AD policy, the authors found success using a curriculum that gradually increases both the intensity (how aggressive the scenarios are) and the frequency of adversarial encounters. This prevents the AD system from "forgetting" how to drive normally while learning to handle edge cases.

Key Results

  • Superior Pareto Front: In open-loop benchmarks, SAGE consistently outperformed state-of-the-art baselines (like CAT and KING). It achieved higher attack success rates while maintaining significantly lower penalties for unrealistic behavior and map violations.
  • Better Drivers: AD policies trained using SAGE’s steerable scenarios were more robust. In closed-loop testing, these policies achieved higher route completion rates and lower collision rates compared to those trained with static adversarial methods.
  • Fine-Grained Control: Qualitative results show a smooth transition: as the adversarial weight increases, an agent might move from simple lane-following to a subtle "squeeze" maneuver, and finally to a highly aggressive "sudden-break" or "cut-in."

Limitations and Future Work

While SAGE is a significant step forward, the authors note a few areas for growth:

  • Objective Complexity: The current version primarily focuses on the trade-off between two objectives (realism vs. adversariality). Future iterations could incorporate more dimensions, such as scenario novelty or traffic density.
  • Dependency on Priors: SAGE relies on a strong pretrained motion model. If the base model has inherent biases or lacks certain maneuvers, the fine-tuned experts will inherit those limitations.
  • Automated Steering: Currently, the "dial" is turned by the user. A promising future direction is an automated curriculum where the generator dynamically adapts its aggressiveness based on the real-time performance and "learning progress" of the AD system being tested.

Summary updated

BibTeX
@inproceedings{nie2026steerable,
  author = {Tong Nie and Yuewen Mei and Yihong Tang and Junlin He and Jie Sun and Haotian Shi and Wei Ma and Jian Sun},
  title = {{Steerable Adversarial Scenario Generation through Test-Time Preference Alignment}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=lYNsZdKn5R},
}
Figure