Scenario-Based Compositional Verification of Autonomous Systems with Neural Perception

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

TL;DR

This paper introduces a framework for verifying the safety of autonomous systems that use deep neural networks (DNNs) for perception. By decomposing complex tasks into specific "scenarios" (like bright vs. dark lighting) and using probabilistic abstractions, the authors provide a way to calculate rigorous safety bounds that scale to massive AI models and long operational horizons.

What Problem Does This Paper Address?

Verifying that an autonomous system—like a self-driving car or a taxiing airplane—is "safe" is notoriously difficult when the system relies on Deep Neural Networks. There are two main hurdles:

  1. Scale: Modern perception DNNs have millions or billions of parameters, making exhaustive formal verification computationally impossible.
  2. Environment Sensitivity: A DNN that works perfectly in broad daylight might fail catastrophically at night. Traditional verification often ignores these shifting environmental conditions or lumps them together, leading to "blurry" results that aren't useful for real-world safety guarantees.

The authors aim to bridge the gap between high-level system dynamics and low-level, unpredictable AI perception.

Methods

The authors propose a three-pillar approach:

  • Scenario-based Modeling: Instead of analyzing the entire mission at once, they break it down into discrete scenarios (e.g., "driving on a straight track in the rain"). Each scenario has a fixed time horizon.
  • Probabilistic Abstractions: Rather than trying to "prove" things about the internal weights of a DNN, they treat it as a black box. They use offline datasets to build a confusion matrix (or contingency matrix) for each scenario. This matrix maps the true state of the world to the probability of the DNN producing a specific estimate. This turns a massive neural network into a compact, manageable Markov chain.
  • Symbolic Reasoning & Acceleration Rules: This is the mathematical "secret sauce." The authors developed acceleration proof rules (Hoare-style assertions) that allow them to compose these scenarios. Crucially, these rules can bound the probability of failure over an infinite or arbitrary sequence of scenarios without having to simulate every possible path.

Datasets

The framework was evaluated on two distinct case studies:

  1. TaxiNet: A real-world experimental DNN developed by Boeing for airplane centerline tracking. The authors used datasets partitioned into bright and dark lighting conditions to show how perception performance shifts.
  2. F1Tenth: A simulation of a 1/10th scale autonomous race car using 21-dimensional LiDAR data. The scenarios here were defined by track geometry: straight, left turn, and right turn.

Key Insights and Ideas

  • The Danger of "Pooling" Data: One of the most striking insights is that lumping all data together (e.g., mixing day and night images) produces a "pooled" abstraction that is overly optimistic for night and overly pessimistic for day. Scenario-specific abstractions are much more precise.
  • Compositionality is King: By calculating a "summary" for each scenario once, the authors can snap these pieces together like LEGO bricks to analyze complex missions. This is much faster than traditional monolithic model checking.
  • Invariants for AI: The authors use a heuristic search to find "invariant preconditions"—sets of initial states where the system's error probability remains bounded even if the environment changes unpredictably.

Key Results

  • Precision: In the TaxiNet study, the "pooled" model predicted a 30% error rate for a specific sequence, while the scenario-aware model correctly identified that the error rate was actually as low as 3% in bright light but jumped to 55% in the dark.
  • Scalability: Their compositional approach generated error coefficients for a 64-step scenario in about 79 seconds, whereas the standard industry tool (PRISM) took over 481 seconds and eventually ran out of memory on longer sequences.
  • Safety Bounds: Using Rule 3 (acceleration with choice), they could prove that even if a race car encounters an unpredictable sequence of turns, its failure probability stays below a specific threshold, provided it starts in a "safe" configuration.

Limitations and Future Work

  • Discretization: The current method relies on a discretized state space (e.g., dividing a runway into a grid). This can introduce inaccuracies if the grid is too coarse.
  • Discrete Environment Shifts: The model assumes environment conditions (like lighting) stay constant during a scenario and change abruptly between them. In reality, lighting changes continuously (e.g., sunset).
  • Heuristic Search: Finding the "invariant" properties required for the acceleration rules currently relies on a heuristic search with a numerical solver (Z3). The authors note that more nuanced approaches are needed to find these invariants more reliably.
  • Continuous States: Future work aims to extend these probabilistic abstractions to continuous-state systems, moving beyond the "grid" model.

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},
}

Loading related content...

Figure