Lune

NeurIPS2021顶会

Accelerated Sparse Neural Training: A Provable and Efficient Method to Find N: M Transposable Masks

Itay Hubara, Brian Chmiel, Moshe Island, Ron Banner, Joseph Naor, Daniel Soudry

摘要

Unstructured pruning reduces the memory footprint in deep neural networks (DNNs). Recently, researchers proposed different types of structural pruning intending to reduce also the computation complexity. In this work, we first suggest a new measure called mask-diversity which correlates with the expected accuracy of the different types of structural pruning. We focus on the recently suggested N : M fine-grained block sparsity mask, in which for each block of M weights, we have at least N zeros. While N : M fine-grained block sparsity allows acceleration in actual modern hardware, it can be used only to accelerate the inference phase. In order to allow for similar accelerations in the training phase, we suggest a novel transposable fine-grained sparsity mask, where the same mask can be used for both forward and backward passes. Our transposable mask guarantees that both the weight matrix and its transpose follow the same sparsity pattern; thus, the matrix multiplication required for passing the error backward can also be accelerated. We formulate the problem of finding the optimal transposable-mask as a minimum-cost flow problem. Additionally, to speed up the minimum-cost flow computation, we also introduce a fast linear-time approximation that can be used when the masks dynamically change during training. Our experiments suggest a 2x speed-up in the matrix multiplications with no accuracy degradation over vision and language models. Finally, to solve the problem of switching between different structure constraints, we suggest a method to convert a pre-trained model with unstructured sparsity to an N : M fine-grained block sparsity model with little to no training. A reference implementation can be found at https: //github.com/papers-submission/structured_transposable_masks .

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 65 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • A Simple and Effective Pruning Approach for Large Language Models 引用了 Rigging the Lottery: Making All Tickets Winners
  • A Simple and Effective Pruning Approach for Large Language Models 引用了 Language Models are Few-Shot Learners
  • A Simple and Effective Pruning Approach for Large Language Models 引用了 Comparing Rewinding and Fine-tuning in Neural Network Pruning
  • A Simple and Effective Pruning Approach for Large Language Models 引用了 Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning
  • A Simple and Effective Pruning Approach for Large Language Models 引用了 SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot
  • SpecInfer: Accelerating Large Language Model Serving with Tree-based Speculative Inference and Verification 引用了 Language Models are Few-Shot Learners
  • SpecInfer: Accelerating Large Language Model Serving with Tree-based Speculative Inference and Verification 引用了 SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot
  • Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning 引用了 Up or Down? Adaptive Rounding for Post-Training Quantization
  • SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot 引用了 Rigging the Lottery: Making All Tickets Winners
  • SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot 引用了 Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning
  • SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot 引用了 Up or Down? Adaptive Rounding for Post-Training Quantization
  • Sparse Training via Boosting Pruning Plasticity with Neuroregeneration 引用了 Rigging the Lottery: Making All Tickets Winners
  • Sparse Training via Boosting Pruning Plasticity with Neuroregeneration 引用了 Sparse GPU kernels for deep learning
  • Sparse Training via Boosting Pruning Plasticity with Neuroregeneration 引用了 Language Models are Few-Shot Learners
  • Sparse Training via Boosting Pruning Plasticity with Neuroregeneration 引用了 Comparing Rewinding and Fine-tuning in Neural Network Pruning
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper65

  1. SparseGPT: Massive Language Models Can be Accurately Pruned in One-ShotElias Frantar, Dan AlistarhICML 2023 · 1,240 次引用
  2. A Simple and Effective Pruning Approach for Large Language ModelsMingjie Sun, Zhuang Liu, Anna Bair, J. Zico KolterICLR 2024 · 794 次引用
  3. Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and PruningElias Frantar, Dan AlistarhNeurIPS 2022 · 440 次引用
  4. Sparse Training via Boosting Pruning Plasticity with NeuroregenerationShiwei Liu, Tianlong Chen, Xiaohan Chen, Zahra Atashgahi 等NeurIPS 2021 · 145 次引用
  5. SpecInfer: Accelerating Large Language Model Serving with Tree-based Speculative Inference and VerificationXupeng Miao, Gabriele Oliaro, Zhihao Zhang, Xinhao Cheng 等ASPLOS 2024 · 105 次引用

它引用的 Paper6

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. Up or Down? Adaptive Rounding for Post-Training QuantizationMarkus Nagel, Rana Ali Amjad, Mart van Baalen, Christos Louizos 等ICML 2020 · 816 次引用
  3. Rigging the Lottery: Making All Tickets WinnersUtku Evci, Trevor Gale, Jacob Menick, Pablo Samuel Castro 等ICML 2020 · 723 次引用
  4. Comparing Rewinding and Fine-tuning in Neural Network PruningAlex Renda, Jonathan Frankle, Michael CarbinICLR 2020 · 437 次引用
  5. Sparse GPU kernels for deep learningTrevor Gale, Matei Zaharia, Cliff Young, Erich ElsenSC 2020 · 170 次引用

相关 Paper

  1. Learning N: M Fine-grained Structured Sparse Neural Networks From ScratchAojun Zhou, Yukun Ma, Junnan Zhu, Jianbo Liu 等ICLR 2021 · 301 次引用
  2. Bi-directional Masks for Efficient N: M Sparse TrainingYuxin Zhang, Yiting Luo, Mingbao Lin, Yunshan Zhong 等ICML 2023 · 23 次引用
  3. BAME: Block-Aware Mask Evolution for Efficient N: M Sparse TrainingChenyi Yang, Wenjie Nie, Yuxin Zhang, Yuhang Wu 等ICML 2025
  4. Minimum Variance Unbiased N: M Sparsity for the Neural GradientsBrian Chmiel, Itay Hubara, Ron Banner, Daniel SoudryICLR 2023
  5. HBP: Hierarchically Balanced Pruning and Accelerator Co-Design for Efficient DNN InferenceAo Ren, Yuhao Wang, Tao Zhang, Jiaxing Shi 等DAC 2023 · 4 次引用
黄昏的海面,两侧是细线勾勒的悬崖