Ensuring the safety of autonomous systems is one of the most significant hurdles in modern engineering. When these systems rely on Deep Neural Networks (DNNs) to "see" the world, traditional formal verification methods often crumble under the weight of millions of parameters and high-dimensional image data.
In their paper, "Closed-loop Analysis of Vision-based Autonomous Systems: A Case Study," Păsăreanu et al. present a pragmatic way forward. By abstracting complex perception components into simple probabilistic models, they demonstrate how to provide safety guarantees for a real-world experimental aircraft taxiing system.
TL;DR
The authors propose a compositional framework that replaces complex vision DNNs with compact probabilistic abstractions derived from confusion matrices. This allows researchers to use standard model-checking tools to quantify the safety of an entire autonomous system, further enhanced by DNN-specific "run-time guards" that catch potential perception errors before they lead to failure.
What Problem Does This Paper Address?
Formal analysis aims to prove that a system will always behave safely. However, autonomous systems that use cameras and DNNs for perception are notoriously difficult to verify. The "state space" of possible images is infinite, and DNNs are essentially black boxes.
Current methods often struggle with:
- Complexity: DNNs have too many parameters for exhaustive search.
- Environment Variability: Changes in lighting or weather are hard to model formally.
- Closed-loop Dynamics: Safety isn't just about the DNN being right; it's about how the DNN's output affects the controller, which affects the plane's movement, which in turn changes what the camera sees next.
The authors tackle these issues using Boeing’s experimental TaxiNet—a system designed to guide airplanes along airport taxiways—as a high-stakes case study.
Methods
The core innovation is a probabilistic abstraction of the perception pipeline. Instead of trying to model every neuron in the DNN or every pixel in an image, the authors treat the camera and DNN as a single probabilistic map ($\alpha$).
- Confusion Matrix Abstraction: They evaluate the DNN on a representative dataset to build a confusion matrix. This matrix tells them the probability that the DNN will estimate the state as $s_{est}$ when the true state is $s$. This effectively turns a million-parameter network into a simple lookup table of probabilities.
- Discrete Time Markov Chains (DTMC): The entire system—perception, controller, and airplane dynamics—is modeled as a DTMC. This allows the team to use established tools like PRISM to calculate the probability of the system reaching an "error state" (e.g., wandering off the taxiway).
- Run-time Guards: To boost safety, they extract "Prophecy rules" from the DNN. These are logic-based checks that monitor the network's internal neuron activations at runtime. If the activations look suspicious (indicating the network is likely to make a mistake), the guard triggers a "fail-safe" action, such as retrying the sensor reading or aborting the maneuver.
Datasets
The study uses a representative dataset provided by Boeing consisting of 11,108 RGB images (360x200 pixels). These images represent various positions and angles of an aircraft relative to a taxiway center-line. The data includes ground-truth labels for:
- Cross Track Error (cte): Distance from the center-line.
- Heading Error (he): The angle of the plane relative to the center-line.
Key Insights and Ideas
- Output-Centric Modeling: The complexity of the abstraction is linear relative to the output of the DNN, not its internal architecture. This makes the method scalable to even the largest vision models.
- Compositionality: By separating the perception analysis (confusion matrices) from the system dynamics, developers can update the DNN and simply plug in a new matrix without re-modeling the entire physical system.
- Guards as Safety Nets: The experiments show that "improved accuracy of the DNN translates into improved safety." By using run-time guards to filter out inputs where the DNN is uncertain, the overall system-level safety increases significantly.
- Empirical Soundness: Because confusion matrices are based on finite data, the authors use Confidence Analysis (via the FACT tool) to provide a range of safety probabilities rather than a single point estimate, accounting for potential sampling errors in the test data.
Key Results
The authors analyzed two versions of the system: $m_1$ (no guard) and $m_2$ (with run-time guard).
- Perception Accuracy: The baseline TaxiNet had an accuracy of 62.39% for $cte$ and 69.99% for $he$. With the run-time guard active, these accuracies jumped to 65.78% and 76%, respectively.
- Safety Verification: Using PRISM, they calculated the probability of the plane leaving the taxiway (Property 1) or over-turning (Property 2). The run-time guards consistently lowered the probability of these dangerous events.
- Efficiency: The PRISM analysis was remarkably fast, taking less than 0.1 seconds to evaluate safety over a 30-step horizon on a standard laptop.
Limitations and Future Work
While promising, the authors note several areas for improvement:
- Distribution Shift: The analysis assumes the test data perfectly represents the operational environment. If the plane encounters a "black swan" weather event not in the dataset, the probabilities may be invalid.
- Discretization: The current model discretizes continuous values (like meters and degrees). Future work aims to handle continuous regression models directly.
- Scalability of Confidence Analysis: While the basic safety check is fast, calculating confidence intervals using the FACT tool struggled to scale beyond very short time horizons ($N=4$).
- Environment Modeling: The authors plan to expand the work to include more diverse environmental conditions and validate the findings through high-fidelity hardware simulations.
Summary updated