# RankVQ: Low-Rank Parameterized Commutative Vector Quantization for KV Cache Compression

*Jianglin Zhou, Huaming Wu, Huijun Tang*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/148642) · [OpenReview](https://openreview.net/forum?id=wBu1wjG1xm) · [Open on the map](../papers.html#p148642)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Low-Precision LLM Inference](../pgroup/142.md) · Type: new method · Keywords: low-rank vector quantization, KV cache compression, commutative VQ, RoPE-aware attention, LLM inference efficiency

Areas: [Long Context](../areas/longcontext.md) › Long-context mechanisms › KV cache eviction

## Summary
RankVQ introduces a low-rank parameterized commutative vector quantization method that compresses KV cache by factorizing scalar coefficient matrices, preserving RoPE commutativity and improving compression efficiency.

## Explained to a 5-year-old
Big language models need to remember everything they have seen before. This remembering is stored in something called the key-value cache, which can become very large. To help the model use less memory, the researchers came up with a new idea. They looked at how numbers are used to store the memory and found a way to make those numbers simpler. Instead of using many separate numbers, they grouped the numbers together in a smarter shape. This grouping keeps a special property that makes the model work correctly with its position information.

## Explained to a 5-year-old, longer
When you talk to a big language model, it has to remember everything it has seen before. This remembering is stored in something called the key-value cache, which can become very large. To help the model use less memory, the researchers came up with a new idea. They looked at how numbers are used to store the memory and found a way to make those numbers simpler. Instead of using many separate numbers, they grouped the numbers together in a smarter shape. This grouping keeps a special property that makes the model work correctly with its position information. After they finished making the new storage method, they threw away the extra grouping details. This means the model can still use the new storage the same way as before, without any extra steps. The new method works especially well when the memory is compressed a lot, like when only one bit is used for each piece of information. Tests on several tasks showed that the model still gives good answers while using much less memory. This helps the model run on smaller computers or devices that have limited space. Overall, the idea makes it possible to have powerful language models that need less computer memory.

## For a technical reader
RankVQ introduces a low-rank factorization of the scalar coefficient matrices that build key and value codebooks in commutative vector quantization. By factorizing these matrices instead of the codebooks themselves, the method preserves the pseudo-symmetric structure required for RoPE-aware attention while reducing the number of parameters needed offline. The low-rank factors are discarded after codebook construction, so online inference remains unchanged and incurs no extra decoding overhead. Evaluations on LongBench, InfiniteBench, and GSM8K demonstrate that RankVQ achieves better accuracy-compression trade-offs than existing KV quantization baselines, especially at 1-bit quantization. This approach enables more memory-efficient LLM inference without sacrificing performance, making it suitable for deployment on hardware with limited resources.

## Problem
Large language models require long context lengths, leading to high memory consumption from key-value caches during inference. Existing commutative vector quantization methods for KV cache compression do not fully exploit parameter redundancy, limiting compression quality.

## Method
The approach factorizes the scalar coefficient matrices that build key and value codebooks into low-rank components, preserving the pseudo-symmetric structure needed for RoPE commutativity while making codebook construction more compact. After constructing the codebooks, the low-rank factors are discarded, leaving the same online inference form as standard commutative VQ without extra decoding overhead.

## Results
The approach demonstrates superior accuracy-compression trade-offs compared to baseline KV quantization methods, especially achieving notable improvements at 1-bit quantization.

## Contributions
It introduces a low-rank factorization of scalar coefficient matrices for commutative VQ, preserving RoPE commutativity while improving codebook compactness, and shows that this yields better compression efficiency without extra decoding cost.

## Practical relevance
This method enables more efficient LLM inference on resource-constrained hardware by significantly reducing KV cache memory usage while maintaining performance.

## Research questions this paper is counted under

- [How can we compress or evict key-value cache entries to reduce memory usage without degrading LLM performance?](../q/21.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/148642)
