InQuant: In-Place Mixed-Precision KV Cache Quantization via Saliency-Aware Neighbor-Slot Reuse
Zihan Chang, Shuibing He, Bo Zhou, Ping Chen, Siling Yang
NeurIPS page · Open on the map
Category: Efficient LLM Inference & Training › Low-Precision LLM Inference · Type: new method · Keywords: KV cache quantization, outlier-aware mixed-precision, saliency estimation, LLM inference efficiency, in-place compression
Areas: Memory › Model Memory Optimization › KV Cache Optimization
Summary
InQuant is an in-place mixed-precision KV-cache quantization method that reuses low-saliency neighbor slots to store outlier values, achieving a fixed 4.0× compression ratio and 2.2×-3.4× speedup over prior outlier-aware methods.
Explained to a 5-year-old
Large language models need to remember a lot of information while talking. To save memory, the remembered information is made smaller using a special trick. Some parts of the information are very important and need more space. The trick finds unimportant nearby parts and uses their space to store the important parts. This makes the model use less memory and run faster without losing accuracy.
Explained to a 5-year-old, longer
When a big computer talks like a person, it has to keep a lot of memory to remember what it said before. This memory is called a key-value cache, and it can become very big. To make the computer use less memory, we shrink the numbers that store this information. Sometimes some numbers are much bigger than the others, and they are called outliers. If we just shrink everything the same way, those big numbers can cause problems. Other methods try to give the big numbers more space, but that needs extra memory for extra information. The new idea finds which numbers are not very important and are next to the big numbers. It uses the space that would have been wasted for those unimportant numbers to store the big numbers instead. This way, the total amount of memory stays the same, but the important information is kept safe. The method also handles groups of big numbers that are close together, so they fit nicely. During use, the computer knows where the big numbers are stored and can retrieve them quickly. As a result, the computer uses less memory and runs faster while still giving good answers.
For a technical reader
Large language models store key-value pairs during inference to speed up generation, but this cache grows with context length and batch size. Quantizing the cache to low-bit formats reduces memory, yet uniform quantization struggles with outlier channels that can dominate the dynamic range. Existing mixed-precision schemes allocate extra buffers or permute channels to handle outliers, which erodes the memory savings. The proposed solution estimates channel saliency, reuses low-saliency neighbor slots to hold outlier values, and uses stride-based handling and marker recovery to keep the layout unchanged. This yields a consistent 4× compression, preserves accuracy, and cuts quantization/dequantization latency by 2.2-3.4× compared to prior outlier-aware methods.
Problem
Large language model inference requires storing key-value caches, which consume memory proportional to context length and batch size. Quantizing these caches reduces memory, but uniform quantization suffers from outlier channels, while existing mixed-precision approaches add overhead that offsets their benefits.
Method
It first samples channels to estimate saliency, then reuses low-saliency neighbor slots to store outlier values, and finally uses stride-based handling for adjacent outlier groups and descriptor-guided marker recovery during dequantization.
Results
The approach achieves a fixed 4.0× physical KV-cache compression ratio, maintains accuracy comparable to strong mixed-precision baselines, and reduces quantization/dequantization latency by 2.2×-3.4× compared to representative outlier-aware methods.
Contributions
It introduces an in-place mixed-precision quantization scheme that reuses neighbor slots for outlier values, a saliency-aware channel selection method, and stride-based handling of adjacent outliers with marker recovery, all without altering the physical layout.
Practical relevance
This method enables more scalable long-context LLM deployment on limited memory hardware by providing high compression and speed without extra buffers.
Research questions this paper is counted under
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