The NetworkResearch

Story

Making attention fast

Attention was the slow part of every transformer. A few labs rewrote it around how GPUs move memory, then founded the companies that now serve the models.

Attention compares every token with every other, so its cost grows with the square of the context. For years the fix was to approximate it. FlashAttention (2022) went the other way: keep attention exact and stop moving data the GPU doesn't need to move. It came out of Christopher Ré's lab at Stanford, and Tri Dao has kept rewriting it as GPUs change.

The same few groups then built the companies around it. Dao and Dan Fu went to Together AI, which Ré co-founded. At Berkeley, Woosuk Kwon and Ion Stoica turned PagedAttention into vLLM, one of the most used open serving engines, and Kwon co-founded Inferact around it. Albert Gu and Karan Goel, also from Ré's lab, bet on replacing attention entirely and started Cartesia.

How it unfolded

13 papers, oldest first

Select a paper to trace its line

Attention Is All You NeedThe transformer. Every token attends to every other, so time and memory grow with the square of the sequence length.Starting point · 5 papers here build on itAshish Vaswani, Aidan Gomez, Jakob Uszkoreit +5arXiv2017
Generating Long Sequences with Sparse TransformersSparse attention patterns cut the cost to n√n and let one model handle sequences tens of thousands long.Builds on Attention Is All You NeedRewon Child, Alec Radford, Scott Gray +1arXiv2019
Rethinking Attention with PerformersPerformers approximate attention with random features in linear time, at some cost in accuracy.Builds on Attention Is All You NeedKrzysztof Choromanski, Afroz Mohiuddin, Andreea Gane +7arXiv2020
Self-attention Does Not Need O(n2) MemoryAttention can be computed in chunks without ever storing the full n × n matrix. Memory, not compute, was the real limit.Builds on Attention Is All You Need · 1 paper here builds on itMarkus RabearXiv2021
Efficiently Modeling Long Sequences with Structured State SpacesS4: structured state-space models handle very long sequences in linear time, without attention.Builds on Attention Is All You Need · 1 paper here builds on itAlbert Gu, Karan Goel, Christopher RearXiv2021
FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessFlashAttention: exact attention in tiles that stay in fast on-chip memory. Far fewer trips to GPU memory, memory that grows linearly with length, much faster training.Builds on Self-attention Does Not Need O(n2) Memory · 1 paper here builds on itTri Dao, Atri Rudra, Dan Fu +2NeurIPS2022
FlashAttention-2: Faster Attention with Better Parallelism and Work PartitioningBetter work splitting across the GPU, about twice as fast as the first version.Builds on FlashAttention · 1 paper here builds on itTri DaoarXiv2023
Efficient Memory Management for Large Language Model Serving with PagedAttentionPagedAttention stores the KV cache in pages, like an operating system's virtual memory, for 2–4× more throughput. Released as vLLM.Builds on Attention Is All You Need · 2 papers here build on itWoosuk Kwon, Cody Yu, Joseph Gonzalez +2ACM SIGOPS Symposium on Operating Systems Principles (SOSP)2023
Efficient Streaming Language Models with Attention SinksModels park attention on the first few tokens. Keeping those "attention sinks" lets a model stream millions of tokens past its training length.Builds on Efficient Memory Management for Large Language Model Serv…Guangxuan Xiao, Beidi Chen, Song Han +1arXiv2023
Mamba: Linear-Time Sequence Modeling with Selective State SpacesMamba makes state-space models depend on the input, matching transformers on language with linear scaling and about 5× faster generation.Builds on Efficiently Modeling Long Sequences with Structured State…Albert Gu, Tri DaoarXiv2023
FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisionRebuilt for NVIDIA's H100: overlaps data movement with compute and runs in FP8.Builds on FlashAttention-2 · 1 paper here builds on itVijay Thakkar, Tri DaoNeurIPS2024
SGLang: Efficient Execution of Structured Language Model ProgramsSGLang reuses the KV cache across calls with RadixAttention, for up to 6.4× more throughput on agent-style workloads.Builds on Efficient Memory Management for Large Language Model Serv…Lianmin Zheng, Christos Kozyrakis, Clark Barrett +3NeurIPS2024
FlashAttention-4: Algorithm and Kernel Pipelining Co-Design for Asymmetric Hardware ScalingRebuilt again for Blackwell GPUs, where matrix units doubled in speed but the rest of the chip did not.Builds on FlashAttention-3Vijay Thakkar, Tri DaoarXiv2026

People behind it

10 researchers

Written by hand from the papers and people in the index. Links between papers show which work built on which; they are not a full citation graph.