paper-with-me

홈 › Papers

XQuant: Breaking the Memory Wall for LLM Inference with KV Cache Rematerialization

2025-08-14 · Aditya Tomar, Coleman Hooper, Minjae Lee, Haocheng Xi, Rishabh Tiwari, Wonjun Kang, Luca Manolache, Michael W. Mahoney, Kurt Keutzer, Amir Gholami arxiv

Although LLM inference has emerged as a critical workload for many downstream applications, efficiently inferring LLMs is challenging due to the substantial memory footprint and bandwidth requirements. In parallel, compute capabilities have steadily outpaced both memory capacity and bandwidth over the last few decades, a trend that remains evident in modern GPU hardware and exacerbates the challenge of LLM inference. As such, new algorithms are emerging that trade increased computation for reduced memory operations. To that end, we present XQuant, which takes advantage of this trend, enabling an order-of-magnitude reduction in memory consumption through low-bit quantization with substantial accuracy benefits relative to state-of-the-art KV cache quantization methods. We accomplish this by quantizing and caching the layer input activations X, instead of using standard KV caching, and then rematerializing the Keys and Values on-the-fly during inference. This results in an immediate 2$\times$ memory savings compared to KV caching. By applying XQuant, we achieve up to $\sim 7.7\times$ memory savings with $<0.1$ perplexity degradation compared to the FP16 baseline. Furthermore, our approach leverages the fact that X values are similar across layers. Building on this observation, we introduce XQuant-CL, which exploits the cross-layer similarity in the X embeddings for extreme compression. Across different models, XQuant-CL attains up to 10$\times$ memory savings relative to the FP16 baseline with only 0.01 perplexity degradation, and 12.5$\times$ memory savings with only $0.1$ perplexity degradation. XQuant exploits the rapidly increasing compute capabilities of hardware platforms to eliminate the memory bottleneck, while surpassing state-of-the-art KV cache quantization methods and achieving near-FP16 accuracy across a wide range of models.

📄 PDF Abstract BibTeX arXiv:2508.10395

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

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

2025-10-13 · Haoqi Yang, Yao Yao, Zuchao Li, Baoyuan Qi 외 arxiv

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 …

PrefixQuant: Eliminating Outliers by Prefixed Tokens for Large Language Models Quantization

2024-10-07 · Mengzhao Chen, Yi Liu, Jiahao Wang, Yi Bin 외

Existing weight-activation quantization methods for Large Language Models (LLMs) primarily address channel-wise outliers but often neglect token-wise outliers, which limits the accuracy of quantized models. In this work,…

Common Sense ReasoningQuantization

PRISM: Breaking the O(n) Memory Wall in Long-Context LLM Inference via O(1) Photonic Block Selection

2026-03-23 · Hyoseok Park, Yeonsang Park arxiv

Long-context LLM inference is bottlenecked not by compute but by the O(n) memory bandwidth cost of scanning the KV cache at every decode step -- a wall that no amount of arithmetic scaling can break. Recent photonic acce…

FlexQuant: Elastic Quantization Framework for Locally Hosted LLM on Edge Devices

2025-01-13 · Yuji Chai, Mujin Kwen, David Brooks, Gu-Yeon Wei

Deploying LLMs on edge devices presents serious technical challenges. Memory elasticity is crucial for edge devices with unified memory, where memory is shared and fluctuates dynamically. Existing solutions suffer from e…

Quantization

KVSwap: Disk-aware KV Cache Offloading for Long-Context On-device Inference

2025-11-14 · Huawei Zhang, Chunwei Xia, Zheng Wang arxiv

Language models (LMs) underpin emerging mobile and embedded AI applications like meeting and video summarization and document analysis, which often require processing multiple long-context inputs. Running an LM locally o…

Video Summarization