PN-Mix: Pair-Norm Guided Mixed-Precision Key Cache Quantization for Efficient Long-Output LLM Inference
Organizations: Seoul National University
Abstract
Long-output inference in large language models suffers from severe KV cache memory and bandwidth bottlenecks. While KV cache quantization alleviates this issue, low-bit quantization (e.g., 2-bit) severely degrades model accuracy. Recent mixed-precision key-cache quantization methods mitigate this degradation by allocating higher precision to important key channels, but estimate channel saliency using only key statistics. Through attention logit perturbation analysis at the RoPE channel-pair level, we show that quantization errors in channel pairs with large query--key pair-norm products contribute significantly to logit variation. Based on this insight, we propose PN-Mix, a mixed-precision key-cache quantization method for RoPE-based decoder-only LLMs, which allocates higher precision to salient channel pairs identified once during the prefill stage and reused throughout decoding. Across standard reasoning, code-generation, and AIME benchmarks, PN-Mix with 2.26-bit average precision achieves comparable or better average accuracy than prior mixed-precision methods using 2.32--2.39 bits. Furthermore, in our Pareto sweep, PN-Mix degrades gracefully down to 1.5 bits, whereas the compared baselines exhibit sharper performance drops below 2.25 bits.
Figures & tables
| Model / Dataset | Spearman | Top-10% overlap | Top-50% overlap |
| R1-Llama-8B / LiveCodeBench v5 | |||
| R1-Qwen-7B / AIME25 |
| Model | Method | K bits | GSM8K | MATH-Alg. | HumanEval | GPQA-Dia | Avg. |
| Llama3.1-8B-Instruct | FP16 | 16 | |||||
| KIVI | 2.25 | ||||||
| PolarQuant | 2.25 | ||||||
| ChanMix | 2.32 | ||||||
| Kitty | 2.39 | ||||||
| PN-Mix (1) | 2.26 |
| Model | Method | K bits | AIME24 | AIME25 | ||
| R1-Llama-8B | FP16 | 16 | ||||
| KIVI | 2.25 | |||||
| PolarQuant | 2.25 | |||||
| ChanMix | 2.32 | |||||
| Kitty | 2.39 | |||||
| Importance score | 1-bit | sink | AIME24 | HumanEval |
| FP16 | – | – | ||
| pair norm | ||||
| pair norm | ||||
| pair norm | ||||
| range | ||||
| magnitude |
| / / | Method | Mem (GB) | TTFT (ms) | Decode (s) | Total (s) |
| 1/141/32K | FP16 | 19.80 | 46 | 1299 | 1299 |
| Kitty | 16.03 | 55 | 2121 | 2121 | |
| PN-Mix | 15.95 | 71 | 2036 | 2036 | |
| 1/16K/8K | FP16 | 20.26 | 1679 | 325 | 327 |
| Kitty | 17.45 | 1702 | 590 | 592 | |
| PN-Mix | 17.39 | 1714 | 563 | 565 |
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | en | zh | fr | ja | bn |
| FP16 | |||||
| KIVI | |||||
| ChanMix | |||||
| Kitty | |||||
| PN-Mix (1) | |||||
| PN-Mix (2) |
| Method | Avg. KV bits | AIME24 | AIME25 |
| R1-Llama-8B | |||
| FP16 | 16 | ||
| PM-KVQ | 2.38 | ||
| PN-Mix (1) | 2.26 | ||
| PN-Mix (2) | 2.28 | ||
| R1-Qwen-7B | |||
| Model | Task | K16V16 | K2.25V16 | K2.25*V16 | K16V2.25 | K16V2.25* |
| R1-Llama-8B | AIME24 | |||||
| AIME25 | ||||||
| Qwen3-8B | AIME24 | |||||
| AIME25 |
| Method | R1-Qwen-7B (AIME25) | R1-Llama-8B (LiveCodeBench v5) | ||
| Only 3-bit (Uniform precision) | ||||
| Per-Channel | 0.042 | 0.043 | 0.058 | 0.020 |
| Per-Channel after | 0.098 | 0.101 | 0.142 | 0.043 |
| Only 2-bit (Uniform precision) | ||||
| Per-Channel | 0.230 | 0.232 | 0.324 | 0.120 |
| (a) Method configurations | ||||||||
| Method | / | |||||||
| KIVI | 2 | – | – | – | – | 128 | 128 | 0 |
| PolarQuant | 2 | – | – | – | – | 128 | 128 | 0 |
| ChanMix | – | 4 | 3, 2, 1 | 0.1 | – | 128 | 128 | 0 |
| Kitty | – | 4 | 2 | 0.03125 | 128 | 128 | 32 | |
| PN-Mix (1) | – | 3 | 1 | 0.5 | 128 | 128 | 32 | |
| (a) Long generation: R1-Qwen-7B / AIME25, 96 prefill tokens + 32,672 decoding steps | ||||||
| Reference score | Selection criterion | 0–8K | 8–16K | 16–24K | 24K–32.7K | Max–Min |
| range | ||||||
| magnitude | ||||||
| pair norm | ||||||
| pair norm | ||||||
| range | ||||||
| Method | K bits | KV-Retr. | LongDial.-QA | LongBook-Choice | LongBook-QA | LongBook-Sum | Avg. |
| (acc) | (acc) | (acc) | (F1) | (ROUGE-L-Sum) | |||
| FP16 | 16 | ||||||
| KIVI | 2.25 | ||||||
| ChanMix | 2.32 | ||||||
| Kitty | 2.39 | ||||||
| PN-Mix (1) | 2.26 |
| Len. | Method | S1 | S2 | S3 | MK1 | MK2 | MK3 | MV | MQ | FWE | CWE | QA1 | QA2 | VT | Avg. |
| 16K | FP16 | 100.0 | 100.0 | 100.0 | 99.5 | 100.0 | 100.0 | 100.0 | 99.4 | 95.2 | 86.6 | 70.8 | 57.5 | 99.8 | 92.98 |
| KIVI | 100.0 | 99.5 | 93.5 | 99.5 | 96.5 | 69.0 | 95.2 | 95.4 | 93.0 | 84.7 | 71.5 | 54.5 | 95.2 | 88.26 | |
| ChanMix | 100.0 | 99.5 | 99.0 | 99.0 | 99.0 | 97.5 | 97.2 | 97.5 | 92.7 | 87.7 | 70.8 | 56.5 | 98.7 | 91.93 | |
| Kitty | 100.0 | 100.0 | 99.5 | 99.5 | 98.5 | 95.0 | 99.4 | 98.5 | 94.3 | 87.1 | 72.8 | 54.5 | 98.1 | 92.09 | |
| PN-Mix (1) | 100.0 | 100.0 | 100.0 | 100.0 | 100.0 | 99.0 | 100.0 | 99.4 | 95.7 | 85.0 | 72.6 | 56.5 | 99.4 | 92.89 | |
| PN-Mix (2) | 100.0 | 100.0 | 100.0 | 99.5 | 99.5 | 100.0 | 99.9 | 99.1 | 95.0 | 82.2 | 72.1 | 56.5 | 99.4 | 92.55 |
| Configuration | Avg key bit | AIME24 | |
| Qwen3-8B | R1-Llama-8B | ||
| Full (FP16) | 16.00 | ||
| KIVI | |||
| 3.00 | |||
| 2.50 | |||
| 2.25 | |||
KV-Cache Quantization
Key-value cache quantization compresses transformer attention state to reduce memory use and bandwidth during long-context inference.
See all 101 papers