Abstract
NeuralSAT is a novel verification framework that adapts Conflict-Driven Clause Learning (CDCL) and search restarts—techniques central to modern SMT solvers—to the domain of Deep Neural Network (DNN) safety. By abstracting neuron activation patterns into a logic problem, NeuralSAT effectively prunes vast search spaces, outperforming traditional logic-based verifiers and achieving results competitive with specialized state-of-the-art tools.
Introduction
Deep Neural Networks (DNNs) are increasingly deployed in safety-critical systems, yet they remain notoriously fragile. Small, adversarial perturbations to inputs can lead to catastrophic misclassifications, such as an autonomous vehicle misinterpreting a stop sign. Verifying that a DNN is "safe"—guaranteeing it will never produce a specific hazardous output under given constraints—is an NP-complete problem primarily due to non-linear activation functions like the Rectified Linear Unit (ReLU).
Current state-of-the-art (SOTA) verifiers largely rely on Branch-and-Bound (BaB) search combined with geometric abstractions. While effective, these tools often lack the ability to "learn" from search failures. When they encounter a dead-end in the search tree, they typically backtrack chronologically, frequently repeating the same logical errors in different branches. NeuralSAT addresses this gap by successfully porting the powerful logical reasoning techniques of Satisfiability Modulo Theory (SMT) solvers to large-scale DNN verification.
The NeuralSAT Framework
NeuralSAT implements a DPLL(T) framework specifically tailored for neural networks. The system operates by treating the activation status of each ReLU neuron (whether it is "on" or "off") as a Boolean variable. This creates a discrete logical abstraction of the continuous neural network.
The core machinery consists of several integrated components:
- Boolean Abstraction: Represents neuron states as Boolean variables.
- The T-Solver (Deduction): This acts as the "Theory" component. It utilizes Linear Programming (LP) and LiRPA (Linear Bound Propagation) to determine if a specific partial assignment of neuron states is physically possible given the network's weights and input constraints.
- Conflict-Driven Clause Learning (CDCL): If the T-solver identifies an impossible set of neuron states (a conflict), NeuralSAT analyzes the implication graph to find the root cause. It then generates a new logical rule (a clause) to ensure the solver avoids that specific combination in the future.
- Non-Chronological Backtracking: Using learned clauses, NeuralSAT can "jump" back multiple levels to the actual source of a conflict, rather than stepping back one level at a time.
- Restarts: The solver periodically resets its search to explore different paths. Unlike traditional verifiers, NeuralSAT retains all learned clauses during a restart, allowing it to navigate the search space with increasing efficiency.
Pruning the Search Space
The primary advantage of NeuralSAT lies in its ability to prune astronomical search spaces. In a network with tens of thousands of neurons, a single learned clause can eliminate billions of impossible assignments.
By using LiRPA within the T-solver, NeuralSAT bridges the gap between discrete logic and continuous mathematics. This allows for "Theory Propagation," where the solver can infer neuron states before it even attempts to guess them, further accelerating the search process.
Evaluation and Results
The researchers evaluated NeuralSAT against standard benchmarks from the VNN-COMP 2022 competition, including ACAS Xu, MNISTFC, CIFAR2020, and RESNET_A/B. They also introduced CIFAR_GDVB, a benchmark designed to remove "easy" problems and force verifiers to rely on their core search algorithms.
Key findings include:
- Performance Gains: On the CIFAR_GDVB benchmark, enabling CDCL and restarts increased the number of verified problems by 53%.
- Competitive Standing: NeuralSAT ranked 2nd overall in evaluations, trailing only $\alpha$-$\beta$-CROWN, a highly optimized tool with a longer development history.
- Superior Logic Reasoning: NeuralSAT significantly outperformed Marabou, the previous leading DPLL-based verifier, particularly on larger networks where Marabou’s lack of clause learning led to frequent timeouts.
- Falsification: The tool exhibited industry-leading performance in finding counterexamples (falsification) across all tested benchmarks.
Conclusion and Future Work
NeuralSAT demonstrates that SMT-style logical reasoning is not only compatible with DNN verification but highly effective. While currently a Python-based prototype, it already rivals specialized tools. Future development will focus on low-level optimizations (such as C++ kernels), refined decision heuristics for neuron splitting, and parallelizing the DPLL(T) search to handle industrial-scale models. By bringing "learning" to the verification process, NeuralSAT provides a scalable path toward guaranteed safety in deep learning systems.
Summary updated