{
  "id": "pagedattention",
  "code": "PTL-0253",
  "term": "PagedAttention",
  "aliases": [
    "paged attention",
    "paged KV cache"
  ],
  "category": "foundations",
  "definition": "PagedAttention is a technique for serving language models that stores each request's key-value cache in fixed-size blocks that need not be contiguous in memory, like pages in operating-system virtual memory, which reduces wasted memory and lets requests share cached blocks.",
  "description": "Kwon et al. introduced it in 2023 together with the vLLM serving system. Because the KV cache for each request is large and grows during generation, reserving contiguous memory for it wastes space through fragmentation and duplication, which limits how many requests can be batched. With paging, waste is close to zero, and blocks can be shared, for example between samples generated from the same prompt. The authors reported two to four times the throughput of earlier serving systems at similar latency, with larger gains for longer sequences and larger models.",
  "example": null,
  "broader": [],
  "narrower": [],
  "related": [
    "kv-cache",
    "flashattention",
    "prompt-caching",
    "best-of-n-sampling"
  ],
  "introduced": 2023,
  "added": "2026-11-15",
  "sources": [
    {
      "title": "Efficient Memory Management for Large Language Model Serving with PagedAttention",
      "authors": "Kwon et al.",
      "year": 2023,
      "url": "https://arxiv.org/abs/2309.06180"
    }
  ],
  "url": "https://protologue.com/t/pagedattention/",
  "citation": "Protologue. (2026). PagedAttention. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.7.0, PTL-0253). https://protologue.com/t/pagedattention/"
}