Skip to content
Get in touch

Reviewed in POC · content version 2

Review Cache / KV Cache

Your draft is bound to this exact source hash. If the term changes, the Review Desk will use a new storage key instead of silently attaching old decisions.

Definition

A cache stores reusable data so a system can answer faster or avoid recomputing work, such as prompt results or model attention state.
Decision for Definition

Plain-Language Explanation

A cache stores reusable results so a system does not repeat the same work. During autoregressive generation, a key-value cache keeps attention information from earlier tokens and reuses it for later tokens.
Decision for Plain-Language Explanation

Why It Matters

Caching can reduce latency and repeated computation, but it consumes memory and can preserve stale or sensitive material if its lifetime and boundaries are poorly managed.
Decision for Why It Matters

Example

While generating a response token by token, a language model reuses the key and value tensors from the preceding tokens instead of calculating them again at every step.
Decision for Example

Common Misconception

A KV cache is not the model’s memory of a conversation in the human sense. It is an inference optimization, and it does not change the model’s learned weights.
Decision for Common Misconception

Remember It This Way

Cache the work already done; KV cache reuses prior attention work.
Decision for Remember It This Way

Related Terms

* [[inference|Inference]] * [[latency|Latency]] * [[context-window|Context Window]] * [[tensor|Tensor]]
Decision for Related Terms

Sources

* [Hugging Face, “Caching”](https://huggingface.co/docs/transformers/main/cache_explanation) — explains how KV caches reuse attention keys and values during autoregressive inference.
Decision for Sources

Learn More

* Compare [[inference|Inference]], [[latency|Latency]], [[context-window|Context Window]], and [[tensor|Tensor]] to place Cache / KV Cache in the surrounding system. * Follow the cited source material above for the method, standard, or research context behind this draft.
Decision for Learn More
Return to term

Not saved yet.