GO-V.ORG
As seen in

PagedAttention

PagedAttention is an attention algorithm for efficient serving of large language models (LLMs).[src] It was introduced in 2023 by Woosuk Kwon and colleagues in the paper Efficient Memory Management for Large Language Model Serving with PagedAttention, alongside the vLLM serving engine.[src] The method stores the key–value cache used during autoregressive decoding in fixed-size blocks that can be mapped to non-contiguous physical memory, borrowing ideas from virtual memory, paging, and operating system design.[src]

PagedAttention is an attention algorithm for efficient serving of large language models (LLMs).[src] It was introduced in 2023 by Woosuk Kwon and colleagues in the paper Efficient Memory Management for Large Language Model Serving with PagedAttention, alongside the vLLM serving engine.[src] The method stores the key–value cache used during autoregressive decoding in fixed-size blocks that can be mapped to non-contiguous physical memory, borrowing ideas from virtual memory, paging, and operating system design.[src] a_{ij}=\frac{\exp(\mathbf{q}_i^\top \mathbf{k}_j/\sqrt{d})}{\sum_{t=1}^{i}\exp(\mathbf{q}_i^\top \mathbf{k}_t/\sqrt{d})},\; \mathbf{o}_i=\sum_{j=1}^{i} a_{ij}\mathbf{v}_j where \mathbf{q}_i , \mathbf{k}_j , and \mathbf{v}_j are the query, key, and value vectors, and d is the attention dimension.[src] If the cache is partitioned into blocks of size B , the key and value blocks may be written as \mathbf{K}_j=(\mathbf{k}_{(j-1)B+1},\ldots,\mathbf{k}_{jB}),\; \mathbf{V}_j=(\mathbf{v}_{(j-1)B+1},\ldots,\mathbf{v}_{jB}) PagedAttention then performs the computation blockwise: \mathbf{A}_{ij}= \frac{\exp(\mathbf{q}_i^\top \mathbf{K}_j/\sqrt{d})} {\sum_{t=1}^{\lceil i/B \rceil}\exp(\mathbf{q}_i^\top \mathbf{K}_t/\sqrt{d})},\; \mathbf{o}_i=\sum_{j=1}^{\lceil i/B \rceil}\mathbf{V}_j\mathbf{A}_{ij}^{\top} where \mathbf{A}_{ij} is the vector of attention scores for the j -th KV block.[src] In the formulation given by Kwon et al., this preserves the causal attention calculation while allowing the key and value blocks to reside in non-contiguous physical memory.[src] \operatorname{Attention}(q_i,K,V)=\operatorname{softmax}\left(\frac{q_iK^\top}{\mathrm{scale}}\right)V.[src] In the notation of Prabhu et al., the key and value tensors for a request seen so far are K,V \in \mathbb{R}^{L' \times (H \times D)} , where L' is the context length seen so far, H is the number of KV heads on a worker, and D is the dimension of each KV head.[src] In systems prior to PagedAttention, the K cache (or V cache) at each layer of a worker is typically allocated as a 4D tensor of shape [B, L, H, D], where B is batch size and L is the maximum context length supported by the model.[src] vAttention preserves this contiguous virtual-memory view while deferring physical-memory allocation to runtime.[src] A serving framework maintains separate K and V tensors for each layer, so vAttention reserves 2N virtual-memory buffers on a worker, where N is the number of layers managed by that worker.[src] The maximum size of one virtual-memory buffer is BS = B \times S, where S is the maximum size of a single request's per-layer K cache (or V cache) on a worker.[src] The paper defines S = L \times H \times D \times P, where P is the number of bytes needed to store one element.[src] In this formulation, vAttention keeps the KV cache contiguous in virtual memory and relies on demand paging for physical allocation, rather than modifying the attention kernel to operate over non-contiguous KV-cache blocks.[src]

17 sentences · 17 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"PagedAttention." encyclopegia.org, 2026, https://encyclopegia.org/wiki/pagedattention. Accessed 03 December 2026.

Chicago

"PagedAttention." encyclopegia.org. Accessed December 3, 2026. https://encyclopegia.org/wiki/pagedattention.

APA

encyclopegia.org. (2026). PagedAttention. Retrieved December 3, 2026, from https://encyclopegia.org/wiki/pagedattention

Accessed December 3, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1359422630 · 0.5 · snapshot enwiki-001359422630

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.