arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.32127cs.AIcs.LG
收藏

MPQ:后训练量化的消息传递视角

MPQ: A Message-Passing View of Post-Training Quantization

University of Maryland(马里兰大学)

Yanshuo Chen, Chenxi Liu, Reza Shirkavand, Heng Huang

AI总结:

提出MPQ方法,将逐行后训练量化建模为离散码本后验推断,通过矢量近似消息传递计算后验并优化硬决策,在多系列语言模型量化中提升性能且兼容预处理技术。

摘要:

后训练量化(PTQ)是高效部署大语言模型的关键技术,它无需重新训练即可将权重压缩为低比特表示。现有PTQ求解器包括GPTQ、LDLQ和块坐标下降法,在考虑权重块的邻居前,会将每个权重块分配给单个码字,导致近优备选方案未被探索。本研究将逐行PTQ建模为离散码本上的后验推断,其中现有求解器对应仅保留每个块的最优码字的零温度硬决策极限。我们提出消息传递量化(MPQ),它在推理过程中保留跨块的软后验信息,仅在输出阶段确定硬码字。MPQ首先使用矢量近似消息传递计算近似块后验,再通过精确块坐标下降法优化硬决策初始化。在Llama、Qwen和Mistral系列密集语言模型的2比特格量化、3比特和4比特标量量化实验中,MPQ在困惑度和零样本准确率上优于强大的硬决策基线,且与激活感知缩放、非相干处理等预处理技术兼容。

英文摘要:

Post-training quantization (PTQ) is a key technique for efficiently deploying large language models, as it compresses weights into low-bit representations without retraining. Existing PTQ solvers, including GPTQ, LDLQ, and block coordinate descent, commit each weight block to a single codeword before its neighbors are considered, leaving near-optimal alternatives unexplored. In this work, we cast row-wise PTQ as posterior inference over discrete codebooks, in which existing solvers correspond to a zero-temperature, hard-decision limit retaining only the top codeword per block. We propose Message-Passing Quantization (MPQ), which preserves soft posterior information across blocks during inference and commits to hard codewords only at the output stage. MPQ first uses vector approximate message passing to compute approximate blockwise posteriors, then refines a hard-decision initialization by exact block coordinate descent. Across 2-bit lattice and 3- and 4-bit scalar quantization on dense language models from Llama, Qwen, and Mistral families, MPQ improves perplexity and zero-shot accuracy over strong hard-decision baselines, and composes favorably with preprocessing techniques such as activation-aware scaling and incoherence processing. Our implementation is available at https://github.com/poseidonchan/MPQ.

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

↑