ConstraintFlow: Specifying, Verifying, and Executing DNN Certifiers
Developing an abstract interpretation-based DNN certifier requires mathematical analysis design, soundness reasoning, and efficient implementation. We present ConstraintFlow, a programming languages framework in which a common mathematical specification supports soundness verification, tensor compilation, structured sparsity, architecture specialization, and transformer synthesis. Formal results connect verification and execution to the specification under stated assumptions. ConstraintFlow supports a variety of DNN certifiers with different abstract domains and propagation strategies. We specify four existing certifiers and four new certifiers, each in just 11-67 lines of code. We automatically compile these specifications into optimized tensor-level code. The generated programs achieve a 7.1x geometric-mean GPU runtime speedup over auto_LiRPA, a state-of-the-art hand-optimized library, for DeepPoly, a widely used DNN certifier. The code is available at https://github.com/uiuc-focal-lab/constraintflow/tree/main.
Authors
- Charith Mendis (ORCID: https://orcid.org/0000-0002-8140-2321)
- Avaljot Singh (ORCID: https://orcid.org/0009-0006-4167-8709)
- Heng Zhong (ORCID: https://orcid.org/0009-0009-2955-4916)
- Aditya Mishra (ORCID: https://orcid.org/0000-0003-2803-4918)
- Gagandeep Singh (ORCID: https://orcid.org/0000-0001-7401-5860)
- Yasmin Chandini Sarita (ORCID: https://orcid.org/0009-0002-1491-3348)
- Qiuhan Gu (ORCID: https://orcid.org/0009-0002-3574-0538)
- Dushyant Bharadwaj
Publication Details
- Journal
- arXiv
- Published
- 2026-11-30
- Primary Topic
- Formal Methods in Verification
- Type
- preprint