CrashDojo: Accident-Grounded World Models as Closed-Loop Safety Examiners for Autonomous Driving Planners

Bowen Jing, Haoyun Tang, Ruiyang Hao, Chenchen Ge, Weitao Zhou, Haibao YuarXiv 2026

TL;DR

Testing self-driving cars by replaying normal traffic logs is too easy, while training AI adversaries to simply "cause a crash" often creates chaotic, unrealistic pile-ups. CrashDojo turns a traffic world model into a disciplined driving examiner: it uses real-world accident statistics to pick a plausible hazard—like an adjacent-lane cut-in—and dynamically adapts the adversary's trajectory as the self-driving car reacts, without ever losing the plot of the original maneuver.

What Problem Does This Paper Address?

Dangerous traffic encounters are thankfully rare in real-world driving logs, meaning we have to synthesize them to stress-test autonomous driving "planners" (the software deciding how the car moves).

However, telling a generative traffic model to simply "maximize collision probability" is too blunt an instrument. A car slamming on its brakes in front of you and a car cutting into your lane both cause collisions, yet they test completely different reflexes. Furthermore, closed-loop testing—where surrounding traffic reacts to the self-driving ("ego") car in real time—creates a Catch-22. If the adversary follows a pre-recorded crash path, the test breaks the moment the ego car taps the brakes. Conversely, if the adversary freely replans at every split second just to hit the ego car, its intended maneuver can morph into erratic, physics-defying heat-seeking behavior. How do you keep a test strictly defined, realistic, and reactive all at once?

Methods

CrashDojo solves this by separating what interaction is being requested from how the trajectory adapts in the moment. Instead of retraining a massive model, it wraps a frozen, pre-trained traffic generator (built on a Scene Transformer and a flow-matching model—a cousin of diffusion models that generates smooth motion sequences) in a two-stage pipeline:

Figure 1. From accident context to a planner challenge. (a) Select an actor and fix its mechanism/request parameters. (b) Guide its motion using pair geometry and contextual strength. (c) Execute the interaction and observe the ego response. Relative positions update throughout execution. Scenes, trajectories, and reference ranges are schematic.
  1. Offline Accident-Grounded Selection: Before the simulation starts, CrashDojo inspects the road layout and surrounding vehicles against real-world pre-crash typologies (from NHTSA reports). It ranks candidate (actor, mechanism) pairs—such as lead braking, cut-ins, lane intrusions, or intersection crossings—using a strict checklist. Once chosen, the target car, maneuver type, parameters, and master timing clock are frozen.
  2. Online Persistent Control: Every 0.5 seconds during the simulation, the frozen generator proposes future paths for the adversary. CrashDojo steers these proposals at test time (using L-BFGS optimization) to follow geometry-specific curves anchored to the original clock. It modulates "contact pressure" using driving-log statistics and live proximity—backing off slightly when cars get close so it doesn't force absurd physics—and runs strict kinematic and off-road safety checks on the next 0.5-second trajectory prefix before executing it.

Datasets

  • Training & Reference: The underlying frozen traffic generator was trained on nuScenes, while NHTSA pre-crash typologies and driving logs provide the statistical priors for accident mechanisms and maneuver intensity.
  • Evaluation: The main benchmark spans 100 nuScenes validation scenes (10 s rollouts) and 100 nuPlan-mini evaluation scenes (7 s rollouts) across five diverse ego planners (two learning-based, three rule-based). Notably, CrashDojo runs zero-shot on nuPlan without retraining the generator, relying only on lightweight map/state adapters and guidance calibration. A separate 100-scene nuScenes cohort is used for multi-seed component ablations.

Key Insights and Ideas

  • Decoupling the specification from the trajectory: By locking maneuver timing to a persistent reference clock while letting spatial coordinates adapt, an adversary can execute a committed cut-in that naturally adjusts if the ego car yields, rather than restarting or abandoning the lane change at each replanning step.
  • Precision over collateral chaos: Unconstrained adversarial generators often boost crash rates by turning the whole scene into bumper cars. Grounding the intervention in specific pre-crash roles forces the ego car into tough spots without causing the adversary to drive off-road or slam into innocent background traffic.
  • Evidence beats raw proximity: In ablation studies, picking adversaries via CrashDojo's accident-evidence checklist produced substantially sharper, higher-contact tests for learning-based planners than simply picking the car with the shortest Time-To-Collision (TTC).

Key Results

Across 4,000 total rollouts comparing CrashDojo against SAFE-SIM and two CCDiff baselines, CrashDojo hits the sweet spot between high challenge and high realism:

  • Equal or better target collisions: CrashDojo matches or beats SAFE-SIM in colliding with the designated target in 3 of 4 dataset–planner groups—matching it on nuPlan (34.50% on learning planners; 9.67% on rule-based) and jumping from 11.50% to 20.50% on nuScenes learning planners.
  • Drastically fewer collateral side-effects: Across all four groups, CrashDojo achieves the lowest collateral damage. On nuPlan learning planners, for instance, collisions between the adversary and background cars drop nearly in half compared to SAFE-SIM (10.50% vs. 20.00%), and off-road violations drop more than threefold (1.11% vs. 3.97%).
  • Natural motion: Across all evaluated vehicles, CrashDojo records the lowest distributional discrepancies (Wasserstein distance, JSD, and MMD) for acceleration and jerk in every group, meaning traffic still moves like real cars.

Limitations and Future Work

While not placed in a standalone section, several operational boundaries are noted in the text:

  • Map quality reliance: Accurate mechanism setup benefits from rich lane topology; in 42 of the 100 nuScenes scenes, native map geometry wasn't sufficient, requiring fallback request geometry (which elevates baseline off-road rates on nuScenes compared to nuPlan).
  • Uncontrolled background traffic: CrashDojo focuses its guidance on a single selected risk initiator while replaying remaining background vehicles from recorded logs, whereas joint-generation models attempt to control multiple actors simultaneously.
  • Collision ≠ Inevitability: As the authors note in their discussion of test interpretation, inducing a collision exposes a planner failure in that specific rollout, but does not by itself mathematically prove whether a crash was physically unavoidable.

Summary updated

BibTeX
@misc{jing2026crashdojo,
  author = {Bowen Jing and Haoyun Tang and Ruiyang Hao and Chenchen Ge and Weitao Zhou and Haibao Yu},
  title = {{CrashDojo: Accident-Grounded World Models as Closed-Loop Safety Examiners for Autonomous Driving Planners}},
  year = {2026},
  eprint = {2611.35682},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.35682},
}
Figure