arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.23918cs.CLcs.AIcs.CVcs.LG
收藏

BitStack:可变内存环境下大语言模型的任意尺寸压缩

BitStack: Any-Size Compression of Large Language Models in Variable Memory Environments

Fudan University(复旦大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)

Xinghao Wang, Pengyu Wang, Bo Wang, Dong Zhang, Yunhua Zhou, Xipeng Qiu

AI总结:

针对可变内存下 LLM 部署难题,本文提出无需训练的 BitStack 权重分解压缩方法,支持兆字节级动态尺寸调整,并在多任务上达到或超过量化基线。

摘要:

大语言模型(LLM)已经革新了众多应用,但其部署仍受到本地设备内存限制的挑战。尽管扩展定律提升了 LLM 的能力,主要瓶颈却已从“能力”转向“可用性”,这凸显了高效内存管理的必要性。传统压缩方法(例如量化)通常需要预定义压缩率,并针对每种设置进行单独的压缩流程,从而使在可变内存环境中的部署变得复杂。本文提出 BitStack,这是一种新颖的、无需训练的权重压缩方法,能够在内存使用与模型性能之间实现兆字节级的权衡。通过利用权重分解,BitStack 可以在运行内存与存储设备之间仅进行极少量传输的情况下动态调整模型大小。该方法在考虑每个参数重要性的同时迭代分解权重矩阵,在每次分解迭代中产生约每个参数 1 比特的残差块。这些块经过排序后作为基本传输单元堆叠存储,并根据当前可用内存加载不同数量。跨大量任务的广泛实验表明,尽管 BitStack 提供细粒度的尺寸控制,它仍能稳定达到或超过强量化基线,尤其是在极端压缩率下。据我们所知,这是首个有效缩小与量化等实用压缩技术之间差距的基于分解的方法。代码可在 https://github.com/xinghaow99/BitStack 获取。

英文摘要:

Large language models (LLMs) have revolutionized numerous applications, yet their deployment remains challenged by memory constraints on local devices. While scaling laws have enhanced LLM capabilities, the primary bottleneck has shifted from \textit{capability} to \textit{availability}, emphasizing the need for efficient memory management. Traditional compression methods, such as quantization, often require predefined compression ratios and separate compression processes for each setting, complicating deployment in variable memory environments. In this paper, we introduce \textbf{BitStack}, a novel, training-free weight compression approach that enables megabyte-level trade-offs between memory usage and model performance. By leveraging weight decomposition, BitStack can dynamically adjust the model size with minimal transmission between running memory and storage devices. Our approach iteratively decomposes weight matrices while considering the significance of each parameter, resulting in an approximately 1-bit per parameter residual block in each decomposition iteration. These blocks are sorted and stacked in storage as basic transmission units, with different quantities loaded based on current memory availability. Extensive experiments across a wide range of tasks demonstrate that, despite offering fine-grained size control, BitStack consistently matches or surpasses strong quantization baselines, particularly at extreme compression ratios. To the best of our knowledge, this is the first decomposition-based method that effectively bridges the gap to practical compression techniques like quantization. Code is available at https://github.com/xinghaow99/BitStack.

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

↑