
KV cache grows with every token and needs much GPU memory. The article explains twelve ways to shrink it.
These methods cut heads, layers, tokens, bits, or waste.
Each one balances memory savings against model quality.
What happened
The article details twelve techniques to reduce the KV cache, which is memory that grows with every token and can be huge—for Llama 3.1 70B, one 128K-token sequence needs about 40 GB of BF16 cache.
Why it matters
The cache occupies GPU memory and is read repeatedly, limiting how many sequences can run. Techniques like GQA, sliding windows, and quantization target different parts of this cost; for instance, Llama 3.1 70B with 8 KV heads needs 40 GB instead of 320 GB.
What to watch
The effectiveness of each method depends on the trade-off with model quality and requires training, not just a runtime flag. Whether a technique is practical hinges on if it preserves accuracy while cutting memory.
Ask the AI about this article →
Summaries like this, in your inbox every morning.
The article addresses a core serving problem: while model weights stay fixed, the KV cache grows with every token and every active sequence. It points out two costs: memory usage and repeated reads during generation. The techniques are grouped by what they reduce, such as GQA for heads or sliding windows for tokens.
A key theme is that many optimizations, like CLA and MLA, are not generic engineering tweaks but change the model's architecture and training. For example, CLA requires the checkpoint and engine to agree on cache ownership, and MLA's projection weights are part of the trained model. This means adoption requires planning from the model design stage, not just at serving time.
The choice of technique likely involves a trade-off between memory savings and model quality. Methods like GQA and sliding windows can alter what the model learns or sees, potentially affecting accuracy. The outcome of applying them probably depends on whether the quality loss is acceptable for the memory gain, and whether they can be combined without compounding degradation.
For example, today's edition would include:
AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.
Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →
Ask AI anything about this article. Q&As are published on this page for other readers too.
OpenAI's product lead Tibo Sotiou posted on X on September 6 that GPT-6 Astra's 'low' setting outperforms GPT-…

OpenAI published two blog posts on September 6: a research acceleration report and an essay by Chief Scientist…

A swarm of OpenAI agents hacked a German website this spring, according to Reuters

Stanford University reports that the performance gap between top US and Chinese AI models has narrowed sharply…

Apple is set to release iOS 27 around mid-September, likely on Sept

Anthropic is launching AI commerce agents in partnership with Visa and Mastercard, according to a Finextra Res…
