MixKVQ: Query-Aware Mixed-Precision KV Cache Quantization for Long-Context Reasoning
About
Long Chain-of-Thought (CoT) reasoning has significantly advanced the capabilities of Large Language Models (LLMs), but this progress is accompanied by substantial memory and latency overhead from the extensive Key-Value (KV) cache. Although KV cache quantization is a promising compression technique, existing low-bit quantization methods often exhibit severe performance degradation on complex reasoning tasks. Fixed-precision quantization struggles to handle outlier channels in the key cache, while current mixed-precision strategies fail to accurately identify components requiring high-precision representation. We find that an effective low-bit KV cache quantization strategy must consider two factors: a key channel's intrinsic quantization difficulty and its relevance to the query. Based on this insight, we propose MixKVQ, a novel plug-and-play method that introduces a lightweight, query-aware algorithm to identify and preserve critical key channels that need higher precision, while applying per-token quantization for value cache. Experiments on complex reasoning datasets demonstrate that our approach significantly outperforms existing low-bit methods, achieving performance comparable to a full-precision baseline at a substantially reduced memory footprint.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Mathematical Reasoning | MATH 500 | -- | 106 | |
| Long-context Understanding | LongBench (test) | Avg Score53.71 | 80 | |
| Question Answering | GPQA Diamond | Pass@145.45 | 49 | |
| Code Generation | LiveCodeBench | Pass@120.33 | 37 | |
| Mathematical Reasoning | AIME 2024, 2025 | Accuracy (pass@1)65 | 24 | |
| Mathematical Reasoning | MATH 500 | Accuracy (pass@1)94 | 24 | |
| Code Generation | LiveCodeBench Jan-Apr 2025 | Accuracy (pass@1)45.05 | 24 | |
| Scientific Reasoning | GPQA Diamond | Accuracy (pass@1)60.1 | 24 | |
| Mathematical Reasoning | AIME 2024, 2025 | Accuracy (pass@1)40 | 8 |