The paper introduces Universal Attention (UA), a new attention mechanism that compresses the key-value cache of large language models by adaptively pruning unimportant tokens during inference. UA combines multiple decay mechanisms with existing RoPE embeddings and softmax attention to create expressive forget gates that decide which tokens to keep or evict. The authors show that a 1B parameter model trained with UA achieves over 10x compression on natural language and synthetic tasks, and up to 25x compression on long sequences of 16k tokens, while actually improving task performance compared to both unpruned baselines and other pruning methods. This is interesting because it addresses a major bottleneck in deploying LLMs: the memory required for the KV-cache, which can exceed the model size itself.
Adaptive attention pruning compresses language-model caches without sacrificing accuracy
Universal Attention learns which past tokens to discard while retaining softmax attention and RoPE positional embeddings.
Big Tech
Davis Wertheimer · Haochen Shen · Ahan Gupta · Derrick Liu · Yu Chin Fabian Lim · Mudhakar Srivatsa · +3 more
IBM Research · SSAIL Lab · University of Illinois Urbana-Champaign
Research Digest··2 min read
Thread:KV Cache Compression
In one line
Universal Attention achieves over 10x KV-cache compression while improving downstream performance.
Before you read this
Three ideas this paper builds onkv cache compressionReducing the size of the key-value cache in transformers via selective retention, low-rank updates, or adaptive compression.87 papers →sparse attentionSelectively attending to only the most relevant positions or tokens to reduce computational overhead.52 papers →linear attentionAn attention mechanism that computes attention with linear, rather than quadratic, complexity in sequence length.27 papers →
Read it as
Wertheimer and colleagues introduce a transformer attention layer whose learned decay mechanism doubles as an input-dependent rule for pruning the key-value cache used during generation.
The authors developed Universal Attention, a framework that augments standard softmax attention with trainable decay terms derived from first-order and second-order statistics of stored keys.
How it works
before and afterThe Daily Edition
The front page in your inbox each weekday morning: the lead, the picks, and why each one earned its place.