A taxonomy of automatic differentiation pitfalls
Automatic differentiation is a popular technique for computing derivatives of computer programs. While automatic differentiation has been successfully used in countless engineering, science, and machine learning applications, it can sometimes nevertheless produce surprising results. In this paper, we categorize problematic usages of automatic differentiation, and illustrate each category with examples such as chaos, time-averages, discretizations, fixed-point loops, lookup tables, linear solvers, and probabilistic programs, in the hope that readers may more easily avoid or detect such pitfalls. We also review debugging techniques and their effectiveness in these situations. This article is categorized under: Technologies > Machine Learning.
| Item Type | Article |
|---|---|
| Identification Number | 10.1002/widm.1555 |
| Additional information | © 2024 UChicago Argonne, LLC and The Author(s). This is an open access article under the terms of the Creative Commons Attribution License, https://creativecommons.org/licenses/by/4.0/ |
| Keywords | autodiff, automatic differentiation, backpropagation, backpropagation, automatic differentiation, autodiff, general computer science |
| Date Deposited | 13 Feb 2026 16:20 |
| Last Modified | 18 Feb 2026 20:47 |
