Lune

ICML2024顶会

Accelerating Transformer Pre-training with 2: 4 Sparsity

Yuezhou Hu, Kang Zhao, Weiyu Huang, Jianfei Chen, Jun Zhu

摘要

Training large transformers is slow, but recent innovations on GPU architecture give us an advantage. NVIDIA Ampere GPUs can execute a fine-grained 2:4 sparse matrix multiplication twice as fast as its dense equivalent. In the light of this property, we comprehensively investigate the feasibility of accelerating feed-forward networks (FFNs) of transformers in pre-training. First, we define a ``flip rate'' to monitor the stability of a 2:4 training process. Utilizing this metric, we propose three techniques to preserve accuracy: to modify the sparse-refined straight-through estimator by applying the masked decay term on gradients, to determine a feasible decay factor in warm-up stage, and to enhance the model's quality by a dense fine-tuning procedure near the end of pre-training. Besides, we devise two techniques to practically accelerate training: to calculate transposable 2:4 masks by convolution, and to accelerate gated activation functions by reducing GPU L2 cache miss. Experiments show that our 2:4 sparse training algorithm achieves similar convergence to dense training algorithms on several transformer pre-training tasks, while actual acceleration can be observed on different shapes of transformer block apparently. Our toolkit is available at https://github.com/huyz2023/2by4-pretrain.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Pruning Large Language Models with Semi-Structural Adaptive Sparse Training 引用了 Rigging the Lottery: Making All Tickets Winners
  • Pruning Large Language Models with Semi-Structural Adaptive Sparse Training 引用了 Learning N: M Fine-grained Structured Sparse Neural Networks From Scratch
  • SLoPe: Double-Pruned Sparse Plus Lazy Low-Rank Adapter Pretraining of LLMs 引用了 Learning N: M Fine-grained Structured Sparse Neural Networks From Scratch
  • CoLA: Compute-Efficient Pre-Training of LLMs via Low-Rank Activation 引用了 SLoPe: Double-Pruned Sparse Plus Lazy Low-Rank Adapter Pretraining of LLMs
  • The Lottery Ticket Hypothesis for Pre-trained BERT Networks 引用了 Rigging the Lottery: Making All Tickets Winners
  • Learning N: M Fine-grained Structured Sparse Neural Networks From Scratch 引用了 Rigging the Lottery: Making All Tickets Winners
  • S-STE: Continuous Pruning Function for Efficient 2: 4 Sparse Pre-training 引用了 The Lottery Ticket Hypothesis for Pre-trained BERT Networks
  • 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 引用了 Learning N: M Fine-grained Structured Sparse Neural Networks From Scratch
  • S-STE: Continuous Pruning Function for Efficient 2: 4 Sparse Pre-training 引用了 Training data-efficient image transformers & distillation through attention
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper7

  1. Pruning Large Language Models with Semi-Structural Adaptive Sparse TrainingWeiyu Huang, Yuezhou Hu, Guohao Jian, Jun Zhu 等AAAI 2025 · 25 次引用
  2. S-STE: Continuous Pruning Function for Efficient 2: 4 Sparse Pre-trainingYuezhou Hu, Jun Zhu, Jianfei ChenNeurIPS 2024 · 14 次引用
  3. ARMOR: High-Performance Semi-Structured Pruning via Adaptive Matrix FactorizationLawrence Liu, Alexander Liu, Mengdi Wang, Tuo Zhao 等ICLR 2026 · 3 次引用
  4. SLoPe: Double-Pruned Sparse Plus Lazy Low-Rank Adapter Pretraining of LLMsMohammad Mozaffari, Amir Yazdanbakhsh, Zhao Zhang, Maryam Mehri DehnaviICLR 2025
  5. CoLA: Compute-Efficient Pre-Training of LLMs via Low-Rank ActivationZiyue Liu, Ruijie Zhang, Zhengyang Wang, Mingsong Yan 等EMNLP 2025

它引用的 Paper12

  1. Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa 等ICML 2021 · 8,974 次引用
  2. Rigging the Lottery: Making All Tickets WinnersUtku Evci, Trevor Gale, Jacob Menick, Pablo Samuel Castro 等ICML 2020 · 723 次引用
  3. The Lottery Ticket Hypothesis for Pre-trained BERT NetworksTianlong Chen, Jonathan Frankle, Shiyu Chang, Sijia Liu 等NeurIPS 2020 · 428 次引用
  4. Learning N: M Fine-grained Structured Sparse Neural Networks From ScratchAojun Zhou, Yukun Ma, Junnan Zhu, Jianbo Liu 等ICLR 2021 · 301 次引用
  5. LLM-Adapters: An Adapter Family for Parameter-Efficient Fine-Tuning of Large Language ModelsZhiqiang Hu, Lei Wang, Yihuai Lan, Wanyu Xu 等EMNLP 2023 · 200 次引用

相关 Paper

  1. Towards Fully Sparse Training: Information Restoration with Spatial SimilarityWeixiang Xu, Xiangyu He, Ke Cheng, Peisong Wang 等AAAI 2022 · 7 次引用
  2. Tempo: Accelerating Transformer-Based Model Training through Memory Footprint ReductionMuralidhar Andoorveedu, Zhanda Zhu, Bojian Zheng, Gennady PekhimenkoNeurIPS 2022 · 8 次引用
  3. Sparsity-Accelerated Training for Large Language ModelsDa Ma, Lu Chen, Pengyu Wang, Hongshen Xu 等ACL Findings 2024
  4. Dynamic N: M Fine-Grained Structured Sparse Attention MechanismZhaodong Chen, Zheng Qu, Yuying Quan, Liu Liu 等PPoPP 2023 · 26 次引用
  5. SlideSparse: Fast and Flexible (2N-2):2N Structured SparsityYingbo HAO, Hanyong Shao, Ting Song, Yan Xia 等ICML 2026
黄昏的海面,两侧是细线勾勒的悬崖