Soft Threshold Weight Reparameterization for Learnable Sparsity

Aditya Kusupati, Vivek Ramanujan, Raghav Somani, Mitchell Wortsman, Prateek Jain +2 more
2/8/2020
cs.LGcs.CVstat.ML

Official code: RAIVNLab/STR (91 stars, Python, Apache-2.0, last commit 2023-02-15).

Abstract

Sparsity in Deep Neural Networks (DNNs) is studied extensively with the focus of maximizing prediction accuracy given an overall parameter budget. Existing methods rely on uniform or heuristic non-uniform sparsity budgets which have sub-optimal layer-wise parameter allocation resulting in a) lower prediction accuracy or b) higher inference cost (FLOPs).

Show full abstract

This work proposes Soft Threshold Reparameterization (STR), a novel use of the soft-threshold operator on DNN weights. STR smoothly induces sparsity while learning pruning thresholds thereby obtaining a non-uniform sparsity budget. Our method achieves state-of-the-art accuracy for unstructured sparsity in CNNs (ResNet50 and MobileNetV1 on ImageNet-1K), and, additionally, learns non-uniform budgets that empirically reduce the FLOPs by up to 50%. Notably, STR boosts the accuracy over existing results by up to 10% in the ultra sparse (99%) regime and can also be used to induce low-rank (structured sparsity) in RNNs. In short, STR is a simple mechanism which learns effective sparsity budgets that contrast with popular heuristics. Code, pretrained models and sparsity budgets are at https://github.com/RAIVNLab/STR.

View on arXivView PDF

Code Implementations(1)

RAIVNLab/STROfficial100%
Apache-2.0

Soft Threshold Weight Reparameterization for Learnable Sparsity

9112PythonApr 11, 20203 years agoApache-2.0
cnnedge-machine-learningefficient-inferenceicmlicml-2020+9 more

Similar Papers

Cite this paper

@article{kusupati2020soft,
  title  = {Soft Threshold Weight Reparameterization for Learnable Sparsity},
  author = {Aditya Kusupati and Vivek Ramanujan and Raghav Somani and Mitchell Wortsman and Prateek Jain and Sham Kakade and Ali Farhadi},
  year   = {2020},
  eprint = {2002.03231},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.03231}
}

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

Discussion