Understanding Automatic Differentiation Pitfalls
Not on the map. Why?
Abstract (arXiv)
Automatic differentiation, also known as backpropagation, AD, autodiff, or algorithmic differentiation, is a popular technique for computing derivatives of computer programs accurately and efficiently. Sometimes, however, the derivatives computed by AD could be interpreted as incorrect. These pitfalls occur systematically across tools and approaches. In this paper we broadly categorize problematic usages of AD and illustrate each category with examples such as chaos, time-averaged oscillations, discretizations, fixed-point loops, lookup tables, and linear solvers. We also review debugging techniques and their effectiveness in these situations. With this article we hope to help readers avoid unexpected behavior, detect problems more easily when they occur, and have more realistic expectations from AD tools.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 9 of its 59 references that are in the map. First posted on arXiv 12 May 2023.
Builds on
9 of 59 references.
References · 9
- 2015Automatic differentiation in machine learning: a surveycited by 855
- 2020A mathematical model for automatic differentiation in machine learningcited by 45
- 2020Instead of Rewriting Foreign Code for Machine Learning, Automatically Synthesize Fast Gradientscited by 27
- 2020On Correctness of Automatic Differentiation for Non-Differentiable Functionscited by 20
- 2018Demystifying Differentiable Programming: Shift/Reset the Penultimate Backpropagatorcited by 14
- 2020Correctness of Automatic Differentiation via Diffeologies and Categorical Gluingcited by 12
- 2022ADEV: Sound Automatic Differentiation of Expected Values of Probabilistic Programscited by 12
- 2022You Only Linearize Once: Tangents Transpose to Gradientscited by 10
- 2023On the Correctness of Automatic Differentiation for Neural Networks with Machine-Representable Parameterscited by 3
Built on by
Citing papers per year: 2023: 1.
1 paper.
- 2023Correcting Auto-Differentiation in Neural-ODE Trainingcited by 3
- 2023Correcting Auto-Differentiation in Neural-ODE Training3 Jun 2023