Sparse Networks from Scratch: Faster Training without Losing Performance

Tim Dettmers, Luke Zettlemoyer
7/10/2019
cs.LGcs.NEstat.ML

Official code: TimDettmers/sparse_learning (385 stars, MIT, last commit 2022-06-06).

Abstract

We demonstrate the possibility of what we call sparse learning: accelerated training of deep neural networks that maintain sparse weights throughout training while achieving dense performance levels. We accomplish this by developing sparse momentum, an algorithm which uses exponentially smoothed gradients (momentum) to identify layers and weights which reduce the error efficiently. Sparse momentum redistributes pruned weights across layers according to the mean momentum magnitude of each layer. Within a layer, sparse momentum grows weights according to the momentum magnitude of zero-valued weights. We demonstrate state-of-the-art sparse performance on MNIST, CIFAR-10, and ImageNet, decreasing the mean error by a relative 8%, 15%, and 6% compared to other sparse algorithms. Furthermore, we show that sparse momentum reliably reproduces dense performance levels while providing up to 5.61x faster training. In our analysis, ablations show that the benefits of momentum redistribution and growth increase with the depth and size of the network. Additionally, we find that sparse momentum is insensitive to the choice of its hyperparameters suggesting that sparse momentum is robust and easy to use.

View on arXivView PDF

Code Implementations(1)

MIT

Sparse learning library and sparse momentum resources.

38546Shell, PythonJul 4, 20194 years agoMIT

Cite this paper

@article{dettmers2019sparse,
  title  = {Sparse Networks from Scratch: Faster Training without Losing Performance},
  author = {Tim Dettmers and Luke Zettlemoyer},
  year   = {2019},
  eprint = {1907.04840},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1907.04840}
}

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

Discussion