Scenario-based Compositional Verification of Autonomous Systems with Neural Perception

Christopher Watson, Rajeev Alur, Divya Gopinath, Ravi Mangal, Corina S. Pasareanu · OpenReview

Abstract

Recent advances in deep learning have enabled the development of autonomous systems that use deep neural networks (DNNs) for perception. Formal verification of these systems is challenging due to the size and complexity of the perception DNNs as well as hard-to-quantify, changing environment conditions. To address these challenges, we propose a probabilistic verification framework for autonomous systems based on three key concepts: (1) Scenario-based Modeling, (2) Probabilistic Abstractions, and (3) Symbolic Reasoning and Acceleration. We illustrate our approach on two case studies: an experimental autonomous system for airplane taxiing (TaxiNet) and a simulation model of an F1Tenth autonomous car.

Introduction

The integration of Deep Neural Networks (DNNs) into the perception loops of autonomous systems—such as self-driving cars and unmanned aerial vehicles—has significantly improved their operational capabilities. However, providing formal safety guarantees for these systems remains a formidable challenge. Traditional verification methods struggle with the sheer scale of modern DNNs, which often contain millions of parameters. Furthermore, these systems are highly sensitive to environmental conditions; a perception model that performs reliably in clear weather may fail under different lighting or atmospheric conditions.

This paper presents a framework for the probabilistic verification of autonomous systems that bridges the gap between high-level system dynamics and low-level, unpredictable AI perception. By decomposing complex missions into discrete scenarios and utilizing probabilistic abstractions, we provide a scalable method for calculating rigorous safety bounds.

Methodology

1. Scenario-based Modeling

Rather than attempting to analyze an entire mission as a monolithic entity, our framework decomposes the task into a composition of specific "scenarios." A scenario represents a distinct environmental condition (e.g., "driving on a straight track during heavy rain") over a fixed time horizon. This decomposition allows for a "divide and conquer" approach to verification.

2. Probabilistic Abstractions

To handle the complexity of perception DNNs, we treat them as black boxes and build compact probabilistic abstractions. For each scenario, we utilize offline datasets to construct a confusion matrix (or contingency matrix). This matrix maps the true state of the environment to the probability of the DNN producing a specific estimate. By doing so, we transform a high-dimensional neural network into a manageable Markov chain, capturing the statistical performance of the perception system under specific conditions.

3. Symbolic Reasoning and Acceleration

The core of our verification engine lies in symbolic reasoning and a novel set of acceleration proof rules. These Hoare-style assertions allow us to compose individual scenarios and reason about the system's behavior over long or even infinite operational horizons. Crucially, these rules bound the probability of failure under arbitrary variations of environment conditions without requiring the exhaustive simulation of every possible path.

Case Studies

We evaluated our framework using two distinct autonomous system models:

  1. TaxiNet: An experimental DNN developed by Boeing for tracking the centerline of an airplane taxiway. We partitioned the datasets into bright and dark lighting conditions to analyze how perception performance shifts with environmental changes.
  2. F1Tenth: A simulation of a 1/10th scale autonomous racing car utilizing 21-dimensional LiDAR observations. In this case, scenarios were defined by track geometry, specifically straight, left turn, and right turn segments.

Key Insights and Results

The Pitfalls of Data Pooling

A significant finding of our research is the danger of "pooling" data. We observed that aggregating data from different conditions (e.g., mixing day and night images) creates an abstraction that is overly optimistic for challenging conditions (night) and overly pessimistic for ideal conditions (day). Scenario-specific abstractions provide much higher precision, allowing for more accurate safety assessments.

Precision and Scalability

In the TaxiNet study, a "pooled" model predicted a generic 30% error rate. In contrast, our scenario-aware model correctly identified that the error rate was as low as 3% in bright light but surged to 55% in dark conditions.

From a computational standpoint, our compositional approach demonstrated superior scalability. We generated error coefficients for a 64-step scenario in approximately 79 seconds. In comparison, the industry-standard probabilistic model checker, PRISM, required over 481 seconds and eventually failed due to memory exhaustion on longer sequences.

Safety Bounds

By applying our acceleration rules, we were able to prove that the F1Tenth car's failure probability remains below a specific threshold even when encountering unpredictable sequences of turns, provided the system begins in a verified "safe" configuration.

Limitations and Future Directions

While the framework provides a robust path forward for DNN verification, several areas for improvement remain:

  • State Space Discretization: The current reliance on a discretized grid for state representation can introduce inaccuracies. Future work will focus on extending these abstractions to continuous-state systems.
  • Environment Transitions: The model assumes environment conditions change abruptly between scenarios. We aim to model more continuous environmental shifts, such as gradual changes in lighting.
  • Invariant Discovery: Finding the "invariant preconditions" for acceleration rules currently relies on heuristic searches with numerical solvers (Z3). Developing more nuanced methods for identifying these invariants is a priority for future research.

Conclusion

Our scenario-based compositional framework offers a scalable and precise method for verifying autonomous systems with neural perception. By accounting for environmental variability and leveraging probabilistic abstractions, we provide a rigorous means of ensuring safety in increasingly complex AI-driven systems.

Summary updated

BibTeX
@inproceedings{watson2025scenario,
  author = {Christopher Watson and Rajeev Alur and Divya Gopinath and Ravi Mangal and Corina S. Pasareanu},
  title = {{Scenario-based Compositional Verification of Autonomous Systems with Neural Perception}},
  booktitle = {SAIV},
  year = {2025},
  url = {https://openreview.net/forum?id=fZFIc2vfXo},
}
Figure