Scaling Model Checking for DNN Analysis via State-Space Reduction and Input Segmentation (Extended Version)

Mahum Naseer, Osman Hasan, Muhammad ShafiquearXiv 2023 · DOI

Introduction

Deep Neural Networks (DNNs) are increasingly deployed in safety-critical domains, yet they remain susceptible to adversarial perturbations. Small, imperceptible changes to input data can lead to catastrophic misclassifications. While high test accuracy is a standard metric, it does not guarantee robustness. Formal verification methods, such as Model Checking, provide a path toward rigorous safety guarantees. However, traditional model checking faces the "state-space explosion" problem, where the complexity of the network and the input domain makes exhaustive verification computationally infeasible.

This paper presents FANNet+, a framework designed to scale formal verification for DNNs. By integrating symbolic model checking with novel input segmentation strategies, FANNet+ achieves significant performance gains, enabling the analysis of networks far larger than those handled by its predecessors.

Methodology

State-Space Reduction via Symbolic Model Checking

A primary bottleneck in verifying DNNs is the sheer number of states required to represent noise and input variations. FANNet+ addresses this by employing Symbolic Model Checking (SMC). Instead of explicitly enumerating every noise combination, the framework merges states that result in the same output classification.

State-space reduction through jump transitions, collapsing multiple equivalent states into a single transition.

As shown in the figure above, the tool utilizes "jump transitions" to bypass intermediate states that do not affect the final property being checked. This reduction slims down the Kripke structure—the mathematical model used by the checker—by a factor proportional to the number of noise options, drastically decreasing the search space.

Input Segmentation Strategies

To further manage complexity, FANNet+ introduces "divide-and-conquer" approaches for input domains:

  • Coarse-grain Verification: The input domain is sampled at regular intervals to provide a broad overview of the network's behavior.
  • Random Input Segmentation (RIS): Input nodes are partitioned into "variable" sets (checked symbolically) and "fixed" sets (sampled randomly). This allows for parallel verification of sub-sections of the input space, making the process manageable for high-dimensional inputs.

Automated Counterexample Analysis

When a safety property is violated, the model checker generates a counterexample. FANNet+ iteratively updates its specifications to build a comprehensive database of these violations.

Illustration of a Kripke structure (a), its state-space expansion (b), and the identification of a counterexample (c) for a given property.

This systematic search, illustrated in the figure above, allows researchers to perform statistical analysis on "bugs." By identifying which input nodes are most sensitive to noise, the tool can pinpoint training biases or inherent vulnerabilities in the model architecture.

Experimental Evaluation

The framework was tested on three benchmarks: Leukemia type identification (genetic data), heart disease prognosis (patient attributes), and the ACAS Xu airborne collision avoidance system.

Key Results

  • Performance: FANNet+ demonstrated up to an 8000x speedup over the original FANNet framework.
  • Scalability: The tool successfully verified networks with over 13,000 parameters, an 80-fold increase in capacity compared to previous iterations.
  • Precision: Notably, FANNet+ identified a safety violation in the ACAS Xu benchmark (Property P4 for network 2_2) that industry-standard SMT solvers like Reluplex and Marabou had incorrectly labeled as safe ("UNSAT").
  • Bias Detection: In the Leukemia dataset, the tool quantified a robustness gap, showing the model was significantly more stable when classifying the majority class (ALL) versus the minority class (AML).

Conclusion and Future Work

FANNet+ represents a significant step forward in making model checking a viable tool for DNN verification. While the use of RIS introduces a trade-off between soundness and completeness—potentially missing some violations in a continuous domain—it provides a practical means to analyze real-world networks. Future research will focus on extending these state-space reduction techniques to more complex architectures, such as Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs).

Summary updated

Abstract

Owing to their remarkable learning capabilities and performance in real-world applications, the use of machine learning systems based on Neural Networks (NNs) has been continuously increasing. However, various case studies and empirical findings in the literature suggest that slight variations to NN inputs can lead to erroneous and undesirable NN behavior. This has led to considerable interest in their formal analysis, aiming to provide guarantees regarding a given NN's behavior. Existing frameworks provide robustness and/or safety guarantees for the trained NNs, using satisfiability solving and linear programming. We proposed FANNet, the first model checking-based framework for analyzing a broader range of NN properties. However, the state-space explosion associated with model checking entails a scalability problem, making the FANNet applicable only to small NNs. This work develops state-space reduction and input segmentation approaches, to improve the scalability and timing efficiency of formal NN analysis. Compared to the state-of-the-art FANNet, this enables our new model checking-based framework to reduce the verification's timing overhead by a factor of up to 8000, making the framework applicable to NNs even with approximately $80$ times more network parameters. This in turn allows the analysis of NN safety properties using the new framework, in addition to all the NN properties already included with FANNet. The framework is shown to be efficiently able to analyze properties of NNs trained on healthcare datasets as well as the well--acknowledged ACAS Xu NNs.
BibTeX
@misc{naseer2023scaling,
  author = {Mahum Naseer and Osman Hasan and Muhammad Shafique},
  title = {{Scaling Model Checking for DNN Analysis via State-Space Reduction and Input Segmentation (Extended Version)}},
  year = {2023},
  eprint = {2306.17323},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.17323},
}
Figure