paper-with-me

Papers

SQuat: Subspace-orthogonal KV Cache Quantization

2025-03-31 · Hao Wang, Ligong Han, Kai Xu, Akash Srivastava

The key-value (KV) cache accelerates LLMs decoding by storing KV tensors from previously generated tokens. It reduces redundant computation at the cost of increased memory usage. To mitigate this overhead, existing approaches compress KV tensors into lower-bit representations; however, quantization errors can accumulate as more tokens are generated, potentially resulting in undesired outputs. In this paper, we introduce SQuat (Subspace-orthogonal KV cache quantization). It first constructs a subspace spanned by query tensors to capture the most critical task-related information. During key tensor quantization, it enforces that the difference between the (de)quantized and original keys remains orthogonal to this subspace, minimizing the impact of quantization errors on the attention mechanism's outputs. SQuat requires no model fine-tuning, no additional calibration dataset for offline learning, and is grounded in a theoretical framework we develop. Through numerical experiments, we show that our method reduces peak memory by 2.17 to 2.82, improves throughput by 2.45 to 3.60, and achieves more favorable benchmark scores than existing KV cache quantization algorithms.

📄 PDF Abstract BibTeX arXiv:2503.24358

Code (0)

등록된 구현이 없습니다.

Tasks

Quantization

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

SQUAT: Stateful Quantization-Aware Training in Recurrent Spiking Neural Networks

2024-04-15 · Sreyes Venkatesh, Razvan Marinescu, Jason K. Eshraghian

Weight quantization is used to deploy high-performance deep learning models on resource-limited hardware, enabling the use of low-precision integers for storage and computation. Spiking neural networks (SNNs) share the g…

Quantization

Lexico: Extreme KV Cache Compression via Sparse Coding over Universal Dictionaries

2024-12-12 · Junhyuck Kim, Jongho Park, Jaewoong Cho, Dimitris Papailiopoulos

We introduce Lexico, a novel KV cache compression method that leverages sparse coding with a universal dictionary. Our key finding is that key-value cache in modern LLMs can be accurately approximated using sparse linear…

4kGSM8KQuantization

SQuAT: Sharpness- and Quantization-Aware Training for BERT

2022-10-13 · Zheng Wang, Juncheng B Li, Shuhui Qu, Florian Metze 외

Quantization is an effective technique to reduce memory footprint, inference latency, and power consumption of deep learning models. However, existing quantization methods suffer from accuracy degradation compared to ful…

Quantization

A Biresolution Spectral Framework for Product Quantization

2018-06-01 · CVPR 2018 6 · Lopamudra Mukherjee, Sathya N. Ravi, Jiming Peng, Vikas Singh

Product quantization (PQ) (and its variants) has been effec- tively used to encode high-dimensional data into compact codes for many problems in vision. In principle, PQ decomposes the given data into a number of lower-d…

Quantization

ResQ: Mixed-Precision Quantization of Large Language Models with Low-Rank Residuals

2024-12-18 · Utkarsh Saxena, Sayeh Sharify, Kaushik Roy, Xin Wang

Post-training quantization (PTQ) of large language models (LLMs) holds the promise in reducing the prohibitive computational cost at inference time. Quantization of all weight, activation and key-value (KV) cache tensors…

Quantization