arXiv(opens in a new tab)cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.05977

StagQ: Constraint-Driven Multi-Precision Weight Quantization for LLMs

Zhe Wei, Mengqi Guo, Yuan Yuan, Jiunn Bin Lim, Boyi Pan, Michael Bi Mi

ABSTRACT

Serving a large language model (LLM) across a fleet of deployments requires several weight-precision operating points. Multi-precision formats serve them all from one stream whose prefixes are valid lower-precision codes, instead of storing multiple copies. We present StagQ, a multi-precision weight format whose main stream is a 2-bit group-wise affine base followed by a configurable number of 1-bit refinement planes on a dyadic step schedule. Every supported precision is a readable prefix, decoded by an affine map derived from metadata shared across all precisions, with no per-weight lookup. A sparse side record, filled both before and after the grid is fitted, holds out the few weights the grid serves worst. We report two configurations of the encoder. At two bits the cheaper one leads the strongest multi-precision baseline on Llama-3.1-8B, Phi-4 and OLMo-2-7B by 3.1 to 7.0 MMLU points, at a slightly lower logical rate. At three bits it leads on Llama-3.1-8B, leads on Phi-4 at a higher rate, and ties on OLMo-2-7B. At four bits it ties on all three, at a higher rate. In a batch-one matrix-vector product on an NVIDIA A100 GPU, timed on synthetic weights, our kernel is faster than the two baseline kernels in most shape-precision cases.

1 INTRODUCTION

Serving a large language model (LLM) is increasingly constrained by memory capacity and memory traffic. In low-batch decoding every weight is read once per generated token, and decode speed is usually limited by those reads rather than by arithmetic. Weight-only post-training quantization (PTQ) is the established response. A deployment, however, rarely runs at a single operating point. Capacity, concurrency, latency targets and request priority vary across a fleet. With conventional PTQ (Frantar et al., 2023; Lin et al., 2024), each precision is a separate checkpoint that has to be quantized, validated and stored on its own.

A multi-precision format stores the weights once, as a stream in which every prefix is itself a valid lower-precision representation (Park et al., 2024b; Nair et al., 2025; Kleinegger et al., 2026; Park et al., 2026; Luo et al., 2026). The precision is chosen when the weights are loaded, and nothing has to be requantized to change it. Signal coding studied the same property long before LLMs existed, under the name embedded quantization (Equitz & Cover, 1991; Sullivan, 2004). Embedded quantization was used mostly in image coding, and JPEG2000 (Pearlman & Said, 2008) is the classical instance. An LLM weight path differs from image coding in its source statistics, group granularity, metadata budget and decoder. In each of these respects the prefix property carries a cost. The recent LLM formats, which are in effect variants of classical embedded quantization, pay these costs.

Figure

Figure 1: The StagQ main stream. Each added plane halves the spacing, and every precision is again a uniform grid. The weight w=2.15w = 2.15 is encoded as q=2q=2, b3=1b_{3}=1, b4=0b_{4}=0, b5=1b_{5}=1, b6=0b_{6}=0.

Another established technique for low-bit accuracy holds a few extreme weights out of the grid (Kim et al., 2024; Dettmers et al., 2024). In single-precision PTQ the held-out weights are chosen for one precision. In a multi-precision format, however, a weight set aside changes what every precision reads. Which weights to hold out therefore becomes part of designing the base grid.

We start from the embedded-quantization literature rather than from the recent formats, because it already lists the choices involved in designing a grid that is read at several precisions. The constraints of the LLM weight path settle which of those choices are open. We make the open choices under those constraints and obtain StagQ, a multi-precision weight format with two parts. A sparse side record holds the extreme weights out of the grid. The record is filled in two stages, by a pre-grid guard before the grid is fitted and by a post-grid guard after it is fixed. The main stream is a group-wise affine 2-bit base refined by signed binary planes on a dyadic step schedule (Figure 1). The base and plane fields read at any supported precision concatenate into one ordinary integer. One affine map then reconstructs the main-stream weight by scaling that integer by a step and adding an offset. Both are derived from one pair stored per group, and no per-weight lookup is needed. Because the fields are stored in plane order, loading a lower precision fetches fewer bytes.

On Llama-3.1-8B we evaluate two configurations, StagQ-XXS and StagQ-XS, against Any-Precision LLM (Park et al., 2024b), AnyBCQ (Park et al., 2026) and MatGPTQ (Kleinegger et al., 2026). On Phi-4 and OLMo-2-7B we compare StagQ-XXS. At two bits it leads the strongest multi-precision baseline on MMLU on all three models. At three bits it leads on Llama-3.1-8B, leads on Phi-4 while spending more bits, and ties on OLMo-2-7B. Our kernel is faster than the Any-Precision LLM and AnyBCQ kernels in most shape-precision cases of a batch-one matrix-vector product on an NVIDIA A100 GPU, timed on synthetic weights.

References (36)