Skip to content
Robotics.world

Research

Model-Aware Generation of Safety-Critical Scenes for Robust End-to-End Driving via Distilled Planner Surrogates

End-to-end driving models score well on standard benchmarks but crash often in rare, safety-critical interactions, largely because such interactions make up less than 0.03% of real-world driving time…

The paper’s first page · arXiv:2610.35448
arXiv
2610.35448 · Preprint · not peer-reviewed
Published
2026-10-26
Authors
Khaled M. Seyam, Julian Wiederer, Samar Fathalah, Markus Braun, Bin Yang

In plain words

End-to-end driving models score well on standard benchmarks but crash often in rare, safety-critical interactions, largely because such interactions make up less than 0.03% of real-world driving time and are therefore almost absent from training data.

AI summary

Overview

  • Research area: Autonomous driving, specifically safety-critical scenario generation and robustness fine-tuning for vision-based end-to-end (E2E) planners.
  • Technical level: Advanced. The paper assumes familiarity with closed-loop planning benchmarks, bird's-eye-view (BEV) representations, model distillation, adversarial optimization, and quality-diversity search.
  • Scope: The paper diagnoses why end-to-end driving planners collide in safety-critical closed-loop settings and proposes a model-aware pipeline that distills a planner into a differentiable surrogate, generates planner-specific adversarial scenes against it, and fine-tunes the real planner on a small set of rendered scenes.

What This Paper Is About

End-to-end driving models score well on standard benchmarks but crash often in rare, safety-critical interactions, largely because such interactions make up less than 0.03% of real-world driving time and are therefore almost absent from training data. The authors show that these crashes are mostly planning failures rather than perception failures, and that generating useful training data requires targeting the specific planner, since a vision-based planner consumes images and cannot be attacked directly without putting an expensive video renderer inside the optimization loop. Their goal is to produce a small number of photorealistic, planner-specific safety-critical scenes, each paired with a correct evasive label, that reduce closed-loop collision rates without degrading normal driving.

Key Contributions

  1. Failure-mode analysis on NeuroNCAP: A decomposition of every closed-loop collision into perception or planning failure, showing that 95.9% of DiffusionDrive's collisions (95.8% for SparseDrive) occur while the adversary is detected, which motivates freezing perception and fine-tuning only the planning head.
  2. A differentiable planner surrogate: A surrogate built from the planner's own planning head, copied and frozen, behind a small trained adapter (0.83 M parameters, versus 86.2 M for SparseDrive and 92.1 M for DiffusionDrive) that maps ground-truth BEV state into the planner's context-feature space, validated against the real planner.
  3. A model-aware scene-generation pipeline: To the authors' knowledge the first pipeline that generates photorealistic safety-critical scenes for vision-based E2E planners, using a quality-diversity (MAP-Elites) search to optimize attacks against the surrogate, a geometric solver to label each scene with a safe escape, and rejection of scenes with no viable escape.
  4. A cross-planner transfer experiment: Evidence that each planner improves most on scenes generated against itself, with a "targeting premium" of +0.18 for SparseDrive and +0.56 for DiffusionDrive, showing the benefit comes from planner specificity rather than adversarial data in general.

Main Findings

  • Collisions are planning failures, not perception failures: In 95.9% of DiffusionDrive's NeuroNCAP collision episodes the adversary was detected (recall@5–35 m ≥ 0.5); pure perception failures account for 4.1%. SparseDrive decomposes the same way at 95.8%. Overall detection rates in Table I are 27.8% detected-and-crashed, 65.3% detected-and-no-crash, 1.2% missed-and-crashed, and 5.7% missed-and-no-crash, with per-category recall of 0.822 (stationary), 0.861 (frontal) and 0.915 (side), overall 0.866.
  • The diagnosis is robust to the threshold: Sweeping the recall threshold from 0.3 to 0.7 moves the detected-and-crashed share from 97.0% to 92.5% on SparseDrive and from 97.8% to 89.3% on DiffusionDrive, while undetected crashes never exceed 3.1% of all episodes. Detection also holds at close range, with recall rising from 0.84 beyond 15 m to 0.91 within 15 m on DiffusionDrive and from 0.84 to 0.90 on SparseDrive.
  • Closed-loop collisions roughly halve with 50 scenes: SparseDrive drops from 28.0% to 12.2% (±0.8) and DiffusionDrive from 37.5% to 19.2% (±4.6) on NeuroNCAP, with scores rising from 4.009 to 4.639 (±0.04) and from 3.624 to 4.394 (±0.19) respectively, over three seeds. Every individual seed improves on the stock planner.
  • The hardest category improves most: Side collisions improve by about 1.5 points on each planner; SparseDrive reaches the maximum stationary score of 5.000. Frontal remains the hardest category after fine-tuning.
  • Normal driving is largely preserved: The nuScenes collision rate is unchanged on SparseDrive (0.088 vs. 0.094) and slightly lower on DiffusionDrive (0.071 vs. 0.079), and nuScenes L2 is at most 0.06 higher than stock (0.668 vs. 0.609 for SparseDrive, 0.580 vs. 0.574 for DiffusionDrive).
  • Model-aware scenes beat all three baselines: Against recovery-based (23.8% SparseDrive, 34.7% DiffusionDrive), rule-based (17.9%, 34.3%) and Challenger-style (19.1%, 38.8%) data, all rendered with MagicDriveV2 and given the same 50-scene budget and fine-tuning recipe, the proposed scenes give 12.2% and 19.2%. Challenger-style data leaves DiffusionDrive at 38.8%, no better than stock (37.5%).
  • Open-loop metrics do not track closed-loop safety: Challenger-style data achieves the best Challenger L2 on both planners and the best Challenger collision rate on DiffusionDrive (0.63), yet does not improve DiffusionDrive's closed-loop collision rate. The proposed method's Challenger L2 is higher (1.68 SparseDrive, 1.98 DiffusionDrive), which the authors attribute to the Challenger ground truth not reacting to the adversary.
  • The escape label matters less than the attack: Holding scenes fixed to a rule-based generator, the solved escape gives score 3.939 and collision rate 30.8% on DiffusionDrive, versus 3.833/33.1% for brake-always, 3.759/34.3% for a CEM-Diffusion expert, and 3.624/37.5% for stock. The gap to the full model-aware result (4.394/19.2%) is attributed to the model-aware attacker.
  • The surrogate is faithful enough for scene generation: On 5,119 nuScenes val samples with annotated futures, the surrogate deviates from its planner by 1.02× (SparseDrive) and 1.12× (DiffusionDrive) the planner's own deviation from ground truth. A surrogate-predicted collision corresponds to a real collision with precision 0.603 and 0.673, which is 38× and 51× the base rate of about 1.5%; recall is 0.573 and 0.544.
  • The stock planner still fails on the generated scenes: The unmodified planner, which never saw the scenes, collides with the attacker in 32 of 50 SparseDrive scenes and 26 of 50 DiffusionDrive scenes.
  • Attack types emerge rather than being specified: Six attack types emerge from a single collision objective. Attacks against DiffusionDrive concentrate on cut-ins with almost no head-on threats, while attacks against SparseDrive spread over cut-ins, head-on and front-brake.
  • Transfer is asymmetric: DiffusionDrive fine-tuned on SparseDrive's scenes retains only 6.7 of the 18.3-point collision-rate reduction it obtains on its own scenes, and every own-data seed outscores every cross-data seed on both planners.
  • Search is cheap relative to rendering-in-the-loop: Generating 50 scenes costs around 30 GPU-hours of search per planner plus around 70 GPU-hours of rendering (about 1.4 GPU-hours per scene), against roughly 4,300 GPU-hours for a gradient-free search with the real planner in the loop.

Methodology in Plain English

The pipeline has four stages.

First, build a cheap stand-in for the planner. The real planner takes camera images, so any attempt to optimize an attacker against it would have to render video at every optimization step and differentiate through the renderer. Instead, the authors copy the planner's own planning head, freeze it, and train a small adapter that feeds it ground-truth BEV information (agent boxes, map lanes, ego state, navigation command) rather than images. The adapter is trained to match both the features the real planner's perception produces and the trajectory the real head outputs. Because the head is the planner's own, gradients point at that planner's specific weaknesses.

Second, search for attacks. An attack is a sequence of acceleration and steering commands for one adversarial vehicle, unrolled with a kinematic bicycle model so every attack stays physically drivable. The controls are optimized by gradient descent through the surrogate to minimize a collision objective that pulls the attacker toward the ego's predicted path, synchronizes arrival times, keeps the attacker on the drivable area and clear of other agents, and respects steering, acceleration and jerk limits. To avoid rediscovering the same failure, the optimization runs inside MAP-Elites, a quality-diversity search on a 5×5 grid over contact time-gap and approach angle, keeping in each cell the attack that comes physically closest to the ego. Attack types therefore emerge from the search rather than being prescribed.

Third, label each scene with an escape. With the attacker's trajectory fixed, a geometric solver searches for an ego trajectory that maximizes clearance while staying on-road, avoiding other agents, remaining kinematically feasible and keeping the route goal. The same MAP-Elites search is run over longitudinal and lateral response descriptors. Scenes where no trajectory clears the adversary by 4 m after a 1 s (12-frame) reaction delay are rejected as unavoidable; this discards about 15% of attacks.

Fourth, render and fine-tune. Only the surviving 50 scenes per planner are recomputed for spatial consistency and rendered with MagicDriveV2 into six-camera clips of 65 frames at 848×1600 per camera. The planner is fine-tuned on these scenes mixed with clean nuScenes (the 50 scenes repeated eight times, about 13.6% of training samples) with perception frozen and only planning-head parameters updated.

Why This Matters

The paper reframes the safety problem for end-to-end driving from perception to planning, and shows that safety-critical training data is inherently planner-specific rather than a generic commodity. It offers a practical way to manufacture such data cheaply, since the video renderer stays outside the optimization loop and only a few dozen scenes need rendering. It also cautions that open-loop adversarial benchmarks can reward the wrong behavior: the Challenger-style baseline had the best open-loop numbers while failing to improve closed-loop safety on DiffusionDrive.

Real-world applications:

  • Safety validation and certification of production driving stacks, where rare near-miss interactions dominate risk but are hard to source from logs.
  • Targeted regression testing of a specific deployed model, since scenes are generated against that model's own failure modes rather than a generic scenario catalogue.
  • Data augmentation for fleet training pipelines, allowing a small rendered scene budget to be spent where a particular planner is weak.
  • Simulation and scenario-library construction for corner cases such as cut-ins, head-on approaches and front-brake events, including night conditions.

Industry relevance: the work is co-authored with Mercedes-Benz AG and addresses a bottleneck that directly affects cost, since rendering and closed-loop simulation dominate the expense of adversarial data generation. The 30 GPU-hours of search plus about 70 GPU-hours of rendering per planner, versus roughly 4,300 GPU-hours for a renderer-in-the-loop alternative, is the kind of difference that determines whether a method is deployable in a production loop.

Future Directions

  • Broaden the planner coverage: The targeting premium is measured at only two architectures; a third would be needed to confirm the trend, and the renderer currently restricts the method to nuScenes-based planners.
  • Improve surrogate recall: DiffusionDrive's surrogate has a recall of 0.544 on that planner's real collisions, so it misses roughly half of them; the measured premium is therefore described as a lower bound on what a better surrogate would expose.
  • Extend the scene scope: Each scene currently contains a single adversarial vehicle and no vulnerable road users; the authors plan to extend the search to multiple adversaries and to vulnerable road users.
  • Use multiple escape labels: The solver produces several qualitatively distinct valid escapes per scene, but training uses only the one with the largest clearance; multi-label training is left for future work.
  • Address frontal scenarios: Frontal interactions remain the hardest category after fine-tuning and are left as an open problem, as is evaluation on further closed-loop simulators beyond NeuroNCAP.

Target Audience

Researchers and engineers working on end-to-end autonomous driving, adversarial scenario generation, and closed-loop safety evaluation will benefit most, along with practitioners responsible for validating and hardening production planning stacks. Readers need a working knowledge of BEV representations, trajectory prediction and optimization-based scenario design; the paper is not an introductory survey. Those interested in data-efficient fine-tuning and in the gap between open-loop and closed-loop benchmark metrics will also find the transfer and baseline analyses useful.

Authors’ abstract

End-to-end driving models perform well on standard benchmarks but collide frequently in safety-critical scenarios. We present a failure-mode analysis on NeuroNCAP which shows that 95.9% of DiffusionDrive's collisions are planning failures despite reliable detection, pinpointing the bottleneck in planning rather than perception. We attribute this to a fundamental data imbalance, as safety-critical interactions are rare in real driving logs, so planners are hardly ever trained…

The full abstract on arXiv
Read the original paper

Related papers