arXiv:2610.18642cs.LGOct 2026

Manuscript Offprint

arXiv:2610.18642

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 tradeoff, 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 multigranularity KV cache quantization methods under matched memory budgets across diverse models, including Mistral, Llama, DeepSeek-Qwen, and QwQ.

1 Introduction

As large language models (LLMs) become increasingly integral to long-context reasoning, com-

Figure

Figure 1: Motivation for budget-aware precision allocation under a fixed KV cache budget. Different layers exhibit heterogeneous demands for layer precision enhancement and token preservation. Existing layer-wise and token-wise methods optimize individual preservation strategies, while MultiAlloc profiles these demands and allocates the shared memory budget across preservation strategies.

plex question answering, and multi-step planning, their growing inference-time memory footprint has emerged as a critical bottleneck to practical deployment (Xiao et al., 2024; Kwon et al., 2023; Liu et al., 2026). In long-sequence generation, the Key-Value (KV) cache constitutes a dominant source of GPU memory consumption, making efficient KV cache compression a central challenge for scalable and cost-effective LLM inference (Zhang et al., 2026; Wang et al., 2026).

Recent studies on KV cache quantization have developed increasingly targeted strategies to reduce memory overhead while preserving model accuracy. KIVI (Liu et al., 2024) introduces asymmetric low-bit quantization by applying channel-level quantization to keys and token-level quantization to values, substantially reducing KV cache memory consumption. Subsequent token-oriented methods further improve this direction, with ZipCache (He

∗^{*}Equal contribution.

†^{\dagger}Corresponding author: liwenbin@nju.edu.cn.

et al., 2024) identifying salient tokens and OTT (Su et al., 2025) tracing and preserving outlier tokens at higher precision to reduce token quantization errors. However, these methods largely overlook the heterogeneous sensitivity of different layers. In contrast, KVTuner (Li et al., 2025) and PM-KVQ (Liu et al., 2026) allocate mixed precision according to layer or block sensitivity, thereby reducing quantization errors caused by layer heterogeneity. Nevertheless, they generally apply uniform token treatment within each layer and do not explicitly preserve token-level heterogeneity. Recent multi-granularity methods, such as KVmix (Li et al., 2026), further explore the joint adaptation of layer-wise precision and token-level preservation by incorporating layer importance and pivotal context selection. However, their token-level adaptation mainly focuses on context selection rather than precision allocation based on heterogeneous token importance.

Motivated by these observations, we formulate KV cache quantization as a precision allocation problem under a fixed memory budget. We propose MultiAlloc, a profiling-guided precision allocation framework that characterizes heterogeneous precision demands across layers and tokens. Specifically, MultiAlloc employs layer-wise sensitivity profiling to estimate the precision requirements of different layers, while token-wise importance profiling identifies tokens that benefit from high-precision preservation. Based on these complementary profiling signals, MultiAlloc adaptively determines the allocation of limited quantization resources between layer-wise precision enhancement and token-wise high-precision preservation. All allocation decisions are derived offline and applied as a static inference-time policy, eliminating online allocation search during inference.

We conduct extensive experiments on reasoning and long-context benchmarks, including GSM8K, GPQA, and LongBench-v2, using models ranging from 7B to 32B parameters, including Llama3-8B-Instruct (Grattafori et al., 2024), Mistral7B-Instruct-v0.3 (Jiang et al., 2023), DeepSeek-R1-Distill-Qwen-7B/14B (DeepSeek-AI, 2025), and QwQ-32B (Qwen Team, 2025). The results demonstrate that MultiAlloc consistently outperforms representative layer-wise, token-wise, and importance-based KV cache quantization methods under matched KV cache memory budgets, with robust improvements across different model scales and both reasoning and long-context tasks.

Our contributions are summarized as follows:

• We reveal heterogeneous precision demands across layers and tokens in KV cache quantization, motivating precision allocation under a fixed KV cache memory budget.

• We propose MultiAlloc, a profiling-guided precision allocation framework that models layer-wise sensitivity and token importance to adaptively allocate limited quantization resources between layer precision enhancement and token preservation.

• Extensive experiments across diverse models and reasoning and long-context benchmarks demonstrate that MultiAlloc consistently outperforms representative layer-wise, token-wise, and importance-based KV cache quantization methods under matched KV cache memory budgets.

References (47)