mlsanityData to 7 Oct 2026

Approaching I/O-optimality for Approximate Attention

arXiv 2605.23751 ↗First posted 22 May 2026cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

We revisit the I/O complexity of attention in large language models. Given query-key-value matrices Q,K,V∈ℝn× d, and a machine with fast memory size M, the goal is to compute the "attention matrix" A=softmax(Q K top/√d) V with the minimal number of data transfers between fast and slow memory. Existing methods in the literature, most notably FlashAttention and its variants, incur an I/O cost that depends quadratically on n, while a trivial lower bound only requires Omega(nd) I/O's to read the inputs and write the output. In this work, we present a technique for computing attention where the I/O cost only depends almost-linearly on n in most parameter regimes. This is achieved by developing I/O-efficient algorithms inspired by the recent approximate attention framework of Alman and Song. We also prove corresponding lower bounds in each parameter regime to show that our algorithms are indeed close to I/O-optimal.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 20 of its 26 references that are in the map. First posted on arXiv 22 May 2026.

Builds on

20 of 26 references.

References · 20

  1. 2017Attention Is All You Needcited by 59,932
  2. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  3. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  4. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  5. 2020Reformer: The Efficient Transformercited by 1,658
  6. 2020Rethinking Attention with Performerscited by 1,584
  7. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  8. 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
  9. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
  10. 2023Fast Attention Requires Bounded Entriescited by 102
  11. 2023HyperAttention: Long-context Attention in Near-Linear Timecited by 85
  12. 2020SMYRF: Efficient Attention using Asymmetric Clusteringcited by 43
8 more
  1. 2024More Asymmetry Yields Faster Matrix Multiplicationcited by 27
  2. 2019Red-blue pebbling revisited: near optimal parallel matrix-matrix multiplicationcited by 21
  3. 2022Optimal-Degree Polynomial Approximations for Exponentials and Gaussian Kernel Density Estimationcited by 19
  4. 2019Smoothing the gap between NP and ERcited by 10
  5. 2017Fine-Grained I/O Complexity via Reductions: New lower bounds, faster algorithms, and a time hierarchycited by 1
  6. 2024Red-Blue Pebbling with Multiple Processors: Time, Communication and Memory Trade-offscited by 1
  7. 2024I/O complexity and pebble games with partial computationscited by 1
  8. 2025The Impact of Partial Computations on the Red-Blue Pebble Gamecited by 1

Built on by

Not cited yet.