NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Versatile Scene-Consistent Traffic Scenario Generation as Optimization with Diffusion

Zhiyu Huang, Zixu Zhang, Ameya Vaidya, Yuxiao Chen, Chen Lv, Jaime Fernández Fisac · OpenReview

Abstract: Existing traffic simulation models often fail to capture the complexities of real-world scenarios, limiting the effective evaluation of autonomous driving systems. We introduce Versatile Behavior Diffusion (VBD), a novel traffic scenario generation framework that utilizes diffusion generative models to predict scene-consistent and controllable multi-agent interactions in closed-loop settings. VBD achieves state-of-the-art performance on the Waymo Sim Agents Benchmark and can effectively produce realistic and coherent traffic behaviors with complex agent interactions under diverse environmental conditions. Furthermore, VBD offers inference-time scenario editing through multi-step refinement guided by behavior priors and model-based optimization objectives. This capability allows for controllable multi-agent behavior generation, accommodating a wide range of user requirements across various traffic simulation applications. Despite being trained solely on publicly available datasets representing typical traffic conditions, we introduce conflict-prior and game-theoretic guidance approaches that enable the creation of interactive, long-tail safety-critical scenarios, which is essential for comprehensive testing and validation of autonomous vehicles. Lastly, we provide in-depth insights into effective training and inference strategies for diffusion-based traffic scenario generation models, highlighting best practices and common pitfalls. Our work significantly advances the ability to simulate complex traffic environments, offering a powerful tool for the development and assessment of autonomous driving technologies.

Introduction

Testing autonomous vehicles (AVs) requires realistic traffic simulations that go beyond simple log-replay. Current simulation methods face three major hurdles: a lack of reactivity to the AV's actions, scene inconsistency where agents ignore each other, and a "versatility gap" where models are typically specialized for either normal driving or rare edge cases.

Versatile Behavior Diffusion (VBD) addresses these challenges by treating traffic generation as a conditional trajectory optimization problem solved via a diffusion process. By training on normal offline data, VBD learns to deploy as a generalized simulation engine capable of generating normal, rule-violating, and safety-critical scenarios through guided inference.

Overview of the VBD framework from training on offline data to deployment as a generalized simulation engine.

Methodology: The VBD Framework

The VBD architecture is built upon three main pillars designed to ensure both individual agent realism and multi-agent consistency:

  1. Query-Centric Scene Encoder: A Transformer-based module that processes environmental context—including maps, traffic lights, and agent histories—into a unified latent representation.
  2. Marginal Behavior Predictor: This co-trained module predicts a set of "intentions" or potential future paths for each agent. These act as behavior priors that stabilize the diffusion process during inference.
  3. Diffusion Generator (Denoiser): The core engine of the framework. It begins with random noise and iteratively "denoises" it into realistic joint trajectories for all agents simultaneously, ensuring scene-wide consistency.
Detailed architecture of VBD, highlighting the Scene Encoder, Behavior Predictor, and the guided Denoiser for joint plan generation.

Guided Sampling and Scenario Editing

The primary innovation of VBD is its use of Classifier Guidance during the denoising steps. By injecting gradients from user-defined cost functions ($J$), the model can edit agent behaviors on-the-fly without retraining. This allows for specific goal guidance (minimizing distance to a target), collision avoidance (penalizing proximity), and even adversarial guidance (using game-theoretic objectives to force safety-critical interactions).

Key Insights for Diffusion in Simulation

Through the development of VBD, several critical strategies for training diffusion-based traffic models were identified:

  • Logarithmic Noise Scheduling: Unlike the standard cosine schedules used in image generation, a log noise schedule was found to be more effective for trajectory data. It maintains a lower signal-to-noise ratio for a longer duration, forcing the model to rely more heavily on complex scene context (maps and other agents) rather than taking shortcuts.
  • History Dropout: To prevent "causal confusion"—where the model simply copies previous trajectories—the authors implemented a 50% dropout of historical data during training. This forces the model to learn truly reactive behaviors based on the current environmental state.

Results and Performance

VBD was evaluated using the Waymo Sim Agents Benchmark, a rigorous framework for closed-loop simulation realism. The model achieved a Realism Meta Metric of 0.720, demonstrating high performance in kinematic, interactive, and map-based metrics.

Beyond standard realism, the framework's versatility was proven through scenario editing. By applying collision avoidance costs at inference time, the simulation collision rate was reduced from 2.47% to 1.11%. Conversely, by swapping the guidance objective to a game-theoretic "pursuit-evasion" model, VBD successfully generated complex adversarial maneuvers, such as aggressive merges and brake-checks, which are vital for testing AV robustness.

Conclusion

VBD represents a significant step forward in traffic simulation by bridging the gap between realistic generative modeling and controllable optimization. By leveraging diffusion and guided sampling, it provides a single, versatile tool capable of generating the diverse range of scenarios necessary for the safe development of autonomous driving technologies.

Summary updated

BibTeX
@article{huang2026versatile,
  author = {Zhiyu Huang and Zixu Zhang and Ameya Vaidya and Yuxiao Chen and Chen Lv and Jaime Fernández Fisac},
  title = {{Versatile Scene-Consistent Traffic Scenario Generation as Optimization with Diffusion}},
  journal = {IEEE Trans. Intell. Transp. Syst.},
  year = {2026},
  doi = {10.1109/tits.2026.3662886},
}
Figure