Abstract
With a constant improvement in the network architectures and training methodologies, Neural Networks (NNs) are increasingly being deployed in real-world Machine Learning systems. However, despite their impressive performance on "known inputs", these NNs can fail absurdly on the "unseen inputs", especially if these real-time inputs deviate from the training dataset distributions, or contain certain types of input noise. This indicates the low noise tolerance of NNs, which is a major reason for the recent increase of adversarial attacks. This is a serious concern, particularly for safety-critical applications, where inaccurate results lead to dire consequences. We propose a novel methodology that leverages model checking for the Formal Analysis of Neural Network (FANNet) under different input noise ranges. Our methodology allows us to rigorously analyze the noise tolerance of NNs, their input node sensitivity, and the effects of training bias on their performance, e.g., in terms of classification accuracy. For evaluation, we use a feed-forward fully-connected NN architecture trained for the Leukemia classification. Our experimental results show $\pm 11\%$ noise tolerance for the given trained network, identify the most sensitive input nodes, and confirm the biasness of the available training dataset.
Introduction
Neural Networks (NNs) are notoriously fragile. A tiny amount of "noise"—whether it's sensor interference or a deliberate adversarial attack—can cause a high-performing model to fail spectacularly. Standard validation testing is limited because it cannot cover the infinite range of possible noisy inputs. Furthermore, existing formal verification tools often focus on binary robustness questions rather than quantifying the exact limits of a network.
This paper introduces FANNet, a framework designed to move beyond simple "pass/fail" tests. FANNet uses formal model checking to calculate exact noise tolerance levels, identify specific input features that are most sensitive to interference, and mathematically prove the existence of training biases.
Methodology
The FANNet methodology leverages Symbolic Model Checking to provide a rigorous analysis of NN behavior. The process consists of several key stages:
- Behavior Extraction: The trained neural network (weights, biases, and activation functions like ReLU) is translated into a Finite State Machine (FSM) described in the SMV language.
- Symbolic Model Checking: The framework utilizes nuXmv, an SMT-based symbolic model checker capable of handling the real numbers and continuous domains required for neural network mathematics.
- Iterative Analysis: Instead of a single check, FANNet non-deterministically adds noise to inputs and verifies if the output classification remains stable. By iteratively narrowing the noise range ($\Delta X$), the framework identifies the precise "tipping point" where the network begins to fail.
- Counterexample Extraction: When a failure is detected, the model checker produces a "counterexample"—a specific noise pattern causing misclassification. These are collected to analyze which inputs were responsible for the error.
Experimental Evaluation
The researchers evaluated FANNet using a Leukemia classification dataset containing genetic attributes for Acute Lymphoblast Leukemia (ALL) and Acute Myeloid Leukemia (AML). A feed-forward fully-connected network with a 6-20-2 architecture (5 gene inputs plus bias, 20 hidden nodes, and 2 output classes) was used for the analysis.
Noise Tolerance and Boundary Mapping
The analysis revealed that the trained network has a noise tolerance of exactly $\pm 11\%$. Within this range, the network is formally guaranteed to maintain correct classification. Beyond this threshold, misclassifications occur, particularly for inputs located near the classification boundary.
Input Sensitivity and Training Bias
A significant finding was the asymmetric sensitivity of input nodes. For instance, Node $i_2$ was identified as a major sensitivity point, while Node $i_5$ proved remarkably resilient to positive perturbations. Such insights are invaluable for hardware design, suggesting where high-precision sensors are critical versus where lower-precision components might suffice.
Furthermore, FANNet provided a formal proof of Training Bias. The analysis confirmed that misclassifications under noise almost exclusively flipped from the minority class ($L_0$) to the majority class ($L_1$), reflecting the imbalance in the training dataset.
Conclusion
FANNet demonstrates that formal methods can provide deep, quantitative insights into the "black box" of neural networks. By moving from qualitative robustness to quantitative noise tolerance, engineers can better understand the safety buffers of their models. While scalability remains a challenge for larger, modern architectures due to state-space explosion, the framework establishes a foundation for verifiable and explainable AI in safety-critical domains.
Summary updated