MultiAlloc: Budget-Aware Precision Allocation for KV Cache Quantization
Yangchengyu Zhou, Zhiping Wu, Runchang Jiang, Dongdong Ren, Youfang Han, Wei Zhao, Dongqi Cai, Wenbin Li
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.
Create a lesson
Related papers
In-Context Batch Black-box Optimization via Flow Matching
Quoc-Anh Hoang Nguyen, Xinyu Zhang, Daolang Huang et al.
Seeing at the Edge: Energy Characterization of Vision-Language Model Inference on Edge Platforms
Junlin Liao, Harshit Kondle, Di Liu et al.
A Bregman Proximal Viewpoint on Neural Operators
Abdel-Rahim Mezidi, Jordan Patracone, Saverio Salzo et al.
KANLab: TensorFlow Playground for Kolmogorov-Arnold Networks
Lukas Niehaus, Robin Rawiel, Ulf Krumnack
From Spectral to Frobenius: When Muon Loses Its Spectral Implicit Bias
Yongtao Wu, Mahdi Mansouri, Zhenyu Zhu
Exhaustive Canonical Skeletons Generation: A Formal Dataset for Decomposable Symbolic Regression
Giorgio Morales, Anikó Ekárt