Just-In-Time Piecewise-Linear Semantics for ReLU-type Networks
Hongyi Duan, Haoyang Liu, Jian'an Zhang, Fengrui Liu, Yiyi Wang
TL;DR
This work introduces a just‑in‑time Symbolic Weighted Transducer (SWT) to provide exact, certificate‑driven analysis of ReLU‑type networks by modeling them as guarded CPWL maps. The static SWT encodes networks with a shared guard library and polyhedral guards, enabling on‑demand refinement via JIT–SWT that maintains sound envelopes and never regresses. Key contributions include CPWL closure results, a dynamic refinement framework with three refiners, and decidability under finite refinement, along with a geometry/verification pipeline (regions, Jacobians, Lipschitz, robustness, equivariance, causality) that reduces to tractable LP/SOCP steps and yields certificates or counterexamples. The approach yields machine‑precision forward equivalence and actionable geometric insights (e.g., local Lipschitz relating to adversarial robustness) across FFN, CNN, and GNN experiments, providing a scalable, certificate‑driven alternative to solver‑centric verification. Practical impact lies in enabling per‑region readouts, certified robustness bounds, and causal analyses on standard architectures with rigorous guarantees under finite refinement budgets.
Abstract
We present a JIT PL semantics for ReLU-type networks that compiles models into a guarded CPWL transducer with shared guards. The system adds hyperplanes only when operands are affine on the current cell, maintains global lower/upper envelopes, and uses a budgeted branch-and-bound. We obtain anytime soundness, exactness on fully refined cells, monotone progress, guard-linear complexity (avoiding global $\binom{k}{2}$), dominance pruning, and decidability under finite refinement. The shared carrier supports region extraction, decision complexes, Jacobians, exact/certified Lipschitz, LP/SOCP robustness, and maximal causal influence. A minimal prototype returns certificates or counterexamples with cost proportional to visited subdomains.
