{
  "id": "flashattention",
  "code": "PTL-0252",
  "term": "FlashAttention",
  "aliases": [
    "Flash Attention",
    "IO-aware attention"
  ],
  "category": "foundations",
  "definition": "FlashAttention is an exact attention algorithm for transformers that computes attention in tiles held in fast on-chip GPU memory, reducing reads and writes to slower high-bandwidth memory so that attention runs faster and uses memory linear rather than quadratic in sequence length.",
  "description": "Dao et al. argued that attention on GPUs is limited by memory traffic more than by arithmetic, and that earlier approximate attention methods often gave no real wall-clock speedup. FlashAttention computes the same result as standard attention. They reported faster end-to-end training of BERT-large and GPT-2, and that the memory savings allowed much longer contexts. It changes how attention is computed, not what the model computes, so it is usually adopted in training and inference libraries rather than chosen by prompt authors.",
  "example": null,
  "broader": [],
  "narrower": [],
  "related": [
    "kv-cache",
    "pagedattention",
    "context-window"
  ],
  "introduced": 2022,
  "added": "2026-11-15",
  "sources": [
    {
      "title": "FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness",
      "authors": "Dao et al.",
      "year": 2022,
      "url": "https://arxiv.org/abs/2205.14135"
    }
  ],
  "url": "https://protologue.com/t/flashattention/",
  "citation": "Protologue. (2026). FlashAttention. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.7.0, PTL-0252). https://protologue.com/t/flashattention/"
}