MultiAlloc: Budget-Aware Precision Allocation for KV Cache Quantization
Organizations: Nanjing University · The Hong Kong University of Science and Technology · Geely · Goertek
Abstract
The Key-Value (KV) cache constitutes a dominant source of memory consumption during large language model (LLM) inference, particularly in long-context and complex reasoning scenarios. Existing KV cache quantization methods have explored different compression granularities, including layer-wise precision adjustment and token-level information preservation. In practical deployment, however, the key challenge is not merely compression, but how to allocate limited quantization resources among heterogeneous precision preservation strategies under a fixed KV cache memory budget. We propose MultiAlloc, a profiling-guided precision allocation framework for KV cache quantization that adaptively distributes limited quantization resources between layer-wise precision enhancement and token-wise preservation. MultiAlloc employs lightweight offline profiling to characterize layer sensitivity and token importance, enabling adaptive precision allocation under a fixed memory constraint. Guided by the profiled memory--accuracy trade-off, it automatically derives an effective precision allocation strategy without online allocation search, and applies the resulting policy during inference. Extensive experiments on reasoning and long-context benchmarks demonstrate that MultiAlloc consistently improves over layer-wise, token-wise, and recent multi-granularity KV cache quantization methods under matched memory budgets across diverse models, including Mistral, Llama, DeepSeek-Qwen, and QwQ.
Figures & tables
| Model | Method | KV Budget | GPQA | GSM8K | LongBench-v2 | Avg |
| Llama-3-8B-Instruct | FP16 | 1024 MB | 32.83 | 80.89 | 24.79 | 46.17 |
| OTT (ACL 2025) | 423 MB | 32.83 | 76.95 | 23.14 | 44.31 | |
| PM-KVQ (ICLR 2026) | 423 MB | 30.30 | 79.98 | 24.56 | 44.95 | |
| KVmix (AAAI 2026) | 423 MB | 32.83 | 74.83 | 26.94 | 44.87 | |
| MultiAlloc (Ours) | 423 MB | 32.83 | 80.36 | 25.85 | 46.35 | |
| Mistral-7B-Instruct | FP16 | 1024 MB | 27.27 | 48.75 | 24.78 | 33.60 |
| Variant | Layer alloc. | Token presv. | LongBench-v2 |
| Layer-only | 25.58 | ||
| Token-only | 24.88 | ||
| MultiAlloc (Ours) | 25.85 |
| Allocation strategy | GSM8K | LongBench-v2 |
| Manual Split (65/35) | 80.29 | 25.59 |
| Manual Split (50/50) | 77.79 | 25.83 |
| Manual Split (35/65) | 77.41 | 25.56 |
| MultiAlloc (Profiled) | 80.36 | 25.85 |
| Method / Budget | ||||
| Llama-3-8B-Instruct (FP16: 80.89) | ||||
| Budget (MB) | 283 | 383 | 423 | 463 |
| OTT | 76.88 | 77.56 | 76.95 | 78.09 |
| PM-KVQ | 58.83 | 79.00 | 79.98 | 78.62 |
| KVmix | 75.13 | 74.07 | 74.83 | 75.21 |
| MultiAlloc (Ours) | 77.33 | 79.15 | 80.36 | 80.29 |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
KV-Cache Quantization
Key-value cache quantization compresses transformer attention state to reduce memory use and bandwidth during long-context inference.
See all 100 papers