atlas

Research map / Architectures and efficiency / Quantization

CommVQ: Commutative Vector Quantization for KV Cache Compression

ICML 2025 · Architectures and efficiency › Quantization · approach: KV cache quantization

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 CommVQ, a vector quantization method for KV cache compression whose key codebook is commutative with RoPE, enabling 1–2 bit KV caches for long-context LLMs with reduced decoding overhead.

Problem

The KV cache becomes a GPU memory bottleneck for long-context LLM inference, and existing scalar quantization methods severely degrade accuracy at 2-bit and 1-bit, while vector-quantization decoding adds large computational overhead.

Approach

Quantize each key/value vector as a whole using additive quantization with a learned encoder and codebook, and design the key codebook to commute with the RoPE rotation matrices so that query-codebook products can be precomputed and reused across tokens during attention.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use 2-bit CommVQ instead of FP16 KV cacheLLaMA-3.1-8B-Instruct · LongBenchAverage: 48.05 -> 47.98No clear effect
Use CommVQ-2 instead of KIVI-2LLaMA-3.1-8B-Instruct · LongBenchAverage: 47.62 -> 47.98Helped
Use CommVQ-1 instead of VQLLM-1LLaMA-3.1-8B-Instruct · LongBenchAverage: 27.42 -> 44.94Helped
Use CommVQ-2 instead of FP16 KV cacheLLaMA-3.1-8B-Instruct · InfiniteBenchAverage: 48.67 -> 42.75Hurt
Use CommVQ-1 instead of VQLLM-1LLaMA-3.1-8B-Instruct · InfiniteBenchAverage: 18.48 -> 36.76Helped
Use CommVQ-2 instead of FP16 KV cacheLLaMA-3.1-8B-Instruct · GSM8KExact match accuracy: 76.27 -> 76.04No clear effect
Use CommVQ-1 instead of VQLLM-1LLaMA-3.1-8B-Instruct · GSM8KExact match accuracy: 1.67 -> 66.57Helped
Increase g while holding average quantization bit constant (R=1) (ablation)CommVQ key-cache quantization · FineWeb-Edu first-layer key cacheMSE: 0.2699 -> 0.0906Helped
Increase g and R while maintaining 1-bit quantization (ablation)CommVQ key-cache quantization · FineWeb-Edu first-layer key cacheMSE: 0.0798 -> 0.0095Helped
Increase R while holding g and N_c' unchanged (ablation)CommVQ key-cache quantization · FineWeb-Edu first-layer key cacheMSEHelped
Use additive CommVQ rather than asymmetric quantizationLLaMA-3.1-8B-Instruct value-cache quantization · FineWeb-Edu first-layer value cache at 1 bitMSE: 0.00380 -> 0.00027Helped
Use optimized commutative-codebook implementation instead of naive implementationCommVQ inference · 8K contextLatency (ms): 2.4 -> 0.4Helped

Surprising findings

Limitations

Experimental setup

Datasets: FineWeb-Edu

Benchmarks: LongBench InfiniteBench GSM8K Needle-in-a-Haystack RepoBench-P

Metrics: average score accuracy Avg. bit perplexity latency MSE

Baselines: KIVI KVQuant VQLLM asymmetric quantization

Builds on: KIVI KVQuant VQLLM additive quantization product quantization Gumbel-softmax

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