arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.15346cs.CLcs.AIcs.LG
收藏

BiSup:大型语言模型的双向量化误差抑制方法

BiSup: Bidirectional Quantization Error Suppression for Large Language Models

College of Intelligence and Computing(智能与计算学院);Tianjin University(天津大学)

Minghui Zou, Ronghui Guo, Sai Zhang, Xiaowang Zhang, Zhiyong Feng

AI总结:

BiSup提出双向量化误差抑制方法,通过参数高效微调抑制垂直累积误差,并采用提示混合精度量化缓解水平扩散,在Llama和Qwen上显著降低困惑度。

摘要:

随着大型语言模型(LLMs)的规模和上下文长度不断增长,权重激活量化已成为高效部署LLMs的关键技术。与仅权重量化相比,权重激活量化由于激活值中存在离群值而面临更大的挑战。现有方法通过探索混合精度量化和离群值抑制已取得显著进展。然而,这些方法主要侧重于优化单次矩阵乘法的结果,忽视了量化误差在LLMs中的双向传播。具体而言,误差在同一token内沿层垂直累积,并因自注意力机制在不同token之间水平扩散。为解决这一问题,我们提出了BiSup,一种双向量化误差抑制方法。通过构建合适的可优化参数空间,BiSup利用少量数据进行量化感知的参数高效微调,以抑制误差的垂直累积。此外,BiSup采用提示混合精度量化策略,对系统提示的键值缓存保持高精度,以缓解误差的水平扩散。在Llama和Qwen系列上的大量实验表明,BiSup能够提升两种最先进方法的性能(在W3A3-g128配置下,Atom的平均WikiText2困惑度从13.26降至9.41,QuaRot从14.33降至7.85),进一步促进低比特权重激活量化的实际应用。

英文摘要:

As the size and context length of Large Language Models (LLMs) grow, weight-activation quantization has emerged as a crucial technique for efficient deployment of LLMs. Compared to weight-only quantization, weight-activation quantization presents greater challenges due to the presence of outliers in activations. Existing methods have made significant progress by exploring mixed-precision quantization and outlier suppression. However, these methods primarily focus on optimizing the results of single matrix multiplication, neglecting the bidirectional propagation of quantization errors in LLMs. Specifically, errors accumulate vertically within the same token through layers, and diffuse horizontally across different tokens due to self-attention mechanisms. To address this issue, we introduce BiSup, a Bidirectional quantization error Suppression method. By constructing appropriate optimizable parameter spaces, BiSup utilizes a small amount of data for quantization-aware parameter-efficient fine-tuning to suppress the error vertical accumulation. Besides, BiSup employs prompt mixed-precision quantization strategy, which preserves high precision for the key-value cache of system prompts, to mitigate the error horizontal diffusion. Extensive experiments on Llama and Qwen families demonstrate that BiSup can improve performance over two state-of-the-art methods (the average WikiText2 perplexity decreases from 13.26 to 9.41 for Atom and from 14.33 to 7.85 for QuaRot under the W3A3-g128 configuration), further facilitating the practical applications of low-bit weight-activation quantization.

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

↑