Dynamic Sparsity Is Channel-Level Sparsity Learner

Lu Yin, Gen Li, Meng Fang, Li Shen, Tianjin Huang, Zhangyang Wang, Vlado Menkovski, Xiaolong Ma, Mykola Pechenizkiy, Shiwei Liu · OpenReview

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 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.

Introduction

Deep Learning models are increasingly constrained by the massive memory and computational requirements of training and deployment. While Dynamic Sparse Training (DST) has emerged as a gold standard for maintaining high accuracy at high sparsity levels, it typically produces unstructured sparsity. These irregular patterns of zeros are difficult for standard GPUs to skip efficiently, limiting real-world acceleration.

To bridge this gap, we introduce Chase (Channel-aware dynamic sparse). Chase leverages a newly discovered property of DST to convert unstructured sparsity into hardware-friendly channel-level sparsity during a single end-to-end training run, achieving significant speedups on commodity hardware.

The "Sparse Amenable" Phenomenon

The core insight behind Chase is that dynamic sparsity is not a random process; it is an implicit learner. During unstructured DST, the algorithm naturally reallocates parameters away from certain channels. We observed that up to 60% of channels become significantly sparser than others very early in the training process. We term these "sparse amenable channels."

Evolution of "amenable channels" during training. Dynamic sparse training naturally identifies channels with low Unmasked Mean Magnitude (UMM), which can be safely pruned.

To identify these channels, we proposed the Unmasked Mean Magnitude (UMM) metric. Unlike simple magnitude pruning, UMM measures the average magnitude of all weights in a channel, including zeros. A low UMM score indicates a channel that is both mostly empty and contains weak signals, making it a prime candidate for removal.

The Chase Algorithm

Chase operates through three primary mechanisms:

  1. Gradual Pruning: Starting with an unstructured sparse network, Chase uses a gradual schedule to identify and remove channels with the lowest UMM scores.
  2. Global Parameter Exploration: The "sparsity budget" from pruned channels is redistributed globally to more critical parts of the network, allowing for continuous optimization.
  3. Soft Memory Bound: A temporary buffer is used during the growth phase, allowing the model to test new connections before committing to pruning old ones, which ensures training stability.

Experimental Results

We evaluated Chase on standard benchmarks including CIFAR-10/100 and ImageNet-1K using ResNet and Vision Transformer architectures. The results demonstrate that Chase effectively translates theoretical sparsity into tangible hardware performance.

Inference Latency and Throughput vs. Top-1 Accuracy on ImageNet. Chase (blue/orange lines) consistently outperforms other sparse training methods in hardware efficiency.

On an NVIDIA 2080TI, Chase achieved a 1.7× inference throughput speedup for ResNet-50 on ImageNet. Crucially, this speedup comes without the typical accuracy trade-offs seen in structured pruning; Chase-trained models often match or exceed the accuracy of their dense counterparts. In the unstructured regime, Chase establishes a new state-of-the-art, outperforming methods like RigL and MEST by significant margins (e.g., +2.12% accuracy over MEST on ImageNet).

Conclusion

Chase represents a significant advancement in making sparse neural networks practical for production environments. By "listening" to the implicit channel-level preferences of dynamic sparsity, Chase provides a seamless path from high-accuracy unstructured training to high-speed structured inference on standard GPU hardware.

Summary updated

BibTeX
@inproceedings{yin2023dynamic,
  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},
  title = {{Dynamic Sparsity Is Channel-Level Sparsity Learner}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=C6IIwFHWkF},
}
Figure