arxiv.org·2026/10/26
为什么重要 将 PTQ 建模为码本后验推断并保留软后验信息,可改善 Llama、Qwen、Mistral 的量化质量,值得评估。
后训练量化(PTQ)是高效部署大语言模型的关键技术,它在无需重新训练的情况下将权重压缩为低比特表示。现有 PTQ 求解器,包括 GPTQ、LDLQ 和块坐标下降,会在考虑邻近块之前就将每个权重块提交到单一码字,从而留下未被探索的近优替代方案。
在这项工作中,我们将行式 PTQ 建模为离散码本上的后验推断;现有求解器对应于零温硬决策极限,只保留每个块的顶级码字。我们提出 Message-Passing Quantization(MPQ),它在推断过程中跨块保留软后验信息,仅在输出阶段提交硬码字。MPQ 首先使用向量近似消息传递计算近似块级后验,然后通过精确块坐标下降细化硬决策初始化。
在 Llama、Qwen 和 Mistral 系列稠密语言模型上,跨 2-bit lattice 以及 3 和 4-bit scalar 量化,MPQ 相比强硬决策基线改善了困惑度和零样本准确率,并能与 activation-aware scaling 和 incoherence processing 等预处理技术良好组合。我们的实现可在 https://github.com/poseidonchan/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.
原版排版与图表 · 手机无法内嵌时可在浏览器打开。PDF 插件内选文不能传给网页助手。