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

NoWag:一种用于大型语言模型形状保持压缩的统一框架

NoWag: A Unified Framework for Shape Preserving Compression of Large Language Models

University of California, Los Angeles(加州大学洛杉矶分校);Georgia Institute of Technology(佐治亚理工学院);Princeton University(普林斯顿大学)

Lawrence Liu, Inesh Chakrabarti, Yixiao Li, Mengdi Wang, Tuo Zhao, Lin F. Yang

AI总结:

NoWag提出了一种统一的单次形状保持压缩框架,通过向量量化和剪枝技术有效压缩大型语言模型,展示了其在性能上的优势。

摘要:

大型语言模型(LLMs)在各种自然语言处理任务中表现出色,但面临巨大的计算和内存需求,限制了其在资源受限环境中的部署。为解决这一挑战,我们提出了NoWag(归一化权重和激活引导压缩),一种统一的单次形状保持压缩算法框架。我们应用NoWag对Llama-2(7B,13B,70B)和Llama-3(8B,70B)模型进行压缩,使用两种流行的形状保持技术:向量量化(NoWag-VQ)和无结构/半结构化剪枝(NoWag-P)。我们的结果表明,NoWag-VQ显著优于最先进的单次向量量化方法,而NoWag-P在领先的剪枝技术中表现竞争。这些发现突显了这些压缩范式之间的共同点,并为未来研究指明了有前途的方向。我们的代码可在https://github.com/LawrenceRLiu/NoWag获取。

英文摘要:

Large language models (LLMs) exhibit remarkable performance across various natural language processing tasks but suffer from immense computational and memory demands, limiting their deployment in resource-constrained environments. To address this challenge, we propose NoWag (Normalized Weight and Activation Guided Compression), a unified framework for one-shot shape preserving compression algorithms. We apply NoWag to compress Llama-2 (7B, 13B, 70B) and Llama-3 (8B, 70B) models using two popular shape-preserving techniques: vector quantization (NoWag-VQ) and unstructured/semi-structured pruning (NoWag-P). Our results show that NoWag-VQ significantly outperforms state-of-the-art one-shot vector quantization methods, while NoWag-P performs competitively against leading pruning techniques. These findings highlight underlying commonalities between these compression paradigms and suggest promising directions for future research. Our code is available at https://github.com/LawrenceRLiu/NoWag

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

↑