Proof Minimization in Neural Network Verification

Omri Isac, Idan Refaeli, Haoze Wu, Clark W. Barrett, Guy Katz

TL;DR

Deep neural network (DNN) verifiers are essential for ensuring safety in critical applications, but their complexity makes them prone to software bugs and numerical instability. While generating external proofs can guarantee verification validity, these proof files are typically massive and impractical to store or check. This paper introduces novel algorithms that analyze proof dependencies on-the-fly, shrinking proof sizes by up to 82% and slashing proof-checking times by up to 88% with minimal computational overhead.

What Problem Does This Paper Address?

As deep neural networks are increasingly deployed in safety-critical domains like autonomous driving and aviation, we need rigorous ways to verify their behavior against adversarial attacks or unexpected inputs. Modern DNN verifiers use complex techniques like Linear Programming (LP) and branch-and-bound search to prove that a network will never violate a given safety property (a state called "unsatisfiability" or UNSAT).

However, these verifiers are massive software tools that can contain implementation bugs or suffer from floating-point rounding errors. To trust their results, verifiers can output mathematical proof certificates that can be independently verified by a simple, trusted proof checker.

The catch? These proofs are gargantuan. Because verifiers eagerly log every intermediate fact and bound tightening lemma they deduce during their search, the resulting proof objects quickly exhaust system memory and take an impractical amount of time to check. This paper tackles the challenge of proof minimization: reducing the size of these certificates without compromising their validity.

Methods

The authors propose a two-step framework integrated directly into the proof-producing DNN verifier Marabou:

  1. Dependency Analysis (Algorithm 1): When the verifier proves a subquery is UNSAT, it generates a mathematical contradiction vector (using Farkas' Lemma). The authors' algorithm traces this vector backward to identify exactly which eagerly learned lemmas actually contributed to the final contradiction. Any lemma left out of this dependency chain is immediately marked as unused.
  2. Dependency Minimization (Algorithms 2 & 3): Even if a lemma is part of the chain, it might be redundant. An UNSAT proof only requires proving that a certain mathematical value ($\Delta$) is negative. If $\Delta$ is far below zero, there is "slack."
  3. Greedy Minimization (Algorithm 2) sorts lemmas by their numerical contribution and systematically discards the least impactful ones, provided $\Delta$ remains negative.
  4. Global Heuristic Minimization (Algorithm 3) looks across the entire proof tree and prioritizes removing lemmas that have a high number of downstream dependencies, triggering a cascade of deletions.

Crucially, the authors implement on-the-fly lemma deletion. Instead of waiting until the entire verification process is complete, unused lemmas are purged from memory as soon as a search subtree is fully explored, preventing memory blowups during verification.

A proof tree example where intermediate lemmas (blue) are evaluated before deriving an UNSAT state (red).

Datasets

The authors evaluated their approach across six diverse benchmark suites representing different network architectures and activation functions:

  • ACAS-Xu: Airborne collision avoidance networks for drones (larger networks, ReLU activations).
  • cersyve: Neural safety certificates for control systems.
  • Cora: Local adversarial robustness queries for MNIST image classifiers.
  • MaxLeaky: A new benchmark introduced in this paper to evaluate non-ReLU activations, featuring a network trained on a wine classification dataset using Maxpool and LeakyReLU layers.
  • Robotics Navigation: Small obstacle-avoidance controller networks.
  • SafeNLP: Robustness queries examining word- and sentence-level perturbations in text embedding spaces.

Key Insights and Ideas

  • The Slack Exploitation: The core "aha!" moment is realizing that an UNSAT proof doesn't need to be exact; it just needs to maintain a strict inequality ($\Delta < 0$). If a verifier finds a massive contradiction (e.g., $\Delta = -2$), many of the tightly calculated bounds are overkill. Relaxing or removing them allows the algorithm to sever entire dependency branches.
  • Verification via Pruning: Counterintuitively, spending CPU cycles to minimize proofs during verification actually makes the verifier more robust. By deleting unused lemmas on-the-fly, the system avoids out-of-memory crashes (Memouts), allowing it to solve queries that the baseline verifier couldn't complete.

Key Results

The best-performing minimization algorithms achieved dramatic improvements over the baseline proof-producing verifier:

  • Proof Size Reduction: Slashed average proof sizes by 37% to 82% across the benchmarks.
  • Proof-Checking Speedup: Slashed the time required for the independent checker to validate the proofs by 30% to 88%.
  • Low Overhead: This optimization only introduced a modest 7% to 20% runtime overhead to the verification process itself. In fact, for some benchmarks, the introduction of cleaner data structures actually improved overall verification speed.
  • Enhanced Solvability: In the ACAS-Xu benchmark, the baseline verifier suffered 57 memory-exhaustion failures. Introducing dependency analysis brought that number down to zero.

Limitations and Future Work

While highly effective, the current approach considers a fixed proof vector ($w$) generated by the LP solver. The authors note that dynamically altering this vector could unlock even greater size reductions. Additionally, the framework is currently tailored to piecewise-linear constraints (like ReLU and Maxpool); extending it to support more complex abstract interpretation subroutines (which generate non-linear relaxations) remains an open challenge.

Finally, the authors highlight that this dependency analysis paves the way for true Conflict-Driven Clause Learning (CDCL) in DNN verification, which could fundamentally accelerate how verifiers navigate search spaces in the future.

Summary updated

BibTeX
@inproceedings{isac2026proof,
  author = {Omri Isac and Idan Refaeli and Haoze Wu and Clark W. Barrett and Guy Katz},
  title = {{Proof Minimization in Neural Network Verification}},
  booktitle = {VMCAI},
  year = {2026},
  doi = {10.1007/978-3-032-15700-3\_6},
}
Figure