arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.12441cs.LGcs.AI
收藏

数值剪枝用于高效自回归模型

Numerical Pruning for Efficient Autoregressive Models

Adobe Research(奥多比研究院)

Xuan Shen, Zhao Song, Yufa Zhou, Bo Chen, Jing Liu, Ruiyi Zhang, Ryan A. Rossi, Hao Tan, Tong Yu, Xiang Chen, Yufan Zhou, Tong Sun, Pu Zhao, Yanzhi Wang, Jiuxiang Gu

AI总结:

本文提出一种免训练的结构化权重剪枝方法,利用牛顿法计算数值分数压缩自回归Transformer模型,并辅以补偿算法恢复性能,在语言和图像生成任务上实现更优效率与速度。

摘要:

Transformer已成为深度学习中的领先架构,在语言和图像处理之外的多个领域展现出多功能性和高效性。然而,由于其庞大的模型规模,其出色的性能往往带来高昂的计算成本。本文聚焦于通过结构化权重剪枝压缩仅解码器Transformer自回归模型,以提高模型效率,同时保持语言和图像生成任务的性能。具体而言,我们提出一种免训练的剪枝方法,分别针对注意力模块和MLP模块使用牛顿法计算数值分数。此外,我们进一步提出另一种补偿算法来恢复剪枝后的模型以获得更好的性能。为了验证我们方法的有效性,我们提供了理论支持和广泛的实验。我们的实验表明,我们的方法在GPU上实现了最先进的性能,同时减少了内存使用并加快了生成速度。

英文摘要:

Transformers have emerged as the leading architecture in deep learning, proving to be versatile and highly effective across diverse domains beyond language and image processing. However, their impressive performance often incurs high computational costs due to their substantial model size. This paper focuses on compressing decoder-only transformer-based autoregressive models through structural weight pruning to improve the model efficiency while preserving performance for both language and image generation tasks. Specifically, we propose a training-free pruning method that calculates a numerical score with Newton's method for the Attention and MLP modules, respectively. Besides, we further propose another compensation algorithm to recover the pruned model for better performance. To verify the effectiveness of our method, we provide both theoretical support and extensive experiments. Our experiments show that our method achieves state-of-the-art performance with reduced memory usage and faster generation speeds on GPUs.

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

↑