Engineering Papers⌕ Search

DOE OSTI · 2588030

A taxonomy of automatic differentiation pitfalls

Abstract

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Hückelheim, Jan, Menon, Harshitha, Moses, William, Christianson, Bruce, Hovland, Paul, Hascoët, Laurent. 2024-09-02. A taxonomy of automatic differentiation pitfalls. https://doi.org/10.1002/widm.1555

Cite the original work for its findings. Save a collection to share your selection of sources.