Shifter Quantization: Redefining Low-Bit LLM Inference Efficiency

Shifter Quantization reconstructs integer operands via shared-bit shifting, making integer MMA compatible with groupwise quantization and improving both throughput and accuracy at 2/4/8-bit.
The article discusses the fundamental conflict between groupwise quantization and GPU integer MMA instructions: independent per-group scaling prevents integer MMA from covering the full dot product, requiring dequantization steps that hurt efficiency. The paper proposes Shifter Quantization (SQ), which reconstructs native-width integer operands by appending and shifting shared bits so standard integer MMA can compute efficiently across groups; its variant Shifter Integer (SHI) is further optimized for INT4 kernels. Measurements show SQ2/SHI2 achieve 2.71-3.77× the prefill throughput of llama.cpp Q2_K at 2-bit with lower KL divergence, SQ4 achieves 1.43-2.47× the throughput of the NInfer baseline at 4-bit with 24-40% lower KL, and SQ8 achieves 27.4% higher prefill throughput at batch 1 than vLLM online FP8 with 72.7% lower KL. The article argues that SQ starts from data representation rather than the dequantization stage, offering a general new path for quantized inference, though adoption still depends on framework support and broader model validation.
Why Does Groupwise Quantization Slow Down Integer MMA?
In large language model (LLM) quantization, groupwise quantization is an important technique for improving low-bit accuracy, but it fundamentally conflicts with the standard integer matrix multiply-accumulate (MMA) instructions on GPUs. Groupwise quantization divides weights into small groups, each scaled independently, which prevents standard integer MMA from covering the full dot product—because the scaling factors of different groups require extra dequantization steps, breaking the continuity of integer computation. The result is that although accuracy improves, inference efficiency suffers.
A recent paper proposes Shifter Quantization (SQ), attempting to resolve this contradiction at the representation level. SQ reconstructs native-width integer operands by appending and shifting shared bits, enabling integer MMA to efficiently span the entire dot product. This is not a simple format adjustment but a rethinking of quantized data layout—achieving both hardware-friendly integer computation and the accuracy advantages of groupwise quantization.

Integer MMA (Matrix Multiply-Accumulate) is a hardware instruction on GPUs for performing matrix multiply-accumulate operations, typically represented by INT8/INT4 MMA supported by NVIDIA Tensor Cores. Its core advantage is that a single instruction can complete the multiply-accumulate of a small matrix block (e.g., 4×4 or 8×8) entirely within the integer domain, with no type conversion required. However, integer MMA requires operands to already be at a unified scaling level before computation—that is, no floating-point scaling or dequantization operations can be inserted during the entire dot product. Groupwise quantization scales weights independently by group (e.g., every 32 or 128 elements), with each group having a different scaling factor. Therefore, standard integer MMA cannot directly cover a cross-group full dot product, and must insert dequantization and requantization steps at group boundaries, interrupting the pipeline continuity of integer computation.
SQ and SHI: Two Complementary Integer Computation Paths
The core idea of SQ is to leverage the appending and shifting of shared bits. Specifically, rather than directly storing the complete integer of each weight, it shares high-order bits and reconstructs the original integer via shifting during computation. This allows standard integer MMA to process data that would otherwise be fragmented by grouping.
Building on this, the authors further design Shifter Integer (SHI), specifically optimized for INT4 kernels. SHI can be seen as a variant of SQ that further compresses the representation, enabling low-bit hardware (such as INT4 Tensor Cores) to execute more efficiently. SHI's goal is to maximize the throughput of existing low-bit integer instruction sets while maintaining accuracy.
This design approach is fundamentally different from traditional groupwise quantization: traditional methods pay extra computational cost in the dequantization stage, whereas SQ/SHI front-loads the cost into format design in exchange for integer computation efficiency during inference.
INT4 Tensor Core is a 4-bit integer matrix multiply-accumulate instruction unit natively supported by NVIDIA starting from the Hopper architecture (H100), capable of completing matrix operations with smaller bit widths within a single clock cycle, with theoretical throughput twice that of INT8. However, INT4's representation range is extremely limited (a 4-bit signed integer only covers -8 to 7), and directly applying INT4 MMA to groupwise quantized weights would cause severe accuracy loss due to insufficient dynamic range. The design of SHI (Shifter Integer) precisely addresses this contradiction: through shared bits and shift operations, it reconstructs equivalent wide integer operands without expanding physical bit width, enabling INT4 kernels to process groupwise quantized data that would otherwise require higher bit widths, thereby fully utilizing INT4 hardware's peak throughput while maintaining accuracy.
Dual Validation of Accuracy and Speed
The paper evaluates SQ and SHI along two dimensions: quality (projection error and KL divergence) and inference speed (decode and prefill stages).
Low-bit (2-bit) scenario: SQ2 and SHI2 achieve 2.71-3.77× the prefill throughput of llama.cpp on Q2_K checkpoints with 4096 tokens, while reducing WikiText-2 KL divergence by 6.6-7.8%. This means that under extreme compression, SQ is not only faster but also higher quality.
Medium-bit (4-bit) scenario: SQ4's prefill throughput is 1.43-2.47× that of the NInfer groupwise integer baseline (across multiple tested models and prompt lengths), with KL divergence 24-40% lower than the NInfer baseline. 4-bit is currently the most widely deployed quantization bit width, making this improvement directly practical.
High-bit (8-bit) scenario: Compared to vLLM's online FP8, SQ8 achieves 27.4% higher prefill throughput at batch size 1, with KL divergence 72.7% lower. 8-bit quantization is typically used in scenarios with high accuracy requirements, and SQ8 provides significant throughput advantages while maintaining high accuracy.
These data come from the paper's actual measurements, covering typical quantization configurations from 2-bit to 8-bit, and comparing against mainstream inference frameworks (llama.cpp, NInfer, vLLM).
KL divergence (Kullback-Leibler Divergence) is used here to measure the difference in output probability distributions between the quantized model and the full-precision model: lower KL divergence indicates that the quantized model's output distribution is closer to the original model, meaning less quantization loss. Prefill and decode are the two stages of LLM inference: the prefill stage processes all tokens of the entire input prompt at once, is compute-intensive, and is dominated by matrix multiplication; the decode stage generates output token by token and is more constrained by memory bandwidth. WikiText-2 is a commonly used language modeling evaluation dataset, often used to compute the perplexity or KL divergence of quantized models to assess the impact of quantization on language modeling quality. Throughput is typically measured in tokens/second, and high prefill throughput means lower first-token latency in long-prompt scenarios.
Potential Impact on the LLM Inference Ecosystem
The value of SQ and SHI lies in the fact that they are not hacks for any specific hardware, but rather a general integer representation scheme. As long as hardware supports native integer MMA (which the vast majority of modern GPUs do), SQ can potentially be integrated into existing inference stacks.
From the perspective of the quantization community, the conflict between groupwise quantization and integer MMA has long existed, and many works choose to optimize the dequantization stage, whereas SQ starts from data representation and provides a new path. In particular, SQ's performance at 2-bit and 4-bit precisely corresponds to the current hot demands for edge deployment and low-cost inference.
However, SQ's adoption still depends on the level of framework support. The baselines compared in the paper include llama.cpp, NInfer, and vLLM, and whether these frameworks will adopt the SQ/SHI format still requires community push. In addition, whether SQ's shared-bit strategy is equally effective for all model architectures remains to be verified, as the paper's testing scope has not yet covered all mainstream LLMs.
llama.cpp, NInfer, and vLLM are three representative frameworks in the current LLM inference ecosystem, but with different positioning: llama.cpp is implemented in C/C++, targeting edge and CPU/GPU hybrid inference, and its quantization checkpoint formats such as Q2_K and Q4_K are widely used in the community; NInfer is a groupwise integer quantization inference system proposed in academic research, focusing on low-bit integer kernel optimization; vLLM is a high-throughput serving framework for data centers, supporting PagedAttention and online FP8 quantization. Together they cover three scenarios—edge, research prototype, and cloud service—and the paper's choice of them as baselines is intended to show that SQ/SHI's benefits do not depend on any particular framework or hardware platform, but are general across scenarios.
Conclusion: Quantization Is Not Just Compression, but a Reconstruction of Computation
Shifter Quantization reminds us that the next frontier of quantization research may not lie in bit width itself, but in how to better align quantized data with hardware compute units. Through shared bits and shifting, SQ and SHI enable integer MMA to once again cover the full dot product, simultaneously surpassing groupwise quantization baselines in both accuracy and speed. For engineers pursuing efficient inference, this is a direction worth watching.
Related articles

500,000 Robots to 'Refreeze' the Arctic? Real Ice's Wild Plan
A startup called Real Ice plans to use 500,000 underwater drones to thicken Arctic ice, with test-area ice already 50 cm thicker. This article breaks down the technology, the 4-million-fold scale gap, the controversial $10 billion annual cost, and the window before an ice-free summer in the 2030s.

T3 Code: One Tool Aggregates All AI Coding Assistants and Models
T3 Code aggregates multiple AI models and coding assistants like Claude and DeepSeek into one interface, enabling mid-conversation switching with automatic context handoff. This article covers its core selling points, hands-on switching flow, and use cases.

Why Did The New York Times Ban Photographers From Using the Latest Version of Photoshop?
The New York Times told photographers not to use the latest Photoshop, a ban that reflects photojournalism's caution toward AI-generated content and authenticity. This article analyzes the logic behind the ban, its impact on photographers' workflows, and the long-term struggle between tools and ethics in the news industry.