Learning N: M Fine-grained Structured Sparse Neural Networks From Scratch
Aojun Zhou, Yukun Ma, Junnan Zhu, Jianbo Liu, Zhijie Zhang, Kun Yuan, Wenxiu Sun, Hongsheng Li
Abstract
Sparsity in Deep Neural Networks (DNNs) has been widely studied to compress and accelerate the models on resource-constrained environments. It can be generally categorized into unstructured fine-grained sparsity that zeroes out multiple individual weights distributed across the neural network, and structured coarse-grained sparsity which prunes blocks of sub-networks of a neural network. Fine-grained sparsity can achieve a high compression ratio but is not hardware friendly and hence receives limited speed gains. On the other hand, coarse-grained sparsity cannot simultaneously achieve both apparent acceleration on modern GPUs and decent performance. In this paper, we are the first to study training from scratch an N:M fine-grained structured sparse network, which can maintain the advantages of both unstructured fine-grained sparsity and structured coarse-grained sparsity simultaneously on specifically designed GPUs. Specifically, a 2 : 4 sparse network could achieve 2× speed-up without performance drop on Nvidia A100 GPUs. Furthermore, we propose a novel and effective ingredient, sparse-refined straight-through estimator (SR-STE), to alleviate the negative influence of the approximated gradients computed by vanilla STE during optimization. We also define a metric, Sparse Architecture Divergence (SAD), to measure the sparse network’s topology change during the training process. Finally, We justify SR-STE’s advantages with SAD and demonstrate the effectiveness of SR-STE by performing comprehensive experiments on various tasks. Anonymous code and model will be at available at https://github.com/anonymous-NM-sparsity/NM-sparsity.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
92 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Soft Threshold Weight Reparameterization for Learnable Sparsity cites Rigging the Lottery: Making All Tickets Winners
- Rigging the Lottery: Making All Tickets Winners cites Soft Threshold Weight Reparameterization for Learnable Sparsity
- Do We Actually Need Dense Over-Parameterization? In-Time Over-Parameterization in Sparse Training cites Soft Threshold Weight Reparameterization for Learnable Sparsity
- Do We Actually Need Dense Over-Parameterization? In-Time Over-Parameterization in Sparse Training cites Rigging the Lottery: Making All Tickets Winners
- Do We Actually Need Dense Over-Parameterization? In-Time Over-Parameterization in Sparse Training cites Language Models are Few-Shot Learners
- Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning cites Group Fisher Pruning for Practical Network Compression
- SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot cites Group Fisher Pruning for Practical Network Compression
- SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot cites Rigging the Lottery: Making All Tickets Winners
- SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot cites Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning
- Sparse Training via Boosting Pruning Plasticity with Neuroregeneration cites Soft Threshold Weight Reparameterization for Learnable Sparsity
- Sparse Training via Boosting Pruning Plasticity with Neuroregeneration cites Do We Actually Need Dense Over-Parameterization? In-Time Over-Parameterization in Sparse Training
- Sparse Training via Boosting Pruning Plasticity with Neuroregeneration cites Rigging the Lottery: Making All Tickets Winners
- Sparse Training via Boosting Pruning Plasticity with Neuroregeneration cites Language Models are Few-Shot Learners
- Sparse Training via Boosting Pruning Plasticity with Neuroregeneration cites Comparing Rewinding and Fine-tuning in Neural Network Pruning
Cited by top-tier papers92
- SparseGPT: Massive Language Models Can be Accurately Pruned in One-ShotElias Frantar, Dan AlistarhICML 2023 · 1,240 citations
- Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and PruningElias Frantar, Dan AlistarhNeurIPS 2022 · 440 citations
- Group Fisher Pruning for Practical Network CompressionLiyang Liu, Shilong Zhang, Zhanghui Kuang, Aojun Zhou et al.ICML 2021 · 204 citations
- Do We Actually Need Dense Over-Parameterization? In-Time Over-Parameterization in Sparse TrainingShiwei Liu, Lu Yin, Decebal Constantin Mocanu, Mykola PechenizkiyICML 2021 · 146 citations
- Sparse Training via Boosting Pruning Plasticity with NeuroregenerationShiwei Liu, Tianlong Chen, Xiaohan Chen, Zahra Atashgahi et al.NeurIPS 2021 · 145 citations
Builds on6
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Rigging the Lottery: Making All Tickets WinnersUtku Evci, Trevor Gale, Jacob Menick, Pablo Samuel Castro et al.ICML 2020 · 723 citations
- Comparing Rewinding and Fine-tuning in Neural Network PruningAlex Renda, Jonathan Frankle, Michael CarbinICLR 2020 · 437 citations
- Soft Threshold Weight Reparameterization for Learnable SparsityAditya Kusupati, Vivek Ramanujan, Raghav Somani, Mitchell Wortsman et al.ICML 2020 · 266 citations
- PCNN: Pattern-based Fine-Grained Regular Pruning Towards Optimizing CNN AcceleratorsZhanhong Tan, Jiebo Song, Xiaolong Ma, Sia Huat Tan et al.DAC 2020 · 28 citations
Related papers
- Accelerated Sparse Neural Training: A Provable and Efficient Method to Find N: M Transposable MasksItay Hubara, Brian Chmiel, Moshe Island, Ron Banner et al.NeurIPS 2021 · 148 citations
- S-STE: Continuous Pruning Function for Efficient 2: 4 Sparse Pre-trainingYuezhou Hu, Jun Zhu, Jianfei ChenNeurIPS 2024 · 14 citations
- Dynamic Sparsity Is Channel-Level Sparsity LearnerLu Yin, Gen Li, Meng Fang, Li Shen et al.NeurIPS 2023 · 29 citations
- Accelerating Transformer Pre-training with 2: 4 SparsityYuezhou Hu, Kang Zhao, Weiyu Huang, Jianfei Chen et al.ICML 2024 · 19 citations
- Cascading structured pruning: enabling high data reuse for sparse DNN acceleratorsEdward Hanson, Shiyu Li, Hai Helen Li, Yiran ChenISCA 2022 · 30 citations
