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

QuIP:具有理论保证的大语言模型2比特量化

QuIP: 2-Bit Quantization of Large Language Models With Guarantees

Cornell University(康奈尔大学)

Jerry Chee, Yaohui Cai, Volodymyr Kuleshov, Christopher De Sa

AI总结:

QuIP通过非相干预处理和自适应舍入,首次实现大语言模型每个权重仅2比特的有效量化,并提供理论保证,同时改进了OPTQ等现有方法。

摘要:

本文研究大语言模型(LLMs)中的训练后参数量化。我们提出了一种名为“非相干处理量化”(QuIP)的新方法,其核心见解是:量化受益于权重矩阵和Hessian矩阵的“非相干性”,即权重在幅度上均匀分布,且需要精确舍入的方向与坐标轴不对齐。QuIP包含两个步骤:(1)一种最小化二次代理目标的自适应舍入过程;(2)高效的预处理和后处理,通过与随机正交矩阵相乘来确保权重和Hessian矩阵的非相干性。我们为QuIP补充了针对LLM规模量化算法的首个理论分析,并证明该理论同样适用于现有方法OPTQ。实验结果表明,我们的非相干预处理改进了多种现有量化算法,并首次实现了每个权重仅用2比特即可产生可用结果的LLM量化方法。代码见https://github.com/Cornell-RelaxML/QuIP。

英文摘要:

This work studies post-training parameter quantization in large language models (LLMs). We introduce quantization with incoherence processing (QuIP), a new method based on the insight that quantization benefits from $\textit{incoherent}$ weight and Hessian matrices, i.e., from the weights being even in magnitude and the directions in which it is important to round them accurately being unaligned with the coordinate axes. QuIP consists of two steps: (1) an adaptive rounding procedure minimizing a quadratic proxy objective; (2) efficient pre- and post-processing that ensures weight and Hessian incoherence via multiplication by random orthogonal matrices. We complement QuIP with the first theoretical analysis for an LLM-scale quantization algorithm, and show that our theory also applies to an existing method, OPTQ. Empirically, we find that our incoherence preprocessing improves several existing quantization algorithms and yields the first LLM quantization methods that produce viable results using only two bits per weight. Our code can be found at https://github.com/Cornell-RelaxML/QuIP.

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

↑