arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.06183cs.LG
收藏

迈向2:4稀疏性:神经元层面激活函数加速LLM预训练

To 2:4 Sparsity and Beyond: Neuron-level Activation Function to Accelerate LLM Pre-Training

FAIR at Meta(Meta 的 FAIR)

Meghana Madhyastha, Daniel Haziza, Jesse Cai, Newsha Ardalani, Zhiqi Bu, Carole-Jean Wu

AI总结:

通过神经元层面的激活函数稀疏性技术,加速LLM预训练,提升训练效率1.4-1.7倍,适用于NVIDIA A100及后续GPU。

摘要:

大型语言模型的训练通常受到矩阵乘法的瓶颈限制。在Transformer架构中,大量这些操作发生在前馈网络(FFN)中,且随着模型规模增大,这一部分占总预训练浮点运算的比例增加,最高可达50%。我们展示可以通过硬件加速的稀疏性来加速FFN中的所有矩阵乘法,使用2:4稀疏性对权重和v:n:m(Venom)稀疏性对激活进行处理。我们的方法依赖于稀疏训练步骤来加速预训练的大部分部分,同时在后期结合常规密集训练步骤。总体而言,采用这种方法训练的模型在我们的质量基准上表现相同,并能将训练过程整体加速1.4至1.7倍。该方法适用于所有从A100一代开始的NVIDIA GPU,并且与常见的优化技术如量化相互独立,也可应用于专家混合模型架构。

英文摘要:

Trainings of Large Language Models are generally bottlenecked by matrix multiplications. In the Transformer architecture, a large portion of these operations happens in the Feed Forward Network (FFN), and this portion increases for larger models, up to 50% of the total pretraining floating point operations. We show that we can leverage hardware-accelerated sparsity to accelerate all matrix multiplications in the FFN, with 2:4 sparsity for weights and v:n:m (Venom) sparsity for activations. Our recipe relies on sparse training steps to accelerate a large part of the pretraining, associated with regular dense training steps towards the end. Overall, models trained with this approach exhibit the same performance on our quality benchmarks, and can speed up training end-to-end by 1.4 to 1.7x. This approach is applicable to all NVIDIA GPUs starting with the A100 generation, and is orthogonal to common optimization techniques, such as, quantization, and can also be applied to mixture-of-experts model architectures.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑