HRBP: Hardware-Friendly Regrouping Towards Block-Based Pruning for Sparse CNN Training

Abstract

Pruning at initialization and training a sparse network from scratch (sparse training) become increasingly popular. However, most sparse training literature addresses only the unstructured sparsity, which in practice brings little benefit to the training acceleration on GPU due to the irregularity of non-zero weights. In this paper, we work on sparse training with fine-grained structured sparsity, by extracting a few dense blocks from unstructured sparse weights. For Convolutional Neural networks (CNN), however, the extracted dense blocks will be broken in backpropagation due to the shape transformation of convolution filters implemented by GEMM. Thus, previous block-wise pruning methods can only be used to accelerate the forward pass of sparse CNN training. To this end, we propose Hardware-friendly Regrouping towards Block-based Pruning (HRBP), where the grouping is conducted on the kernel-wise mask. With HRBP, extracted dense blocks are preserved in backpropagation. Extensive experiments on CIFAR-10, CIFAR-100, and ImageNet demonstrate that HRBP can almost match the accuracy of unstructured sparse training methods while achieving a huge acceleration on hardware. Code is available at: https://github.com/HowieMa/HRBP-pruning.

Cite

Text

Ma et al. "HRBP: Hardware-Friendly Regrouping Towards Block-Based Pruning for Sparse CNN Training." Conference on Parsimony and Learning, 2024.

Markdown

[Ma et al. "HRBP: Hardware-Friendly Regrouping Towards Block-Based Pruning for Sparse CNN Training." Conference on Parsimony and Learning, 2024.](https://mlanthology.org/cpal/2024/ma2024cpal-hrbp/)

BibTeX

@inproceedings{ma2024cpal-hrbp,
  title     = {{HRBP: Hardware-Friendly Regrouping Towards Block-Based Pruning for Sparse CNN Training}},
  author    = {Ma, Haoyu and Zhang, Chengming and Xiang, Lizhi and Ma, Xiaolong and Yuan, Geng and Zhang, Wenkai and Liu, Shiwei and Chen, Tianlong and Tao, Dingwen and Wang, Yanzhi and Wang, Zhangyang and Xie, Xiaohui},
  booktitle = {Conference on Parsimony and Learning},
  year      = {2024},
  pages     = {282-301},
  volume    = {234},
  url       = {https://mlanthology.org/cpal/2024/ma2024cpal-hrbp/}
}