Minimum Variance Unbiased N: M Sparsity for the Neural Gradients
摘要
In deep learning, fine-grained N:M sparsity reduces the data footprint and bandwidth of a General Matrix multiply (GEMM) up to x2, and doubles throughput by skipping computation of zero values. So far, it was mainly only used to prune weights to accelerate the forward and backward phases. We examine how this method can be used also for the neural gradients (i.e., loss gradients with respect to the intermediate neural layer outputs). To this end, we first establish a tensorlevel optimality criteria. Previous works aimed to minimize the mean-square-error (MSE) of each pruned block. We show that while minimization of the MSE works fine for pruning the weights and activations, it catastrophically fails for the neural gradients. Instead, we show that accurate pruning of the neural gradients requires an unbiased minimum-variance pruning mask. We design such specialized masks, and find that in most cases, 1:2 sparsity is sufficient for training, and 2:4 sparsity is usually enough when this is not the case. Further, we suggest combining several such methods together in order to potentially speed up training even more.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Accelerated Sparse Neural Training: A Provable and Efficient Method to Find N: M Transposable Masks 引用了 Rigging the Lottery: Making All Tickets Winners
- Accelerated Sparse Neural Training: A Provable and Efficient Method to Find N: M Transposable Masks 引用了 Comparing Rewinding and Fine-tuning in Neural Network Pruning
- S-STE: Continuous Pruning Function for Efficient 2: 4 Sparse Pre-training 引用了 Accelerated Sparse Neural Training: A Provable and Efficient Method to Find N: M Transposable Masks
- S-STE: Continuous Pruning Function for Efficient 2: 4 Sparse Pre-training 引用了 Rigging the Lottery: Making All Tickets Winners
- S-STE: Continuous Pruning Function for Efficient 2: 4 Sparse Pre-training 引用了 Accelerating Transformer Pre-training with 2: 4 Sparsity
- Accelerating Transformer Pre-training with 2: 4 Sparsity 引用了 Accelerated Sparse Neural Training: A Provable and Efficient Method to Find N: M Transposable Masks
- Accelerating Transformer Pre-training with 2: 4 Sparsity 引用了 Rigging the Lottery: Making All Tickets Winners
引用它的顶会 Paper3
- Winner-Take-All Column Row Sampling for Memory Efficient Adaptation of Language ModelZirui Liu, Guanchu Wang, Shaochen Zhong, Zhaozhuo Xu 等NeurIPS 2023 · 22 次引用
- Accelerating Transformer Pre-training with 2: 4 SparsityYuezhou Hu, Kang Zhao, Weiyu Huang, Jianfei Chen 等ICML 2024 · 19 次引用
- S-STE: Continuous Pruning Function for Efficient 2: 4 Sparse Pre-trainingYuezhou Hu, Jun Zhu, Jianfei ChenNeurIPS 2024 · 14 次引用
它引用的 Paper11
- Learned Step Size quantizationSteven K. Esser, Jeffrey L. McKinstry, Deepika Bablani, Rathinakumar Appuswamy 等ICLR 2020 · 1,037 次引用
- Rigging the Lottery: Making All Tickets WinnersUtku Evci, Trevor Gale, Jacob Menick, Pablo Samuel Castro 等ICML 2020 · 723 次引用
- Comparing Rewinding and Fine-tuning in Neural Network PruningAlex Renda, Jonathan Frankle, Michael CarbinICLR 2020 · 437 次引用
- Inducing and Exploiting Activation Sparsity for Fast Inference on Deep Neural NetworksMark Kurtz, Justin Kopinsky, Rati Gelashvili, Alexander Matveev 等ICML 2020 · 163 次引用
- Accelerated Sparse Neural Training: A Provable and Efficient Method to Find N: M Transposable MasksItay Hubara, Brian Chmiel, Moshe Island, Ron Banner 等NeurIPS 2021 · 148 次引用
相关 Paper
- Bi-directional Masks for Efficient N: M Sparse TrainingYuxin Zhang, Yiting Luo, Mingbao Lin, Yunshan Zhong 等ICML 2023 · 23 次引用
- BAME: Block-Aware Mask Evolution for Efficient N: M Sparse TrainingChenyi Yang, Wenjie Nie, Yuxin Zhang, Yuhang Wu 等ICML 2025
- Accurate Neural Training with 4-bit Matrix Multiplications at Standard FormatsBrian Chmiel, Ron Banner, Elad Hoffer, Hilla Ben-Yaacov 等ICLR 2023 · 6 次引用
- Towards Fully Sparse Training: Information Restoration with Spatial SimilarityWeixiang Xu, Xiangyu He, Ke Cheng, Peisong Wang 等AAAI 2022 · 7 次引用
- Prior Gradient Mask Guided Pruning-Aware Fine-TuningLinhang Cai, Zhulin An, Chuanguang Yang, Yangchun Yan 等AAAI 2022 · 44 次引用
