LiftQuant: 通过维度提升和投影实现连续位宽的LLM
LiftQuant: Continuous Bit-Width LLM via Dimensional Lifting and Projection
AI总结:
提出LiftQuant框架,通过“提升-投影”机制实现准连续位宽控制,以精确适配内存预算,在70B模型上以2.4位压缩超越现有2位模型。
摘要:
现有的量化方法从根本上受限于刚性的整数位宽(例如2位、3位),导致存在“部署鸿沟”,即大型语言模型无法最优地适配特定的内存预算。为弥合这一鸿沟,我们引入了LiftQuant,一种新颖的框架,能够实现连续位宽控制,从而实现真正的帕累托最优部署。其核心创新是一种“提升-投影”机制,该机制通过从更高维度的“提升”空间中投影一个简单的1位格点来近似低维权重向量。关键在于,有效位宽仅由提升维度与原始维度的比率决定,这使得位宽可以准连续地调整,因为维度是一个灵活的结构参数。这种投影生成一个结构化但非均匀的码本,捕获了向量量化(VQ)的表达能力。虽然优于VQ,但LiftQuant的解码路径仅依赖于线性变换和1位均匀量化器,保持了硬件友好的特性。这种灵活性具有变革性:LiftQuant能够将70B的LLM压缩到2.4位,以精确适配24GB GPU,其性能显著超过在同一设备上部署的最先进的2位模型。我们的代码和检查点可在https://github.com/Heliulu/LiftQuant获取。
英文摘要:
Existing quantization methods are fundamentally limited by rigid, integer-based bit-widths (e.g., 2, 3-bit), resulting in a ``deployment gap" where Large Language Models cannot be optimally fitted to specific memory budgets. To bridge this gap, we introduce LiftQuant, a novel framework that enables continuous bit-width control for true Pareto-optimal deployment. The core innovation is a ``lift-then-project" mechanism which approximates low-dimensional weight vectors by projecting a simple 1-bit lattice from a higher-dimensional ``lifted" space. Crucially, the effective bit-width is determined simply by the ratio of the lifted dimension to the original dimension, which allows the bit-width to be tuned quasi-continuous as the dimension is a flexible structural parameter. This projection generates a structured yet non-uniform codebook, capturing the expressive power of Vector Quantization (VQ). While beneficial over VQ, LiftQuant's decoding path relies solely on linear transformations and 1-bit uniform quantizers, retaining hardware-friendly nature. This flexibility is transformative: LiftQuant enables a 70B LLM to be compressed to 2.4 bits to precisely fit a 24GB GPU, where its performance significantly surpasses state-of-the-art 2-bit models fitted on the same device. Our code and ckpt is available at https://github.com/Heliulu/LiftQuant.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。