Neural Network Verification with Proof Production

Omri Isac, Clark W. Barrett, Min Zhang, Guy Katz

TL;DR

When a neural network verifier claims a model is safe, how do we know we can trust the verifier itself? This paper introduces a novel mechanism for Simplex-based verifiers to produce mathematical "proof certificates" of unsatisfiability (UNSAT), allowing external tools to independently double-check safety claims. Implemented on top of the Marabou verifier, it achieves high reliability with an average runtime overhead of just 5.7%.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are increasingly deployed in safety-critical domains like aviation, healthcare, and autonomous driving. To ensure these networks don't exhibit catastrophic failures, researchers use formal verification tools to mathematically prove safety properties.

If a verifier finds a bug, it provides a "counter-example" (a SAT result), which is easy to validate simply by running the network on that specific input. However, if the verifier concludes that no bugs exist (an UNSAT result), we are forced to blindly trust the tool. Because verification software is highly complex and relies on floating-point arithmetic, it is prone to software bugs and numerical rounding errors. This paper tackles a critical gap: the lack of independent, checkable proof certificates for UNSAT results in DNN verification.

Methods

The authors propose a framework that instruments search-based DNN verifiers to output a structured proof tree alongside their execution.

  • Proof Trees for Case-Splitting: DNN verifiers typically handle non-linear activation functions (like ReLUs) by splitting them into linear phases (e.g., active vs. inactive). The authors mirror this process by constructing a proof tree, where internal nodes represent these case splits and leaf nodes represent localized linear programming (LP) problems that ended in a contradiction.
  • Farkas' Lemma for LP Leaves: To prove unsatisfiability at the leaves, the authors adapt Farkas' Lemma—a fundamental theorem in linear programming. It generates a specific vector that combines the linear constraints of the network into an undeniable mathematical contradiction (e.g., proving that a variable's lower bound is strictly greater than its upper bound).
  • Efficient Bound Tightening Tracking: Modern verifiers constantly tighten variable bounds on the fly to prune the search space. Storing a separate proof for every single tightening would quickly exhaust memory. The authors introduce a compact scheme that tracks just a single pair of cumulative Farkas vectors per variable, keeping the overall space complexity tightly bounded at $O(n \cdot m)$.
  • Numerical Precision Recovery: If floating-point inaccuracies cause a proof leaf to fail validation, the framework hands that specific, highly simplified sub-problem to an external SMT solver (cvc5) using exact arithmetic to recover a valid proof.
Fig. 3: A proof tree example.

Datasets

The method was evaluated using the ACAS Xu benchmark suite, a standard safety-critical dataset used for airborne collision avoidance systems. The evaluation involved 45 different neural networks and 4 safety properties per network, producing a total of 180 verification queries. Out of these, Marabou determined 113 queries to be UNSAT, which formed the core evaluation dataset.

Key Insights and Ideas

  • Divide and Conquer with Exact Arithmetic: While using exact-arithmetic SMT solvers to verify an entire DNN is computationally intractable due to the state-space explosion, using them to fix small, numerically unstable leaf nodes in a proof tree is incredibly efficient. The sub-problems at the leaves are simple enough for SMT solvers to solve in seconds.
  • Compact Proof Logging: You don't need to log the history of every single algebraic operation. By maintaining cumulative Farkas vectors relative only to the "ground bounds" (initial constraints plus case splits), proof generation remains lightweight.
  • Laying the Groundwork for CDCL: Beyond trust, producing these proof vectors provides the mathematical foundation needed to implement Conflict-Driven Clause Learning (CDCL) in DNN verifiers. This could drastically accelerate future verification algorithms by allowing them to learn from contradictions and skip redundant search spaces.

Key Results

  • High Reliability: Across the 113 UNSAT queries, the verifier generated over 1.46 million proof leaves. Proof checking succeeded perfectly for 97 out of the 113 queries. Out of the 1.46 million leaves, only 77 failed initial checking due to floating-point rounding issues, and all 77 were successfully corrected using the cvc5 SMT solver.
  • Minimal Overhead: Introducing proof production into Marabou caused a negligible slowdown, adding an average runtime overhead of just 5.7%.
  • Fast Validation: Independently checking the generated proof certificates was highly efficient, running 66.5% faster on average than executing the original verification query from scratch.
Fig. 4: Number of queries per number of leaves with incorrect proofs.

Limitations and Future Work

  • Piecewise-Linear Only: The current implementation is tailored specifically to ReLU activations (and other piecewise-linear functions like max-pooling). It does not yet support non-linear activation functions such as sigmoid or tanh.
  • Partial Instrumentation: Due to engineering constraints, not all of Marabou's advanced bound propagation components were instrumented to output proofs; unsupported components had to be disabled during testing.
  • Future Directions: The authors plan to extend proof production to cover the verifier's preprocessing and abstract interpretation stages. Crucially, they aim to use this infrastructure to build a full CDCL verification scheme for neural networks.

Summary updated

BibTeX
@misc{isac2022neural,
  author = {Omri Isac and Clark W. Barrett and Min Zhang and Guy Katz},
  title = {{Neural Network Verification with Proof Production}},
  year = {2022},
  eprint = {2206.00512},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.00512},
}
Figure