Introduction
Predicting the trajectories of surrounding agents is a critical component of the autonomous vehicle (AV) software stack. While modern data-driven models perform well in standard driving conditions, they often struggle with rare, high-stakes "edge cases"—such as sudden lane cuts or illegal maneuvers—that are underrepresented in real-world datasets. Testing these models in reality is costly and dangerous, while manual scenario design in simulation is labor-intensive. This paper presents a unified platform that automates the generation, simulation, and evaluation of complex interactive scenarios to systematically identify model failures.
Methodology
The proposed platform integrates three core technologies to create a robust testing pipeline: the SCENIC scenario-modeling language, the VERIFAI analysis toolkit, and the CARLA simulator.
- SCENIC: A probabilistic programming language used to define "abstract scenarios." Instead of specifying exact coordinates, developers describe general situations (e.g., "a car following road direction"). SCENIC then samples from these distributions to generate thousands of unique "concrete" variations.
- VERIFAI: This toolkit serves as the platform's search engine. It utilizes a multi-armed bandit sampler to navigate the high-dimensional scenario space. By identifying regions where the model performs poorly, it focuses its search to find more failure cases, a process known as falsification.
- CARLA Simulator: An open-source simulator that executes the generated scenarios, providing synthetic sensor data and ground-truth trajectories for evaluation.
- Multi-Objective Evaluation: The platform evaluates models using a tuple of metrics, such as Average Displacement Error (ADE) and Miss Rate (MR), allowing for nuanced performance assessment beyond simple accuracy scores.
Scenario Library and Datasets
The researchers developed a library of 25 SCENIC programs representing challenging traffic behaviors. These scenarios were synthesized from three primary sources: the INTERACTION dataset (complex multi-agent interactions), the Argoverse Motion Forecasting Dataset (a standard benchmark), and NHTSA pre-crash statistics (common accident types). The platform was used to stress-test LaneGCN, a state-of-the-art prediction model trained on Argoverse.
Key Insights
The systematic testing revealed several critical insights into behavior prediction:
- Complexity-Performance Trade-off: Model accuracy degrades significantly as scenario complexity increases. For example, an unprotected left turn (Scenario 5) resulted in a five-fold increase in prediction error compared to a simple intersection wait (Scenario 1).
- Ego-Vehicle Influence: The behavior of the autonomous vehicle itself impacts the predictability of other agents. This underscores the necessity of closed-loop simulation where agents can interact dynamically.
- Efficiency of Falsification: Active search via VERIFAI proved far more efficient than random sampling at uncovering specific failure modes, identifying the "1%" of situations where the model fails.
Experimental Results
The platform successfully identified specific failure modes for LaneGCN. Quantitative results across five representative scenarios demonstrate the performance drop as complexity scales.
In the most challenging scenario (Scenario 5), the model reached a Miss Rate (MR) of 0.49, failing to provide a plausible prediction nearly half the time. Additionally, the platform demonstrated scalability through parallelization, achieving a 3.09x speedup using five workers while maintaining a high Scenario Diversity (SD) score of approximately 0.53.
Limitations and Future Work
Current limitations include a sequential bottleneck in the sampling process, which prevents perfectly linear speedups during parallelization. Future work aims to integrate the full AV stack—including perception and planning—to observe how prediction errors propagate to physical collisions. The researchers also plan to expand the scenario library to include more diverse driving environments and regional traffic laws.
Summary updated