TL;DR
When shrinking Large Language Models (LLMs) to fit onto consumer GPUs, standard compression tricks force the hardware to constantly stop and rescale small clusters of numbers, bottlenecking inference speed. Shifter Quantization (SQ) bypasses this bottleneck by using cheap, register-level bit-shifting to reconstruct native integers on the fly, letting the GPU's matrix engines run uninterrupted at full throttle. The result is an impressive double win: faster local LLM inference and higher accuracy across 2-bit, 4-bit, and 8-bit formats.
What Problem Does This Paper Address?
To run massive LLMs on memory-constrained workstation or consumer GPUs, we quantize them—shrinking 16-bit weights down to 2, 4, or 8 bits. However, neural network weights vary wildly in magnitude. If you stretch a 4-bit ruler across an entire layer, small weights get rounded to zero; if you shrink the ruler, large weights clip.
The standard fix is groupwise quantization (used in GPTQ, AWQ, and llama.cpp): chop weights into small groups of 16 to 64 and give each group its own floating-point scale factor. While this saves accuracy, it creates a hardware headache. GPUs get their blistering speed from Matrix Multiply–Accumulate (MMA) instructions—assembly lines designed to multiply and sum long rows of numbers in one continuous sweep. When every tiny group has a different floating-point scale, the GPU has to pause the assembly line, convert partial sums, multiply by the group scale, and then resume. Unless you have specialized enterprise hardware supporting specific block-scaled formats, standard integer MMA units can't span the full dot product efficiently.
Methods
The author separates established conditioning techniques from a novel storage and execution scheme:
- Standard Conditioning: Before quantization, weights and inputs are conditioned using channel-wise scales and a signed Hadamard rotation (a mathematical shuffle that spreads out extreme "outlier" values evenly across channels).
- Shifter Quantization (SQ): Instead of storing floating-point scales for each group, SQ stores ultra-compact weight codes alongside a few shared bits per tiny group of 4 or 8 weights. Right before multiplication inside the GPU registers, SQ reconstructs native INT8 or INT4 numbers using three cheap bitwise operations: appending shared low-order bits, applying a group-specific bit-shift (acting as a power-of-two local scale), and truncating to the hardware's native width. Because local scaling is baked directly into the reconstructed integer, standard MMA instructions can blaze across the entire matrix row uninterrupted, applying channel scales only at the very end.
- Shifter Integer (SHI): Sometimes, shifting a 3-bit or 4-bit code expands its range so much that it requires an INT8 container, forfeiting the 2x speed boost of native INT4 tensor cores. SHI solves this through algebraic factoring. It splits the number into a 4-bit base and a shared group correction. It computes the main matrix product at full INT4 speed, and then adds the group corrections via much shorter INT4 dot products over pre-summed groups (for groups of 8, a correction product is just $1/8$th the length of the main computation).
Datasets
No new benchmarks are introduced. Instead, the paper uses standard community protocols for apples-to-apples comparisons:
- WikiText-2: Used to measure quantization quality (KL divergence against BF16 references, top-1 token agreement, and perplexity) as well as isolated layer projection errors.
- Serving Fixtures: Existing evaluation suites from the community-developed NInfer engine—including 7.7K and 260K-token needle-retrieval prompts, structured generation tasks (JSONL, CSV, SQL), and
long_decode_aime26_15math reasoning prompts—are used to test prefill and speculative decoding speeds.
Key Insights and Ideas
- Smaller groups without the speed penalty: Normally, shrinking group sizes from 32 down to 4 or 8 drowns the GPU in scale-factor overhead. Because bit-shifts happen cheaply in registers before the dot product, SQ uses tiny groups of 4 or 8 weights—capturing fine-grained weight variations for better accuracy—while running faster than coarser traditional formats.
- Algebraic shortcuts beat bit-width bloat: SHI's insight that you can factor out shared group corrections into tiny, secondary INT4 dot products (including activation corrections and cross-terms in just three total products, adding only 25% logical contraction work for groups of 8) keeps data on the fastest 4-bit hardware paths.
- Hardware-aligned scaling: Testing across four generations of NVIDIA GPUs (RTX 3090, A6000, 4090, and 5090), SQ4 prefill speed scales linearly with peak dense INT8 compute ($R^2 \approx 0.99$), while decoding scales linearly with memory bandwidth ($R^2 = 0.94\text{--}0.97$). This proves the bitwise unpacking doesn't bottleneck the underlying silicon.
Key Results
Evaluated primarily on Qwen3.8-27B and Qwen3.6-35B-A3B on an RTX 5090, SQ and SHI outperform strong software baselines across the board:
- 2-Bit Precision: Against
llama.cpp(Q2_K), SQ2 and SHI2 deliver 2.71x to 3.77x higher 4,096-token prefill throughput while reducing WikiText-2 KL divergence by 6.6–7.8% on released checkpoints (and by up to 28.2% in uncalibrated weight-only fits). - 4-Bit Precision: Compared to NInfer’s specialized groupwise-integer baselines, SQ4 achieves 1.43x to 2.47x faster prefill, 1.25x to 1.31x faster concurrent speculative decoding (at batch size 8), and 24–40% lower KL divergence.
- 8-Bit Precision: Compared to vLLM’s online FP8 (W8A8), SQ8 boosts batch-one prefill speed by 27.4% while slashing KL divergence by 72.7%.
Limitations and Future Work
- Native Silicon Still Wins on Speed: On GPUs with dedicated block-scaled floating-point hardware (like NVIDIA Blackwell's native NVFP4 tensor cores), SHI4 achieves better accuracy (lower KL divergence) than NVFP4, but remains slightly slower in serving (0.80x–0.92x throughput) due to the extra overhead of quantizing and summing activations and running extra correction passes.
- Approximation & Memory Trade-offs: Quantizing group sums into INT4 for SHI's correction products introduces additional approximation error. Furthermore, retaining pre-computed weight-sum planes in memory slightly increases the resident VRAM footprint (e.g., bumping logical code storage from 4.5 to 5.0 bits per weight for 8-weight groups). Future directions are not explicitly discussed in the paper.
Summary updated