Manuscript Offprint

arXiv:2610.32127

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

Yanshuo Chen, Chenxi Liu, Reza Shirkavand, Heng Huang

Yanshuo Chen

Department of Computer Science

University of Maryland

College Park, MD 20742

cys@umd.edu

Reza Shirkavand

Department of Computer Science

University of Maryland

College Park, MD 20742

rezashkv@umd.edu

Chenxi Liu

Department of Computer Science

University of Maryland

College Park, MD 20742

cxliu539@umd.edu

Heng Huang

Department of Computer Science

University of Maryland

College Park, MD 20742

heng@umd.edu

Abstract

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.

1 Introduction

The growing capabilities of large language models have made them increasingly useful, motivating efficient deployment on personal devices [1, 2, 3, 4, 5]. Post-training quantization (PTQ) compresses a pretrained language model by mapping full-precision weights to low-bit discrete codes, enabling deployment under tight memory and compute budgets without additional retraining. Recent progress has mainly improved the preprocessing and objective-design stage of PTQ: activation scaling methods reduce quantization difficulty by rescaling weights and activations [6, 7, 8, 9]; incoherence processing methods make weights easier to quantize through rotations or related transformations [10, 11]; structured codebooks improve the expressiveness of low-bit representations [12, 11]; and inter-layer error propagation objectives better account for how quantization errors affect later layers [13, 14].

In contrast, the discrete solver stage has changed more incrementally. Most existing solvers quantize blocks sequentially, make an immediate hard assignment to a single codeword, and then greedily

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

compensate for the resulting error. GPTQ, LDLQ, and later block coordinate descent variants differ in scheduling and local approximation, but they remain fundamentally hard-decision solvers [15, 10, 16, 17, 18]. This approach is efficient but commits to a single hard codeword per block before its neighbors are processed.

This early commitment is especially harmful in the low-bit regime. With very few available codes, several codewords can produce nearly the same local error, and strong Hessian coupling makes the best choice for one block depend on its neighbors. A hard-decision solver therefore commits to one codeword trajectory through the discrete assignment space, with no mechanism to recover if those early choices turn out to be globally suboptimal. As preprocessing, codebook, and objective design improve the conditioning of the quantization problem, the discrete solver remains a relatively underexplored axis. Instead of assigning each block to a single codeword immediately, the solver should maintain a soft distribution over plausible codewords for each block and let these distributions interact with their neighbors before any block commits to a hard decision.

We take a message-passing view of row-wise PTQ, casting it as posterior inference over a discrete codebook with a Gaussian likelihood. From this view, existing solvers such as GPTQ, LDLQ, and block coordinate descent are zero-temperature message-passing schemes that propagate point estimates between blocks and discard other plausible codewords. This perspective naturally suggests a finite-temperature alternative, where messages carry distributions over several likely codewords before any block commits.

We instantiate this idea with Message-Passing Quantization (MPQ), a two-stage solver that first explores uncertainty and then commits to a discrete solution. In the first stage, MPQ uses vector approximate message passing (VAMP) at finite temperature to aggregate information about near-tied codeword assignments across blocks. In the second stage, it converts the resulting posterior into a hard initialization and refines it with block coordinate descent. Experiments on Llama, Qwen, and Mistral models show that MPQ matches or improves over greedy solver baselines, with the largest gains at 3-bit scalar and 2-bit lattice precision.

Our contributions are as follows.

• We give a message-passing view of row-wise PTQ as posterior inference over a discrete codebook under a Gaussian likelihood, recovering existing solvers as zero-temperature limits and motivating finite-temperature inference as an unexplored solver-side direction.

• We propose Message-Passing Quantization (MPQ), a two-stage solver that combines finite-temperature vector approximate message passing with exact block coordinate descent.

• MPQ improves over strong solver baselines in perplexity and zero-shot accuracy across Llama, Qwen, and Mistral at 2-, 3-, and 4-bit quantization, with the largest gains in the lowest-bit regimes

• We complement the method with theoretical analysis of the VAMP solver’s asymptotic behavior and the role of preprocessing in finite-temperature inference.

References (38)