ReGentS: Real-World Safety-Critical Driving Scenario Generation Made Stable

Yuan Yin, Pegah Khayatan, Éloi Zablocki, Alexandre Boulch, Matthieu Cord

TL;DR

ReGentS stabilizes model-based trajectory optimization to generate realistic, safety-critical driving scenarios from real-world data. By introducing targeted kinematic constraints and heuristics, it eliminates unrealistic vehicle behaviors (like bizarre "swinging" turns) and filters out unhelpful edge cases (like unavoidable rear-end collisions), boosting scenario generation success rates on real-world data by over 10%.

What Problem Does This Paper Address?

Training machine learning-based autonomous driving (AD) systems requires exposure to safety-critical "corner cases"—rare, dangerous events like near-misses or sudden cut-ins. Since collecting this data in the real world is costly and hazardous, researchers turn to generating these scenarios in simulation by modifying regular, collision-free driving logs.

However, existing model-based trajectory optimization frameworks (such as KING) suffer from major stability issues when scaled from simple synthetic environments to complex real-world data:

  1. Unrealistic Trajectories: Without constraints, optimization gradients can force adversarial vehicles to execute physically bizarre "swinging" maneuvers (e.g., swerving left then sharply right) just to force a collision.
  2. Unhelpful Collisions: The optimization often defaults to easy but useless scenarios, such as having a background vehicle rear-end the ego vehicle. These are virtually unavoidable for the AD planner and offer no actionable training value.
  3. Scalability Limits: Prior methods relied on heavy interactions between differentiable proxy simulators and non-differentiable engines (like CARLA), limiting them to simple scenes with very few vehicles.

Methods

ReGentS builds upon the model-based optimization framework of KING but refactors it to handle complex real-world data with up to 32 agents. It achieves this by integrating directly with Waymax, a fully differentiable simulator implemented in JAX, allowing for exact gradient descent directly through the simulator.

To fix the trajectory instabilities, the authors introduce two key algorithmic remedies:

  • Stop Front Divergence: To prevent vehicles from taking unrealistic swinging turns, ReGentS monitors vehicles ahead of the ego agent. If an adversary's yaw offsets to the same side as its relative position to the ego vehicle (entering a "diverging zone"), the framework cancels the steering action update for that step, forcing a smoother, more natural approach.
  • Adversary Filtering Heuristics: ReGentS automatically excludes static (parked) vehicles from being selected as adversaries. It also defines a 45-degree "orange zone" behind the ego vehicle; any background agent that spends most of its time in this zone is disqualified to avoid generating unhelpful rear-end collisions.
The architecture and forward model assumption of ReGentS using the differentiable Waymax simulator.

Datasets

The authors evaluated ReGentS using Waymo Open Motion Dataset (WOMD), a large-scale, real-world dataset of urban driving logs. They extracted 200 initially collision-free scenarios from the validation set to test the adversarial generation capabilities.

Key Insights and Ideas

  • Kinematic Gradient Bias: The paper uncovers why unconstrained optimization produces unrealistic trajectories. When minimizing a time-averaged distance loss, the mathematical gradient can actually instruct a front vehicle to turn away from the ego vehicle's path initially, creating an unnatural swinging motion before the eventual crash.
Visualization of the negative gradient of the distance cost, highlighting the Diverging Front Adversary zone (red) and Converging Rear-end zone (orange).
  • The Rear-End Trap: Optimization algorithms are lazy; they seek the path of least resistance. Rear-ending an ego vehicle requires very little trajectory modification from a trailing vehicle, making it an optimization hotspot that must be explicitly blocked via heuristics to force the generation of more interesting scenarios (like lane-merging or head-on cut-ins).

Key Results

ReGentS significantly outperforms the unconstrained baseline when applied to real-world data:

  • Higher Success Rate: On the WOMD dataset, the baseline KING method's generation success rate dropped sharply to 48.99% due to the complexity of real-world data. ReGentS achieved a 60.40% success rate—a absolute increase of over 11%.
  • Better Qualitative Realism: As shown below, while the unconstrained baseline causes vehicles to collide with other background objects or execute wild swerves, ReGentS generates smooth, plausible adversarial behaviors like tight lane-merges and realistic decelerations.
Qualitative comparison showing how ReGentS eliminates diverging behaviors, avoids rear-ends, and ignores static vehicles compared to KING.

Limitations and Future Work

Despite its success, the authors note a few areas for improvement:

  • Noisy Initial Actions: Because real-world datasets only provide waypoint coordinates, background agent actions must be estimated using an invertible bicycle model, which can introduce noise from the source data.
  • Generalization: The generated corner cases are currently optimized against one specific ego planning algorithm. It remains to be seen how well these safety-critical scenarios generalize to test or fail other distinct AD planners.

Summary updated

BibTeX
@inproceedings{yin2024regents,
  author = {Yuan Yin and Pegah Khayatan and Éloi Zablocki and Alexandre Boulch and Matthieu Cord},
  title = {{ReGentS: Real-World Safety-Critical Driving Scenario Generation Made Stable}},
  booktitle = {W-CODA @ ECCV},
  year = {2024},
  url = {https://openreview.net/forum?id=dJqcdUgEdw},
}
Figure