atlas

Research map / Architectures and efficiency / RNNs and normalization

Get More with LESS: Synthesizing Recurrence with KV Cache Compression for Efficient LLM Inference

ICML 2024 · Architectures and efficiency › RNNs and normalization · approach: Distributed LLM inference systems · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes LESS, which pairs an eviction-based sparse KV cache with a constant-sized low-rank recurrent state that absorbs evicted KV pairs, trained per layer with small kernel MLPs to approximate the residual attention.

Problem

KV cache memory grows linearly with sequence length in LLM decoding, and sparse eviction policies discard tokens irrecoverably, degrading performance on tasks needing recall of many earlier tokens.

Approach

Accumulate evicted KV pairs into a constant-size low-rank recurrent state (learned kernels phi/psi, updated recursively) that is added to the sparse attention output, so every previous token contributes; each layer's kernels are trained independently with frozen base weights to match the full attention output.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add the learned low-rank state to 5% H2OLlama 2 7B · WikiTextword perplexity: 9.863 -> 9.657Helped
Add the learned low-rank state to 5% H2OLlama 2 7B · PG-19word perplexity: 27.939 -> 27.089Helped
Add the learned low-rank state to 5% Lambda-maskingLlama 2 7B · WikiTextword perplexity: 10.66 -> 10.12Helped
Add the learned low-rank state to 5% Lambda-maskingLlama 2 7B · MuTualR@1: 53.50 -> 54.51Helped
Add the learned low-rank state to 5% Lambda-maskingLlama 2 7B · BoolQaccuracy: 77.28 -> 78.65Helped
Add the learned low-rank state to H2OLlama 2 13B · CNN/DailyMailRouge-1: 23.57 -> 25.27Helped
Add the learned low-rank state to H2OLlama 2 13B · XSumRouge-1: 33.09 -> 33.40Mixed
Add the learned low-rank state to H2OLlama 2 7B · MultiNewsRouge-1: 13.38 -> 15.42Helped
Add the learned low-rank state to H2OLlama 2 7B · CNN/DailyMailRouge-1: 18.18 -> 19.21Helped
Add the learned low-rank state to H2OLlama 2 7B · XSumRouge-1: 29.03 -> 30.72Mixed
Use a learned low-rank state rather than Performer kernelsH2O + Performer, Llama 2 7B · WikiText, 5% H2Oword perplexity: 9.863 -> 9.657Helped
Add the low-rank state to full-cache-sized sparse decodingLlama 2 7B · generation, 2048+2048, batch 24latency (s): 78.3 -> 95.1Hurt

Surprising findings

Limitations

Experimental setup

Datasets: C4

Benchmarks: WikiText PG-19 MuTual BoolQ CNN/DailyMail XSum MultiNews

Metrics: word perplexity Rouge-1/2/L accuracy recall@1 latency throughput Hellinger distance

Baselines: Baseline (sparse-only) Baseline+ (sparse with extra tokens) H2O+Performer TOVA Full Cache

Builds on: H2O (heavy-hitter oracle) Performer Λ-masking (StreamingLLM) TOVA linear transformers

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy