Scaling Model Checking for Neural Network Analysis via State-Space Reduction and Input Segmentation

Mahum Naseer, Osman Hasan, Muhammad ShafiqueFoMLAS@CAV 2023

Introduction

Deep Neural Networks (DNNs) are increasingly deployed in safety-critical domains, from autonomous driving to medical diagnostics. However, these models are notoriously "brittle"; minute, imperceptible perturbations to input data can lead to catastrophic misclassifications. To ensure the reliability of these systems, formal verification—mathematical proof of correctness under specified conditions—is essential. While Satisfiability (SAT) solving and Linear Programming (LP) are common verification techniques, Model Checking offers a more comprehensive approach for analyzing complex properties like training bias and node sensitivity.

The Scalability Barrier

Despite its rigor, model checking faces a fundamental hurdle: the "state-space explosion" problem. As the number of inputs or noise options increases, the number of possible states the checker must explore grows exponentially. Previous attempts, such as the original FANNet tool, served as successful proofs-of-concept but were limited to very small networks. This paper introduces FANNet+, a framework designed to break this scalability wall through symbolic optimizations and clever input segmentation.

Methodology: FANNet+

FANNet+ introduces three primary optimizations to make model checking viable for larger DNNs:

  1. Symbolic Model Checking (SMC): Instead of explicitly enumerating every possible combination of noise, FANNet+ represents noise symbolically. This allows the framework to merge identical output states, shrinking the model size by a factor roughly proportional to the number of noise options.
  2. Random Input Segmentation (RIS): This "divide and conquer" strategy splits input nodes into a small "variable" set (handled symbolically) and a "fixed" set (assigned random discrete values). By iterating through different segments, the tool explores large input domains without being overwhelmed.
  3. Coarse-Grain Verification: For properties covering vast input ranges, the tool samples the domain at regular intervals. While not exhaustive, this provides a rapid method for identifying property violations in large segments of the input space.
Figure 3: Illustration of model checking states and counterexample detection.

Experimental Results

The researchers evaluated FANNet+ across three benchmarks: Leukemia Type Identification (141 parameters), Heart Disease Prognosis (622 parameters), and the industry-standard ACAS Xu suite (13,305 parameters per network).

Efficiency and Scaling

FANNet+ achieved a staggering 8000x speedup in verification time compared to its predecessor. This efficiency allowed the framework to analyze the ACAS Xu networks, which contain 80 times more parameters than those handled by previous state-of-the-art model checkers.

Figure 4: Performance comparison showing the reduction in verification time and state-space complexity for the Heart Disease dataset.

Precision in Safety Verification

In a significant finding, FANNet+ identified a safety violation in the ACAS Xu network (Network 2_2, Property P4) that industry-standard SMT solvers like Reluplex and Marabou labeled as "UNSAT" (safe). This suggests that model checking can be more precise in specific edge cases where traditional solvers may fail. Furthermore, by collecting a massive database of counterexamples, the authors were able to visualize and prove training bias in the Leukemia dataset, tracing it back to imbalanced training data.

Conclusion and Future Work

FANNet+ demonstrates that model checking can scale to analyze meaningful neural network architectures. While the Random Input Segmentation (RIS) approach is currently "incomplete"—meaning it can find bugs (SAT) but cannot technically prove 100% safety (UNSAT) for an entire domain due to random sampling—it represents a major leap in practical DNN verification. Future research will focus on refining segmentation strategies for better coverage and extending these symbolic representations to handle deeper architectures like Convolutional Neural Networks (CNNs).

Summary updated

BibTeX
@inproceedings{naseer2023scaling,
  author = {Mahum Naseer and Osman Hasan and Muhammad Shafique},
  title = {{Scaling Model Checking for Neural Network Analysis via State-Space Reduction and Input Segmentation}},
  booktitle = {FoMLAS@CAV},
  year = {2023},
  doi = {10.29007/7r6j},
}
Figure