InQuant: In-Place Mixed-Precision KV Cache Quantization via Saliency-Aware Neighbor-Slot Reuse

Zihan Chang, Shuibing He, Bo Zhou, Ping Chen, Siling YangNeurIPS 2026

TL;DR

Compressing a Large Language Model’s working memory (its KV cache) usually forces an ugly compromise: crush everything down to 4 bits and destroy model accuracy due to extreme "outlier" values, or save those outliers in separate 8-bit buffers and suffer massive latency penalties from shuffling data around on the GPU. InQuant resolves this by keeping the memory layout strictly 4-bit and in-place—it simply borrows neighboring low-importance memory slots to store the extra bits needed for high-precision outliers. The result is a clean 4.0× memory compression ratio that preserves accuracy while running up to 3.4× faster than existing mixed-precision methods.

What Problem Does This Paper Address?

When an LLM generates text, it stores previously computed attention states in a Key-Value (KV) cache so it doesn't have to recompute the entire prompt for every new word. As prompts stretch into tens of thousands of tokens, this cache balloons linearly, quickly becoming the primary memory bottleneck on GPUs.

Quantization—shrinking 16-bit numbers down to 4-bit integers—is the standard fix. However, LLM activations are notorious for having outlier channels: specific feature dimensions with massive numerical magnitudes. If you apply uniform 4-bit quantization across the board, those outliers stretch the quantization scale so wide that normal values get rounded into mush, tanking accuracy.

To prevent this, mixed-precision methods keep outliers at 8 bits and normal channels at 4 bits. While mathematically sound, it is a systems-engineering headache. Separating outliers into secondary buffers or permuting (rearranging) channels into contiguous blocks requires constant indexing and memory copying. In fact, the authors show that existing methods spend 47% to 60% of their quantization time just moving data around, eroding the actual speedups of compression.

Data movement overhead in existing mixed-precision quantization methods

Methods

InQuant achieves 8-bit outlier precision inside a rigid, hardware-friendly 4-bit physical array without moving channels out of place. Instead of standard outlier separation or permutation, it introduces four tightly coordinated mechanisms:

Figure 1: KV-cache quantization strategies. In- Quant reuses neighboring low-impact storage for high-precision outlier representation.
  1. Sampling-Based Saliency Estimation: Scanning the entire KV cache to find outliers is too slow. Because outlier behavior is consistent along a channel, InQuant uniformly samples just 1 out of every 8 tokens to compute channel L1-norms, fusing this into a single CUDA kernel to flag the top 20% most salient channels for 8-bit precision.
  2. Saliency-Aware Neighbor-Slot Reuse: Every channel gets a 4-bit physical slot. An 8-bit outlier splits into two 4-bit halves ("nibbles"): one stays home, and the extra nibble overwrites an adjacent normal channel's 4-bit slot.
  3. Stride-Based Search for Adjacent Outliers: What if two or three outlier channels sit right next to each other? Overwriting an immediate neighbor would destroy another outlier! InQuant solves this by stepping forward by a fixed stride (equal to the size of the outlier cluster) to find safe, low-saliency slots nearby.
  4. Descriptor-Guided Recovery & Padding: During dequantization, compact group descriptors and lightweight boundary markers tell the GPU how to stitch the two 4-bit nibbles back into an 8-bit outlier. Meanwhile, the overwritten "sacrificed" neighbor isn't left as zero—it is reconstructed via padding statistics gathered during the token-sampling phase.
Figure 4: (a) In-place quantization for non-adjacent outlier channels using neighbor-slot reuse. (b) Marker-based dequantization for non-adjacent outlier channels, where reused low-saliency channels are restored using sampling-based padding from the subset S. (c) Stride-based reusable-slot search strategy for handling adjacent outlier channels. (d) Marker-based dequantization for adjacent outlier channels.

Datasets

Because InQuant is a training-free, online inference compression method, datasets are used strictly for evaluation across six LLMs (GPT-2 1.3B, LLaMA2-7B/13B, LLaMA3-8B, Qwen2.5-7B, and Mistral-7B). No new benchmarks are introduced; instead, the authors test across a comprehensive suite of existing ones:

  • General Knowledge & Reasoning: MMLU (57-task knowledge suite), GSM8K (grade-school math), and AIME 2026 (competition-level math reasoning).
  • Long-Context Understanding & Retrieval: LongBench (specifically Qasper, TriviaQA, HotpotQA, MultiFieldQA, GovReport, and NarrativeQA), Needle-in-a-Haystack (32K context), and RULER v1 (13 synthetic retrieval/tracking tasks from 8K to 32K tokens).

Key Insights and Ideas

  • Not all neighbors are missed equally: In a clever sensitivity test, the authors completely zeroed out 20% of channels across different categories. Zeroing out outlier channels caused massive accuracy drops (over 10% on 16K contexts), whereas zeroing out the normal channels immediately next to outliers caused almost zero degradation—behaving identically to the globally least-important channels. This proves you can safely cannibalize neighboring slots to protect outliers.
  • Approximation beats fragmentation: By intentionally overwriting and approximating 20% of low-saliency slots rather than allocating extra memory for 8-bit outliers, InQuant guarantees a strict 4.0× physical memory compression, whereas lossless mixed-precision layouts like ZipCache and COMET only achieve ~2.31×–2.47× compression due to extra buffers and metadata.
  • Sampling is remarkably faithful: Checking just 12.5% of tokens (r = 1/8) achieves a Spearman rank correlation above 0.98 compared to scanning the entire KV cache, making online outlier detection practically free.

Key Results

  • Speedups: Across tested models, InQuant slashes quantization and dequantization (Q/DQ) latency by 2.2× to 3.4× over strong mixed-precision baselines. On LLaMA3-8B, quantization drops from 376.3 ms (ZipCache) and 263.8 ms (COMET) down to 96.5 ms.
  • Standard Accuracy: On LLaMA3-8B, InQuant hits 61.8% on MMLU and 52.4% on GSM8K at 4.0× compression—virtually matching ZipCache (62.2% / 52.4% at 2.47× compression) and vastly outperforming uniform INT4 (which drops nearly 6 points on Mistral-7B MMLU).
  • Long-Context Dominance: On Qwen2.5-7B-Instruct evaluated on the 32K RULER benchmark, InQuant scores 88.03 (trailing uncompressed BF16 by just 1.69 points) while cutting persistent KV storage by 78.21%. Under similar memory budgets at 32K context, ZipCache collapses to 37.90.

Limitations and Future Work

  • Intentional Information Loss: InQuant is not lossless for low-saliency channels; it relies on the assumption that approximating a fraction of quiet KV entries won't hurt attention outputs.
  • Custom Kernel Dependency: Achieving these speedups requires specialized, descriptor-aware CUDA kernels rather than off-the-shelf matrix routines.
  • Scale and Sub-4-Bit Formats: The authors validated models up to 13B parameters and 32K context lengths on NVIDIA A100 GPUs. Scaling to frontier-sized models (70B+), testing newer GPU architectures, and combining this in-place slot-reuse trick with ultra-low-bit formats (like 2-bit quantization in KIVI or KVQuant) remain open directions for future work.

Summary updated

Abstract

Key-value (KV) caches are essential for efficient Large Language Model (LLM) inference, but their memory footprint grows linearly with context length and batch size. Low-bit KV-cache quantization reduces this footprint, yet uniform quantization is vulnerable to high-magnitude outlier channels, while outlier-aware mixed-precision methods often introduce extra buffers, indexing, or channel permutation that weakens their system-level benefit. This paper presents InQuant, an in-place mixed-precision KV-cache quantization method that preserves salient outlier channels without changing the physical 4-bit packed layout. The key observation is that selected low-saliency channels near outliers can tolerate small approximation error; InQuant therefore reuses their storage slots to hold the extra 4-bit nibble needed by 8-bit outlier values. To make this layout practical, InQuant combines sampling-based channel saliency estimation, saliency-aware neighbor-slot reuse, stride-based handling for adjacent outlier groups, and descriptor-guided marker recovery during dequantization. Across six LLMs and long-context workloads, InQuant reaches a fixed 4.0$\times$ physical KV-cache compression ratio, preserves accuracy close to strong mixed-precision baselines, and reduces quantization/dequantization latency by 2.2$\times$--3.4$\times$ compared with representative outlier-aware methods.
BibTeX
@inproceedings{chang2026inquant,
  author = {Zihan Chang and Shuibing He and Bo Zhou and Ping Chen and Siling Yang},
  title = {{InQuant: In-Place Mixed-Precision KV Cache Quantization via Saliency-Aware Neighbor-Slot Reuse}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=2qVEX3Ujtr},
}
Figure