Any-Rate: Half-Bit Multi-Precision LLM Quantization with Coded Bit-Planes
Organizations: Agency for Defense Development · Yonsei University
Abstract
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
| 2-bit | 3-bit | 4-bit | |
|---|---|---|---|
| Feedback gain | 2.73 | 2.78 | 2.76 |
| Nesting cost | |||
| Scalar ladder, no feedback | 0.12 | 0.23 | |
| 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 |
| 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 |
| 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 |
| 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 |
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 | |
| 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 | |
| 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 | |||||||||||
| 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) | |||||
| Planes read | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|
| Planes | UHH | UHHH | UHHHH | UHHHHH | UHHHHHH |
| Rate (bits/weight) | 2 | 2.5 | 3 | 3.5 | 4 |
| Configuration | 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 |
| Mode (bits) | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|
| Relative proxy loss (%) | 0.422 | 0.358 | 0.131 | 0.059 | 0.035 |
| 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 | |
| Full enumeration ( ) | Prefix beam ( ) | |
|---|---|---|
| 4 | 65,536 | 4,096 |
| 5 | 1,048,576 | 5,120 |
| 6 | 16,777,216 | 6,144 |
| 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- | 1.000 | 1.000 | 1.000 | 1.000 | 0.99 |
| Prefix beam, | 0.991 | 1.012 | 1.026 | 1.030 | 0.27 |
| Prefix beam, | 0.996 | 1.006 | 1.013 | 1.017 | 0.32 |
| Prefix beam, (default) | 0.999 | 1.003 | 1.007 | 1.004 | 0.47 |
| Proxy loss | WikiText-2 PPL | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Beam width | 2 | 2.5 | 3 | 3.5 | 4 | 2 | 2.5 | 3 | 3.5 | 4 | Time |
| 0.948 | 0.992 | 1.046 | 1.085 | 1.104 | 15.29 | 10.94 | 9.38 | 8.78 | 8.50 | 0.17 | |
| (default) | 0.989 | 0.997 | 1.011 | 1.019 | 1.022 | 15.41 | 10.78 | 9.29 | 8.73 | 8.45 | 0.29 |
| 1.000 | 1.000 | 1.000 | 1.000 | 1.000 | 15.31 | 10.83 | 9.32 | 8.73 | 8.46 | 1.00 | |
| 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 |
| 2-bit | 3-bit | 4-bit | |
|---|---|---|---|
| Gaussian, uniform importance | not certified | ||
| Qwen2.5-3B | (246) | (242) | (210) |
| 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 |
| 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 |
| 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 |
| q/o ( ) | k/v ( ) | gate/up ( ) | down ( ) | |||||||||||||||||
| 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 |
| Method | 2 | 2.5 | 3 | 3.5 | 4 | Metadata read at bits |
|---|---|---|---|---|---|---|
| AP | 2.01 | – | 3.03 | – | 4.05 | per row: LUT of FP16 values |
| AB | 2.38 | – | 3.50 | – | 4.63 | per group of 128: 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: FP16 values; 4 bits: 8-bit , FP16 and (Appendix D.4 ) |
| 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 |
| 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. |
| 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 |
| 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. | |