ConstraintFlow: Specifying, Verifying, and Executing DNN Certifiers
Avaljot Singh, Yasmin Chandini Sarita, Qiuhan Gu, Dushyant Bharadwaj, Heng Zhong, Aditya Mishra, Charith Mendis, Gagandeep Singh
Abstract
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 autoLiRPA, 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.
Create a lesson
Related papers
Exact Inference Without Positivity: Certifying Signed Fixed Points for Probabilistic Loops
Shared title terminologycs.PLMingqi Yang, Bohan Ma, Jianwei Yin et al.
SALTyRN: An End-to-End Tool for Verified and Optimized Neon-to-RVV Kernel Translation
Shared title terminologycs.PLKeagan Chern, Charles Hong, Yakun Sophia Shao et al.
Verifying \varepsilon-Differential Privacy Bit by Bit
Shared title terminologycs.PLZachary Susag, Justin Hsu
Teal: Verifiable Kernel Compilation through Instruction-Centric Lifting
Shared title terminologycs.PLShriram Chandran, Alexandru Calotoiu, Marcin Copik et al.
From Sequential to Dataflow: Formally-verified Compilation for Concurrent and Distributed Architectures
Shared title terminologycs.PLSebastian Ertel, Mohamed Elsheikh, Carmine Abate
sail-x86: Formalizing x86-64 for Full-System Execution and Machine-Code Verification
Shared title terminologycs.PLRui Ueyama, Takahiro Shinagawa