How to compute Hessian-vector products?
Mathieu Dagréou · Pierre Ablin · Samuel Vaiter · Thomas Moreau
2024 Poster
in
Affinity Event: Blog Track
in
Affinity Event: Blog Track
Abstract
The products between the Hessian of a function and a vector, so-called Hessian-vector product (HVPs) is a quantity that appears in optimization and machine learning. However, the computation of HVPs is often considered prohibitive, preventing practitioners from using algorithms that rely on these quantities. Standard automatic differentiation theory predicts that computing a HVP has a cost of the same order of magnitude as computing a gradient. The goal of this blog post is to provide a practical counterpart to this theoretical result, showing that modern automatic differentiation frameworks, Jax and Pytorch, allow for efficient computation of these HVPs in standard deep learning cost functions.
Video
Chat is not available.
Successful Page Load