Skip to main content
QUICK REVIEW

[Paper Review] Estimating the Hessian by Back-propagating Curvature

James Martens, Ilya Sutskever|arXiv (Cornell University)|Jun 27, 2012
Model Reduction and Neural NetworksPhysics and Astronomy12 references19 citations
TL;DR

This paper introduces Curvature Propagation (CP), a novel back-propagation-based method for efficiently estimating the Hessian of differentiable functions using computational graphs. By incurring only two additional gradient evaluations, CP provides unbiased, rank-1 approximations of the Hessian and can iteratively refine estimates, achieving high accuracy for the diagonal and full Hessian in neural networks and Score Matching applications.

ABSTRACT

In this work we develop Curvature Propagation (CP), a general technique for efficiently computing unbiased approximations of the Hessian of any function that is computed using a computational graph. At the cost of roughly two gradient evaluations, CP can give a rank-1 approximation of the whole Hessian, and can be repeatedly applied to give increasingly precise unbiased estimates of any or all of the entries of the Hessian. Of particular interest is the diagonal of the Hessian, for which no general approach is known to exist that is both efficient and accurate. We show in experiments that CP turns out to work well in practice, giving very accurate estimates of the Hessian of neural networks, for example, with a relatively small amount of work. We also apply CP to Score Matching, where a diagonal of a Hessian plays an integral role in the Score Matching objective, and where it is usually computed exactly using inefficient algorithms which do not scale to larger and more complex models.

Motivation & Objective

  • Address the lack of efficient and accurate methods for computing the Hessian, especially its diagonal, in deep learning models.
  • Develop a scalable technique to estimate the Hessian of complex, differentiable functions defined via computational graphs.
  • Enable accurate Hessian estimation for optimization and regularization in large-scale models where exact computation is infeasible.
  • Provide a general-purpose solution applicable to both full Hessian and diagonal Hessian estimation in various machine learning objectives.
  • Overcome the limitations of existing diagonal Hessian estimation methods that are either inaccurate or computationally prohibitive for complex models.

Proposed method

  • Propose Curvature Propagation (CP), a back-propagation-style algorithm that computes unbiased Hessian approximations using second-order information.
  • Use a random vector with zero mean and unit variance to generate a rank-1 approximation of the Hessian via the Hessian-vector product.
  • Apply the Hessian-vector product through reverse-mode differentiation, reusing existing back-propagation infrastructure.
  • Iteratively apply CP with independent random vectors to refine and reduce variance in Hessian estimates.
  • Enable estimation of both diagonal and full Hessian entries by accumulating multiple rank-1 approximations.
  • Integrate CP into existing computational graphs without modifying the forward computation graph, preserving efficiency.

Experimental results

Research questions

  • RQ1Can we compute an unbiased, low-rank approximation of the Hessian using only two additional gradient evaluations beyond standard back-propagation?
  • RQ2Can Curvature Propagation provide accurate estimates of the diagonal of the Hessian in deep neural networks where no general efficient method exists?
  • RQ3How does CP perform in comparison to exact or approximate Hessian computation in large-scale models like those used in Score Matching?
  • RQ4Can CP be efficiently applied to complex, high-dimensional machine learning objectives without significant computational overhead?
  • RQ5Does iterative application of CP lead to increasingly accurate and stable Hessian estimates across different model architectures?

Key findings

  • CP provides unbiased estimates of the Hessian with only two additional gradient evaluations beyond standard back-propagation.
  • The method achieves high accuracy in estimating the diagonal of the Hessian for deep neural networks, outperforming existing approximate methods.
  • CP enables efficient computation of the Hessian in Score Matching, where exact diagonal Hessian computation is typically too slow for large models.
  • Iterative application of CP reduces estimation variance, leading to increasingly precise Hessian approximations with minimal additional cost.
  • Empirical results show that CP produces reliable Hessian estimates even in high-dimensional settings, demonstrating robustness and scalability.
  • The approach is general and can be applied to any function computed via a computational graph, making it widely applicable across machine learning tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.