Abstract
Autonomous driving systems (ADS) excel in nominal driving conditions but often fail in rare, safety-critical "corner cases." Generating these scenarios in simulation is essential for safety validation, yet existing methods frequently produce unrealistic trajectories or unavoidable collisions when applied to complex real-world data. We introduce ReGentS (Real-World Safety-Critical Driving Scenario Generation Made Stable), a framework that utilizes differentiable simulation and specific kinematic constraints to generate plausible, challenging scenarios. By addressing gradient biases that cause unrealistic "swinging" behaviors and filtering for actionable interactions, ReGentS achieves a 60.40% collision success rate on the Waymo Open Motion Dataset, outperforming previous state-of-the-art methods in both stability and scenario quality.
Introduction
While modern autonomous planners are highly proficient in everyday traffic, their performance in edge cases—such as sudden cut-ins or near-misses—remains a critical bottleneck for deployment. Collecting data for these events in the real world is prohibitively dangerous and expensive. Consequently, researchers have turned to simulation to "adversarially" perturb real-world traffic data to create synthetic corner cases.
However, existing state-of-the-art methods, such as KING, struggle with stability when transitioning from simple synthetic environments to complex real-world layouts. These methods often produce "unrealistic swinging" trajectories, where an adversary zig-zags unnaturally to force a collision. Furthermore, they frequently generate "unavoidable" collisions, such as a vehicle being rear-ended in a traffic jam, which offer no actionable learning value for the autonomous planner. ReGentS addresses these issues by stabilizing the optimization process and ensuring the generated scenarios are both realistic and useful for training.
Methodology
ReGentS treats scenario generation as a trajectory optimization problem. Starting with a collision-free recording from a real-world dataset, the framework modifies the actions of background agents to provoke a collision with the ego vehicle (the "victim" agent).
Differentiable Simulation with Waymax
To enable efficient optimization, ReGentS is built on Waymax, a JAX-based, fully differentiable simulator. This allows the system to use gradient descent to backpropagate through the entire simulation sequence. By calculating the exact gradients of steering and acceleration required to minimize the distance between an adversary and the ego vehicle, ReGentS can find optimal adversarial perturbations directly.
Addressing the "Red Zone" and Front Divergence
A key contribution of this work is the identification of a "gradient bias" in standard distance-based loss functions. The authors discovered a "Red Zone"—an area slightly ahead of the ego vehicle where the mathematical gradient actually encourages an adversary to steer away from the ego's path before swinging back. This phenomenon is the primary cause of the unrealistic zig-zagging seen in previous models. ReGentS introduces a Stop Front Divergence constraint that cancels steering updates if they would cause the adversary to diverge from the ego vehicle, ensuring smoother, more human-like approaches.
Heuristic Filtering for Actionable Scenarios
To ensure the generated corner cases are meaningful, ReGentS employs heuristic filtering to focus on "actionable" interactions. The system excludes:
- Static Vehicles: Parked cars are not modified to become adversaries.
- Orange Zone Agents: Vehicles located directly behind the ego vehicle are ignored to prevent the generation of unavoidable rear-end collisions.
By focusing on merging and oncoming conflicts, ReGentS ensures that the resulting scenarios test the ego planner's ability to react and avoid accidents rather than simply placing it in a mathematically impossible situation.
Experimental Setup
The framework was evaluated using the Waymo Open Motion Dataset (WOMD), utilizing complex urban layouts with up to 32 agents—a significant scale-up from previous works limited to fewer agents in synthetic environments like CARLA. The "victim" ego agent used in these tests was AIM-BEV, a modern neural-network-based planner, to ensure the scenarios were challenging for current machine-learning-based driving stacks.
Results and Discussion
ReGentS was compared against the KING method across 200 real-world scenarios, yielding significant improvements in both efficiency and scenario difficulty:
- Success Rate: ReGentS successfully generated collisions in 60.40% of scenarios, compared to 48.99% for KING. This improvement demonstrates the effectiveness of the stability constraints in finding collision paths that standard optimization misses.
- Scenario Hardness: The "Driving Score" of the AIM-BEV planner dropped to 50.78 under ReGentS-generated scenarios, compared to 56.19 under KING. This indicates that ReGentS finds more effective ways to challenge the autonomous agent.
- Qualitative Realism: Visual analysis confirmed that ReGentS eliminated the "swinging" behavior. Adversarial agents exhibited smooth decelerations and aggressive but plausible merges, closely mimicking high-risk human driving behavior.
Conclusion
ReGentS represents a significant step forward in making adversarial scenario generation viable for real-world autonomous driving datasets. By identifying and correcting gradient biases in the optimization process and filtering for actionable interactions, the framework produces corner cases that are both physically realistic and highly challenging. Future work will focus on developing "universal" corner cases that can challenge any planner and investigating the "Sim-to-Real" transferability of agents trained on these stabilized adversarial scenarios.
Summary updated