[Paper Review] A Certified Proof Checker for Deep Neural Network Verification in Imandra
This paper presents a formally verified, certified proof checker for Marabou's DNN verification certificates within the Imandra interactive theorem prover. By implementing the checker in Imandra’s functional language and leveraging its formal verification capabilities and arbitrary-precision arithmetic, the authors achieve a fully verified, trustworthy certificate checker that guarantees correctness without floating-point imprecision, enabling stronger assurance for DNN verification in safety-critical systems.
Recent advances in the verification of deep neural networks (DNNs) have opened the way for a broader usage of DNN verification technology in many application areas, including safety-critical ones. However, DNN verifiers are themselves complex programs that have been shown to be susceptible to errors and numerical imprecision; this, in turn, has raised the question of trust in DNN verifiers. One prominent attempt to address this issue is enhancing DNN verifiers with the capability of producing certificates of their results that are subject to independent algorithmic checking. While formulations of Marabou certificate checking already exist on top of the state-of-the-art DNN verifier Marabou, they are implemented in C++, and that code itself raises the question of trust (e.g., in the precision of floating point calculations or guarantees for implementation soundness). Here, we present an alternative implementation of the Marabou certificate checking in Imandra - an industrial functional programming language and an interactive theorem prover (ITP) - that allows us to obtain full proof of certificate correctness. The significance of the result is two-fold. Firstly, it gives stronger independent guarantees for Marabou proofs. Secondly, it opens the way for the wider adoption of DNN verifiers in interactive theorem proving in the same way as many ITPs already incorporate SMT solvers.
Motivation & Objective
- To address the critical challenge of trust in DNN verifiers, which are prone to implementation bugs and numerical imprecision.
- To provide a formally verified, independently checkable proof checker for Marabou’s UNSAT certificates, ensuring correctness of verification results.
- To eliminate reliance on unverified C++-based certificate checkers by implementing a certified checker in a verified functional programming language.
- To enable integration of DNN verification into interactive theorem proving environments with strong assurance guarantees.
- To lay the foundation for proof-carrying neuro-symbolic systems by certifying the soundness of DNN verification workflows.
Proposed method
- Implementing a certificate checker in Imandra, a functional programming language and interactive theorem prover, to ensure formal verification of the checker’s correctness.
- Encoding Marabou’s proof trees and Farkas vectors as data structures within Imandra’s type system to represent DNN verification proofs.
- Using Imandra’s arbitrary-precision real arithmetic to avoid floating-point imprecision in proof checking.
- Formalizing and proving the Farkas lemma in polynomial form to support efficient automation and verification in Imandra.
- Reconstructing full correctness proofs from Marabou certificates by traversing proof trees and validating Farkas vectors using the formalized Farkas lemma.
- Leveraging Imandra’s proof automation and tactic-based interaction to balance performance and verification rigor.
Experimental results
Research questions
- RQ1Can a DNN verifier’s certificate checker be formally verified within an interactive theorem prover to eliminate trust in implementation?
- RQ2How can the soundness of Marabou’s UNSAT certificates be certified using a trusted, formally verified checker?
- RQ3What advantages does using a verified, high-level language like Imandra offer over traditional C++-based checkers in terms of correctness and precision?
- RQ4To what extent can the integration of DNN verifiers into ITPs improve the reliability of AI safety verification?
- RQ5Can the formalization of Farkas lemma in polynomial form enable efficient and automated proof reconstruction in Imandra?
Key findings
- The authors successfully implemented a formally verified proof checker for Marabou’s UNSAT certificates within Imandra, achieving full proof-carrying code guarantees.
- The checker is implemented in Imandra’s functional language and proven correct using the same language, eliminating trust in external code.
- By using arbitrary-precision arithmetic, the checker avoids floating-point imprecision that plagues traditional DNN verifiers and their checkers.
- The formalization of the Farkas lemma in polynomial form enables efficient proof automation and verification in Imandra.
- The approach enables the integration of DNN verification into interactive theorem proving workflows, paving the way for proof-carrying neuro-symbolic systems.
- Evaluation suggests a trade-off between reliability and scalability, primarily due to infinite-precision arithmetic and verification-oriented data structures.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.