Abstract
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 this https URL.
Abstract (translated)
大型语言模型(LLMs)已经彻底改变了众多应用,但它们的部署仍然受到本地设备内存限制的挑战。尽管扩展定律增强了LLM的能力,主要瓶颈已从\textit{能力}转变为\textit{可用性},强调了高效内存管理的需求。传统的压缩方法,如量化,通常需要预定义的压缩比例和针对每个设置的独立压缩过程,在变化的内存环境中部署较为复杂。本文介绍了\textbf{BitStack},一种新颖且无需训练的权重压缩方法,能够实现以兆字节为单位的模型性能与内存使用之间的权衡。通过利用权重分解,BitStack可以在运行内存和存储设备之间进行最小传输的同时动态调整模型大小。我们的方法在考虑每个参数重要性的基础上迭代地分解权重矩阵,在每次分解过程中形成一个近似每参数1比特的残差块。这些块被排序并作为基本传输单元堆叠在存储中,并根据当前的内存可用性加载不同数量的数据。广泛的实验表明,尽管BitStack提供了细粒度大小控制,它仍然能够与强大的量化基线一致或超越,特别是在极端压缩比下。据我们所知,这是首个有效弥合分解方法与实用压缩技术如量化之间差距的方法。代码可在该 https URL 获取。
URL
https://arxiv.org/abs/2410.23918