Provably correct, asymptotically efficient, higher-order reverse-mode automatic differentiation
Faustyna Krawiec, Simon Peyton Jones, Neel Krishnaswami, Tom Ellis, Richard A. Eisenberg, Andrew W. Fitzgibbon
Abstract
In this paper, we give a simple and efficient implementation of reverse-mode automatic differentiation, which both extends easily to higher-order functions, and has run time and memory consumption linear in the run time of the original program. In addition to a formal description of the translation, we also describe an implementation of this algorithm, and prove its correctness by means of a logical relations argument.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
10 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- A general construction for abstract interpretation of higher-order automatic differentiation cites 𝜆ₛ: computable semantics for differentiable programming with higher-order functions and datatypes
- You Only Linearize Once: Tangents Transpose to Gradients cites Automatic differentiation in PCF
- You Only Linearize Once: Tangents Transpose to Gradients cites Backpropagation in the simply typed lambda-calculus with linear negation
- You Only Linearize Once: Tangents Transpose to Gradients cites A simple differentiable programming language
- On the Correctness of Automatic Differentiation for Neural Networks with Machine-Representable Parameters cites You Only Linearize Once: Tangents Transpose to Gradients
- On the Correctness of Automatic Differentiation for Neural Networks with Machine-Representable Parameters cites Automatic differentiation in PCF
- On the Correctness of Automatic Differentiation for Neural Networks with Machine-Representable Parameters cites Backpropagation in the simply typed lambda-calculus with linear negation
- On the Correctness of Automatic Differentiation for Neural Networks with Machine-Representable Parameters cites A simple differentiable programming language
- On the Correctness of Automatic Differentiation for Neural Networks with Machine-Representable Parameters cites Efficient Dual-Numbers Reverse AD via Well-Known Program Transformations
- Automatic differentiation in PCF cites Backpropagation in the simply typed lambda-calculus with linear negation
- Automatic differentiation in PCF cites A simple differentiable programming language
- Efficient Dual-Numbers Reverse AD via Well-Known Program Transformations cites Automatic differentiation in PCF
- Efficient Dual-Numbers Reverse AD via Well-Known Program Transformations cites Backpropagation in the simply typed lambda-calculus with linear negation
- Efficient Dual-Numbers Reverse AD via Well-Known Program Transformations cites A simple differentiable programming language
- ADEV: Sound Automatic Differentiation of Expected Values of Probabilistic Programs cites 𝜆ₛ: computable semantics for differentiable programming with higher-order functions and datatypes
- ADEV: Sound Automatic Differentiation of Expected Values of Probabilistic Programs cites Automatic differentiation in PCF
- ADEV: Sound Automatic Differentiation of Expected Values of Probabilistic Programs cites Backpropagation in the simply typed lambda-calculus with linear negation
- ADEV: Sound Automatic Differentiation of Expected Values of Probabilistic Programs cites A simple differentiable programming language
Cited by top-tier papers10
- ADEV: Sound Automatic Differentiation of Expected Values of Probabilistic ProgramsAlexander K. Lew, Mathieu Huot, Sam Staton, Vikash K. MansinghkaPOPL 2023 · 16 citations
- You Only Linearize Once: Tangents Transpose to GradientsAlexey Radul, Adam Paszke, Roy Frostig, Matthew J. Johnson et al.POPL 2023 · 13 citations
- Efficient Dual-Numbers Reverse AD via Well-Known Program TransformationsTom Smeding, Matthijs VákárPOPL 2023 · 10 citations
- A general construction for abstract interpretation of higher-order automatic differentiationJacob Laurel, Rem Yang, Shubham Ugare, Robert Nagel et al.OOPSLA 2022 · 9 citations
- On the Correctness of Automatic Differentiation for Neural Networks with Machine-Representable ParametersWonyeol Lee, Sejun Park, Alex AikenICML 2023 · 6 citations
Builds on4
- A simple differentiable programming languageMartín Abadi, Gordon D. PlotkinPOPL 2020 · 49 citations
- Automatic differentiation in PCFDamiano Mazza, Michele PaganiPOPL 2021 · 47 citations
- Backpropagation in the simply typed lambda-calculus with linear negationAloïs Brunel, Damiano Mazza, Michele PaganiPOPL 2020 · 24 citations
- 𝜆ₛ: computable semantics for differentiable programming with higher-order functions and datatypesBenjamin Sherman, Jesse Michel, Michael CarbinPOPL 2021 · 11 citations
Related papers
- Efficient CHADTom Smeding, Matthijs VákárPOPL 2024 · 6 citations
- Automatic Functional Differentiation in JAXMin LinICLR 2024 · 5 citations
- AD for an Array Language with Nested ParallelismRobert Schenck, Ola Rønning, Troels Henriksen, Cosmin E. OanceaSC 2022 · 11 citations
- Reverse-mode automatic differentiation and optimization of GPU kernels via enzymeWilliam S. Moses, Valentin Churavy, Ludger Paehler, Jan Hückelheim et al.SC 2021 · 50 citations
- Elastic Locomotion with Mixed Second-order DifferentiationSiyuan Shen, Tianjia Shao, Kun Zhou, Chenfanfu Jiang et al.SIGGRAPH 2025 · 2 citations
