A quantization technique, which compresses numbers into fewer bits, aims to run low-bit language models more efficiently on GPUs. For developers building local inference systems that compute answers from inputs, it changes both compression and integer arithmetic. This offers a way to improve model quality and input-processing speed together.
1. Moving group scales into integer arithmetic
Shifter Quantization (SQ), presented by Yufeng Huang, changes how group-specific scales are handled. These multipliers match each weight group's value range. Conventional methods keep group sums separate during multiply-accumulate operations and apply each scale individually. SQ incorporates scale information into integer values before multiplication, allowing accumulation across longer spans without stopping at group boundaries.
It appends shared bits to stored short codes, shifts bit positions, and narrows them to a hardware-compatible width. Groups of 4 or 8 weights represent values more finely than common groups of 16·32·64, while still using integer matrix operations that multiply and add integer arrays.
2. SHI uses INT4 multiplication
The Shifter Integer (SHI) variant uses 4-bit INT4 integers for the main multiplication and separate short multiplications for group corrections. With groups of 8, the correction product has 1/8 as many terms as the main product. It also offers a path that corrects both weights and activations, the model's intermediate values.
Storage depends on code width and shared fields. In the paper's example, the 2-bit SQ format uses 2.5 bits per weight, and the 4-bit format uses 4.5 bits. Storing the weight sums used for SHI4 correction requires 5.0 bits with groups of 8. Using short integer products can thus incur preparation and correction-data costs.
3. Changes observed in projection and model evaluations
The paper measured the down projection in layer 31 of Qwen3.8-27B on an RTX 5090 with 4,096 tokens. This operation reduces intermediate values and passes them back.
At the same 2.5 bits per weight, SQ2 reduced output error, the difference from reference results, from Q2_0's 30.680% to 22.971%, with 1.68x the throughput.
Using the same weights, SHI2 cut latency from SQ2's 1,504.74μs to 914.34μs, but increased error to 27.924%, showing a speed–accuracy trade-off.
Full-model quality was compared using KL divergence, a measure of how next-token probability distributions differ from a high-precision reference model. In weight-only fitting without calibration data, the two formats had 28.2% and 23.8% lower KL, respectively, than Q2_K refitted in the same way.
Table: Quality of 2-bit models without calibration data
Conditions: Weight-only fitting, 580 contexts and 147,900 next tokens from WikiText-2, relative to each original BF16 model
| Item | KL divergence |
|---|---|
| Shifter-SQ2 | 0.20001 |
| Shifter-SHI2 | 0.21210 |
| Q2_K recipe (local refit) | 0.27849 |
Lower KL in the table means closer agreement with the reference model. In a separate comparison of public checkpoints, files containing trained model states, SQ2 and SHI2 achieved 2.71x and 3.77x the baseline throughput for 4,096-token prefill, the initial input-processing stage.
The baseline was llama.cpp's Q2_K. Both formats used 8-bit activations for quality evaluation in this comparison; only the latter used 4-bit activations for speed measurements.
4. Different gains in input processing and generation
According to the paper, 4-bit SQ4 achieved 1.43~2.47x the prefill throughput of NInfer's groupwise integer method, with 24~40% lower KL, under the tested model and prompt conditions.
In an 8-bit comparison on the same 27B model, SQ8 had 27.4% faster prefill and 72.7% lower KL than vLLM's online FP8 quantization at batch size 1 and 4,096 tokens. vLLM quantizes weights to FP8, an 8-bit floating-point format, at model load time and applies dynamic scaling to activations.
When serving the 27B model with SQ4 on an RTX 5090, gains were smaller in decode, the stage that generates tokens sequentially after input processing. Throughput was 1.13x that of the previously compared baseline system. This was measured on structured-text tasks using a method that proposes three tokens in advance.
SQ4 measurements across four GPUs also reported that prefill tended to track peak INT8 compute, while decode tracked memory bandwidth, the amount of data transferred per second. Developers can evaluate execution paths based on whether they aim to process long inputs faster or speed up answer generation.
5. Adoption requires assessing quality and execution paths together
Some 4-bit serving results, obtained by running models to respond to requests, were slower than the NVFP4 baseline system. GPU experiments differed in input chunk sizes and the number of seeds, initial values that reproduce random choices, used for repetitions. SHI2 in particular used different activation precision for quality and speed tests, so both need checking on the intended execution path.
SQ and SHI show that low-bit storage can translate into faster integer arithmetic, but format and execution-path choices determine the balance of quality, speed, and memory.
