Parallel and Multi-objective Falsification with Scenic and VerifAI

Kesav Viswanadha, Edward Kim, Francis Indaheng, Daniel J. Fremont, Sanjit A. Seshia

Abstract

Verifying the safety of autonomous vehicles (AVs) is a computationally intensive task that requires balancing multiple, often competing, safety priorities. This paper presents extensions to the SCENIC and VERIFAI toolkits designed to address these challenges. By implementing parallelized simulation and a novel multi-objective "rulebook" approach, the authors achieve significant speedups in testing and the ability to identify complex edge cases that violate multiple safety goals simultaneously.

Introduction

The safety of autonomous systems is typically evaluated through falsification—a systematic search for scenarios where a system fails. However, this process faces three major hurdles: the high computational cost of high-fidelity simulators like CARLA, the difficulty of modeling complex dynamic interactions between agents, and the challenge of prioritizing multiple safety metrics (e.g., avoiding collisions vs. staying in lanes). Current tools often struggle to handle these competing objectives during the search for failures.

Methodology

The authors extend the VERIFAI toolkit and the SCENIC scenario description language with several key features:

Parallelized Falsification

Using the Ray library, the framework instantiates multiple simulator instances and SCENIC server connections. This architecture allows for the simultaneous execution of multiple simulations, with results aggregated into a centralized error table.

The parallelized falsification architecture using VERIFAI and SCENIC.

Multi-Objective Rulebooks

To manage multiple safety goals, the authors utilize "rulebooks"—Directed Acyclic Graphs (DAGs) where nodes represent metrics and edges represent priority. For instance, a "No Collision" rule takes precedence over a "Stay in Lane" rule. This partial ordering guides the search toward more critical violations.

Multi-Armed Bandit (MAB) Sampler

A new sampling algorithm based on the Upper Confidence Bound (UCB) approach was introduced. This MAB sampler balances exploration of the scenario space with exploitation of known failure regions, using the rulebook's structure to find increasingly severe counterexamples.

Evaluation and Results

The framework was evaluated using a library of SCENIC scripts based on NHTSA pre-crash scenarios, including unprotected left turns and pedestrian crossings, within the CARLA simulator.

Performance Gains

The parallelized approach yielded a 3x to 5x speedup in simulation throughput within a fixed time window. As shown in the experimental results, parallel execution significantly increased the number of samples collected across all tested scenarios.

Comparison of sample counts for different sampling methods in serial and parallel modes across seven scenarios.

Search Efficiency and Coverage

Beyond speed, parallelism improved the statistical confidence of safety results. By covering more of the search space, the authors reduced the width of confidence intervals for safety bounds by up to 50%. Furthermore, the MAB sampler proved more effective than traditional cross-entropy methods at maintaining diversity in counterexamples, successfully identifying scenarios that violated all five safety objectives in complex intersection tests.

Discussion and Future Work

While the extensions provide a robust framework for AV testing, several areas for improvement remain. Currently, rulebooks are manually defined; future work could explore automated rulebook generation to discover novel failure modes. Additionally, incorporating covariance analysis between scenario features could further optimize sampling efficiency. Finally, bridging the gap between these high-fidelity simulations and real-world road testing remains a critical challenge for the field.

Summary updated

BibTeX
@inproceedings{viswanadha2021parallel,
  author = {Kesav Viswanadha and Edward Kim and Francis Indaheng and Daniel J. Fremont and Sanjit A. Seshia},
  title = {{Parallel and Multi-objective Falsification with Scenic and VerifAI}},
  booktitle = {RV},
  year = {2021},
  doi = {10.1007/978-3-030-88494-9\_15},
}
Figure