The simple essence of automatic differentiation
Conal Elliott

TL;DR
This paper introduces a simplified, generalized reverse-mode automatic differentiation algorithm that is easier to understand, implement, and parallelize, avoiding complex data structures like graphs and tapes.
Contribution
It develops a natural, straightforward AD algorithm from a basic specification and derives simpler, more parallel-friendly variants without using traditional complex structures.
Findings
The new algorithms are simpler than traditional backpropagation.
They are inherently parallelizable and correct by construction.
Implementation requires no new data types or programming styles.
Abstract
Automatic differentiation (AD) in reverse mode (RAD) is a central component of deep learning and other uses of large-scale optimization. Commonly used RAD algorithms such as backpropagation, however, are complex and stateful, hindering deep understanding, improvement, and parallel execution. This paper develops a simple, generalized AD algorithm calculated from a simple, natural specification. The general algorithm is then specialized by varying the representation of derivatives. In particular, applying well-known constructions to a naive representation yields two RAD algorithms that are far simpler than previously known. In contrast to commonly used RAD implementations, the algorithms defined here involve no graphs, tapes, variables, partial derivatives, or mutation. They are inherently parallel-friendly, correct by construction, and usable directly from an existing programming…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMachine Learning and Algorithms · Fault Detection and Control Systems · Advanced Data Processing Techniques
