Lune

ICLR2023Top-tier venue

Minimum Variance Unbiased N: M Sparsity for the Neural Gradients

Brian Chmiel, Itay Hubara, Ron Banner, Daniel Soudry

Abstract

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.

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.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Accelerated Sparse Neural Training: A Provable and Efficient Method to Find N: M Transposable Masks cites Rigging the Lottery: Making All Tickets Winners
  • Accelerated Sparse Neural Training: A Provable and Efficient Method to Find N: M Transposable Masks cites Comparing Rewinding and Fine-tuning in Neural Network Pruning
  • S-STE: Continuous Pruning Function for Efficient 2: 4 Sparse Pre-training cites 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 cites Rigging the Lottery: Making All Tickets Winners
  • S-STE: Continuous Pruning Function for Efficient 2: 4 Sparse Pre-training cites Accelerating Transformer Pre-training with 2: 4 Sparsity
  • Accelerating Transformer Pre-training with 2: 4 Sparsity cites Accelerated Sparse Neural Training: A Provable and Efficient Method to Find N: M Transposable Masks
  • Accelerating Transformer Pre-training with 2: 4 Sparsity cites Rigging the Lottery: Making All Tickets Winners
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Winner-Take-All Column Row Sampling for Memory Efficient Adaptation of Language ModelZirui Liu, Guanchu Wang, Shaochen Zhong, Zhaozhuo Xu et al.NeurIPS 2023 · 22 citations
  2. Accelerating Transformer Pre-training with 2: 4 SparsityYuezhou Hu, Kang Zhao, Weiyu Huang, Jianfei Chen et al.ICML 2024 · 19 citations
  3. S-STE: Continuous Pruning Function for Efficient 2: 4 Sparse Pre-trainingYuezhou Hu, Jun Zhu, Jianfei ChenNeurIPS 2024 · 14 citations

Builds on11

  1. Learned Step Size quantizationSteven K. Esser, Jeffrey L. McKinstry, Deepika Bablani, Rathinakumar Appuswamy et al.ICLR 2020 · 1,037 citations
  2. Rigging the Lottery: Making All Tickets WinnersUtku Evci, Trevor Gale, Jacob Menick, Pablo Samuel Castro et al.ICML 2020 · 723 citations
  3. Comparing Rewinding and Fine-tuning in Neural Network PruningAlex Renda, Jonathan Frankle, Michael CarbinICLR 2020 · 437 citations
  4. Inducing and Exploiting Activation Sparsity for Fast Inference on Deep Neural NetworksMark Kurtz, Justin Kopinsky, Rati Gelashvili, Alexander Matveev et al.ICML 2020 · 163 citations
  5. 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

Related papers

  1. Bi-directional Masks for Efficient N: M Sparse TrainingYuxin Zhang, Yiting Luo, Mingbao Lin, Yunshan Zhong et al.ICML 2023 · 23 citations
  2. BAME: Block-Aware Mask Evolution for Efficient N: M Sparse TrainingChenyi Yang, Wenjie Nie, Yuxin Zhang, Yuhang Wu et al.ICML 2025
  3. Accurate Neural Training with 4-bit Matrix Multiplications at Standard FormatsBrian Chmiel, Ron Banner, Elad Hoffer, Hilla Ben-Yaacov et al.ICLR 2023 · 6 citations
  4. Towards Fully Sparse Training: Information Restoration with Spatial SimilarityWeixiang Xu, Xiangyu He, Ke Cheng, Peisong Wang et al.AAAI 2022 · 7 citations
  5. Prior Gradient Mask Guided Pruning-Aware Fine-TuningLinhang Cai, Zhulin An, Chuanguang Yang, Yangchun Yan et al.AAAI 2022 · 44 citations
Dusk over the sea between two cliffs drawn in fine vertical lines