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

Manuscript Offprint

arXiv:2608.25188

Transforms for LLM Quantization: The Great Inversion and Format Co-Design

Ehsan Jokar

Abstract

Most competitive 4-bit LLM research pipelines now open the same way: apply a linear, function-preserving transform (a rotation, scaling, permutation, or non-orthogonal affine map) so the outlier mass sits more favorably against the group scales, and only then round. Yet we are aware of no survey dedicated to this transform stage, and its literature is quietly re-deriving an older theory. We identify and formalize the principle that organizes it, the Great Inversion: allocation-flexible coding rewards energy concentration, whereas the grouped shared-scale quantization a deployed matrix instruction performs rewards within-group flattening. We prove that opposition under within-group majorization and show why, for a generic spectrum, no optimality guarantee transfers across the divide. Through it we survey 200 works to a June 2026 cutoff, classifying 43 transform methods by structure, data-awareness, searched-versus-constructed, and runtime cost, and recording, where the sources report it, how the families compose with GPTQ-class rounding. Tracing that recipe to 1963 transform coding (decorrelate, allocate bits, quantize) organizes them around the allocation-and-scale constraint those classical optima assume away. Classical coders are allocation-flexible, spending different bits per coordinate at a fixed total rate, and for a Gaussian source at high rate it is the Karhunen–Loève transform's concentration that minimizes distortion. The operand tile a deployed matrix instruction consumes instead carries one absolute-maximum scale per group and equal bits everywhere, with no allocation at all, and on a uniform grid that objective rewards flattening, approached calibration-free by Hadamard incoherence; the optimum of a distinct stochastic AbsMax model goes further, adding a data-aware, non-orthogonal whitening no rotation can supply. The two surrogates are extremized at opposite ends of that within-group order, so the prescriptions point in opposite directions, each backed by a proof against its own objective. A second axis, the number format, refines the picture. The non-uniform FP4 element grid makes flattening buy less, and on an ideal floating-point grid a rotation can even cost, by destroying a favorable weight-activation anti-alignment; the deployed MXFP4 format pulls the other way, its power-of-two block scale still rewarding a rotation confined to that block, while NVFP4's mantissa-carrying scale largely removes that pull. Which pole a transform should aim for is thus a joint function of allocation regime and format; the majorization surrogates fix the pole, not the transform. One contrast we record without explaining: on MXFP4 a fixed global rotation craters where a block-confined one helps. We ground the account in published head-to-head numbers, transcribed verbatim under a one-protocol-per-comparison discipline with cross-source displays flagged as such; distill a first-choice guide indexed by deployment regime; and close with the open problems the inversion exposes.

1 Introduction

Serving a large language model is dominated by the cost of moving and multiplying its weights. At the batch sizes and sequence lengths of interest, autoregressive decoding is memory-bound. Each generated token must stream the entire weight matrix through the arithmetic units, so both latency and energy scale with the number of bytes read. Post-training quantization (PTQ) attacks this directly by storing weights in four or fewer bits, cutting the bytes read during memory-bound decode. Quantizing the activations too adds a distinct benefit, since 4-bit operands feed the low-precision tensor cores whose throughput dominates the compute-bound prefill and large-batch regimes. W4A4 is thus driven by both axes at once, bandwidth and compute. Because PTQ is training-free and needs only a small calibration set, it has become the default route to efficient deployment. The frontier has moved steadily downward: from W8A8, to weight-only W4A16, to the aggressive W4A4 regime in which both operands of every matrix multiply are 4-bit.

The obstacle at these bit-widths is not the average weight or activation but a handful of extreme ones. Transformer activations, in particular, carry sparse, large-magnitude outliers (a phenomenon first isolated at scale by Dettmers et al. (2022)). Weight matrices are milder but still not flat. Either way, a low-bit quantizer shares a single scale across a whole group of values. A distinct full-precision scale per value would be no compression at all. That shared scale is pinned to the group's largest magnitude. One outlier therefore stretches the dynamic range and forces every ordinary value in its group onto a coarse grid. The quantization error is then governed not by the typical magnitude but by the ratio of the extreme to the typical (the crest factor, made precise in Section 2.3). That ratio is the wall that separates comfortable 8-bit quantization from the difficult 4-bit regime. Simply spending the calibration budget on better rounding (Frantar et al., 2023) does not remove it, because the dynamic range is a property of the representation, not of the rounding.

The idea that unlocked W4A4 is not to handle the outliers directly but to change the coordinates in which quantization happens before rounding at all. A simpler route suggests itself: keep the outlier channels in higher precision, as in the mixed-precision scheme of Dettmers et al. (2022). It is telling that the field did not make it the mainline route. Exempting a few values from the low-bit grid forfeits the uniform dense GEMM, since the outlier columns then need a separate high-precision path or bespoke sparse kernels. A persistent minority line, met throughout Sections 6, 7 and 9, does pay that price. The winning move keeps the dense low-bit kernel and instead redistributes the outlier energy. Because a linear layer Y=XW⊤Y = XW^\top is unchanged by inserting an invertible map and its inverse, Y=(XT⊤)(WT−1)⊤Y = (XT^\top)(WT^{-1})^\top, one may apply a function-preserving transform TT that redistributes the outliers. Ideally it spreads each group's mass evenly across its coordinates, so that no single entry dominates the shared scale. Such a TT, when it is an orthogonal map of the residual stream or a diagonal one, absorbs into the surrounding weights at no inference cost, as does any map whose activation side lands on a static weight; the rest stay online. A random rotation, realized cheaply by a randomized Hadamard transform, provably turns a spiky, outlier-ridden vector into one whose coordinates are sub-Gaussian and whose crest factor is far smaller, from O(d)O(\sqrt{d}) to O(log⁡d)O(\sqrt{\log d}) (Section 2.6). The layer computes the same function, but on a distribution the 4-bit grid can represent.

This “transform-then-round” recipe is now the opening move of most competitive low-bit pipelines, and of nearly every one that quantizes activations. QuaRot (Ashkboos et al., 2024c) rotates the residual stream by Hadamard matrices that fold into adjacent weights, removing activation outliers without changing the output; SpinQuant (Liu et al., 2025c) learns the rotation instead of fixing it; QuIP# (Tseng et al., 2024a) pairs incoherence-inducing rotations with lattice codebooks; FlatQuant (Sun et al., 2025) uses learned affine maps; and WUSH (Chen et al., 2026a) derives a closed-form, data-aware transform with optimality guarantees under a stochastic AbsMax model. These methods differ in almost everything downstream (the codebook, the rounding algorithm, whether the transform is fixed or learned), yet they share this first stage. In the aggressive low-bit regime that stage is often the decisive one, as consequential as the choice of rounder. Figure 1 lays out that pipeline end to end (the offline construction the transform opens, and the online datapath it must survive) and previews where each part is treated in what follows.

That recipe is what the research literature runs on, and the shipped models draw a sharper line through it than the phrase suggests. On the 4-bit weight path the frontier mixture-of-experts releases of 2025–2026 use no transform at all, relying instead on group-wise scales, a protected set of sensitive tensors, and training-time control, quantization-aware training where the card reports it; first-party AWQ and SpinQuant-rotated releases at the same bit-width do carry one, so the shipped weight path is split rather than uniform. The 4-bit activation paths that ship divide along the block scale: the one that rotates does so exactly where Theorem 2.17 and Proposition 2.2 offer nothing to fold into, while the NVFP4 releases quantize activations at group size 16 with no rotation named. The transform stage is thus not yet universal in production, though the shared-scale theory of Section 4 covers the weight path too; Section 10.5 sets out the evidence.

OFFLINE (built once)

Figure

ONLINE (per token)

Figure 1: The low-bit post-training-quantization pipeline the surveyed methods assemble, as a two-lane swimlane. Top (offline, built once): calibrate activation statistics → construct a function-preserving transform T (Section 6) → fix the target grid/format (Section 8) and error-feedback-round the transformed weights onto it (Section 7) → pack static low-bit weights. Bottom (online, per token): the deployed datapath (Section 10). The transform straddles the deployment seam (dashed line, Section 2.8): its weight side WT−1WT^{-1} folds into the packed weights offline (Definition 2.1), while of its two sides only the activation side XT⊤XT^{\top} crosses it (dashed arrow), to an online kernel unless it too can be absorbed (Theorem 2.17 and Proposition 2.2). Representative methods are named per stage.

Despite this centrality, we are aware of no survey dedicated to the transform stage. Broad low-bit-LLM surveys treat it as one technique among many. Gong et al. (2024), for instance, catalog systems and algorithms across the whole quantization stack, giving equivalent transformation one subsection, subdivided into shifting, scaling and rotation. The closest adjacent works also stop short of it. The PRISMA systematic review of Czakó et al. (2025) folds “equivalent transformations” into a four-way catalog of activation-outlier mitigations, frozen in early 2025. Liu et al. (2025b) decouple published PTQ pipelines into exactly two stages (pre-quantization transformation and error mitigation) and benchmark them under one protocol across INT4, MXFP4, and NVFP4, a controlled empirical comparison of the transform stage that ranks methods rather than organizing the family under a principle. None of the three supplies an optimality theory, and none draws the link to the classical lineage we develop here.

What is missing is a treatment that organizes the fast-growing family of transforms (diagonal scalings, permutations, fixed and learned rotations, non-orthogonal maps) under a single principle, collects the scattered optimality results that explain when and why a transform helps, and traces the idea to its origin. For the transform-then-round recipe is not new: it is the sixty-year-old pipeline of transform coding (decorrelate, allocate bits, quantize) re-derived for neural-network weights. Both halves of the contrast we build on are, individually, established: for a Gaussian source at high rate, energy concentration is the optimum of classical transform coding (Goyal, 2001; Huang & Schultheiss, 1963) (with the caveats of Section 3.4), and energy flattening (incoherence) bounds the proxy quantization error (Chee et al., 2023) and is the optimal direction under an AbsMax shared-scale model (Chen et al., 2026a), the direction the deployed rotations of Ashkboos et al. (2024c) take. What reading the modern literature against the classical theory reveals (and what, to our knowledge, has not been drawn explicitly) is that the two are the same optimization run in opposite regimes, the deployed shared-scale optimum being the reversal of the classical one.

That reversal is our organizing principle, and its first-order driver is a pair of freedoms the operand tile removes together: whether the downstream quantizer may allocate bits per coordinate, which is what makes concentration strictly optimal, and whether each coordinate carries its own scale, which is what makes flattening strictly optimal, on a uniform grid, once allocation is gone. At a common per-coordinate rate with per-coordinate scales, and one quantizer shape constant across coordinates as for a Gaussian source, every orthogonal transform ties (Section 4.1); it is the shared scale that breaks the tie. An allocation-flexible quantizer (one that spends a different number of bits on different coordinates under a fixed total rate, by unequal deterministic assignment or by entropy coding) rewards transforms that concentrate energy onto a few coordinates. This is classical transform coding, whose optimum, under those conditions, is the Karhunen–Loève transform (Section 3). A shared-scale quantizer (one absolute-maximum scale per group, equal bits everywhere, no allocation) instead rewards transforms that flatten energy across coordinates on a uniform element grid. The dense GEMM of every deployed low-bit LLM kernel is shared-scale in this sense, though among the deployed 4-bit formats only the per-group INT4 grid is uniform (Section 4). That flattening is reached near-optimally by the Hadamard transform, while the optimum of a distinct stochastic AbsMax model goes further, adding a data-aware whitening no rotation can supply (Theorem 4.9 and Remark 4.4).

The two prescriptions are opposed, extremized at opposite ends of the same concentrate-versus-flatten order: a geometric-mean-versus-group-peak opposition, Schur-concave against max-driven, built from the standard majorization toolbox (Marshall et al., 2011, Ch. 3) but paired here along the within-group order. Each is backed by a proof against its own functional (Bhadane et al., 2021; Theorem 4.3), and for a generic spectrum neither transfers to the other regime (Theorem 4.3 and Corollary 4.10). We call this the Great Inversion. The LLM field re-ran the classical transform-coding playbook in the regime its optimality theory never addressed, and arrived at the opposite prescription: the surrogate it optimizes is extremized at the other pole. The classical literature was not silent on the shared-scale format itself: Section 3 records a block-floating-point line that analyzed that format directly from 1970 onward, separately, a 1998 rotation applied expressly to improve a quantizer's overload behavior, and, in 2017, a distributed-mean-estimation result that proved the rotation mechanism itself. What none of them supplied is an optimality theory for that regime; assembling one, from the results the modern literature proves against its own surrogates, is what this survey does. The second axis, the number format, refines that reversal, since on a floating-point grid the flattening prescription weakens and can reverse (Section 8). Every section that follows is a consequence of, or a documented exception to, these two axes.

We survey function-preserving linear transforms T: maps that leave a layer's output unchanged, up to absorption into adjacent weights or activations, while changing the coordinates in which quantization occurs. We cover diagonal scalings, permutations, fixed and learned orthogonal rotations, non-orthogonal affine maps, and sequence-axis or frame transforms, applied to weights, activations, the KV-cache, and training-time gradients. We treat the rounding stage (GPTQ and its relatives) only where it interacts with the transform, and codebooks or lattices only where a transform enables them. We include the classical transform-coding lineage as essential background and the modern variable-rate line as the other half of the inversion. We exclude quantization-aware retraining of the base weights, mixed-precision bit allocation that uses no transform, and architectural changes. Where later sections nonetheless touch such methods (a normalized-architecture pretraining recipe, a low-rank additive branch, a precision-routing scheme) we mark them as adjacent rather than as instances of the definition. The corpus was seeded from the transform-stage methods named above, extended by backward and forward citation tracing from those seeds, and checked against the arXiv cs.LG and cs.CL listings and the main machine-learning and systems venues, with a June 2026 freeze on the literature; the classical lineage was traced back from the modern works' own citations to the 1948–2021 sources that ground it. The freeze is on the search, not on the bibliography: a few entries record a venue that postdates it. The deployment repositories and model cards of Section 10.5 were re-checked after that freeze, and the bibliography records a revision for each code repository it quotes. Inclusion follows Definition 2.1: every work we cite is indexed in Table 18, and the transform methods proper are classified in Table 2. We aim at complete coverage of the transform-stage families to that cutoff, not at an exhaustive census of every instance, still less of low-bit quantization at large.

This survey makes seven contributions. (i) It connects six decades of transform coding (1963–2021) to the 2022–2026 LLM literature through the allocation/shared-scale inversion. It organizes the scattered optimality results on both sides into one arc, and it makes precise, as a within-group Schur opposition built from the standard majorization toolbox, that they optimize different objectives and do not transfer. The component results belong to the works we cite; the synthesis and the inversion thesis are ours. The crest factor itself is classical; what is ours is its use as the axis that organizes the whole family of transform methods. (ii) It surveys 200 works, indexed completely in Table 18 and, for the method families, organized in five per-domain tables. It classifies the 43 transform methods proper along several axes (structure, data-awareness, searched-versus-constructed, runtime cost, and, where reported, granularity and composability with rounding). It also names the composition patterns (COMPOSES, with ENABLING as its limiting case, SUBSTITUTES, and CO-OPTIMIZES) the field has been using without a vocabulary. (iii) It systematically analyzes three under-examined interactions: how much of a transform's benefit per-coordinate allocation buys instead, and how much of it error-feedback rounding empirically overlaps with; how the shift from integer to hardware-native FP4/microscaling formats changes, and can reverse, which transform helps; and how the transform doubles as a cost device on the fixed-rate datapath. There the per-group dequantization tax and the hardware scale-multiplier make scale granularity a systems variable (Sections 10.2 and 10.3). (iv) It provides a which-transform-when guide indexed by deployment scenario and an evaluation-pitfalls checklist. (v) It grounds the analysis in an empirical record (Section 11): a compilation of published head-to-head results, including the one contrast it does not explain, the MXFP4 global-versus-block-confined rotation gap (Section 8.2), read under a one-protocol-per-comparison discipline. That compilation assembles measurements consistent with the thesis: the six-family W4A4 comparison, on which some sufficient transform is essential and pure diagonal scaling is not it, the weight-only bit-width sweep, the transform-rounder overlap, the integer-to-FP4 flip, the KV cache, and the deployment speed and memory payoff. The concentrate-versus-flatten opposition itself is not on the published record: it is proved against the two surrogate objectives (Theorem 4.3) and illustrated, at single-layer scale, in Figure 3. Every measurement reported in Section 11 is transcribed verbatim from a cited table or figure and re-verified against its source, the few differences and margins we quote being arithmetic on those transcribed values; the mechanism figures (Figures 2, 3 and 5) and Table 5 are instead our own computations, labeled as such and offered as illustrations of the theory rather than as evaluations. (vi) It checks the premise against the shipped 4-bit releases it examines (Section 10.5), finding the weight path split between transform-free, AWQ and rotated recipes and the activation path split by block scale, so the survey's subject is delimited by deployment and not only by the literature.

(vii) It argues that the inversion exposes four open problems: joint transform-and-rounding optimality, a guarantee for the truly deployed (extreme-value, non-surrogate) objective, the return of allocation-flexible coding to the inference path, and transform-format co-design.

The rest of the survey follows the arc these contributions set out. Section 2 fixes the notation and the quantizer/transform machinery a reader needs; Section 3 traces the classical inheritance and its concentration optimum; and Section 4 states and derives the inversion, the survey's core. Section 5 then assembles the master optimality ledger, cataloging what is proven on each side of the inversion and what is not.

Section 6 sorts the transforms into six families, and Section 7 works out how a transform composes with the rounder and the codebook, substitutes at high rate for per-coordinate allocation, and co-optimizes with the grid. Section 8 turns to the number format and the integer-to-FP4 co-design, and Section 9 carries the story beyond the weight matrix to the KV-cache, the attention matmuls, diffusion, and training-time gradients. Section 10 covers the systems layer: the kernels that make transforms cheap, the dequantization tax and the hardware scale-multiplier, the surviving variable-length lane, and what the shipped 4-bit releases actually do (Section 10.5). Section 11 grounds the theory in published head-to-head numbers; Section 12 distills the evaluation pitfalls and the which-transform-when guide; and Section 13 collects the open problems the inversion exposes and concludes.

References (100)

Couldn't load all references. Reload the page to try again.