arXiv:2610.35448cs.ROOct 2026

Manuscript Offprint

arXiv:2610.35448

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

Khaled M. Seyam, Julian Wiederer, Samar Fathalah, Markus Braun, Bin Yang

Khaled M. Seyam 1^{1}, Julian Wiederer 2^{2}, Samar Fathalah 1^{1}, Markus Braun 2^{2}, Bin Yang 1^{1}

1^{1}Institute of Signal Processing and System Theory, University of Stuttgart, Germany

2^{2}Mercedes-Benz AG, Stuttgart, Germany

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 on them. We close this gap with a novel model-aware framework that generates safety-critical training scenes against a specific planner. Each planner is attacked at the bird's-eye-view (BEV) level through a differentiable surrogate distilled from its own planning head. This keeps the expensive video renderer out of the attack loop. We extract 50 scenes per planner, each pairing an attack with a safe escape trajectory that serves as the fine-tuning label. A fully automated quality-diversity search generates both the attacks and the escapes, so that their variety is not specified by hand. Only these scenes are rendered to fine-tune the planner, which reduces the computational cost significantly. Fine-tuning on these scenes roughly halves the closed-loop collision rate of two planners on NeuroNCAP (SparseDrive 28.0%→12.2%, DiffusionDrive 37.5%→19.2%) while largely preserving normal driving. A cross-planner transfer experiment shows that the gain comes from targeting the specific planner. Each planner improves most on the scenes generated against itself, and DiffusionDrive fine-tuned on SparseDrive's scenes retains only 6.7 of its 18.3-point collision-rate reduction.

I. INTRODUCTION

End-to-end (E2E) autonomous driving has shown strong performance on standard benchmarks, yet the models are limited by the data they are trained on. Real-world driving datasets are heavily skewed toward normal, uneventful driving, with safety-critical interactions accounting for less than 0.03% of real-world driving time [1]. Such situations are inherently rare in naturalistic driving and cannot be deliberately staged at scale for safety, cost, and legal reasons. As soon as these models encounter scenarios outside their training distribution, performance degrades sharply. On Challenger, which generates physically plausible videos for adversarial scenarios such as cut-ins, sudden lane changes, and blind-spot intrusions, the collision rate of state-of-the-art E2E models increases by up to 26×26\times compared to standard nuScenes evaluation [2]. While Challenger stress-tests models through video-based adversarial replay, NeuroNCAP evaluates in closed-loop, where the ego executes its own plan and failures hidden in open loop appear, on harder scenarios including oncoming vehicles, stationary vehicles, and side collisions [3]. There SparseDrive results in a collision rate of 28.0% and

Figure

Fig. 1. Model-aware adversarial fine-tuning. We distill an end-to-end planner into a differentiable surrogate, optimize adversarial scenarios against it, and render them to fine-tune that planner. The renderer never enters the optimization loop. Bottom: closed-loop collision rate on NeuroNCAP. Each planner improves most on the scenes generated against itself.

DiffusionDrive in 37.5%.

Since collecting safety-critical driving data at scale remains impractical, several directions have been explored to synthetically close this gap. Video generation models such as MagicDriveV2 [4] can synthesize photorealistic multi-view driving videos. Yet they are evaluated almost exclusively on perceptual quality metrics like FID and FVD, and their videos have so far served perception tasks such as 3D detection and tracking [5], [6] rather than planning. Methods that do generate training data for the planner either derive it from validation failures without closed-loop evaluation [7] or simulate hundreds of thousands of scenes reconstructed from logged drives [8]. In both cases the scenarios come from existing data rather than being designed as interactions. Adversarial scenario generation designs such interactions deliberately, but either at the state level without photorealistic rendering [9]–[11] or, as in Challenger [2], against the logged ego trajectory rather than against a planner. No existing method generates photorealistic adversarial scenes optimized against a specific vision-based planner.

To locate the bottleneck behind these E2E failures, we decompose every closed-loop collision on NeuroNCAP into a perception or a planning failure by checking whether the planner detected and tracked the adversary. In 95.9% of DiffusionDrive's collisions, the threat is detected, so the model sees the danger but fails to react. Targeting this weakness with generated scenes requires the gradient of a collision objective with respect to the adversary's behavior. For a vision-based planner, whose input is rendered video, this gradient would have to pass through the video renderer, which is computationally infeasible. We therefore attack a surrogate instead. We distill the target planner π\pi into a differentiable surrogate planner π^\hat{\pi}, which consists of the planner's own planning head, copied and frozen, behind a small trained adapter that takes ground-truth bird's-eye-view (BEV) state instead of images. The failure analysis justifies this construction, since perception is reliable. Gradients through π^\hat{\pi} are cheap and point at the planner's specific failure modes rather than at a generic driving prior. Every generated scene is therefore optimized against the planner to be fine-tuned.

Those gradients drive the attack search, steering an adversarial vehicle in BEV to maximize collision risk for the planner. A quality-diversity search spreads the attacks over different behaviors, so the types of attack are found by the search rather than specified by hand. A geometric solver then computes a safe escape trajectory for every scene as its fine-tuning label and rejects scenes for which no escape exists. The search costs around 30 GPU-hours per planner, and only the 50 surviving scenes are later rendered photorealistically. We evaluate closed-loop on NeuroNCAP, open-loop on Challenger's adversarial replay, and on clean nuScenes to confirm that fine-tuning does not degrade normal driving. These 50 scenes roughly halve each planner's closed-loop collision rate on NeuroNCAP (SparseDrive 28.0% to 12.2%, DiffusionDrive 37.5% to 19.2%; Fig. 1) while normal driving is largely preserved.

In short, our contributions are:

  • A failure-mode analysis on NeuroNCAP showing that 95.9% of DiffusionDrive’s closed-loop collisions are planning failures despite reliable detection, which motivates fine-tuning the planning head only.

  • A novel differentiable surrogate of a vision-based E2E planner, built from the planner’s own frozen planning head behind a small adapter over ground-truth BEV state and validated against the real planner.

  • To our knowledge, the first model-aware pipeline for generating photorealistic safety-critical scenes for vision-based E2E planners. It optimizes attacks through the surrogate with a quality-diversity search, labels each scene with a geometrically solved escape, and rejects scenes for which no escape exists. With 50 scenes per planner, it roughly halves the closed-loop collision rate of two planners.

  • A cross-planner transfer experiment showing that each planner improves most on the scenes generated against itself, and that this benefit is larger for DiffusionDrive than for SparseDrive. The gain therefore comes from targeting the specific planner rather than from adversarial data in general.

We will release the code, the distilled surrogates, and the generated adversarial scenes for both planners.

References (28)