Skip to the document
Madhuopen lab
Outcome School · Retrieval and RAG20 min read

by Amit Shekhar · 12 September 2026

KV Cache Compression

KV Cache Compression, the set of techniques that shrink the memory an AI model uses to remember the conversation while it is writing its reply. We will also see how an LLM writes one token at a time, what the KV Cache is and why we need it, why this cache becomes so huge, how quantization stores the same memory in fewer bits, how we can throw away the tokens that do not matter, how sharing across attention heads reduces the cache, how the cache can be squeezed into a small hidden vector, and when to use which one.

3,871 words#llm#ai#machine-learning4 recall cards

KV Cache Compression
Read on Outcome School ↗then come back to lock it in
Before you read, guess

How does a model determine which prior tokens are significant for generating the subsequent one?

Ten seconds, a guess, then read — a wrong guess still makes the answer stick.

Before you go

In one sentence, what was this chapter about?

From memory, without scrolling up. Writing it is what makes it yours; the grade is only to show you what you had.

How sure?