XQuant: Achieving Ultra-Low Bit KV Cache Quantization with Cross-Layer Compression

Howard H. Yang, Yao Yao, Zuchao Li, Baoyuan Qi, Guoming Liu, Hai Zhao

Abstract

Large Language Models (LLMs) have demonstrated remarkable capabilities across diverse natural language processing tasks. However, their extensive memory requirements, particularly due to KV cache growth during long-text understanding and generation, present significant challenges for deployment in resource-constrained environments. Quantization has emerged as a promising solution to reduce memory consumption while preserving historical information. We propose XQuant, a training-free and plug-and-play framework that achieves ultra-low equivalent bit-width KV cache quantization. XQuant introduces two key innovations: a computationally negligible data-free calibration method and cross-layer KV cache compression, enabling quantization to sub-1.4 bits. Extensive experiments on TruthfulQA and LongBench demonstrate that XQuant outperforms state-of-the-art methods (e.g., KIVI-2bit and AsymKV-1.5bit) by achieving lower bit-width while maintaining superior performance, establishing a better trade-off between memory efficiency and model accuracy.

Introduction

As Large Language Models (LLMs) scale to handle increasingly long contexts, the memory footprint of the Key-Value (KV) cache becomes a critical bottleneck. To avoid redundant computation, LLMs store previous keys and values, but this cache grows linearly with sequence length. For high-parameter models, a single long conversation can consume hundreds of gigabytes of GPU memory, far exceeding standard hardware capacities. While quantization to 4-bit or 8-bit is common, model performance typically degrades sharply below 2 bits. XQuant addresses this "2-bit wall" through a training-free, plug-and-play framework that pushes quantization to an equivalent width of sub-1.4 bits without requiring external calibration data.

Methodology

XQuant's efficiency stems from two primary architectural innovations designed to minimize reconstruction error and exploit inter-layer redundancy.

1. Data-Free Calibration

Standard quantization often suffers from high error when mapping continuous values to discrete integers. XQuant introduces a calibration parameter ($\eta$) that asymmetrically adjusts representative values to better fit the actual data distribution. Unlike traditional methods that require calibration datasets, XQuant calculates these parameters mathematically based on weight distributions. This approach maintains high hardware compatibility while significantly lowering quantization error.

Comparison of standard quantization, relaxed-constraint quantization, and XQuant's calibration method.

2. Cross-Layer KV Cache Compression

The researchers identified a high degree of similarity (over 80%) between the quantized KV caches of adjacent layers. XQuant exploits this by forcing adjacent layers to share a single set of quantized integers ($X_Q$). To preserve the unique nuances of each layer, XQuant retains layer-specific metadata—scaling factors and zero-points. This "shared bulk, unique metadata" strategy allows the model to achieve an equivalent bit-width lower than the actual precision of the stored integers.

The XQuant workflow showing how quantized caches are shared between adjacent layers to achieve speedup and compression.

Key Results and Evaluation

XQuant was evaluated across several benchmarks, including TruthfulQA for general reasoning and LongBench for long-context understanding (e.g., multi-hop reasoning and summarization).

  • Ultra-Low Bit-Width: XQuant achieves an equivalent bit-width of 1.38 to 1.4 bits, surpassing state-of-the-art baselines like KIVI (2-bit) and AsymKV (1.5-bit).
  • Accuracy Preservation: On TruthfulQA, XQuant (1.38-bit) outperformed the full 16-bit cache baseline on Mistral-7B (34.93 vs 32.09), suggesting a beneficial regularization effect.
  • Long-Context Performance: In the LongBench suite, XQuant consistently maintained higher scores than its 1.5-bit and 2-bit competitors while utilizing less memory.
  • Efficiency: By skipping parts of the quantization process for subordinate layers in a shared group, XQuant achieved a measurable inference speedup, approximately 14% faster than KIVI in tested scenarios.

Conclusion

XQuant represents a significant step forward in making long-context LLMs accessible on consumer-grade hardware. By combining mathematically optimized calibration with cross-layer compression, it breaks the 2-bit quantization barrier without the need for expensive retraining or calibration data. Future work will focus on automated hyperparameter tuning and scaling these techniques to models exceeding 70 billion parameters.

Summary updated

BibTeX
@misc{yang2025xquant,
  author = {Howard H. Yang and Yao Yao and Zuchao Li and Baoyuan Qi and Guoming Liu and Hai Zhao},
  title = {{XQuant: Achieving Ultra-Low Bit KV Cache Quantization with Cross-Layer Compression}},
  year = {2025},
  eprint = {2510.11236},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.11236},
}
Figure