CounterScene: Counterfactual Causal Reasoning in Generative World Models for Safety-Critical Closed-Loop Evaluation
Organizations: Tuojing Intelligence · King’s College London · Tsinghua University · The University of Hong Kong
Abstract
Generating safety-critical driving scenarios requires understanding why dangerous interactions arise, rather than merely forcing collisions. However, existing methods rely on heuristic adversarial agent selection and unstructured perturbations, lacking explicit modeling of interaction dependencies and thus exhibiting a realism--adversarial trade-off. We present CounterScene, a framework that endows closed-loop generative BEV world models with structured counterfactual reasoning for safety-critical scenario generation. Given a safe scene, CounterScene asks: what if the causally critical agent had behaved differently? To answer this, we introduce causal adversarial agent identification to identify the critical agent and classify conflict types, and develop a conflict-aware interactive world model in which a causal interaction graph is used to explicitly model dynamic inter-agent dependencies. Building on this structure, stage-adaptive counterfactual guidance performs minimal interventions on the identified agent, removing its spatial and temporal safety margins while allowing risk to emerge through natural interaction propagation. Extensive experiments on nuScenes demonstrate that CounterScene achieves the strongest adversarial effectiveness while maintaining superior trajectory realism across all horizons, improving long-horizon collision rate from 12.3% to 22.7% over the strongest baseline with better realism (ADE 1.88 vs.2.09). Notably, this advantage further widens over longer rollouts, and CounterScene generalizes zero-shot to nuPlan with state-of-the-art realism.
Figures & tables
| Method | Agent Selection | Interaction Modeling | Counterfactual Intervention |
| STRIVE Rempe et al. [2022] | None | Motion prior | ✗ Trajectory optimization |
| CTG Zhong et al. [2023b] | None | Implicit | ✗ Rule-guided diffusion |
| CTG++ Zhong et al. [2023a] | None | Implicit | ✗ Language-guided diffusion |
| SafeSim Chang et al. [2024] | Distance-based | None | ✗ Adversarial diffusion guidance |
| CCDiff Lin et al. [2024] | Manual/TTC-based | Compositional causal modeling | ✗ Structured diffusion guidance |
| CounterScene (Ours) | Causal Selection | Causal Interaction Graph (CIG) | ✓ Counterfactual Guided Diffusion |
| Method | 1–4s | 5–7s | 8–10s | ||||||||||||
| Realism | Adversarial | Realism | Adversarial | Realism | Adversarial | ||||||||||
| ADE | FDE | ORR | HBR | CR | ADE | FDE | ORR | HBR | CR | ADE | FDE | ORR | HBR | CR | |
| CTG | 0.526 | 1.182 | 0.2% | 1.7% | 0.0% | 1.553 | 3.768 | 0.3% | 1.5% | 2.3% | 2.480 | 6.143 | 0.2% | 1.4% | 2.0% |
| VAE | 0.638 | 1.458 | 0.4% | 0.4% | 1.3% | 1.887 | 4.550 | 0.6% | 0.2% | 7.7% | 3.086 | 7.433 | 1.0% | 0.2% | 13.3% |
| STRIVE | 0.502 | 1.171 | 0.3% | 0.1% | 1.3% | 1.565 | 4.018 | 0.5% | 0.1% | 7.7% | 2.722 | 7.060 | 0.8% | 0.1% | 15.3% |
| CTG++ | 0.548 | 1.259 | 0.2% | 1.3% | 0.8% | 1.730 | 4.416 | 0.3% | 1.2% | 2.3% | 2.963 | 7.525 | 0.2% | 1.3% | 3.7% |
| Selection | ADE | FDE | ORR | HBR | CR |
| Random | 1.024 | 2.696 | 1.4% | 1.8% | 10.0% |
| CCDiff | 1.036 | 2.708 | 1.4% | 1.7% | 8.0% |
| SafeSim | 1.004 | 2.643 | 1.3% | 1.7% | 9.5% |
| Ours | 0.721 | 1.898 | 1.1% | 1.8% | 11.0% |
| # | Variant | ADE | FDE | ORR | HBR | CR |
| 1 | Full | 0.747 | 1.978 | 0.9% | 1.8% | 11.0% |
| 2 | No Jerk | 0.784 | 2.098 | 1.0% | 1.6% | 10.5% |
| 3 | No Conflict Aware | 0.768 | 2.052 | 1.0% | 1.6% | 9.0% |
| 4 | No Progressive | 0.775 | 2.072 | 1.0% | 1.6% | 9.0% |
| 5 | No Adaptive | 0.753 | 2.000 | 0.9% | 1.7% | 7.5% |
| 6 | Minimal | 0.798 | 2.157 | 1.2% | 1.4% | 6.5% |
| Method | 3 s | 5 s | 7 s | ||||||||||||
| Realism | Adversarial | Realism | Adversarial | Realism | Adversarial | ||||||||||
| ADE | FDE | ORR | HBR | CR | ADE | FDE | ORR | HBR | CR | ADE | FDE | ORR | HBR | CR | |
| CTG | 0.801 | 1.959 | 0.4% | 7.3% | 5.1% | 1.609 | 4.075 | 0.6% | 7.0% | 10.1% | 2.513 | 6.462 | 1.0% | 6.5% | 18.2% |
| STRIVE | 0.672 | 1.629 | 0.4% | 4.5% | 4.0% | 1.332 | 3.427 | 0.6% | 4.3% | 16.2% | 2.113 | 5.585 | 1.0% | 4.2% | 23.2% |
| CTG++ | 1.199 | 2.636 | 0.2% | 4.5% | 15.2% | 2.282 | 5.233 | 0.1% | 4.8% | 13.1% | 3.429 | 8.149 | 0.1% | 4.5% | 15.2% |
| CCDiff | 0.688 | 1.734 | 0.8% | 17.2% | 14.1% | 1.564 | 4.172 | 1.3% | 16.3% | 28.3% | 2.534 | 6.789 | 1.5% | 15.6% | 40.2% |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Parameter Name | Value | Parameter Name | Value |
| Step length | 0.1 s | Map encoder | ResNet-18 |
| History steps | 31 | Map feature dim. | 128 |
| Prediction horizon | 52 | History feature dim. | 64 |
| Future horizon | 5.2 s | Attention heads | 16 |
| Learning rate | Temporal decoder layers | 2 | |
| Optimizer | Adam | Social decoder layers/block | 4 |
| Early | Mid | Late | |
| Normalized progress | |||
| Stage multiplier | linear | linear | |
| Primary objective | coarse spatial attraction | stronger attraction and timing alignment | precise collision shaping |
| Arrival-time compression | off | active only for | on |
| Jerk regularization | on if enabled | on if enabled | on if enabled |
| Conflict-aware base weights | fixed by type | fixed by type | fixed by type |
| Horizon | Metric | CTG | VAE | STRIVE | CTG++ | CCDiff | CounterScene |
|---|---|---|---|---|---|---|---|
| 1s | ADE | 0.178 | 0.206 | 0.170 | 0.185 | 0.125 | 0.089 |
| FDE | 0.348 | 0.415 | 0.326 | 0.361 | 0.247 | 0.174 | |
| OOR | 0.2% | 0.3% | 0.2% | 0.2% | 0.2% | 0.2% | |
| HBR | 1.9% | 0.5% | 0.2% | 1.5% | 1.4% | 1.3% | |
| CR | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | |
| 2s | ADE | 0.393 | 0.467 | 0.359 | 0.409 | 0.263 | 0.184 |
| Horizon | Setting | PG | CW | ATC | JR | ADE | FDE | ORR | CR | HBR |
| 3s | Full (Ours) | ✓ | ✓ | ✓ | ✓ | 0.338 | 0.814 | 0.5% | 4.0% | 1.7% |
| 3s | No Jerk | ✓ | ✓ | ✓ | 0.362 | 0.875 | 0.6% | 4.0% | 1.5% | |
| 3s | No Conflict Aware | ✓ | ✓ | ✓ | 0.350 | 0.845 | 0.6% | 3.0% | 1.5% | |
| 3s | No Progressive | ✓ | ✓ | ✓ | 0.355 | 0.855 | 0.6% | 3.0% | 1.5% | |
| 3s | No Adaptive | ✓ | ✓ | ✓ | 0.340 | 0.820 | 0.5% | 2.0% | 1.6% | |
| 3s | Minimal | 0.372 | 0.895 | 0.7% | 2.0% | 1.3% |
Autonomous Driving Scenario Generation
Autonomous driving scenario generation creates realistic, controllable traffic situations for training and testing vehicles, especially in rare and safety-critical cases.
See all 111 papers