arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.27092cs.LGcs.CLcs.DCcs.PF
收藏

PLoQ:一种针对大语言模型激活值4比特量化的提示特定低秩基

PLoQ: A Prompt-Specific Low-Rank Basis for 4-bit Quantization of LLM Activations

University of California, Irvine(加州大学欧文分校);NVIDIA(英伟达公司)

Faraz Tahmasebi, Michael Pellauer, Hyoukjun Kwon, Sitao Huang

AI总结:

PLoQ是一种提示自适应低秩分解方法,无需修改权重即可实现大语言模型激活值的4比特量化,在相同比特宽度下优于现有最优方法,且仅带来少量延迟增加。

摘要:

大语言模型的低比特激活值量化仍具挑战性,因为少数主导方向决定了量化范围。现有最优方法通过离线校准的变换将这些方向隔离在高精度子空间中,并将变换折叠到权重中,该子空间对所有提示固定,导致每个提示的少数独特方向未受保护,且在无权重可吸收该变换的情况下被排除。我们提出PLoQ,一种提示自适应低秩分解方法,在量化前提取主导激活分量,对其单独量化,并在层的通用矩阵乘法(GEMM)中恢复,无需修改权重。低秩分量的基在预填充阶段从每个提示估计,并在整个解码阶段复用。在与现有最优混合精度量化相同的比特宽度(权重、激活值和键值(K/V)缓存为4比特,八分之一通道为8比特,平均每个激活值约4.2比特)下,PLoQ在10亿到70亿参数的全部6种Llama和Qwen模型上表现优于该方法,支持最高8000个令牌(其中两种模型支持16000个令牌),可恢复现有最优方法因4比特激活值损失的困惑度的46%。在Llama-3.1-8B模型8000个令牌的场景下,它仅使预填充时间增加4%,解码时间增加8%。

英文摘要:

Low-bit activation quantization of large language models remains challenging, as a small number of dominant directions dictate the quantization range. State-of-the-art methods isolate these directions in a high-precision subspace through transformations calibrated offline and folded into the weights, which fixes the subspace for all prompts, leaving each prompt's few unique directions unprotected, and rules it out wherever no weight can absorb the transformation. We present PLoQ, a prompt-adaptive low-rank decomposition that extracts the dominant activation components before quantization, quantizes them separately, and restores them within the layer's GEMM, without modifying the weights. The low-rank component's basis is estimated from each prompt during prefill and reused throughout decoding. At the same bit width as state-of-the-art mixed-precision quantization (4-bit weights, activations and K/V cache with an eighth of the channels at 8 bits, about 4.2 bits per activation on average), PLoQ outperforms it on all six Llama and Qwen models from 1B to 70B parameters, at up to 8k tokens (16k on two of them), recovering up to 46% of the perplexity that the state of the art still loses to 4-bit activations. On Llama-3.1-8B at 8k tokens it adds only 4% to prefill and 8% to decoding.

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

↑