arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.14934cs.CL
收藏

FidelityQ:在超低比特语言模型量化中保留预测保真度

FidelityQ: Preserving Predictive Fidelity in Ultra-Low-Bit Language Model Quantization

The Hong Kong Polytechnic University(香港理工大学);Huawei Technologies Ltd.(华为技术有限公司);The University of Hong Kong(香港大学);Sun Yat-sen University(中山大学);ETH Zurich(苏黎世联邦理工学院)

Yujie Chen, Weiyan Zheng, Yiwu Yao, Tianchi Hu, Bo Wang, Jiyu Guo, Wenzhan Li, Jingcai Guo, Michele Magno, Haotong Qin

AI总结:

FidelityQ是一种可在低至2比特的语言模型权重精度下保留预测保真度的标量量化框架,通过IAC和KIC方法在LLaMA、Qwen系列上实现了优异的量化效果,显著降低内存并提升困惑度。

摘要:

超低比特标量量化为大语言模型的高效部署提供了规则化算术结构,但在极端精度下保留预测行为仍具挑战性:仅用少量重构层级时,准确的权重表示必须转化为来自小型校准集的一致预测。我们提出FidelityQ,一种可在低至2比特的权重精度下保留预测保真度的标量量化框架。为实现准确量化,我们引入信息对齐解析编码(IAC),该方法通过随机Hadamard混合将每个权重行调整为中心对称源,并为其经验权重拟合镜像四电平最小失真量化器。该系列中的每个电平集可精确分解为两个带关联尺度的符号值基,结合源自适应重构与无查找解码,兼容缩放整数算术。我们的分析进一步表明,残差预测差异呈重尾分布,且集中于教师模型预测置信度高的token,这促使我们提出知识密集型校准(KIC)以实现一致量化。KIC按逐token教师-学生差异的尾部对序列排序,将有限的校准预算分配给得分最高的样本,并在教师监督下仅更新量化电平和尺度以恢复预测一致性,同时保持预训练权重冻结。在LLaMA和Qwen系列上的实验证明了FidelityQ在仅权重量化和联合量化设置中的有效性。在LLaMA-2-7B上,FidelityQ在W2A16设置下实现WikiText2困惑度6.62,将此前最先进的W2A4KV4结果从8.31提升至6.96,同时相对于FP16将线性层权重内存减少8.0倍。

英文摘要:

Ultra-low-bit scalar quantization offers a regular arithmetic structure for efficient deployment of large language models, but preserving predictive behavior at extreme precision remains challenging: with only a few reconstruction levels, accurate weight representation must translate into consistent predictions from a small calibration set. We propose FidelityQ, a scalar quantization framework that preserves predictive fidelity at weight precisions down to 2 bits. For accurate quantization, we introduce Information-Aligned Analytic Coding (IAC), which shapes each weight row toward a centered symmetric source via randomized Hadamard mixing and fits a mirrored four-level minimum-distortion quantizer to its empirical weights. Every level set in this family decomposes exactly into two sign-valued bases with associated scales, combining source-adaptive reconstruction with lookup-free decoding compatible with scaled integer arithmetic. Our analysis further shows that residual predictive discrepancies are heavy-tailed and concentrate on tokens the teacher predicts confidently, motivating Knowledge-Intensive Calibration (KIC) for consistent quantization. KIC ranks sequences by the tail of token-wise teacher-student divergence, allocates a limited calibration budget to the highest-scoring samples, and restores predictive agreement by updating only quantization levels and scales under teacher supervision, keeping pretrained weights frozen. Experiments on the LLaMA and Qwen families demonstrate the effectiveness of FidelityQ in weight-only and joint quantization settings. On LLaMA-2-7B, FidelityQ achieves a WikiText2 perplexity of 6.62 at W2A16 and improves the prior state-of-the-art W2A4KV4 result from 8.31 to 6.96, while reducing linear-layer weight memory by 8.0x relative to FP16.

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

↑