[Paper Review] A Geometric Theory of Higher-Order Automatic Differentiation
This paper develops a differential geometric framework for higher-order automatic differentiation using jet spaces, enabling a systematic identification of valid higher-order differential operators and explicit, efficient propagation rules through computational graphs. The key contribution is a unified theory that decouples higher-order partial derivatives from propagation updates, revealing performance-optimizing opportunities in software implementation and highlighting trade-offs between memory usage and computational redundancy in mixed-mode algorithms.
First-order automatic differentiation is a ubiquitous tool across statistics, machine learning, and computer science. Higher-order implementations of automatic differentiation, however, have yet to realize the same utility. In this paper I derive a comprehensive, differential geometric treatment of automatic differentiation that naturally identifies the higher-order differential operators amenable to automatic differentiation as well as explicit procedures that provide a scaffolding for high-performance implementations.
Motivation & Objective
- To address the lack of principled, high-performance frameworks for higher-order automatic differentiation in computational statistics and machine learning.
- To identify and formalize the higher-order differential operators amenable to automatic differentiation beyond first-order gradients.
- To resolve the confusion and inefficiencies arising from recursive first-order methods in existing higher-order AD tools.
- To provide a geometric foundation that enables explicit, optimized implementations of higher-order derivatives by separating derivative computation from propagation.
- To expose critical performance trade-offs in memory usage and computational redundancy when implementing mixed-mode higher-order AD.
Proposed method
- Formalizes higher-order automatic differentiation using jet spaces, which generalize tangent vectors to encode higher-order derivatives.
- Introduces velocity and covelocity spaces to model forward and backward propagation of higher-order derivatives through computational graphs.
- Derives explicit transformation rules for pushing forward velocities and pulling back covelocities along composite functions.
- Develops local, mixed-mode algorithms that compute higher-order derivatives (e.g., Hessian, third-order tensors) by tracking multiple derivative components at each computational node.
- Proposes a stack-based data structure that stores values, velocities, and higher-order covelocities (e.g., a, b, g, e) for efficient reverse-mode sweeps.
- Demonstrates that explicit, non-recursive algorithms can outperform recursive first-order AD by avoiding redundant computation and enabling better caching strategies.
Experimental results
Research questions
- RQ1Which higher-order differential operators are naturally amenable to automatic differentiation, and how can they be systematically identified?
- RQ2How can the geometric structure of jet spaces be leveraged to derive correct and efficient propagation rules for higher-order derivatives?
- RQ3What are the performance trade-offs between recursive first-order AD and explicit higher-order AD algorithms in terms of memory and computation?
- RQ4How can the separation of higher-order partial derivative computation from propagation logic improve software implementation?
- RQ5What are the implications of shared intermediate computations in complex functions for caching and performance in higher-order AD?
Key findings
- The jet space formalism provides a rigorous geometric foundation that naturally identifies valid higher-order differential operators, such as the Hessian and third-order derivatives.
- Explicit, non-recursive algorithms for higher-order AD can be derived by separating the computation of partial derivatives from their propagation, enabling more efficient implementations.
- Mixed-mode higher-order AD methods require careful management of intermediate values, as shared expensive computations across derivative components can be cached to reduce redundancy.
- The cost of computing higher-order derivatives using local mixed-mode algorithms scales linearly with the number of input variables, making them practical for moderate dimensions.
- For high-dimensional target functions, pure reverse-mode Hessian computation may outperform multi-sweep mixed-mode methods due to better memory locality and reduced redundant computation.
- The theory reveals that recursive application of first-order AD obscures the true structure of higher-order operators and hinders optimization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.