Abstract
Testing autonomous vehicles (AVs) requires scalable and controllable simulation environments. Current generative models often lack intuitive human control, requiring complex heuristics to design specific scenarios. We present LANGTRAJ, a language-conditioned scene-diffusion model that enables steering traffic simulations via natural language prompts. By leveraging the new INTERDRIVE dataset—comprising 150,000 human-labeled interactive scenarios—and a novel closed-loop training strategy, LANGTRAJ generates realistic, safety-critical trajectories. Our results demonstrate significant improvements in controllability and realism, reducing trajectory error by up to 13.6% compared to unconditioned baselines.
The Controllability Crisis in Simulation
Testing AVs in the real world is slow and dangerous. Simulation offers a scalable alternative, but it faces a "controllability" crisis. To test how an AV handles a specific tricky situation—like a car aggressively cutting in—developers usually have to manually design scenarios or use complex, hand-coded heuristic functions to "nudge" generative models. These traditional methods don't scale well and aren't intuitive.
While recent diffusion models have shown promise in generating realistic traffic, they often lack a simple way for a human user to specify exactly what behaviors they want to see. There is a significant gap between high-level human intent ("make the blue car yield") and the low-level coordinates a simulator needs.
Methodology: The LANGTRAJ Architecture
LANGTRAJ is a language-conditioned scene-diffusion model consisting of three main pillars:
- Query-Centric Scene Encoder: It uses Graph Neural Networks (GNNs) to model the spatiotemporal relationships between agents (cars, pedestrians) and the map, operating in a local coordinate system to ensure the model understands relative motion regardless of absolute position.
- Language-Conditioned Denoiser: Unlike models that apply text constraints after training, LANGTRAJ integrates language directly into the diffusion process. It uses a DistillBERT encoder (fine-tuned with LoRA) to process text prompts. These text embeddings are then fed into a transformer-based denoiser via cross-attention, allowing the model to "hallucinate" trajectories that satisfy the text description.
- Closed-Loop Training Strategy: Diffusion models are typically trained "open-loop." In actual simulation, small errors accumulate over time, leading to "drifting." The authors propose a training tweak where the model generates multiple candidates, selects the best one to "execute," and then continues training from that self-generated state. This teaches the model how to recover from its own small mistakes.
The INTERDRIVE Dataset
The paper introduces INTERDRIVE, a large-scale dataset specifically designed for language-conditioned simulation. Derived from the Waymo Open Motion and NuPlan datasets, it contains 150,000 human-labeled interactive scenarios (e.g., merging, yielding, passing) and 405,000 heuristically labeled single-agent behaviors. Unlike previous datasets that used LLMs to "guess" labels, INTERDRIVE relies on human experts to provide high-quality, nuanced annotations of complex agent-agent interactions.
Key Insights and Results
LANGTRAJ proves that direct conditioning—teaching the model the relationship between language and a trajectory during training—is more effective for complex interactions than inference-time guidance. The use of human-labeled data in INTERDRIVE provided much stronger supervisory signals than LLM-generated prompts, leading to a 13.6% reduction in trajectory error (minADE).
On the Waymo Sim Agent Challenge (WOSAC), LANGTRAJ performs competitively with state-of-the-art diffusion models while adding the benefit of text control. Using text prompts reduced the Displacement Error (minADE) by 12.8% to 13.6% compared to unconditioned models. In safety-critical experiments, LANGTRAJ achieved collision rates as high as 40% when prompted, outperforming LLM-based guidance methods by 10% in collision success and map adherence.
Limitations and Future Work
The authors identify a few challenges for future development. The model sometimes exhibits "history bias," prioritizing the recent history of a vehicle over the text prompt (e.g., a stationary car ignoring a "speed up" command). Additionally, conditioning signals are harder for the model to process when a vehicle is static. Future work will focus on adding explicit temporal logic to handle complex timing in prompts, such as "wait 5 seconds, then turn."
Summary updated