SaFeR: Safety-Critical Scenario Generation for Autonomous Driving Test via Feasibility-Constrained Token Resampling
Organizations: the School of Traffic and Transportation, Harbin Institute of Technology, Harbin, China and Chongqing Research Institute of HIT, Chongqing, China · the Chongqing Changan Automobile Company Ltd, Chongqing, China
Abstract
Safety-critical scenario generation is crucial for evaluating autonomous driving systems. However, existing approaches often struggle to balance three conflicting objectives: adversarial criticality, physical feasibility, and behavioral realism. To bridge this gap, we propose SaFeR: safety-critical scenario generation for autonomous driving test via feasibility-constrained token resampling. We first formulate traffic generation as a discrete next token prediction problem, employing a Transformer-based model as a realism prior to capture naturalistic driving distributions. To capture complex interactions while effectively mitigating attention noise, we propose a novel differential attention mechanism within the realism prior. Building on this prior, SaFeR implements a novel resampling strategy that induces adversarial behaviors within a high-probability trust region to maintain naturalism, while enforcing a feasibility constraint derived from the Largest Feasible Region (LFR). By approximating the LFR via offline reinforcement learning, SaFeR effectively prevents the generation of theoretically inevitable collisions. Closed-loop experiments on the Waymo Open Motion Dataset and nuPlan demonstrate that SaFeR significantly outperforms state-of-the-art baselines, achieving a higher solution rate and superior kinematic realism while maintaining strong adversarial effectiveness.
Figures & tables
| Parameter | Symbol | Value |
|---|---|---|
| Scenario Generation Model | ||
| Attention layers | 3 | |
| Attention Heads | 8 | |
| Feasibility Value Network | ||
| Discount Factor | 0.99 | |
| Expectile Parameter | 0.8 | |
| Dataset | Method | Real. | Kin. | Inter. | Map. |
|---|---|---|---|---|---|
| WOMD | Diffusion [ 20 ] | 0.7644 | 0.4771 | 0.8135 | 0.8653 |
| QCNet [ 3 ] | 0.7013 | 0.4298 | 0.7150 | 0.8387 | |
| GUMP [ 22 ] | 0.7446 | 0.4737 | 0.7791 | 0.8551 | |
| SMART [ 19 ] | 0.7595 | 0.4749 | 0.8039 | 0.8652 | |
| SaFeR(ours) | 0.7730 | 0.4798 | 0.8254 | 0.8731 | |
| nuPlan | Diffusion [ 20 ] | 0.6597 | 0.4151 | 0.7417 | 0.6939 |
| Dataset | Method | CR | SR | VJ | AJ |
|---|---|---|---|---|---|
| WOMD | ReGentS [ 8 ] | 0.733 | 0.510 | 0.259 | 0.614 |
| FREA [ 15 ] | 0.536 | 0.719 | 0.213 | 0.566 | |
| SAFE-SIM [ 10 ] | 0.616 | 0.549 | 0.197 | 0.508 | |
| ADV-BMT [ 11 ] | 0.915 | 0.324 | 0.251 | 0.603 | |
| SaFeR(ours) | 0.761 | 0.865 | 0.161 | 0.499 | |
| nuPlan | ReGentS [ 8 ] | 0.617 | 0.534 | 0.291 | 0.627 |
| Setting | MDA | LFR | CR | SR | VJ | AJ |
|---|---|---|---|---|---|---|
| w/o MDA | - | ✓ | 0.793 | 0.720 | 0.205 | 0.519 |
| w/o LFR | ✓ | - | 0.827 | 0.527 | 0.187 | 0.501 |
| SaFeR | ✓ | ✓ | 0.761 | 0.865 | 0.161 | 0.499 |
| Trust Region ( ) | CR ( ) | SR ( ) | VJ ( ) | AJ ( ) |
|---|---|---|---|---|
| 10 | 0.203 | 0.901 | 0.153 | 0.471 |
| 20 ∗ | 0.761 | 0.865 | 0.161 | 0.499 |
| 50 | 0.794 | 0.817 | 0.495 | 0.630 |
| 100 | 0.805 | 0.801 | 0.517 | 0.796 |