HesScale: Scalable Computation of Hessian Diagonals

Mohamed Elsayed, A. Rupam Mahmood
10/20/2022
cs.LGmath.OC

Official code: mohmdelsayed/HesScale (14 stars, Python, MIT, PyTorch, last commit 2024-06-02).

Abstract

Second-order optimization uses curvature information about the objective function, which can help in faster convergence. However, such methods typically require expensive computation of the Hessian matrix, preventing their usage in a scalable way.

Show full abstract

The absence of efficient ways of computation drove the most widely used methods to focus on first-order approximations that do not capture the curvature information. In this paper, we develop HesScale, a scalable approach to approximating the diagonal of the Hessian matrix, to incorporate second-order information in a computationally efficient manner. We show that HesScale has the same computational complexity as backpropagation. Our results on supervised classification show that HesScale achieves high approximation accuracy, allowing for scalable and efficient second-order optimization.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Scalable Computation of Hessian Diagonals

141PythonOct 25, 20212 years agoMIT
deep-learninghessianhessian-diagonalsoptimization-methodsoptimizer+1 more

Similar Papers

Cite this paper

@article{elsayed2022hesscale,
  title  = {HesScale: Scalable Computation of Hessian Diagonals},
  author = {Mohamed Elsayed and A. Rupam Mahmood},
  year   = {2022},
  eprint = {2210.11639},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.11639}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.11639.svg)](https://codeofpaper.com/paper/2210.11639)

Discussion