DriveGen: Towards Infinite Diverse Traffic Scenarios with Large Models

Shenyu Zhang, Jiaguo Tian, Zhengbang Zhu, Shan Huang, Jucheng Yang, Weinan Zhang

Introduction

Testing autonomous vehicles (AVs) requires millions of miles of driving data, much of which must be generated in simulation. However, current simulators often struggle with a "diversity vs. realism" deadlock. Data-driven methods that replay real-world logs are realistic but lack the ability to generate novel "what-if" scenarios. Conversely, heuristic models offer diversity but often produce "robotic" behaviors that fail to capture the nuances of human driving. Furthermore, generating rare "corner cases" typically requires expensive model retraining.

DriveGen addresses these challenges by introducing a generative simulator that leverages the reasoning capabilities of Large Language Models (LLMs) and Vision-Language Models (VLMs) to orchestrate realistic, diverse vehicle behaviors.

The DriveGen Framework

DriveGen employs a two-stage framework to create realistic and diverse traffic scenarios, decoupling high-level reasoning from low-level execution.

Overview of the DriveGen framework, illustrating the two-stage process of scenario initialization and rollout.

1. Scenario Initialization

In this stage, an LLM (specifically Claude-3-Opus) acts as an "architect," generating map code in SUMO XML format from natural language descriptions. This allows researchers to describe complex intersections in plain English and have the model build them. The map is then populated with vehicle assets retrieved from a real-world database to ensure physical realism.

2. Scenario Rollout

The rollout phase uses a hybrid "Director-Actor" approach to simulate vehicle movement:

  • The Director (VLM): GPT-4-turbo analyzes bird’s-eye view (BEV) images and textual state descriptions to select high-level waypoint goals (e.g., "turn right and accelerate"). This leverages the VLM's cognitive reasoning for high-level decision-making.
  • The Actor (Diffusion Planner): A specialized Diffusion-based Trajectory Planner translates these high-level goals into smooth, human-like frame-by-frame coordinates, ensuring the motion follows realistic patterns.

Corner Case Generation (DriveGen-CS)

DriveGen-CS is a specialized pipeline designed to identify and exploit the weaknesses of specific driving algorithms. By extracting "failure features" (such as relative speed and heading during collisions) and feeding them back to the VLM as prompts, the system can "hallucinate" adversarial scenarios. This zero-shot approach generates challenging corner cases without requiring model retraining, significantly reducing computational overhead.

Experimental Results

The performance of DriveGen was evaluated using the Argoverse 2 dataset and the SMARTS simulation engine. The framework demonstrated a superior ability to balance diversity and realism.

Quantitative comparison of DriveGen against state-of-the-art models in terms of realism (ADE/FDE) and diversity.

As shown in the table above, DriveGen achieves a diversity score of 0.93, approaching the real-world baseline (1.0) and significantly outperforming previous models like BITS (0.57) and LCTGen (0.76). Crucially, it maintains high realism, achieving the best scores in min-sADE (1.18) and min-sFDE (2.16) compared to other generative baselines.

Furthermore, DriveGen-CS demonstrated an 80% reduction in GPU hours required to generate 1,000 corner cases compared to optimization-based methods like AdvSim, primarily due to the elimination of the fine-tuning phase. Training driving algorithms (GAIL and SAC) on DriveGen-generated data also led to improved performance in real-world-like tests.

Conclusion

DriveGen represents a significant advancement in traffic simulation by decoupling high-level cognition from low-level execution. By utilizing LLMs and VLMs as reasoners, the framework enables the generation of infinite, diverse, and realistic traffic scenarios, including critical corner cases, with unprecedented efficiency. Future work will aim to reduce inference latency and expand the simulation to include more complex road users like pedestrians and cyclists.

Summary updated

BibTeX
@inproceedings{zhang2025drivegen,
  author = {Shenyu Zhang and Jiaguo Tian and Zhengbang Zhu and Shan Huang and Jucheng Yang and Weinan Zhang},
  title = {{DriveGen: Towards Infinite Diverse Traffic Scenarios with Large Models}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2025},
}
Figure