Shifter Quantization: Compact Representations for Native Integer Computation
Abstract
Groupwise quantization is used in LLM quantization to improve accuracy at low bit widths, but grouping weights keeps standard integer MMA from spanning the full dot product for efficient GPU inference. We develop a new quantization method, Shifter Quantization (SQ), that reconstructs native-width integer operands by appending and shifting shared bits. To further extend the efficiency, we develop a special variant of SQ, Shifter Integer (SHI), to use INT4 kernels. We show that SQ and SHI formats perform better than standard groupwise quantization in quality, as measured by projection error and KL divergence, and in inference speed, as measured during decoding and prefill. For low precision like 2-bit quantization, SQ2 and SHI2 achieve 2.71-3.77x the 4,096-token prefill throughput of llama.cpp on a Q2_K checkpoint and reduce WikiText-2 KL by 6.6-7.8%. For mid precision like 4-bit quantization, SQ4 achieves 1.43-2.47x the prefill throughput of NInfer's groupwise-integer baselines across the tested models and prompt lengths, with 24-40% lower KL than the NInfer baselines. For high precision like 8-bit quantization, SQ8 achieves 27.4% higher batch-one prefill throughput and 72.7% lower KL than vLLM's online FP8.
Figures & tables
| Profile | Information evaluated | Reduction lengths | Work at G8 | Work at G16 |
|---|---|---|---|---|
| One product | Base weight and activation | |||
| Two products | Add grouped weight correction | |||
| Three products | Also correct activations, including the cross term |
| Weight / engine | Activation | Packed bpw | Weight error | Output error | 4,096-token latency | Speedup vs. Q2_K |
|---|---|---|---|---|---|---|
| Q2_0 (G32) / llama.cpp | Q8_1 | 2.500 | 33.574% | 30.680% | 2,521.51 µs | 1.65 |
| Q2_K / llama.cpp | Q8_1 | 2.625 | 26.510% | 24.152% | 4,162.47 µs | 1.00 |
| SQ2-G4A1S1 / Shifter (SQ2) | INT8 | 2.500 | 25.281% | 22.971% | 1,504.74 µs | 2.77 |
| SQ2-G4A1S1 / Shifter (SHI2) | INT4 | 2.500 | 25.281% | 27.924% | 914.34 µs | 4.55 |
| Weight / engine | Activation | Packed bpw | Weight error | Output error | 4,096-token latency | Speedup vs. Q4_K |
|---|---|---|---|---|---|---|
| Q4_0 / llama.cpp | Q8_1 | 4.500 | 8.246% | 7.496% | 2,616.33 µs | 1.10 |
| Q4_K / llama.cpp | Q8_1 | 4.500 | 7.124% | 6.688% | 2,873.24 µs | 1.00 |
| SQ4-G8A2S2 / Shifter | INT8 | 4.500 | 7.457% | 6.804% | 1,481.26 µs | 1.94 |
| SHI4 (G8A4S0) / Shifter | INT8 | 4.500 | 8.632% | 7.841% | 1,490.18 µs | 1.93 |
| SHI4 | 4.500 | 8.632% | 12.236% | 1,014.05 µs | 2.83 | |
| NVFP4 / CUDA | FP8 | 4.500 | 8.178% | 7.837% | 1,472.14 µs | 1.95 |
| Weight-only model | KL | Top-1 | PPL |
|---|---|---|---|
| Shifter-SQ2 | 0.20001 | 81.6633% | 7.91754 |
| Shifter-SHI2 | 0.21210 | 80.9838% | 7.89657 |
| Q2_K recipe (local refit) | 0.27849 | 78.2596% | 8.58626 |
| Model | KL | Top-1 | PPL | 4,096-token prefill (tok/s) |
|---|---|---|---|---|
| Shifter-SQ2 | 0.15322 | 84.0237% | 7.57241 | 8,378.4 ( ) |
| Shifter-SHI2 | 0.15537 | 83.8316% | 7.58638 | 11,662.4 ( ) |
| Bartowski Q2_K | 0.16627 | 83.3110% | 7.70266 | 3,090.7 ( ) |
| Model | KL | Top-1 | PPL |
|---|---|---|---|
| Qwen3.8-27B SHI4 (A16, protected) / Shifter | 0.01373 | 94.9824% | 6.94277 |
| Qwen3.8-27B NVFP4 (BF16) / NInfer | 0.01875 | 93.9249% | 7.04771 |
| Qwen3.8-27B SQ4 / Shifter | 0.01970 | 93.9108% | 6.99283 |
| Qwen3.8-27B groupwise INT / NInfer | 0.03256 | 92.1400% | 7.14469 |
| Qwen3.6-35B-A3B SQ4 / Shifter | 0.01828 | 94.2042% | 6.75563 |
| Qwen3.6-35B-A3B groupwise INT / NInfer | 0.02400 | 93.3529% | 6.79117 |
| Runtime | KL | Top-1 | PPL | 4,096-token prefill (tok/s) |
|---|---|---|---|---|
| vLLM FP8 W8A8 | 0.00774 | 96.0297% | 6.96035 | 7,226.8 |
| SQ8 / Shifter | 0.00211 | 98.0439% | 6.96039 | 9,206.3 |
| Model and comparison | Prefill 7.7K | Prefill 260K | Structured MTP3 |
|---|---|---|---|
| Qwen3.8-27B SHI4 / Shifter | 10,252.3 | 3,550.0 | 212.1 24.0 |
| Qwen3.8-27B NVFP4 / NInfer | 12,819.1 | 4,016.4 | 231.7 |
| Shifter / NInfer | 0.80 | 0.88 | 0.92 |
| Qwen3.8-27B SQ4 / Shifter | 8,221.9 | 3,055.2 | 242.6 16.6 |
| Qwen3.8-27B groupwise INT / NInfer | 3,331.9 | 2,139.4 | 214.7 |
| Shifter / NInfer | 2.47 | 1.43 | 1.13 |
| Model and comparison | ||||
|---|---|---|---|---|
| Qwen3.8-27B SHI4 / Shifter | 144.4 / 46.8% | 276.6 / 46.5% | 503.4 / 47.6% | 809.5 / 46.0% |
| Qwen3.8-27B NVFP4 / NInfer | 147.7 / 46.2% | 291.0 / 48.7% | 522.2 / 45.8% | 922.4 / 46.1% |
| Qwen3.8-27B SQ4 / Shifter | 156.9 / 46.1% | 283.6 / 45.8% | 452.3 / 47.1% | 765.5 / 46.7% |
| Qwen3.8-27B groupwise INT / NInfer | 136.5 / 44.4% | 253.3 / 45.2% | 398.1 / 46.1% | 582.4 / 46.4% |
| Qwen3.6-35B-A3B SQ4 / Shifter | 654.3 / 68.3% | 1,004.5 / 69.0% | 1,237.2 / 69.4% | 1,721.5 / 68.8% |
| Qwen3.6-35B-A3B groupwise INT / NInfer | 642.5 / 68.6% | 907.2 / 66.3% | 1,213.5 / 69.6% | 1,380.7 / 68.0% |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| 27B SQ4 | 35B-A3B SQ4 | |||
|---|---|---|---|---|
| GPU | Prefill | MTP3 decode | Prefill | MTP3 decode |
| RTX A6000 | 2,723.8 | 97.0 | 10,828.8 | 331.0 |
| RTX 3090 | 2,915.7 | 111.5 | 11,354.8 | 391.9 |
| RTX 4090 | 6,098.7 | 148.9 | 23,093.3 | 532.3 |
| RTX 5090 | 8,221.9 | 242.6 | 32,039.0 | 784.0 |
LLM Quantization
Large language model quantization reduces numerical precision to lower memory use and accelerate training or inference.
See all 461 papers