WoodFisher: Efficient Second-Order Approximation for Neural Network Compression

Sidak Pal Singh, Dan Alistarh
4/29/2020
cs.LGstat.ML

Official code: IST-DASLab/WoodFisher (54 stars, Python, last commit 2021-03-08).

Abstract

Second-order information, in the form of Hessian- or Inverse-Hessian-vector products, is a fundamental tool for solving optimization problems. Recently, there has been significant interest in utilizing this information in the context of deep neural networks; however, relatively little is known about the quality of existing approximations in this context.

Show full abstract

Our work examines this question, identifies issues with existing approaches, and proposes a method called WoodFisher to compute a faithful and efficient estimate of the inverse Hessian. Our main application is to neural network compression, where we build on the classic Optimal Brain Damage/Surgeon framework. We demonstrate that WoodFisher significantly outperforms popular state-of-the-art methods for one-shot pruning. Further, even when iterative, gradual pruning is considered, our method results in a gain in test accuracy over the state-of-the-art approaches, for pruning popular neural networks (like ResNet-50, MobileNetV1) trained on standard image classification datasets such as ImageNet ILSVRC. We examine how our method can be extended to take into account first-order information, as well as illustrate its ability to automatically set layer-wise pruning thresholds and perform compression in the limited-data regime. The code is available at the following link, https://github.com/IST-DASLab/WoodFisher.

View on arXivView PDF

Code Implementations(1)

Code accompanying the NeurIPS 2020 paper: WoodFisher (Singh & Alistarh, 2020)

545Python, ShellOct 22, 20205 years ago

Similar Papers

Cite this paper

@article{singh2020woodfisher,
  title  = {WoodFisher: Efficient Second-Order Approximation for Neural Network Compression},
  author = {Sidak Pal Singh and Dan Alistarh},
  year   = {2020},
  eprint = {2004.14340},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.14340}
}

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/2004.14340.svg)](https://codeofpaper.com/paper/2004.14340)

Discussion