Table of Contents
Fetching ...

Proof-Carrying Verification for ReLU Networks via Rational Certificates

Chandrasekhar Gokavarapu

TL;DR

This work introduces a proof-carrying verification core for ReLU-based neural networks by formalizing exact piecewise-linear semantics as a union of activation-pattern polyhedra and linking them to exact SMT/LRA and MILP encodings. It provides a compositional certificate calculus with two rational certificate types—Farkas certificates for infeasibility and entailment certificates for validated propagation—and proves soundness, completeness for linear entailment via LP duality, and dimension-based sparsity for infeasibility proofs. A solver-agnostic pipeline exports small, checkable rational certificates that can be independently verified via exact arithmetic, enabling trustworthy UNSAT claims even when solvers are imperfect. The approach yields compact proof logs, supports stabilization and learned cuts, and demonstrates end-to-end certified reasoning through worked examples. The framework advances trustworthy, scalable, and verifiable AI safety verification for PWL networks, with potential extensions to nonlinear activations and richer specifications.

Abstract

Rectified Linear Unit (ReLU) networks are piecewise-linear (PWL), so universal linear safety properties can be reduced to reasoning about linear constraints. Modern verifiers rely on SMT(LRA) procedures or MILP encodings, but a safety claim is only as trustworthy as the evidence it produces. We develop a proof-carrying verification core for PWL neural constraints on an input domain $D \subseteq \mathbb{R}^n$. We formalize the exact PWL semantics as a union of polyhedra indexed by activation patterns, relate this model to standard exact SMT/MILP encodings and to the canonical convex-hull (ideal) relaxation of a bounded ReLU, and introduce a small certificate calculus whose proof objects live over $\mathbb{Q}$. Two certificate types suffice for the core reasoning steps: entailment certificates validate linear consequences (bound tightening and learned cuts), while Farkas certificates prove infeasibility of strengthened counterexample queries (branch-and-bound pruning). We give an exact proof kernel that checks these artifacts in rational arithmetic, prove soundness and completeness for linear entailment, and show that infeasibility certificates admit sparse representatives depending only on dimension. Worked examples illustrate end-to-end certified reasoning without trusting the solver beyond its exported witnesses.

Proof-Carrying Verification for ReLU Networks via Rational Certificates

TL;DR

This work introduces a proof-carrying verification core for ReLU-based neural networks by formalizing exact piecewise-linear semantics as a union of activation-pattern polyhedra and linking them to exact SMT/LRA and MILP encodings. It provides a compositional certificate calculus with two rational certificate types—Farkas certificates for infeasibility and entailment certificates for validated propagation—and proves soundness, completeness for linear entailment via LP duality, and dimension-based sparsity for infeasibility proofs. A solver-agnostic pipeline exports small, checkable rational certificates that can be independently verified via exact arithmetic, enabling trustworthy UNSAT claims even when solvers are imperfect. The approach yields compact proof logs, supports stabilization and learned cuts, and demonstrates end-to-end certified reasoning through worked examples. The framework advances trustworthy, scalable, and verifiable AI safety verification for PWL networks, with potential extensions to nonlinear activations and richer specifications.

Abstract

Rectified Linear Unit (ReLU) networks are piecewise-linear (PWL), so universal linear safety properties can be reduced to reasoning about linear constraints. Modern verifiers rely on SMT(LRA) procedures or MILP encodings, but a safety claim is only as trustworthy as the evidence it produces. We develop a proof-carrying verification core for PWL neural constraints on an input domain . We formalize the exact PWL semantics as a union of polyhedra indexed by activation patterns, relate this model to standard exact SMT/MILP encodings and to the canonical convex-hull (ideal) relaxation of a bounded ReLU, and introduce a small certificate calculus whose proof objects live over . Two certificate types suffice for the core reasoning steps: entailment certificates validate linear consequences (bound tightening and learned cuts), while Farkas certificates prove infeasibility of strengthened counterexample queries (branch-and-bound pruning). We give an exact proof kernel that checks these artifacts in rational arithmetic, prove soundness and completeness for linear entailment, and show that infeasibility certificates admit sparse representatives depending only on dimension. Worked examples illustrate end-to-end certified reasoning without trusting the solver beyond its exported witnesses.
Paper Structure (38 sections, 21 theorems, 59 equations, 2 algorithms)

This paper contains 38 sections, 21 theorems, 59 equations, 2 algorithms.

Key Result

Theorem 3.4

Let $\mathcal{N}$ be a ReLU network as above. Then:

Theorems & Definitions (62)

  • Definition 2.1: Counterexample query
  • Definition 3.1: Pattern-indexed extended polyhedron
  • Definition 3.2: Pattern region in input space
  • Remark 3.3
  • Theorem 3.4: Exact PWL semantics as projection of a union of polyhedra
  • proof
  • Remark 3.5: A computable formula for $(A_\pi,c_\pi)$
  • Proposition 3.6: Face-intersection property in extended space
  • proof
  • Theorem 3.7: Exactness of bounded big-$M$ for a single ReLU
  • ...and 52 more