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

LaRoSA:通过分层旋转稀疏激活提升大语言模型效率

La RoSA: Enhancing LLM Efficiency via Layerwise Rotated Sparse Activation

Alibaba Group(阿里巴巴集团)

Kai Liu, Bowen Xu, Shaoyu Wu, Xin Chen, Hao Zhou, Yongliang Tao, Lulu Hu

AI总结:

LaRoSA通过分层旋转稀疏激活技术,提升大语言模型效率,实现稳定的加速效果和较低的性能损失。

摘要:

激活稀疏性可以减少大型语言模型(LLM)推理过程中计算开销和内存传输。现有方法存在局限性,要么需要耗时的恢复训练从而阻碍实际应用,要么依赖于基于幅度的经验剪枝,导致稀疏性波动和推理速度不稳定。本文介绍了LaRoSA(分层旋转稀疏激活),一种新的激活稀疏化方法,旨在在不需额外训练或基于幅度的剪枝的情况下提高LLM效率。我们利用分层正交旋转将输入激活转换为更适合稀疏化的旋转形式。通过在旋转激活中采用Top-K选择方法,我们实现了一致的模型级稀疏性和可靠的实时时间加速。LaRoSA在各种大小和类型的LLM上均有效,表现出最小的性能下降和稳健的推理加速。具体而言,对于70亿参数的LLaMA2-7B在40%稀疏性下,LaRoSA仅与密集模型存在0.17的困惑度差距,同时实现一致的1.30倍实时时间加速,并在零样本任务中相比密集模型将准确性差距降低至0.54%,同时超越TEAL 1.77%和CATS 17.14%。

英文摘要:

Activation sparsity can reduce the computational overhead and memory transfers during the forward pass of Large Language Model (LLM) inference. Existing methods face limitations, either demanding time-consuming recovery training that hinders real-world adoption, or relying on empirical magnitude-based pruning, which causes fluctuating sparsity and unstable inference speed-up. This paper introduces LaRoSA (Layerwise Rotated Sparse Activation), a novel method for activation sparsification designed to improve LLM efficiency without requiring additional training or magnitude-based pruning. We leverage layerwise orthogonal rotations to transform input activations into rotated forms that are more suitable for sparsification. By employing a Top-K selection approach within the rotated activations, we achieve consistent model-level sparsity and reliable wall-clock time speed-up. LaRoSA is effective across various sizes and types of LLMs, demonstrating minimal performance degradation and robust inference acceleration. Specifically, for LLaMA2-7B at 40% sparsity, LaRoSA achieves a mere 0.17 perplexity gap with a consistent 1.30x wall-clock time speed-up, and reduces the accuracy gap in zero-shot tasks compared to the dense model to just 0.54%, while surpassing TEAL by 1.77% and CATS by 17.14%.

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

↑