English

VNN-LIB 2.0: Rigorous Foundations for Neural Network Verification

Machine Learning 2026-05-11 v1

Abstract

Neural network verification is an active and rapidly maturing research area, with a growing ecosystem of solvers and tools. The VNN-LIB standard was introduced to support interoperability in this ecosystem, but Version~1.0 has several serious short-comings as a formal foundation: it lacks a precise syntax, semantics, and type system, offers limited expressivity, and relies on externally defined ONNX models whose semantics are informal and constantly evolving. The latter distinguishes VNN-LIB from established standards such as SMT-LIB, where queries are self-contained and have fixed semantics. In this paper we address these challenges by developing the theoretical foundations of VNN-LIB~2.0. Our key contribution is the introduction of the notion of a \emph{network theory}, which abstractly characterises the minimal semantic interface required from a neural network model format. This abstraction enables VNN-LIB to be defined independently of any specific ONNX version while remaining compatible with evolving model representations. Building on this foundation, we present a formal syntax for a more expressive query language, a type system for it over the numeric domains provided by the network theory, and finally a formal semantics. To ensure internal consistency, the standard is mechanised in the Agda theorem prover. VNN-LIB~2.0 therefore provides robust and rigorous foundations for trustworthy neural network verification.

Keywords

Cite

@article{arxiv.2605.07451,
  title  = {VNN-LIB 2.0: Rigorous Foundations for Neural Network Verification},
  author = {Ann Roy and Allen Antony and Andrea Gimelli and Matthew L. Daggitt},
  journal= {arXiv preprint arXiv:2605.07451},
  year   = {2026}
}
R2 v1 2026-07-01T12:57:15.481Z