TL;DR
This paper introduces a novel framework for calculating high-order derivatives, specifically focusing on third-order information, using reverse automatic differentiation. They demonstrate that computing the directional derivative of the Hessian can be done at a cost comparable to calculating the Hessian itself, making it practical for large-scale problems and potentially enabling more efficient optimization methods.
What Problem Does This Paper Address?
In many scientific and engineering applications, higher-order derivatives (beyond first and second order) are crucial for developing advanced numerical methods, such as those used in optimization, bifurcation analysis, and solving partial differential equations. However, the prevailing assumption has been that computing these higher-order derivatives is prohibitively expensive, leading to a reliance on lower-order methods. This paper aims to challenge that assumption by developing efficient algorithms for calculating third-order derivatives, specifically the directional derivative of the Hessian, and showing its practical feasibility even for functions with millions of variables.
Methods
The authors propose a general procedure for designing high-order reverse automatic differentiation (AD) methods. They frame functions as compositions of simpler maps and then recursively apply the chain rule to derive expressions for first, second, and third-order derivatives. A key contribution is the development of an "Archetype Reverse Hessian Directional Derivative" (RevHedir) algorithm. This algorithm is designed to compute the derivative efficiently by taking advantage of symmetry and sparsity in the intermediate calculations. They also detail how to implement these algorithms using state transformations, bridging the gap between mathematical formulations and practical code.
Datasets
The authors used the CUTE collection and other benchmark problems for their numerical experiments. They also created a custom function, heavey_band(x, band), to test various sparsity patterns and scalability. The problems were selected based on the sparsity pattern of the third-order derivative tensor.
Key Insights and Ideas
- Third-order information is not prohibitively expensive: The core insight is that calculating the directional derivative of the Hessian can be achieved with a computational cost similar to that of calculating the Hessian itself, debunking a long-held assumption.
- Reverse AD is key: By framing derivatives as a "whole" rather than individual elements, reverse AD methods can exploit overlapping computations, leading to significant efficiency gains.
- Symmetry and sparsity are crucial: The authors emphasize the importance of exploiting symmetry and sparsity in the derivative tensors to achieve efficient implementations, especially for large-scale problems.
- A unified framework for high-order AD: The paper presents a generalizable framework for designing reverse AD methods for arbitrary orders, paving the way for future extensions.
Key Results
- The implemented RevHedir algorithm successfully calculated the directional derivative of the Hessian for functions with up to a million variables.
- The runtime for calculating the third-order directional derivative was, on average, only about 8% longer than that for calculating the Hessian using the "edge_pushing" algorithm.
- The sparsity pattern of the derivative tensor did not appear to be a decisive factor in runtime, with density ("nnz/n") being a stronger indicator.
Limitations and Future Work
- Memory Usage: A significant limitation of reverse AD, as acknowledged by the authors, is the substantial memory required to store intermediate values during the forward sweep. This can be prohibitive for very large-scale functions.
- Limited Test Cases: While a variety of problems were tested, the authors suggest that further testing on real-world problems is needed.
- Complexity Bounds: The paper notes the need for developing formal complexity bounds for the presented algorithms.
- Future Work: The authors plan to conduct further complexity analysis to confirm their findings and explore the implications for nonlinear optimization methods, potentially making third-order methods like Halley-Chebyshev competitive with Newton's method for large-scale problems. They also suggest extending the framework to even higher-order derivatives.
Summary updated