PyHessian: Neural Networks Through the Lens of the Hessian

By Zi-Mei Yao, A. Gholami, Kurt Keutzer, Michael W. Mahoney. 2019

401 citations recorded by the source corpus.

We present PYHESSIAN, a new scalable framework that enables fast computation of Hessian (i.e., second-order derivative) information for deep neural networks. PYHESSIAN enables fast computations of the top Hessian eigenvalues, the Hessian trace, and the full Hessian eigenvalue/spectral density; it supports distributed-memory execution on cloud/supercomputer systems; and it is available as open source [1]. This general framework can be used to analyze neural network models, including the topology of the loss landscape (i.e., curvature information) to gain insight into the behavior of different models/optimizers. As an example, we analyze the effect of residual connections and Batch Normalization layers on the trainability of neural networks. One recent claim, based on simpler first-order analysis, is that residual connections and Batch Normalization make the loss landscape "smoother," thus making it easier for Stochastic Gradient Descent to converge to a good solution. Our second-order analysis, easily enabled by PYHESSIAN, shows new finer-scale insights, demonstrating that while conventional wisdom is sometimes validated, in other cases it is simply incorrect. In particular, we find that Batch Normalization does not necessarily make the loss landscape smoother, especially for shallow networks.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Statistical and Nonlinear Physics

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yejin Choi
  2. Mohit Bansal
  3. Luke S. Zettlemoyer
  4. Michael W. Mahoney
  5. Percy Liang
  6. Noah A. Smith
  7. Hannaneh Hajishirzi
  8. Jianfeng Gao

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Mohit Bansal
  4. Kurt Keutzer
  5. Ling Shao
  6. Ming-Hsuan Yang
  7. Jitendra Malik
  8. Xiaogang Wang

In Statistical and Nonlinear Physics

  1. Namuk Park
  2. Songkuk Kim
  3. Michael W. Mahoney
  4. Aurélien Lucchi
  5. A. Gholami
  6. Zhen Dong
  7. Thomas Hofmann
  8. Ling Shao

Citations in the corpus