atlas

Research map / Architectures and efficiency / Quantization

KVTuner: Sensitivity-Aware Layer-Wise Mixed-Precision KV Cache Quantization for Efficient and Nearly Lossless LLM Inference

ICML 2025 · Architectures and efficiency › Quantization · approach: KV cache quantization · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes KVTuner, an offline search for layer-wise mixed key/value KV cache quantization precision pairs (e.g., K8V4, K4V2) using multi-objective optimization with search-space pruning, achieving near-lossless ~3.25–4-bit KV cache on reasoning tasks.

Problem

Low-bit KV cache quantization degrades LLM accuracy, especially in sensitive layers and for certain models (e.g., Qwen2.5-7B-Instruct), while fine-grained online mixed-precision methods add overhead and are hard to deploy on static-graph/flash-attention kernels.

Approach

Quantize key and value caches of each layer at different precisions, with keys prioritized, and search per-layer precision pairs offline via multi-objective optimization (Optuna/MOEA-D), using intra-layer Pareto pruning and inter-layer clustering to shrink the search space; the resulting static configuration adds no online overhead.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use layer-wise mixed-precision KV quantization instead of uniform KV8KVTuner with KIVI · Llama-3.1-8B-Instruct throughput, batch size 64 and input length 128tokens/s: 3836 -> 4652 (+21.25%)Helped
Use layer-wise mixed-precision KV quantization at 3.25-bitLlama-3.1-8B-Instruct · GSM8K few-shot CoT and multiturn averageaccuracy: 0.8033 -> 0.7925No clear effect
Use KVTuner mixed precision instead of uniform KV4Qwen2.5-7B-Instruct · LongBench 20-dataset averagescore: 0.6343 -> 0.7960Helped
Reduce key precision from 4-bit to 2-bit in a sensitive layer groupLlama-3.1-8B-Instruct · GSM8K calibrationaccuracy: 0.67 -> 0.495Hurt
Prioritize key precision over value precision at matched memory useKV cache quantization · Llama-3.1-8B-Instruct, GSM8Krelative attention output error: K4V2: 0.453; K2V4: 0.892Helped
Use per-channel-asym rather than per-token-asym quantization for keysLlama-3.1-8B-Instruct · GSM8K zero-shot calibrationrelative key error: 0.012280 -> 0.004869Helped
Reduce uniform KV precision from 8-bit to 4-bitQwen2.5-7B-Instruct with per-token-asym quantization · GSM8K few-shot CoT and multiturn averageaccuracy: 0.7712 -> 0.0078Hurt
Disable intra-layer and inter-layer search-space pruning (ablation)KVTuner search · Llama-3.1-8B-Instruct, GSM8K 4-shotsearch convergence and quantization performanceHurt
Use KIVI-2 instead of KIVI-8Llama-3.1-8B-Instruct · GSM8K few-shot CoT and multiturn averageaccuracy: 0.8033 -> 0.6327Hurt

Surprising findings

Limitations

Experimental setup

Datasets: GSM8K (first 200 4-shot prompts for search calibration) first 20 zero-shot GSM8K prompts for intra-layer pruning wikitext

Benchmarks: GSM8K GPQA Extended LongBench CEVAL MMLU TriviaQA RACE TruthfulQA wikitext word perplexity

Metrics: accuracy word perplexity equivalent precision (bits) decoding throughput (tokens/s)

Baselines: KIVI-8 KIVI-4 KIVI-2 per-token-asym KV8 per-token-asym KV4 per-token-asym KV2 K8V4 K4V2

Builds on: KIVI Optuna MOEA/D lm-evaluation-harness

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy