Tailoring the Quantization Space for 1-Bit KV Cache Compression
Organizations: Stanford University · Seoul National University
Abstract
The key-value (KV) cache becomes a major memory bottleneck in long-context LLM inference, placing substantial pressure on memory capacity and bandwidth. To mitigate this bottleneck, vector quantization (VQ) has emerged as a promising approach for aggressive KV cache compression. However, existing VQ methods degrade substantially in the 1-bit regime. At such extreme compression, each codebook must represent a larger group of channels with a limited set of centroids, making effective use of its capacity increasingly challenging. To address this, we introduce , which tailors the VQ target space by combining query-guided channel weighting, cross-head normalization, and covariance-aware channel grouping to better reflect the error sensitivity and statistical structure of cached activations. Since these transforms are RoPE-compatible and can be easily merged into projection weights and codebooks, TaSQ preserves the conventional VQ lookup structure and adds negligible serving overhead. Across general, long-chain-of-thought reasoning, and long-context retrieval benchmarks, TaSQ consistently outperforms existing low-bit KV cache VQ baselines while preserving reasoning stability. On a single RTX 6000 Ada GPU, its SGLang implementation supports up to larger batch sizes and achieves higher peak throughput compared to the BF16 baseline.
Figures & tables
| Model | Method | Bits (K/V) | GSM8K | MATH500 | MBPP | HumanEval | BBH | MMLU | Avg. |
|---|---|---|---|---|---|---|---|---|---|
| Llama-3.1-8B-Instruct | BF16 | 16.000/16.000 | 83.62 | 42.20 | 59.60 | 62.20 | 73.38 | 62.64 | 63.94 |
| CQ | 1.250/1.250 | 68.01 | 19.60 | 52.00 | 54.27 | 40.08 | 54.21 | 48.03 | |
| NovaKV | 1.375/1.250 | 76.95 | 29.40 | 55.00 | 53.66 | 48.46 | 56.43 | 53.32 | |
| NSNQuant | 1.238/1.238 | 73.39 | 31.40 | 50.20 | 57.93 | 48.57 | 58.33 | 53.30 | |
| TaSQ | 1.266/1.250 | 81.73 | 34.00 | 58.40 | 58.54 | 64.28 | 58.33 | 59.21 | |
| Qwen3-4B | BF16 | 16.000/16.000 | 86.28 | 72.60 | 64.00 | 81.71 | 78.03 | 74.72 | 76.22 |
| Model | Method | Bits (K/V) | AIME’24 | AIME’25 | LCB-v6 | SciBench | Avg. |
|---|---|---|---|---|---|---|---|
| Qwen3-4B-Thinking-2507 | BF16 | 16.000/16.000 | 74.44 1.92 | 74.44 5.09 | 45.85 0.62 | 73.99 0.43 | 67.18 1.37 |
| CQ | 1.250/1.250 | 26.67 3.33 | 14.44 5.09 | 18.99 0.44 | 54.00 0.94 | 28.52 1.54 | |
| NovaKV | 1.375/1.250 | 7.78 1.92 | 6.67 3.33 | 9.16 0.38 | 27.94 2.08 | 12.89 1.10 | |
| NSNQuant | 1.238/1.238 | 44.44 6.94 | 38.89 1.92 | 34.66 0.33 | 68.69 0.55 | 46.67 1.81 | |
| TaSQ | 1.266/1.250 | 68.89 1.92 | 56.67 3.33 | 43.00 0.47 | 73.65 0.60 | 60.55 0.98 | |
| DeepSeek-R1-Distill-Llama-8B | BF16 | 16.000/16.000 | 53.33 3.33 | 31.11 1.92 | 39.68 0.56 | 38.49 0.30 | 40.65 0.98 |
| Model | Method | Bits (K/V) | 4k | 8k | 16k | 32k | 64k |
|---|---|---|---|---|---|---|---|
| Llama-3.1-8B-Instruct | BF16 | 16.000/16.000 | 98.50 1.73 | 98.83 0.76 | 98.67 0.29 | 98.67 0.76 | 98.17 1.04 |
| CQ | 1.250/1.250 | 19.33 1.61 | 15.50 3.61 | 12.67 1.26 | 12.83 3.18 | 6.33 1.26 | |
| NovaKV | 1.375/1.250 | 84.83 0.29 | 81.67 3.18 | 64.00 2.18 | 21.33 2.25 | 1.83 0.29 | |
| NSNQuant | 1.238/1.238 | 89.17 1.61 | 86.00 1.32 | 86.83 4.25 | 88.17 1.15 | 82.17 0.58 | |
| TaSQ | 1.266/1.250 | 93.33 2.08 | 93.17 0.76 | 92.00 1.32 | 93.67 1.04 | 93.17 0.76 | |
| Qwen3-4B-Thinking-2507 | BF16 | 16.000/16.000 | 100.00 0.00 | 100.00 0.00 | 99.83 0.29 | 99.67 0.29 | 95.33 2.36 |
| Method | PPL |
|---|---|
| FP16 | 6.2374 |
| Full TaSQ | 8.4559 |
| w/o query-guided weighting | 8.5172 |
| w/o cross-head normalization | 8.5103 |
| w/o covariance-aware grouping | 10.1731 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Channel | Representation | Rate |
|---|---|---|---|
| CQ | K | 1,024-centroid VQ | |
| V | 1,024-centroid VQ | ||
| NSNQuant | K | 256-centroid VQ + normalization metadata | |
| V | 256-centroid VQ + normalization metadata | ||
| NovaKV | K | 1,024-centroid VQ + one 16-bit head-wise scale | |
| V | 1-bit SQ + two 16-bit head-wise parameters |
| Value quantization | PPL |
|---|---|
| TaSQ | 8.45594 |
| TaSQ + value-side transformations | 8.42058 |
| Llama-3.1-8B | Qwen3-4B | ||||||
|---|---|---|---|---|---|---|---|
| scale / codebook | bits/elem | mean | min | max | mean | min | max |
| per-head, | 1.3750 | 0.004483 | 0.002882 | 0.006953 | 0.019794 | 0.006732 | 0.030261 |
| pooled, | 1.2656 | 0.004564 | 0.002965 | 0.007037 | 0.019688 | 0.006754 | 0.030014 |
| pooled, | 1.3906 | 0.003460 | 0.002245 | 0.005313 | 0.014763 | 0.005045 | 0.022639 |
| Context | Latency (ms/step) | Overhead | |
|---|---|---|---|
| (tokens) | Attention | Dense Restoration | (%) |
| 1 024 | 1.55 | 0.55 | |
| 4 096 | 2.11 | 1.23 | |
| 16 384 | 4.14 | 4.27 | |
| Key Transform | Relative Attention-Logit Error | |
|---|---|---|
| Calibration Corpus | GSM8K | |
| (TaSQ) | ||