Why Random Pruning Is All We Need to Start Sparse

Advait Gadhikar, Sohom Mukherjee, Rebekka Burkholz
10/5/2022
cs.LG

Official code: RelationalML/sparse_to_sparse (2 stars, Python, last commit 2023-08-18).

Abstract

Random masks define surprisingly effective sparse neural network models, as has been shown empirically. The resulting sparse networks can often compete with dense architectures and state-of-the-art lottery ticket pruning algorithms, even though they do not rely on computationally expensive prune-train iterations and can be drawn initially without significant computational overhead.

Show full abstract

We offer a theoretical explanation of how random masks can approximate arbitrary target networks if they are wider by a logarithmic factor in the inverse sparsity $1 / \log(1/\text{sparsity})$. This overparameterization factor is necessary at least for 3-layer random networks, which elucidates the observed degrading performance of random networks at higher sparsity. At moderate to high sparsity levels, however, our results imply that sparser networks are contained within random source networks so that any dense-to-sparse training scheme can be turned into a computationally more efficient sparse-to-sparse one by constraining the search to a fixed random mask. We demonstrate the feasibility of this approach in experiments for different pruning methods and propose particularly effective choices of initial layer-wise sparsity ratios of the random source network. As a special case, we show theoretically and experimentally that random source networks also contain strong lottery tickets.

View on arXivView PDF

Code Implementations(1)

ICML 2023 paper "Why Random Pruning Is All We Need to Start Sparse"

20Python, Jupyter NotebookMay 30, 20233 years ago
lottery-ticket-hypothesis

Similar Papers

Cite this paper

@article{gadhikar2022random,
  title  = {Why Random Pruning Is All We Need to Start Sparse},
  author = {Advait Gadhikar and Sohom Mukherjee and Rebekka Burkholz},
  year   = {2022},
  eprint = {2210.02412},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.02412}
}

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

Discussion