Abstract
Traditional hardware model checking faces significant scalability challenges due to the state-space explosion problem, particularly in complex arithmetic data paths. This paper introduces a novel approach that leverages neural networks as formal proof certificates for Linear Temporal Logic (LTL) specifications. By combining unsupervised machine learning to "guess" a ranking function with rigorous SMT-based formal verification to "check" it, the proposed method provides mathematically sound guarantees of correctness. Experimental results on 194 verification tasks demonstrate that this neural approach significantly outperforms state-of-the-art academic and commercial model checkers in both completion rate and speed.
Introduction
Hardware verification is a critical and time-consuming phase of chip design, often accounting for up to 60% of project resources. Unlike simulation-based testing, model checking aims to mathematically prove that a design satisfies its specification under all possible execution scenarios. However, symbolic model checking methods based on Binary Decision Diagrams (BDDs) or SAT solvers often struggle with the "state-space explosion" when dealing with large-scale designs or complex word-level arithmetic.
To address these limitations, this research explores whether machine learning can be used to find global proofs of correctness. The core idea is to use a neural network to represent a "ranking function"—a mathematical certificate that proves a system will never enter a prohibited state infinitely often.
The Learn-and-Check Framework
The authors propose a "learn-and-check" loop that bridges the gap between the pattern-matching capabilities of neural networks and the rigorous guarantees of symbolic reasoning.
The process consists of four main stages:
- Automata Synchronization: The LTL specification is negated and converted into a Büchi automaton, which is then synchronized with the hardware model.
- Data Generation: The system is simulated using Constraint Random Verification to produce a dataset of execution traces.
- Neural Learning: A small feed-forward neural network is trained on these traces to act as a ranking function $V$.
- Formal Verification: The trained network is quantized and translated into a logical formula for an SMT solver (Bitwuzla). If the solver finds a counterexample, it is added to the training set for refinement; otherwise, the hardware is proven correct.
Neural Networks as Formal Proofs
A key innovation is the use of neural networks as rigorous mathematical certificates. For a specification to be satisfied, the ranking function must strictly decrease whenever the system hits an "accepting" (undesirable) state in the automaton and must never increase otherwise.
By quantizing the network into fixed-point arithmetic, the authors can treat the entire neural network as a deterministic logical function. This allows an SMT solver to check if the ranking properties hold across the entire state space, not just on the training data. This transformation turns a typically "black-box" ML model into a mathematically sound proof of correctness.
Evaluation and Results
The method was evaluated on 194 verification tasks across 10 parameterized hardware designs, including UART transmitters, VGA controllers, and PWM modules. The neural model checker achieved a 93% completion rate, outperforming academic tools like ABC and nuXmv, as well as leading commercial solvers.
Key performance metrics include:
- Scalability: The approach completed 60% more tasks than ABC and 11% more than the top commercial tool within a 5-hour budget.
- Speed: The neural approach was 10x faster on 34% of the tasks and 100x faster on 4% compared to academic baselines.
- Efficiency: 70% of the training phases completed in under a minute, with the majority of the total runtime consumed by the SMT checking phase.
Conclusion
Neural Model Checking demonstrates that machine learning can be a powerful ally in formal verification. By shifting the burden of finding proofs to neural networks while retaining the rigor of SMT solvers for verification, this approach overcomes traditional scalability bottlenecks. Future work may involve exploring more complex architectures like Graph Neural Networks and optimizing SMT solvers specifically for neural network verification.
Summary updated