A general construction for abstract interpretation of higher-order automatic differentiation
Jacob Laurel, Rem Yang, Shubham Ugare, Robert Nagel, Gagandeep Singh, Sasa Misailovic
Abstract
We present a novel, general construction to abstractly interpret higher-order automatic differentiation (AD). Our construction allows one to instantiate an abstract interpreter for computing derivatives up to a chosen order. Furthermore, since our construction reduces the problem of abstractly reasoning about derivatives to abstractly reasoning about real-valued straight-line programs, it can be instantiated with almost any numerical abstract domain, both relational and non-relational. We formally establish the soundness of this construction.
We implement our technique by instantiating our construction with both the non-relational interval domain and the relational zonotope domain to compute both first and higher-order derivatives. In the latter case, we are the first to apply a relational domain to automatic differentiation for abstracting higher-order derivatives, and hence we are also the first abstract interpretation work to track correlations across not only different variables, but different orders of derivatives.
We evaluate these instantiations on multiple case studies, namely robustly explaining a neural network and more precisely computing a neural network's Lipschitz constant. For robust interpretation, first and second derivatives computed via zonotope AD are up to 4.76× and 6.98× more precise, respectively, compared to interval AD. For Lipschitz certification, we obtain bounds that are up to 11,850× more precise with zonotopes, compared to the state-of-the-art interval-based tool.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 01c98cae-3631-4476-8713-5cab6d3bd26dCited by top-tier papers6
- Stochastic Taylor Derivative Estimator: Efficient amortization for arbitrary differential operatorsZekun Shi, Zheyuan Hu, Min Lin, Kenji KawaguchiNeurIPS 2024 · 32 citations
- Incremental Verification of Neural NetworksShubham Ugare, Debangshu Banerjee, Sasa Misailovic, Gagandeep SinghPLDI 2023 · 19 citations
- Incremental Randomized Smoothing CertificationShubham Ugare, Tarun Suresh, Debangshu Banerjee, Gagandeep Singh et al.ICLR 2024 · 14 citations
- Provable Gradient Editing of Deep Neural NetworksZhe Tao, Aditya V. ThakurNeurIPS 2025 · 1 citation
- Synthesizing Sound and Precise Abstract Transformers for Nonlinear Hyperbolic PDE SolversJacob Laurel, Ignacio Laguna, Jan HückelheimOOPSLA 2025 · 1 citation
Builds on7
- DiffTaichi: Differentiable Programming for Physical SimulationYuanming Hu, Luke Anderson, Tzu-Mao Li, Qi Sun et al.ICLR 2020 · 479 citations
- Robustness Verification for TransformersZhouxing Shi, Huan Zhang, Kai-Wei Chang, Minlie Huang et al.ICLR 2020 · 131 citations
- Scalable Polyhedral Verification of Recurrent Neural NetworksWonryong Ryou, Jiayu Chen, Mislav Balunovic, Gagandeep Singh et al.CAV 2021 · 32 citations
- Provably correct, asymptotically efficient, higher-order reverse-mode automatic differentiationFaustyna Krawiec, Simon Peyton Jones, Neel Krishnaswami, Tom Ellis et al.POPL 2022 · 27 citations
- Provable Lipschitz Certification for Generative ModelsMatt Jordan, Alex DimakisICML 2021 · 15 citations
Related papers
- Synthesizing Precise Static Analyzers for Automatic DifferentiationJacob Laurel, Siyuan Brant Qian, Gagandeep Singh, Sasa MisailovicOOPSLA 2023 · 8 citations
- A dual number abstraction for static analysis of Clarke JacobiansJacob Laurel, Rem Yang, Gagandeep Singh, Sasa MisailovicPOPL 2022 · 17 citations
- Abstract Interpretation of Fixpoint Iterators with Applications to Neural NetworksMark Niklas Müller, Marc Fischer, Robin Staab, Martin T. VechevPLDI 2023 · 5 citations
- Input-Relational Verification of Deep Neural NetworksDebangshu Banerjee, Changming Xu, Gagandeep SinghPLDI 2024 · 9 citations
- Interval universal approximation for neural networksZi Wang, Aws Albarghouthi, Gautam Prakriya, Somesh JhaPOPL 2022 · 18 citations
