Dynamic Sparsity Is Channel-Level Sparsity Learner

Lu Yin, Gen Li, Meng Fang, Li Shen, Tianjin Huang +5 more
5/30/2023
cs.LGcs.AIcs.CV

Official code: luuyin/chase (7 stars, last commit 2023-10-14).

Abstract

Sparse training has received an upsurging interest in machine learning due to its tantalizing saving potential for the entire training process as well as inference. Dynamic sparse training (DST), as a leading sparse training approach, can train deep neural networks at high sparsity from scratch to match the performance of their dense counterparts. However, most if not all DST prior arts demonstrate their effectiveness on unstructured sparsity with highly irregular sparse patterns, which receives limited support in common hardware. This limitation hinders the usage of DST in practice. In this paper, we propose Channel-aware dynamic sparse (Chase), which for the first time seamlessly translates the promise of unstructured dynamic sparsity to GPU-friendly channel-level sparsity (not fine-grained N:M or group sparsity) during one end-to-end training process, without any ad-hoc operations. The resulting small sparse networks can be directly accelerated by commodity hardware, without using any particularly sparsity-aware hardware accelerators. This appealing outcome is partially motivated by a hidden phenomenon of dynamic sparsity: off-the-shelf unstructured DST implicitly involves biased parameter reallocation across channels, with a large fraction of channels (up to 60%) being sparser than others. By progressively identifying and removing these channels during training, our approach translates unstructured sparsity to channel-wise sparsity. Our experimental results demonstrate that Chase achieves 1.7 X inference throughput speedup on common GPU devices without compromising accuracy with ResNet-50 on ImageNet. We release our codes in https://github.com/luuyin/chase.

View on arXivView PDF

Code Implementations(1)

luuyin/chaseOfficial100%

Dynamic Sparsity Is Channel-Level Sparsity Learner [Neurips 2023]

70Roff, ShellMay 30, 20233 years ago
chasedeeplearningdeeplearning-efficiencyprunningsparsetraining

Similar Papers

Cite this paper

@article{yin2023dynamic,
  title  = {Dynamic Sparsity Is Channel-Level Sparsity Learner},
  author = {Lu Yin and Gen Li and Meng Fang and Li Shen and Tianjin Huang and Zhangyang Wang and Vlado Menkovski and Xiaolong Ma and Mykola Pechenizkiy and Shiwei Liu},
  year   = {2023},
  eprint = {2305.19454},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.19454v2},
  journal = {NEURIPS 2023 2023}
}

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

Discussion