Abstract
Evaluating and training autonomous driving systems require diverse and scalable corner cases. However, most existing scene generation methods lack controllability, accuracy, and versatility, resulting in unsatisfactory generation results. Inspired by DragGAN in image generation, we propose DragTraffic, a generalized, interactive, and controllable traffic scene generation framework based on conditional diffusion. DragTraffic enables non-experts to generate a variety of realistic driving scenarios for different types of traffic agents through an adaptive mixture expert architecture. We employ a regression model to provide a general initial solution and a refinement process based on the conditional diffusion model to ensure diversity. User-customized context is introduced through cross-attention to ensure high controllability. Experiments on a real-world driving dataset show that DragTraffic outperforms existing methods in terms of authenticity, diversity, and freedom.
Introduction
Testing autonomous driving (AD) systems is a high-stakes numbers game. To ensure safety, developers require millions of miles of data, specifically "corner cases"—rare, dangerous scenarios like a pedestrian darting into traffic or complex multi-car merges. Traditionally, these scenarios are either hand-coded in simulators, which lacks realism, or harvested from real-world driving, which is expensive and rare.
Existing traffic generation methods generally fall into two categories: rule-based simulators (e.g., CARLA), which require heavy expert tuning and often produce "robotic" behavior, and data-driven models, which are realistic but difficult to control. DragTraffic addresses this lack of controllability by offering an interactive, point-based framework that allows even non-experts to "drag and drop" traffic agents to generate realistic, diverse, and physics-compliant driving scenarios.
Methodology
DragTraffic utilizes a two-stage pipeline inspired by the "DragGAN" approach in image manipulation to turn simple user inputs into realistic multi-agent trajectories.
Initial Regression and Diffusion Refinement
The system first employs a modified Multipath++ architecture as an Initial Regression Model to provide a "rough draft" of trajectories. This ensures the generation process begins from a physically plausible baseline rather than pure noise. This "skip connection" approach grounds the diffusion process, making it faster and more stable than pure diffusion models.
The core engine is the Conditional Diffusion Model (CDM), which iteratively refines the initial guess. User-defined conditions—such as start points, end points, speed, and heading—are integrated through cross-attention (Multi-Context Gating blocks). This allows the model to satisfy user intent while maintaining social awareness of other agents.
Mixture of Experts (MoE)
To handle the distinct behaviors of different agent types, DragTraffic employs a symmetric hybrid expert architecture. A "gate" selects the appropriate model (expert) based on whether the agent is a vehicle, pedestrian, or cyclist, ensuring that pedestrians do not behave like heavy sedans.
Experimental Results
The model was evaluated using the Waymo Open Dataset, involving approximately 70,000 scenarios processed into 6-second intervals. Specialized subsets for vehicles, cyclists, and pedestrians were used to train the MoE architecture.
Quantitative Performance
DragTraffic significantly outperformed the TrafficGen baseline across several metrics:
- Accuracy: For vehicles, DragTraffic achieved a Minimum Average Displacement Error (MinADE) of 2.53m, compared to TrafficGen's 3.32m.
- Pedestrian Realism: The improvement was even more pronounced for pedestrians, with a MinADE of 1.59m versus the baseline's 6.50m.
- Safety: The Scenario Collision Rate (SCR) at a 9-second prediction horizon was only 3.33% for DragTraffic, whereas the baseline exceeded 13%.
Discussion and Future Work
A key insight of this work is the ability to solve "robot freezing"—where simulated agents become overly conservative—by manually setting proactive condition info (like higher target speeds). This allows users to force the model to generate more assertive, challenging behaviors for AD testing.
However, limitations remain. Performance on cyclists is slightly lower due to data scarcity in the Waymo dataset. Future work will explore enforcing explicit kinematic constraints (e.g., maximum turning radii) and developing multi-round interaction capabilities to allow users to "sculpt" scenes over several iterations.
Summary updated