TaDA: Training-free recipe for Decoding with Adaptive KV Cache Compression and Mean-centering

The key-value (KV) cache in transformer models is a critical component for efficient decoding or inference, yet its memory demands scale poorly with sequence length, posing a major challenge for scalable deployment of large language models.Among several approaches to KV cache compression, quantization of key and value activations has been widely explored.Most KV cache quantization methods still need to manage sparse and noncontiguous outliers separately.To address this, we introduce TaDA, a training-free recipe for KV cache compression with quantization precision that adapts to error sensitivity across layers and a mean centering to eliminate separate outlier handling.Our approach yields substantial accuracy improvements for multiple models supporting various context lengths.Moreover, our approach does not need to separately manage outlier elements-a persistent hurdle in most traditional quantization methods.Experiments on standard benchmarks demonstrate that our technique reduces KV cache memory footprint to 27% of the original 16-bit baseline while achieving comparable accuracy.Our method paves the way for scalable and high-performance reasoning in language models by potentially enabling inference for longer context length models, reasoning models, and longer chain of thoughts.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.acl-industry.101
Primary Topic
Algorithms and Data Compression
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

TaDA: Training-free recipe for Decoding with Adaptive KV Cache Compression and Mean-centering

Emad Barsoum, Vinay Joshi, Zicheng Liu, Pratik Prabhanjan Brahma
Algorithms and Data Compression
article

TaDA: Training-free recipe for Decoding with Adaptive KV Cache Compression and Mean-centering

Emad Barsoum, Vinay Joshi, Zicheng Liu, Pratik Prabhanjan Brahma
article en

Abstract

The key-value (KV) cache in transformer models is a critical component for efficient decoding or inference, yet its memory demands scale poorly with sequence length, posing a major challenge for scalable deployment of large language models.Among several approaches to KV cache compression, quantization of key and value activations has been widely explored.Most KV cache quantization methods still need to manage sparse and noncontiguous outliers separately.To address this, we introduce TaDA, a training-free recipe for KV cache compression with quantization precision that adapts to error sensitivity across layers and a mean centering to eliminate separate outlier handling.Our approach yields substantial accuracy improvements for multiple models supporting various context lengths.Moreover, our approach does not need to separately manage outlier elements-a persistent hurdle in most traditional quantization methods.Experiments on standard benchmarks demonstrate that our technique reduces KV cache memory footprint to 27% of the original 16-bit baseline while achieving comparable accuracy.Our method paves the way for scalable and high-performance reasoning in language models by potentially enabling inference for longer context length models, reasoning models, and longer chain of thoughts.

Openalex Percentile: Top 90%
Algorithms and Data Compression
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.