One Diffusion Model, Two Roles: Guided Trajectory Planning and Safety-Critical Scenario Generation in Closed-Loop Simulation
This paper demonstrates that a single pretrained diffusion traffic model can simultaneously serve as a high-performance motion planner, utilizing a novel SSDS decoder and DAPSE guidance, and as a controllable generator of realistic safety-critical scenarios to systematically evaluate planner robustness in closed-loop simulations.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Autonomous vehicles do not drive in a vacuum; they navigate a world teeming with other cars, pedestrians, and unpredictable human choices. To move safely, a self-driving car must do two difficult things at once. First, it must predict what everyone else will do next, understanding that a driver might suddenly change lanes or a pedestrian might step off a curb. Second, it must decide how to react to those predictions, choosing a path that avoids danger while staying comfortable and efficient. For years, engineers have struggled to teach computers this kind of flexible, multi-layered thinking. Traditional methods often rely on rigid rules or simple averages, which fail when the road presents rare, chaotic, or dangerous situations that have never been seen before. The core challenge is creating a system that can imagine many possible futures simultaneously and then steer itself toward the safest one, all while being tested against the very worst scenarios nature can offer.
A team of researchers at KTH Royal Institute of Technology and Zenseact has tackled this problem by developing a single artificial intelligence model that plays two distinct roles in the development of self-driving cars. Instead of building separate systems for planning a route and for testing its safety, they created one unified model based on a type of technology known as a diffusion model. Originally designed to generate images by gradually removing noise from a static picture, this technology has been adapted to understand the complex, multi-layered flow of traffic. The researchers trained this model on thousands of hours of real human driving data, teaching it to predict how a car and its neighbors will move together over time. They then demonstrated that this single trained brain could be used in two complementary ways: first, as a motion planner that guides the car safely through traffic, and second, as a scenario generator that creates realistic, dangerous situations to stress-test that same planner.
In its first role, the model acts as the driver. The researchers improved the model's ability to understand the road by changing how it processes information. Instead of looking at the car's path and the surrounding traffic as separate streams of data that are only combined at the very end, they designed the system to fuse these two streams early on. This allows the model to see the connection between a neighbor's movement and its own potential path much more clearly. When tested in a closed-loop simulation, where the car's decisions immediately affect the environment and the environment reacts back, this improved model performed significantly better than previous versions, especially in complex, reactive situations where other cars are moving unpredictably. To make the car even safer, the team added a method to guide the model's decisions without needing to retrain it. By applying a simple set of rules—such as maintaining a specific speed or staying within lane markings—the system can nudge its predictions toward safer outcomes in real time, correcting its course as it generates a path.
In its second role, the same model becomes a challenger. The researchers repurposed the AI to act as an adversary, generating traffic scenarios designed to expose weaknesses in the car's planning system. By applying different guidance rules to the "enemy" vehicles in the simulation, they could coax the model into creating specific, high-risk interactions. They taught the adversary to perform aggressive maneuvers, such as cutting in front of the self-driving car at the last moment, or to brake suddenly and unexpectedly. Crucially, these dangerous behaviors were not pre-programmed scripts; they emerged naturally from the model's understanding of traffic, guided only by the researchers' desire to create a conflict. This allowed them to generate long, realistic sequences of events where the self-driving car had to react to a car that was actively trying to create a dangerous situation, all while the rest of the traffic behaved normally.
When the researchers put their new planner to the test against these generated scenarios, they discovered a revealing truth about current self-driving technology. The planner that performed best under normal, standard conditions was actually the one that struggled the most when faced with these difficult, adversarial situations. While it handled everyday driving with high scores, it failed to react quickly enough when an aggressive car cut in or braked hard, often relying on simple braking rather than taking proactive evasive action. In contrast, a slightly less dominant planner in standard tests showed more resilience in these extreme cases. The study suggests that performing well on standard benchmarks does not guarantee that a system is robust enough for the real world. By using a single model to both drive the car and generate the tests, the researchers created a closed loop where the system is constantly challenged by the very logic it uses to navigate, revealing failure modes that would otherwise remain hidden.
The work demonstrates that a single learned understanding of traffic can serve as both a driver and a rigorous examiner. By generating realistic, safety-critical interactions like sudden lane changes and braking events, the researchers were able to show that current planners often rely too heavily on reactive braking rather than proactive maneuvering. The results indicate that while the new architecture improves performance in complex traffic, true safety requires testing against the kinds of rare, difficult interactions that standard data rarely captures. This dual-use approach offers a powerful new way to develop self-driving cars, ensuring that the systems we build are not just good at following the rules, but are also robust enough to survive the unexpected.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.