arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.04956cs.LGcs.ITmath.IT
收藏

WaterSIC: 信息论(近乎)最优的线性层量化

WaterSIC: Information-Theoretically (Near) Optimal Linear Layer Quantization

University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Stanford University(斯坦福大学);University of California, Berkeley(加州大学伯克利分校);University of Texas at Austin(德克萨斯大学奥斯汀分校)

Egor Lifar, Semyon Savkin, Or Ordentlich, Yury Polyanskiy

AI总结:

针对密集线性层低精度量化问题,提出WaterSIC算法,通过为权重矩阵不同列分配不同量化率,实现与信息论极限仅0.255比特的差距,并在Llama和Qwen系列大语言模型上达到1-4比特量化的最优性能。

摘要:

本文考虑将给定的密集线性层转换为低精度的问题。从信息论(IT)角度分析了压缩长度与输出差异之间的权衡。结果表明,流行的GPTQ算法可能与IT极限存在任意大的差距。为解决此问题,提出了一种名为“WaterSIC”的新算法,并证明其与IT极限的速率差距不超过0.255比特,且对输入激活的所有可能协方差矩阵一致成立。WaterSIC的关键创新在于为权重矩阵的不同列(输入特征)分配不同的量化率,模拟了经典的IT解决方案“注水”。将WaterSIC应用于Llama和Qwen系列大语言模型,在1到4比特的所有量化率下均取得了新的最优性能。我们的代码可在https://github.com/egorlifar/watersic获取。

英文摘要:

This paper considers the problem of converting a given dense linear layer to low precision. The tradeoff between compressed length and output discrepancy is analyzed information theoretically (IT). It is shown that a popular GPTQ algorithm may have an arbitrarily large gap to the IT limit. To alleviate this problem, a novel algorithm, termed ``WaterSIC'', is proposed and is shown to be within a rate gap of 0.255 bits to the IT limit, uniformly over all possible covariance matrices of input activations. The key innovation of WaterSIC's is to allocate different quantization rates to different columns (in-features) of the weight matrix, mimicking the classical IT solution known as "waterfilling". Applying WaterSIC to the Llama and Qwen family of LLMs establishes new state-of-the-art performance for all quantization rates from 1 to 4 bits. Our code is available at https://github.com/egorlifar/watersic.

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

↑