SAW-INT4: System-Aware 4-Bit KV-Cache Quantization for Real-World LLM Serving

Jinda Jia, Jisen Li, Zhongzhu Zhou, Jung Hwan Heo, Jue Wang, Tri Dao, Shuaiwen Leon Song, Ben Athiwaratkun, Chenfeng Xu, Tianyi Zhang, Xiaoxia WuarXiv 2026

TL;DR

As Large Language Models (LLMs) scale to massive context windows, the Key-Value (KV) cache becomes a critical memory bottleneck during serving. While many advanced compression algorithms exist, they often degrade end-to-end serving throughput because they violate hardware-level constraints like paged memory layouts and fused execution. This paper introduces SAW-INT4, showing that a simple system-aware design—token-wise INT4 quantization paired with a fused block-diagonal Hadamard rotation—recovers nearly all accuracy lost by naive quantization with zero measurable serving overhead.

What Problem Does This Paper Address?

To support long-context windows and concurrent users, modern LLM serving engines (like vLLM and SGLang) rely on highly optimized systems primitives: PagedAttention (which manages memory in fixed-size, non-contiguous blocks) and fused attention kernels (like FlashAttention).

Many existing KV-cache compression methods achieve impressive compression ratios on paper but fail in production. For instance, token eviction causes memory fragmentation, mixed-precision layouts break page table indexing, and vector quantization introduces irregular codebook lookups that stall the GPU. As a result, these complex methods often deliver lower end-to-end throughput than unquantized baselines.

The authors set out to bridge this "system gap" by answering a fundamental question: Which KV-cache quantization techniques actually work under real-world serving constraints, and how simple can an effective solution be?

Methods

The authors identify token-wise asymmetric INT4 quantization as the ideal foundation because it operates independently on each token, preserving paged layouts and coalesced memory access. However, naive INT4 suffers from severe accuracy degradation due to channel-wise outliers.

To fix this without adding system overhead, they introduce Block-Diagonal Rotation (BDR):

  1. Hadamard Rotation: They apply an orthogonal randomized Hadamard transform to the KV cache. This mathematically redistributes energy across dimensions, smoothing out the extreme outliers that ruin low-bit quantization grids.
  2. Block-Diagonal Decomposition: Instead of a costly full dense rotation over the entire hidden dimension, BDR breaks the vector into smaller chunks (e.g., a block size of $h=128$) and rotates them independently, maximizing parallel execution.
  3. Kernel Fusion: Crucially, they implement a fused rotation-quantization CUDA kernel in Triton. By rotating the query on-the-fly inside the decode attention loop, they eliminate extra global memory passes over the KV cache data.
Figure 1: Overview of our system-aware INT4 KV-cache quantization framework (left) and rotate-quantize pipeline (right) for modern LLM serving.

Datasets

The framework was evaluated across four model scales (Qwen3-4B-Thinking, Qwen3-8B, Qwen3-32B, and GLM-4.7-FP8) using five rigorous reasoning and coding benchmarks:

  • GPQA-Diamond
  • HumanEval
  • LiveCodeBench (v6)
  • AIME25
  • MATH500

Key Insights and Ideas

  • Complexity Yields Diminishing Returns: More sophisticated methods, such as $k$-means vector quantization (with up to 2048 centroids) or Hessian-aware calibration, offer negligible accuracy improvements over simple block rotation while adding massive deployment and calibration complexity.
  • Microbenchmarks Can Be Misleading: Isolated kernel benchmarks show that plain INT4 has higher bandwidth than rotated INT4 because it skips the rotation math. However, in an end-to-end serving stack, this minor arithmetic cost is completely hidden behind memory access and runtime scheduling.
  • Asymmetric Sensitivity: The authors found that applying rotation only to the Key (K) cache is sufficient to preserve accuracy in practice, allowing the Value (V) cache path to remain even lighter.

Key Results

  • Near-Lossless Accuracy: On the fragile Qwen3-4B model, naive INT4 completely collapses to 0% accuracy. Applying BDR with a block size of 128 (BDR-128) restores the mean benchmark score to 73.11%, just shy of the unquantized BF16 baseline (75.64%).
  • Zero Serving Overhead: When tested under concurrent workloads on 2×H100 GPUs, SAW-INT4 matches or slightly exceeds the throughput of plain INT4 while significantly outperforming full-precision BF16 by reducing memory pressure.
Table 1: Throughput on 2×H100 GPUs with 32 concurrent requests, each with an input length of 8192 tokens, output 1024 tokens. Here, TPS/User denotes tokens/s per user, and TPS/GPU denotes tokens/s per GPU. Acc is the mean computed over 5 tasks; each task is repeated 5 times.

Limitations and Future Work

While SAW-INT4 provides an elegant solution for 4-bit quantization, the authors note that pushing compression down to 2-bit or 3-bit regimes remains an open challenge. Ultra-low bitwidths will likely require more aggressive strategies (like advanced vector quantization), which currently face severe hardware execution bottlenecks. Future work must focus on co-designing hardware-friendly kernels that can handle these highly compressed formats without sacrificing serving efficiency.

Summary updated

BibTeX
@misc{jia2026saw,
  author = {Jinda Jia and Jisen Li and Zhongzhu Zhou and Jung Hwan Heo and Jue Wang and Tri Dao and Shuaiwen Leon Song and Ben Athiwaratkun and Chenfeng Xu and Tianyi Zhang and Xiaoxia Wu},
  title = {{SAW-INT4: System-Aware 4-Bit KV-Cache Quantization for Real-World LLM Serving}},
  year = {2026},
  eprint = {2604.19157},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.19157},
}

Loading related content...

Figure