Are Straight-Through gradients and Soft-Thresholding all you need for Sparse Training?

Antoine Vanderschueren, Christophe De Vleeschouwer
12/2/2022
cs.CVcs.AI

Official code: vanderschuea/stthree (9 stars, Python, MIT, last commit 2022-12-28).

Abstract

Turning the weights to zero when training a neural network helps in reducing the computational complexity at inference. To progressively increase the sparsity ratio in the network without causing sharp weight discontinuities during training, our work combines soft-thresholding and straight-through gradient estimation to update the raw, i.e. non-thresholded, version of zeroed weights.

Show full abstract

Our method, named ST-3 for straight-through/soft-thresholding/sparse-training, obtains SoA results, both in terms of accuracy/sparsity and accuracy/FLOPS trade-offs, when progressively increasing the sparsity ratio in a single training cycle. In particular, despite its simplicity, ST-3 favorably compares to the most recent methods, adopting differentiable formulations or bio-inspired neuroregeneration principles. This suggests that the key ingredients for effective sparsification primarily lie in the ability to give the weights the freedom to evolve smoothly across the zero state while progressively increasing the sparsity ratio. Source code and weights available at https://github.com/vanderschuea/stthree

View on arXivView PDF

Code Implementations(1)

MIT
92PythonOct 14, 20223 years agoMIT

Similar Papers

Cite this paper

@article{vanderschueren2022straightthrough,
  title  = {Are Straight-Through gradients and Soft-Thresholding all you need for Sparse Training?},
  author = {Antoine Vanderschueren and Christophe De Vleeschouwer},
  year   = {2022},
  eprint = {2212.01076},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.01076}
}

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

Discussion