Neural Network Verification with Proof Production

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

Abstract

Deep neural network (DNN) verifiers are essential for ensuring the safety of autonomous systems, yet their complexity often leaves their results—particularly unsatisfiability (UNSAT) claims—unverified. This paper presents a novel mechanism for producing "proof certificates" in DNN verification. By adapting Farkas’ Lemma to search-based verification procedures, the authors enable independent validation of results even in the presence of floating-point errors. Experimental results on the ACAS Xu benchmark demonstrate that this approach incurs a minimal runtime overhead of 5.7% while allowing for verification checks that are 66.5% faster than the original solving process.

1. Introduction

As deep neural networks (DNNs) are increasingly deployed in safety-critical domains like aviation and autonomous driving, the need for formal guarantees regarding their behavior has become paramount. DNN verifiers are specialized tools designed to provide these guarantees. However, a significant "trust gap" currently exists.

When a verifier identifies a counter-example (a "SAT" result), the result is easily validated by running the input through the network. Conversely, if a verifier claims that no such violation exists (an "UNSAT" result), users must rely on the correctness of the tool itself. Given that these verifiers are complex software systems prone to bugs and numerical instability from floating-point arithmetic, this paper proposes a shift from blind trust to a "trust, but verify" model by forcing the tool to produce a checkable proof of its findings.

2. Methodology

The authors focus on search-based verifiers that utilize the Simplex algorithm, such as the Marabou tool. Their approach integrates several technical components to generate robust proof certificates.

2.1 Farkas’ Lemma for DNNs

In linear programming, Farkas’ Lemma provides a mathematical "witness" (a vector) that proves a set of linear constraints has no solution. The authors adapt this to the DNN context by representing the verification search as a tree. Because verifiers "split" the problem based on non-linear activation functions (like ReLUs), each leaf of the search tree contains a Farkas-based proof demonstrating that the specific branch is unsatisfiable.

2.2 Efficient Bound Tracking and Lemma Support

Modern verifiers perform dynamic bound tightening to accelerate the search process. To prevent memory exhaustion from storing every tightening step, the authors propose an incremental scheme that tracks a single Farkas vector per variable bound. For deductions that cannot be explained by linear combinations alone—such as specific ReLU logic—the system introduces "lemmas," which are pre-defined rules that an external checker can recognize and validate.

3. Experimental Results

The implementation was evaluated using the ACAS Xu benchmark, a standard suite representing an airborne collision avoidance system for unmanned aircraft. The study involved 45 neural networks and 4 safety properties, focusing on 113 UNSAT queries.

3.1 Performance Metrics

  • Low Overhead: Producing proofs added only 5.7% on average to the total runtime of the Marabou verifier.
  • Efficient Validation: Validating the produced certificates was 66.5% faster on average than the original verification process.
  • Scalability: The system successfully checked over 1.46 million individual proof-tree leaves, successfully verifying 97 out of 113 UNSAT queries.

3.2 Numerical Stability and Hybrid Verification

A key insight of the research is that proof production serves as a defense against floating-point errors. If a proof fails to check, it highlights numerical instability in a specific part of the search. In such cases, the authors employ a hybrid approach: sending only the small, problematic sub-problem to a high-precision SMT solver (like cvc5). This is significantly faster than using a high-precision solver for the entire problem.

4. Conclusion and Future Work

This work demonstrates that proof production is a viable and efficient method for increasing the reliability of DNN verification. While the current implementation is tailored for piecewise-linear ReLUs, future work includes extending support to non-linear functions like Sigmoid or Tanh. Furthermore, the authors suggest that the Farkas vectors produced here could be utilized for Conflict-Driven Clause Learning (CDCL), potentially allowing DNN verifiers to learn from contradictions and achieve significant speedups in the future.

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