Nested multi-precision quantization derives multiple precisions from a single checkpoint by reading only the leading bits of each weight, which makes it attractive for on-device deployment under varying memory and energy budgets. However, existing methods offer only integer bits, leaving large accuracy gaps between adjacent precisions and severe degradation at 2 bits. To address this, we propose Any-Rate, which serves 2-8 bits from one checkpoint, in half-bit steps over 2-4 bits. Any-Rate restricts some bit-planes to extended Hamming codewords in 8-weight blocks (0.5 bits per weight), shares one LUT per row across precisions, and encodes all precisions jointly with a separate target for each, reducing the loss from sharing bit-planes. Across four LLMs, Any-Rate achieves state-of-the-art accuracy among multi-precision methods at 2 and 3 bits, keeping 69% of FP16 accuracy at 2 bits, and is within one point of the best at 4 bits. It decodes about as fast as existing kernels, and an LPDDR energy model estimates up to 27% less energy at equal accuracy. Code is available at https://github.com/hoonki2002/Any-Rate.
Figures & tables
Figure 1: Allocation gain of the coded plane (Qwen2.5-3B, 2-bit). (a) Free bits of UU and UHH in one block. (b) Gain of UHH over UU by in-block importance rank (mean; band: interquartile range); dashed: whole matrix.
Figure 2: Nesting cost on a 2/3-bit ladder (circles: chosen points; e∗ and enest : reconstruction errors under independent quantization and nested quantization with per-mode error feedback, respectively). (a) Without error feedback, both modes share one target, so enest=e∗ . (b) With error feedback, the 3-bit target moves toward a child of another 2-bit point, so the nested choice has a larger error ( enest>e∗ ).
2-bit
3-bit
4-bit
Feedback gain
2.73
2.78
2.76
Nesting cost
Scalar ladder, no feedback
0.12
0.23
−0.10
Scalar ladder, per-mode targets
0.78
0.97
1.51
MG (2/3/4), weights 1-1-1
0.54
1.43
5.45
MG (2/3/4), weights 1-2-4
1.61
0.96
2.73
Table 1: Feedback gain and nesting cost (dB, mean over matrices). Scalar ladder: UUUU with mode weights 1-2-4. MG (2/3/4): MatGPTQ with its 2/3/4-bit recipe and mean propagation, against single-mode GPTQ; 1-1-1 is the baseline in our results.
2-bit
3-bit
4-bit
Single-mode gain
1.84
1.69
1.31
Nesting cost saved
0.43
0.14
0.81
Nested gain, same rate
2.26
1.82
2.12
Nested gain, matched total bits
2.19
1.51
0.64
Table 2: Decomposition of the coded ladder’s gain over the scalar ladder (dB, mean over matrices), using the same encoder and integer-mode weights. Matched total bits include LUT metadata (scalar loss interpolated to the total bits of the coded ladder).
Figure 3: Results averaged over the four models. (a) WikiText-2 PPL relative to FP16 (geometric mean). (b) Mean accuracy of the eight benchmarks relative to FP16. (c) Storage of one checkpoint serving all modes from 2 to 8 bits (Llama-3.1-8B-Instruct); AR splits into the 2–4-bit ladder (dark) and the 5–8-bit residual (light). Baselines support integer bits only.
Figure 4: Estimated decoding energy per token of Llama-3.1-8B-Instruct on an LPDDR-based accelerator. (a) Energy of each mode. (b) Energy AR saves at equal accuracy (mean of eight benchmarks); each method uses its cheapest mode that reaches the target.
Method
2
2.5
3
3.5
4
AP
141.6
–
124.1
–
107.6
AB
135.5
–
116.0
–
100.9
MG (2/3/4)
132.5
–
119.3
–
106.9
+ act_order
123.7
–
112.1
–
101.0
AR (ours)
142.4
127.0
121.3
112.7
104.9
Table 3: Decoding throughput (tokens/s) of Llama-3.1-8B-Instruct, batch 1, RTX 5070 Ti (16 GB). Higher is better. FP16 does not fit in memory.
b/w
2
2.5
3
3.5
4
Scalar (UUUU)
4.06
78.46
–
11.32
–
9.25
Mean prop.
4.39
17.22
10.95
9.37
8.81
8.56
Half-bit off
4.39
15.27
11.90
9.47
9.11
8.50
AR (ours)
4.39
15.41
10.78
9.29
8.73
8.45
Table 4: Ablation on Qwen2.5-3B, WikiText-2 PPL (FP16 8.03), same encoder and calibration. Scalar: ladder UUUU (weights 1-2-4); Mean prop.: MG-style mean propagation instead of per-mode targets; Half-bit off: half-bit mode weights nearly zero. b/w: bits per weight.
Appendix figures & tables34 assets
Supplementary material from the paper’s appendix.
Appendix
Bits
Method
PPL
ARC-c
ARC-e
HellaSwag
PIQA
WinoGrande
GSM8K
TriviaQA
NQ-open
Avg.
Qwen2.5-3B
2
AP
> 1000
22.01
37.84
29.97
57.24
50.99
1.97
0.20
0.00
25.03
AB
21.88
30.89
56.73
52.14
69.42
59.27
2.73
14.10
2.60
35.99
MG (2/3/4)
25.89
30.80
46.59
52.07
69.48
56.59
1.59
7.80
1.50
33.30
MG (3/4/8)
> 1000
23.89
26.89
26.93
50.38
52.01
0.15
0.00
0.00
22.53
AR (ours)
15.41
34.04
58.46
58.82
73.29
62.43
3.87
18.00
5.10
39.25
Appendix
Table 5: Qwen2.5-3B and Gemma-3-4b-it: WikiText-2 PPL and accuracy (%) on eight benchmarks; Avg. is their mean. Best per bit width in bold , second best underlined . MG (2/3/4): trained jointly for 2–4 bits; MG (3/4/8): official recipe.
Bits
Method
PPL
ARC-c
ARC-e
HellaSwag
PIQA
WinoGrande
GSM8K
TriviaQA
NQ-open
Avg.
Llama-3.1-8B-Instruct
2
AP
> 1000
24.40
31.06
27.33
54.73
49.49
0.76
0.60
0.10
23.56
AB
18.95
37.80
61.78
62.45
72.58
59.12
3.41
21.20
6.70
40.63
MG (2/3/4)
23.71
30.97
52.69
56.35
68.28
60.62
3.34
18.30
3.50
36.76
MG (3/4/8)
> 1000
24.32
31.73
30.28
54.68
49.64
0.76
0.30
0.00
23.96
AR (ours)
18.00
37.12
62.08
61.44
72.47
63.14
6.07
20.50
5.80
41.08
Appendix
Table 6: Llama-3.1-8B-Instruct and Phi-4 (14B): WikiText-2 PPL and accuracy (%) on eight benchmarks; Avg. is their mean. Best per bit width in bold , second best underlined . MG (2/3/4): trained jointly for 2–4 bits; MG (3/4/8): official recipe.
Bits
Method
PPL
ARC-c
ARC-e
HellaSwag
PIQA
WinoGrande
GSM8K
TriviaQA
NQ-open
Avg.
Qwen2.5-3B
2
GPTQ
> 1000
27.56
25.76
26.50
50.65
48.30
1.67
0.00
0.00
22.55
3
GPTQ
10.33
41.13
64.44
69.34
76.12
62.75
32.15
29.90
10.20
48.25
4
GPTQ
8.41
49.23
75.29
72.92
78.24
67.80
70.51
46.50
16.60
59.64
16
FP16
8.03
47.27
73.11
73.55
78.89
68.35
75.51
50.30
18.20
60.65
Gemma-3-4b-it
Appendix
Table 7: Single-precision GPTQ: WikiText-2 PPL and accuracy (%) on eight benchmarks; Avg. is their mean. Each bit width is a separate model. Any-Rate and MG (2/3/4) are in Tables 5 and 6 .
Figure 6: Any-Rate versus single-precision GPTQ and MG (2/3/4), averaged over the four models. (a) WikiText-2 PPL relative to FP16 (geometric mean). (b) Mean accuracy of the eight benchmarks relative to FP16. (c) Storage to serve the 2–4-bit and the 2–8-bit modes (Llama-3.1-8B-Instruct); GPTQ stores one model per bit width, and MG (2/3/4) supports only 2–4 bits.
Method
2-bit
2.5-bit
3-bit
3.5-bit
4-bit
Q: Who is the guy that jumped from space? (gold: Felix Baumgartner)
AP
Chris Hadfield
–
Gary Powers
–
Felix Baumgartner
AB
Yevgeny Khar
–
Felix Baumgartner
–
Felix Baumgartner
MG (2/3/4)
Felix Baum
–
Felix Baumgartner
–
Felix Baumgartner
AR (ours)
Felix Baumgartner
Felix Baumgartner
Felix Baumgartner
Felix Baumgartner
Felix Baumgartner
Q: Who captained the first European ship to sail around the tip of Africa? (gold: Bartolomeu Dias)
Appendix
Table 8: NQ-open examples (Phi-4). Correct answers in blue, wrong in red; “–”: no such mode.
Planes read k
3
4
5
6
7
Planes
UHH
UHHH
UHHHH
UHHHHH
UHHHHHH
Rate (bits/weight)
2
2.5
3
3.5
4
Appendix
Table 9: Rate of the mode that reads the first k planes of UHHHHHH.
Configuration
b
Index planes
Shared LUT
Residual offsets
Total
Ladder only (2–4 bits)
7
4.00
0.21
–
4.21
Ladder extended by four U planes (2–8 bits)
11
8.00
3.24
–
11.24
Ladder + residual (2–8 bits)
7
8.00
0.21
0.09
8.30
Appendix
Table 10: Bits per weight of three ways to support the 5–8-bit modes (Llama-3.1-8B-Instruct, linear layers).
Mode (bits)
4
5
6
7
8
Relative proxy loss (%)
0.422
0.358
0.131
0.059
0.035
Appendix
Table 11: Relative proxy loss (%) of the residual modes (Qwen2.5-3B, mean over 252 matrices).
Proxy loss
WikiText-2 PPL
Layout
Bits/weight
2
2.5
3
3.5
4
2
2.5
3
3.5
4
FP16
UUUU
4.06
1.510
–
1.591
–
1.741
78.46
–
11.32
–
9.25
8.03
UHHHHU
4.20
0.959
0.960
1.003
–
1.131
15.08
10.77
9.39
–
8.53
HHHHHHU
4.39
4.534
4.866
5.152
–
6.376
> 1000
> 1000
423.22
–
17.96
UUHHHH
4.20
1.614
1.229
1.113
1.076
1.070
123.38
14.45
9.85
8.97
8.57
UHHHHHH (ours)
4.39
1.000
1.000
1.000
1.000
1.000
15.41
10.78
9.29
8.73
8.45
Appendix
Table 12: Relative proxy loss (w.r.t. UHHHHHH) and WikiText-2 PPL of each layout (Qwen2.5-3B). Bits/weight includes the LUT metadata. Best in bold, second best underlined; “–” means the layout has no such mode.
nH
Full enumeration ( 16nH )
Prefix beam ( ≤16BnH )
4
65,536
4,096
5
1,048,576
5,120
6
16,777,216
6,144
Appendix
Table 13: Candidates ranked per block by full enumeration and by the prefix beam ( B=64 ). Both evaluate K=64 candidates exactly.
2
2.5
3
4
Time
Proxy loss (relative to all candidates)
All candidates
1.000
1.000
1.000
1.000
1.00 ×
Full enumeration, top- K
1.000
1.000
1.000
1.000
0.99 ×
Prefix beam, B=16
0.991
1.012
1.026
1.030
0.27 ×
Prefix beam, B=32
0.996
1.006
1.013
1.017
0.32 ×
Prefix beam, B=64 (default)
0.999
1.003
1.007
1.004
0.47 ×
Appendix
Table 14: Candidate search for UHHHHU ( nH=4 , Qwen2.5-3B): proxy loss relative to evaluating all candidates (12 matrices, geometric mean) and WikiText-2 PPL. Time is relative to evaluating all candidates.
Proxy loss
WikiText-2 PPL
Beam width
2
2.5
3
3.5
4
2
2.5
3
3.5
4
Time
B=16
0.948
0.992
1.046
1.085
1.104
15.29
10.94
9.38
8.78
8.50
0.17 ×
B=64 (default)
0.989
0.997
1.011
1.019
1.022
15.41
10.78
9.29
8.73
8.45
0.29 ×
B=256
1.000
1.000
1.000
1.000
1.000
15.31
10.83
9.32
8.73
8.46
1.00 ×
Appendix
Table 15: Beam width for UHHHHHH ( nH=6 , Qwen2.5-3B): proxy loss relative to B=256 (252 matrices), WikiText-2 PPL, and the time of the candidate search on the 12 matrices of Table 14 relative to B=256 . Best in bold, second best underlined.
Proxy loss
WikiText-2 PPL
Weights
2
2.5
3
3.5
4
2
2.5
3
3.5
4
1-1-2-3-4 (default)
1.000
1.000
1.000
1.000
1.000
15.41
10.78
9.29
8.73
8.45
1-1-1-1-1 (uniform)
0.918
0.925
1.024
1.111
1.170
14.60
10.73
9.45
8.88
8.56
1-1-2-2-2
0.970
0.966
0.975
1.033
1.081
15.19
10.85
9.36
8.78
8.50
1-2-3-5-7
1.069
0.974
0.994
0.980
0.973
15.70
10.69
9.29
8.75
8.47
1-1-1-1-4
0.948
0.960
1.065
1.156
0.997
15.32
10.82
9.39
8.85
8.48
Appendix
Table 16: Mode weights (Qwen2.5-3B): proxy loss relative to the default (63 matrices) and WikiText-2 PPL (FP16 8.03). Best in bold, second best underlined.
2-bit
3-bit
4-bit
Gaussian, uniform importance
+0.61
+0.44
not certified
Qwen2.5-3B
+1.84 (246)
+1.69 (242)
+1.31 (210)
Appendix
Table 17: Single-mode gain of the coded structure over the scalar one at equal rate (dB). Gaussian: uniform importance, certified against Lloyd–Max. Qwen2.5-3B: mean over matrices (matrices won).
Figure 7: Allocation gain of the coded plane (Qwen2.5-3B, 2-bit). (a) Importance dj of 64 columns, original and sorted. (b) Whole-matrix gain before and after sorting columns by importance. (c) Gain of UHH over UU by in-block importance rank in the original and sorted column order (mean; band: interquartile range); dashed lines: whole matrix.
Figure 8: Single-mode gain of the coded structure over the scalar one, measured vs. predicted by the weighted high-resolution gain G^(d) (no fitted parameter), 246 matrices of Qwen2.5-3B. Dashed: y=x .
WikiText-2 PPL
Nesting cost (dB)
2-bit
3-bit
4-bit
2-bit
3-bit
4-bit
MG (2/3/4), weights 1-1-1
25.89
10.75
9.58
0.54
1.43
5.45
MG (2/3/4), weights 1-2-4
42.77
10.08
8.83
1.61
0.96
2.73
AR (ours)
15.41
9.29
8.45
0.80
0.59
0.24
Appendix
Table 18: MG (2/3/4) with mode weights 1-1-1 (the baseline in our results) and 1-2-4, and Any-Rate, Qwen2.5-3B: WikiText-2 PPL (FP16 8.03) and layer nesting cost (dB, mean over matrices), each against single-mode encoding of its own structure at the same bit width. Best in bold, second best underlined.
Figure 9: Feedback and nesting, 246 matrices of Qwen2.5-3B. (a) Feedback gain at 4 bits, measured vs. predicted (dashed: y=x ). (b) Nesting cost, mean; dashed: feedback gain. (c) Single-mode gain over the scalar structure without feedback, mean.
Figure 10: Nested loss of the coded ladder (ours) vs. the scalar ladder on the same matrix, 246 matrices of Qwen2.5-3B, same encoder and integer-mode weights (log scale). Shaded: coded ladder lower. Dashed: y=x .
Method
Optimized bits
Modes
Bits/weight
AP
2–8
7
9.60
AB
2–8
7
13.38
MG (3/4/8)
3, 4, 8
7 (sliced)
8.26
AR (ours)
2–4 (by 0.5), 5–8
9
8.30
Appendix
Table 19: Storage of one checkpoint serving all modes of each method (Llama-3.1-8B-Instruct, 224 linear layers; codes and all metadata).
Method
2
2.5
3
3.5
4
AP
2.84
–
3.85
–
5.14
AB
3.46
–
4.64
–
5.90
MG (2/3/4)
3.27
–
4.22
–
5.16
+ act_order
4.12
–
5.06
–
5.99
AR (ours)
3.08
3.96
4.37
4.90
5.41
Appendix
Table 20: Linear-layer GEMV time per decoded token (ms) of Llama-3.1-8B-Instruct, batch 1, RTX 5070 Ti. Lower is better; fastest per column in bold, second underlined.
q/o ( 4096×4096 )
k/v ( 1024×4096 )
gate/up ( 14336×4096 )
down ( 4096×14336 )
Bits
2
2.5
3
3.5
4
2
2.5
3
3.5
4
2
2.5
3
3.5
4
2
2.5
3
3.5
4
AP
7.9
–
10.3
–
13.7
3.8
–
4.3
–
5.0
21.0
–
29.5
–
38.6
23.3
–
31.9
–
46.0
AB
9.5
–
12.1
–
15.0
6.1
–
7.0
–
8.0
25.8
–
35.7
–
46.3
25.7
–
35.6
–
45.9
MG
8.7
–
11.0
–
12.5
3.4
–
4.0
–
4.7
26.9
–
35.0
–
43.4
24.4
–
31.8
–
40.3
MG †
12.3
–
14.6
–
15.8
7.2
–
7.8
–
8.4
30.7
–
38.8
–
47.2
28.3
–
35.9
–
44.3
AR (ours)
8.5
11.4
12.2
13.1
13.8
4.9
5.4
6.0
6.6
6.6
23.0
29.9
33.6
38.0
42.5
23.6
30.4
33.2
37.7
43.4
Appendix
Table 21: GEMV latency (µs) of the Llama-3.1-8B-Instruct linear layers, batch 1, RTX 5070 Ti. MG: MG (2/3/4); MG † : with the act_order permutation. FP16 (cuBLAS): 41.4 (q/o), 12.5 (k/v), 140.5 (gate/up), 143.6 (down). Fastest per column in bold, second underlined.
Method
2
2.5
3
3.5
4
Metadata read at b bits
AP
2.01
–
3.03
–
4.05
per row: LUT of 2b FP16 values
AB
2.38
–
3.50
–
4.63
per group of 128: b scales α , one offset β (FP16)
MG
2.25
–
3.25
–
4.25
per group of 128: scale and zero (FP16)
AR (ours)
2.03
2.55
3.10
3.70
4.21
per row: 22b−1 FP16 values; 4 bits: 8-bit T , FP16 lo and s (Appendix D.4 )
Appendix
Table 22: Bits read per weight at each mode (codes and metadata), Llama-3.1-8B-Instruct linear layers, and the metadata each method reads.
Figure 11: Qwen3-30B-A3B-Instruct-2507 with Any-Rate. (a) WikiText-2 perplexity by encoded part. (b) Mean accuracy on the eight benchmarks relative to BF16 / FP16. (c) Per-expert mode allocation at the same mean bits per expert weight, with uniform MG (2/3/4) and Any-Rate for reference.
Bits
Allocation
PPL
ARC-c
ARC-e
HellaSwag
PIQA
WinoGrande
GSM8K
TriviaQA
NQ-open
Avg.
2
uniform
8.66
58.70
82.41
75.20
79.71
73.01
90.67
54.80
17.70
66.53
2.5
uniform
8.08
61.09
83.42
77.37
80.85
74.66
91.96
60.70
20.80
68.86
gate mass
7.83
61.26
82.87
78.42
80.58
73.95
91.05
62.40
22.10
69.08
3
uniform
7.72
60.32
82.41
78.13
80.63
74.11
92.87
63.80
21.80
69.26
gate mass
7.56
60.41
82.41
78.73
80.25
73.56
91.96
66.70
22.70
69.59
3.5
uniform
7.55
60.92
83.00
78.62
80.58
73.01
92.80
65.90
21.80
69.58
Appendix
Table 23: Qwen3-30B-A3B-Instruct-2507 with experts encoded by Any-Rate: WikiText-2 perplexity and accuracy (%). Bits: mean bits per expert weight. Better allocation in bold .
Figure 12: Decoding Qwen3-30B-A3B-Instruct-2507 on an RTX 5070 Ti (16 GB) with an expert cache in VRAM. (a) Decode speed per VRAM budget. (b) Mean accuracy vs. decode speed of each mode.
FP16
A fluffy, white cat with striking blue eyes sits regally on a wooden surface next to a vintage typewriter and stacks of books, creating a charming and slightly vintage scene.
A happy, dark-colored chihuahua with white markings and a visible tongue is lying on a dark surface with a leash attached to its collar, looking directly at the camera with a joyful expression.
4-bit
A fluffy, white cat with striking blue eyes sits regally on a wooden bench, surrounded by books and vintage typewriter, in a warmly lit room.
A happy, black and white chihuahua with its tongue out is lying on a dark wooden floor, wearing a leash and looking directly at the camera.
3.5-bit
A fluffy, white cat with striking blue eyes sits regally on a wooden surface, surrounded by books and a vintage typewriter, gazing intently into the distance.
A happy, dark-and-white chihuahua with its tongue out is playfully lying down on a wooden floor, wearing a leash and looking towards the camera.
3-bit
A fluffy white cat with striking blue eyes sits regally on a wooden bench next to a vintage Royal typewriter, framed by a rustic wooden fence and a leafy plant.
A cute, dark-colored chihuahua with white markings sits happily with its tongue out, wearing a leash, on a wooden floor with a window in the background.
2.5-bit
A fluffy white cat sits perched on a wooden bench, gazing at a brown wooden fence.
A cute, small dog with a fluffy coat is lying on a dark floor, looking at the camera with a playful expression.
2-bit
A fluffy white cat sits on a wooden fence, surrounded by books and plants, looking contemplative.
A cute, black and white chihuahua sits on a wooden deck, with its mouth open, showing teeth.
Appendix
Table 24: Qualitative comparison of Gemma-3-4b-it with Any-Rate (language model and vision tower in the same bit mode). Responses to “Describe this image in one sentence.” for two photos (cat, left; dog, right), at each bit width (greedy decoding). Only the introductory phrase that the model sometimes prepends (e.g., “Here’s a one-sentence description of the image:”) is removed.
FP16
AR (ours)
MG (2/3/4)
Bits
16
8
6
4
3.5
3
2.5
2
4
3
2
test-clean
2.03
2.04
2.03
2.10
2.11
2.20
2.24
2.39
2.03
2.20
69.36
test-other
3.90
3.92
3.97
4.06
4.16
4.24
4.48
5.31
4.40
4.84
93.79
Earnings-22
11.34
11.29
11.17
11.24
11.36
11.45
11.46
12.44
11.37
12.02
105.61
Mean
5.75
5.75
5.72
5.80
5.87
5.96
6.06
6.71
5.93
6.35
89.59
Appendix
Table 25: WER (%, lower is better) of Whisper-large-v3. Mean: unweighted mean of the three sets. MG (2/3/4) has no 2.5-, 3.5-, 6-, or 8-bit modes.
Bits
Utterance 1
Utterance 2
Reference
hence a resort to cider and beer
toward dark a man went in to buy a lamp
FP16
16
Hence a resort to cider and beer.
Toward dark, a man went in to buy a lamp.
AR (ours)
4
Hence a resort to cider and beer.
Toward dark, a man went in to buy a lamp.
3.5
Hence a resort to cider and beer.
Toward dark, a man went in to buy a lamp.
3
Hence a resort to cider and beer.
To our dark, a man went in to buy a lamp.
2.5
Hence a resort to cider and beer.
To a dark, a man went in to buy a lamp.
Appendix
Table 26: Two utterances of LibriSpeech test-other transcribed by Whisper-large-v3 at each bit width (greedy decoding).
Figure 13: Effect of quantizing each component of PixArt- Σ for the prompt “A busy street market with many people and colorful stalls”: the T5 text encoder only, the DiT only, and both, at 3 and 2 bits with MG (2/3/4) and Any-Rate. Same prompt and seed in every image.
Figure 14: PixArt- Σ images at each bit width for two prompts, with the DiT and T5 quantized together. For each prompt, MG (2/3/4) (top) and Any-Rate (bottom); MG (2/3/4) has no 2.5- and 3.5-bit modes.
Figure 15: CogVideoX-2B frames 0, 12, 24, 36, and 48. Rows: FP16, AR (ours) at 4 to 2 bits, and MG (2/3/4) at 4, 3, and 2 bits; the DiT and T5 are quantized together, with the same prompt and seed. Prompt: “A robotic arm picks up a tiny chip and places it onto a circuit board in a clean factory, camera slowly panning.”
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.
Dynamic runtime latency and memory constraints necessitate flexible large language model (LLM) deployment, where an LLM can be inferred with various quantization precisions based on available computational resources. Recent work on such any-precision quantization either relies on hardware-inefficient vector quantization or induces additional scaling factors when switching between bit-widths. Meanwhile, existing post-training quantization (PTQ) methods calibrated for a fixed low precision show poor generalizability under runtime precision change. In this work, we attribute the source of poor generalization across bit-widths to a precision-dependent outlier migration phenomenon where the distribution of PTQ-sensitive tokens changes across precisions. Motivated by this observation, we propose MoBiQuant, a novel any-precision Mixture-of-Bits quantization framework that adjusts weight precision for flexible LLM inference based on token sensitivity. Specifically, we propose a many-in-one recursive residual quantization that can iteratively reconstruct higher-precision weights at runtime and mitigates outlier migration with a token-aware router to dynamically select the optimal inference precision of each token.Extensive experiments show that MoBiQuant matches or surpasses frontier single-precision PTQ while exhibiting strong elasticity, achieving significant memory savings and throughput gains of up to 1.34× over state-of-the-art any-precision methods. Our code is available at https://github.com/SimWangArizona/MoBiQuant.
Dongwei Wang, Jinhee Kim, Seokho Han +8
University of Arizona · Panasonic AI Lab · Duke University +2
Serving large language models (LLMs) under diverse deployment constraints requires flexible trade-offs between accuracy, memory footprint, and throughput. However, conventional quantization methods typically require a separate checkpoint for each target bit-width. We introduce Recurrent Residual Quantization (RRQ), a post-training quantization (PTQ) framework that represents weights as a low-bit quantized base together with a sequence of quantized residual corrections, enabling multiple effective precisions from a single checkpoint. Starting from a 2-bit model obtained via post-training quantization (PTQ) or round-to-nearest (RTN), RRQ progressively adds lightweight 2-bit residuals generated via RTN to construct 4-, 6-, and 8-bit representations. The method is calibration-free and avoids joint multi-bit optimization. In our Qwen3-8B setup, the full all-RTN 2-/4-/6-/8-bit package is constructed in 1,293 seconds, 3.3 times faster than the measured MatGPTQ construction. Experiments on six recent LLMs show competitive accuracy at 6 and 8 bits, with model-dependent behavior at 4 bits. The code will be made publicly available upon publication.