paper-with-me

Papers

WKVQuant: Quantizing Weight and Key/Value Cache for Large Language Models Gains More

2024-02-19 · Yuxuan Yue, Zhihang Yuan, Haojie Duanmu, Sifan Zhou, Jianlong Wu, Liqiang Nie

Large Language Models (LLMs) face significant deployment challenges due to their substantial memory requirements and the computational demands of auto-regressive text generation process. This paper addresses these challenges by focusing on the quantization of LLMs, a technique that reduces memory consumption by converting model parameters and activations into low-bit integers. We critically analyze the existing quantization approaches, identifying their limitations in balancing the accuracy and efficiency of the quantized LLMs. To advance beyond these limitations, we propose WKVQuant, a PTQ framework especially designed for quantizing weights and the key/value (KV) cache of LLMs. Specifically, we incorporates past-only quantization to improve the computation of attention. Additionally, we introduce two-dimensional quantization strategy to handle the distribution of KV cache, along with a cross-block reconstruction regularization for parameter optimization. Experiments show that WKVQuant achieves almost comparable memory savings to weight-activation quantization, while also approaching the performance of weight-only quantization.

📄 PDF Abstract BibTeX arXiv:2402.12065

Code (0)

등록된 구현이 없습니다.

Tasks

QuantizationText Generation

Similar Papers 제목 키워드 기반

KVLinC : KV Cache Quantization with Hadamard Rotation and Linear Correction

2025-10-06 · Utkarsh Saxena, Kaushik Roy arxiv

Quantizing the key-value (KV) cache is a promising strategy for improving the inference efficiency of large language models (LLMs). However, aggressive quantization to very low precision (e.g., 2 bits) introduces signifi…

H1B-KV: Hybrid One-Bit Caches for Memory-Efficient Large Language Model Inference

2025-10-07 · Harshil Vejendla arxiv

Autoregressive decoding in large language models (LLMs) requires caching a growing list of past key-value (KV) pairs, making long-context inference a memory-bound problem. While recent methods have explored quantizing th…

Mathematical ReasoningCode Generation

Fractal KV-Cache Archives: Lossless Symbolic Storage with In-Place Retrieval for Long-Context LLM Inference

2026-07-08 · Vladimir Gusev arxiv

The key-value (KV) cache dominates the memory cost of long-context autoregressive inference, and a growing body of work compresses it through quantization, eviction, or offloading. We study a complementary question: once…

Sub-Token Routing for KV Cache Compression

2026-04-23 · Wei Jiang, Wei Wang arxiv

Transformer inference often requires a large KV cache, especially for long-context language modeling and multimodal generation. Existing compression methods usually reduce cache cost by selecting, evicting, quantizing, o…

multimodal generation

NQKV: A KV Cache Quantization Scheme Based on Normal Distribution Characteristics

2025-05-22 · Zhihang Cai, Xingjun Zhang, Zhendong Tan, Zheng Wei

Large Language Models (LLMs) have demonstrated remarkable proficiency across a wide range of tasks. However, LLMs often require larger batch sizes to enhance throughput or longer context lengths to meet task demands, whi…

Quantization