FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
Open accessAbstract
Machine learning's explosive growth has produced a proliferation of accelerator architectures, yet no framework maps a workload's computational character to the hardware that serves it best. We build that framework: decomposing ML workloads — transformers, CNNs, GNNs, diffusion and state-space models — into core compute primitives characterized by arithmetic intensity, memory-access pattern, and parallelism, and evaluating how GPUs, TPUs, systolic arrays, dataflow processors, wafer-scale engines, and neuromorphic chips serve them. Using hierarchical roofline and utilization modelling, we show the binding constraint has shifted from peak FLOPS to memory bandwidth and data-movement energy — which quantization only sharpens — and consolidate eight persistent, unsolved problems. These motivate the central contribution: the Fused Memory-Compute Tile (FMCT, codename Habanero), an SRAM-first, HBM-free accelerator combining a three-mode (GEMM / bandwidth / fused) phase-adaptive tile switched by compiler directive, a non-linear unit fused into the systolic datapath, compute-in-memory as a selectable mode rather than the whole architecture, and an inline KV-cache compression engine. A validated component-level energy model shows ~4-7× batch-1 efficiency gains over HBM GPUs. We position FMCT against its closest SRAM-first, no-HBM analogs — d-Matrix Corsair and Tenstorrent — and OpenAI's HBM-retaining Jalapeño ASIC, closing with principles for memory-centric, workload-adaptive accelerators.
AI snapshot
Written from the paper’s full text.
TL;DR
FlashAttention is an IO-aware exact attention algorithm that uses tiling and recomputation to avoid materializing the large \(N \times N\) attention matrix in GPU HBM, reducing memory reads/writes while computing exact attention. It speeds up Transformer training and enables longer contexts, including first better-than-chance Transformer results on Path-X and Path-256.
Key findings
- FlashAttention requires fewer HBM accesses than standard attention: \(\Theta(N^2 d^2 M^{-1})\) vs. \(\Theta(Nd + N^2)\), and is up to 9× fewer HBM accesses for typical \(d\) and \(M\).
- It trains models faster: 15% end-to-end wall-clock speedup on BERT-large (seq. length 512) over the MLPerf 1.1 record, up to 3× speedup on GPT-2 (seq. length 1K), and 2.4× on Long-Range Arena (seq. length 1K–4K).
- Longer context improves quality: 0.7 better perplexity on GPT-2 and 6.4 points of lift on long-document classification; FlashAttention achieves 61.4% accuracy on Path-X (16K), and block-sparse FlashAttention achieves 63.1% on Path-256 (64K).
- Attention benchmarking: FlashAttention is up to 3× faster than standard attention for common sequence lengths and up to 20× more memory efficient than exact attention baselines; block-sparse FlashAttention is faster than all existing approximate attention methods tested.
Methods
- Algorithm design: exact attention computed by tiling Q, K, V blocks into on-chip SRAM, incrementally performing softmax reduction, and recomputing attention in the backward pass from stored softmax statistics instead of storing the \(N \times N\) attention matrix.
- Analysis: proves IO complexity for forward and backward passes, plus a lower bound showing no exact attention algorithm can asymptotically improve HBM accesses over all SRAM sizes; extends to block-sparse FlashAttention with IO complexity scaled by sparsity.
- Experiments: CUDA implementation benchmarked on A100, RTX 3090, and T4 GPUs; trained BERT-large, GPT-2, Long-Range Arena, MIMIC-III, ECtHR, Path-X, and Path-256, comparing runtime, memory, and accuracy against exact, approximate, and sparse attention baselines.
Limitations
- The paper states that building IO-aware attention implementations currently requires writing a new CUDA kernel for each new attention implementation, using a lower-level language than PyTorch, with significant engineering effort, and implementations may not transfer across GPU architectures.
- The paper states its IO-aware implementation is optimal within constants for single-GPU attention, but multi-GPU attention adds another memory hierarchy and is left as future work.
- The paper states the lower bound is proved over a subrange of SRAM sizes \(M\), and parameterized complexity lower bounds in terms of \(M\) are left as future work; the text also makes evident that some approximate attention methods become faster than FlashAttention beyond sequence length 1K, though block-sparse FlashAttention remains faster than all tested approximate methods.
Model-written summary. Check it against the paper before relying on it.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
40 of 48 cited sources checked · 12 supported · 1 flagged · accuracy not yet measured
- Findingown data§ Abstract
FlashAttention requires fewer HBM accesses than standard attention.
“We analyze the IO complexity of FlashAttention , showing that it requires fewer HBM accesses than standard attention, and is optimal for a range of SRAM sizes.”
- Also stated in: § 1 Introduction · boosted
“We analyze the IO complexity [1] of FlashAttention , proving that it requires 𝑂 𝑁 2 𝑑 2 𝑀 1 HBM accesses where 𝑑 is the head dimension and 𝑀 is the size of SRAM, as compared to Ω 𝑁𝑑 𝑁 2 of standard attention.”
Quote in the paperSubstantial claim1 of 1 sources checked- cites [1] [1] Alok Aggarwal and S Vitter, Jeffrey. The input/output complexity of sorting and related problems. Communications of the ACM , 31(9):1116-1127, 1988. - source
The Introduction and Section 3 describe I/O bounds for sorting-related problems and transfers between disk and internal memory. A search of our copy for FlashAttention, HBM, SRAM, and attention found no passage comparing FlashAttention with standard attention, so it cannot verify the claimed reduction in HBM accesses. (LLM, conf=0.78)
Experimental — accuracy not yet measured
- Also stated in: § 1 Introduction · boosted
- Findingown data§ Abstract
FlashAttention trains Transformers faster than existing baselines: 15% end-to-end wall-clock speedup on BERT-large (seq length 512) compared to the MLPerf 1.1 training speed record.
“FlashAttention trains Transformers faster than existing baselines: 15% end-to-end wall-clock speedup on BERT-large (seq. length 512) compared to the MLPerf 1.1 training speed record, 3 speedup on GPT-2 (seq. length 1K), and 2.4 speedup on long-range arena (seq. length 1K-4K).”
- Also stated in: § 1 Introduction · plain
“We train BERT-large (seq. length 512) 15% faster than the training speed record in MLPerf 1.1 [58]”
Quote in the paperSubstantial claim1 of 1 sources checked- cites [58] [58] Peter Mattson, Christine Cheng, Gregory Diamos, Cody Coleman, Paulius Micikevicius, David Patterson, Hanlin Tang, Gu-Yeon Wei, Peter Bailis, Victor Bittorf, et al. Mlperf training benchmark. Proceedings of Machine Learning and Systems , 2:336-349, 2020. - source
Section 3.2 (p. 6) describes MLPerf’s end-to-end time-to-train metric, supporting the identification of MLPerf as a training benchmark. But Section 5 (p. 9) reports only rounds v0.5 and v0.6; our copy does not establish a v1.1 BERT-large speed record or a 15% FlashAttention speedup against it. (LLM, conf=0.84)
Experimental — accuracy not yet measured
- Also stated in: § 1 Introduction · plain
- Findingown data§ Abstract
FlashAttention achieves 3x speedup on GPT-2 (seq length 1K) compared to baselines.
“3 speedup on GPT-2 (seq. length 1K)”
- Also stated in: § 1 Introduction · plain
“GPT2 (seq. length 1K) 3 faster than baseline implementations from HuggingFace [87] and Megatron-LM [77]”
Quote in the paperSubstantial claim2 of 2 sources checked- cites [87] [87] Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander M. Rush. Transformers: State-of-the-art natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations , pages 38-45, Online, October 2020. Association for Computational Linguistics. URL https://www source
The Deployment section reports speedups from ONNX optimization of models including GPT-2, but does not discuss FlashAttention. Searches for FlashAttention and a 3x speedup at sequence length 1K found no passage addressing the claimed result; the ONNX result does not verify or contradict it. Page numbers were unavailable in our copy. (LLM, conf=0.76)
Experimental — accuracy not yet measured - cites [77] [77] Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared Casper, and Bryan Catanzaro. Megatron-LM: Training multi-billion parameter language models using model parallelism. arXiv preprint arXiv:1909.08053 , 2019. - source
Appendix D.2 (p. 14) reports a 2.98-fold training speedup for a 1.2-billion-parameter model using eight GPUs rather than one. That result concerns model parallelism, not FlashAttention; the passage does not specify a 1K sequence length or the claimed baseline comparison. (LLM, conf=0.83)
Experimental — accuracy not yet measured
- Also stated in: § 1 Introduction · plain
- Findingown data§ 1 Introduction
FlashAttention requires O(N^2 d^2 M^{-1}) HBM accesses where d is head dimension and M is SRAM size, compared to Ω(Nd + N^2) of standard attention.
“We analyze the IO complexity [1] of FlashAttention , proving that it requires 𝑂 𝑁 2 𝑑 2 𝑀 1 HBM accesses where 𝑑 is the head dimension and 𝑀 is the size of SRAM, as compared to Ω 𝑁𝑑 𝑁 2 of standard attention.”
- Also stated in: § 3.2 Analysis: IO Complexity of FlashAttention · plain
“Theorem 2. Let 𝑁 be the sequence length, 𝑑 be the head dimension, and 𝑀 be size of SRAM with 𝑑 𝑀 𝑁𝑑 . Standard attention (Algorithm 0) requires Θ 𝑁𝑑 𝑁 2 HBM accesses, while FlashAttention (Algorithm 1) requires Θ 𝑁 2 𝑑 2 𝑀 1 HBM accesses.”
Quote in the paperSubstantial claim1 of 1 sources checked- cites [1] [1] Alok Aggarwal and S Vitter, Jeffrey. The input/output complexity of sorting and related problems. Communications of the ACM , 31(9):1116-1127, 1988. - source
- Also stated in: § 3.2 Analysis: IO Complexity of FlashAttention · plain
- Findingcitation§ Abstract
FlashAttention enables the first Transformers to achieve better-than-chance performance on Path-X (seq length 16K, 61.4% accuracy).
“the first Transformers to achieve better-than-chance performance on the Path-X challenge (seq. length 16K, 61.4% accuracy)”
- Also stated in: § 1 Introduction · plain
“FlashAttention enables the first Transformer that can achieve better-than-chance performance on the Path-X [80] challenge, solely from using a longer sequence length (16K).”
Quote in the paperSubstantial claim1 of 1 sources checked- cites [80] [80] Yi Tay, Mostafa Dehghani, Samira Abnar, Yikang Shen, Dara Bahri, Philip Pham, Jinfeng Rao, Liu Yang, Sebastian Ruder, and Donald Metzler. Long range arena: A benchmark for efficient transformers. In International Conference on Learning Representations , 2020. - source
Section 2.2.6 (p. 4) identifies Path-X as a 16K-input benchmark, and Section 3.3 (p. 7) reports that the models tested achieved at best 50%. The paper does not report FlashAttention achieving 61.4% or establish that it was the first Transformer to exceed chance on Path-X. (LLM, conf=0.90)
Experimental — accuracy not yet measured
- Also stated in: § 1 Introduction · plain
- Interpretationreasoning§ Abstract
A missing principle for attention algorithms is IO-awareness-accounting for reads and writes between levels of GPU memory.
“We argue that a missing principle is making attention algorithms IOaware -accounting for reads and writes between levels of GPU memory.”
- Also stated in: § 1 Introduction · plain
“In this paper, we argue that a missing principle is making attention algorithms IO-aware [1]-that is, carefully accounting for reads and writes to different levels of fast and slow memory (e.g., between fast GPU on-chip SRAM and relatively slow GPU high bandwidth memory, or HBM [45], Figure 1 left).”
Quote in the paperSubstantial claim1 of 2 sources checked- cites [1] [1] Alok Aggarwal and S Vitter, Jeffrey. The input/output complexity of sorting and related problems. Communications of the ACM , 31(9):1116-1127, 1988. - source
The Introduction describes studying algorithms by the number of I/Os, and Section 3 models transfers between disk and internal memory. That supports the general principle of accounting for data movement, but the paper does not address attention algorithms or transfers between levels of GPU memory. (LLM, conf=0.85)
Experimental — accuracy not yet measured - cites [45] [45] Zhe Jia, Marco Maggioni, Benjamin Staiger, and Daniele P Scarpazza. Dissecting the nvidia Volta GPU architecture via microbenchmarking. arXiv preprint arXiv:1804.06826 , 2018. - source
- Also stated in: § 1 Introduction · plain
- Findingnone given§ 4.2 Better Models with Longer Sequences
Our reproduced baselines perform better than as reported in the original comparison.
“Our reproduced baselines perform better than as reported in the original comparison [80].”
Quote in the paperNot a substantial claim1 of 1 sources checked- cites [80] [80] Yi Tay, Mostafa Dehghani, Samira Abnar, Yikang Shen, Dara Bahri, Philip Pham, Jinfeng Rao, Liu Yang, Sebastian Ruder, and Donald Metzler. Long range arena: A benchmark for efficient transformers. In International Conference on Learning Representations , 2020. - source
- Premisecitation§ B.1 Memory-efficient forward pass
Naive memory-efficient attention still incurs quadratic HBM accesses, resulting in slower execution speed.
“This technique [60] has been used in the literature [51, 66] to show that attention computation does not need quadratic extra memory (though the number of HBM accesses is still quadratic, resulting in slow run-time).”
- Also stated in: § B Algorithm Details · plain
“Though they reduce the amount of extra memory required, naively they still incur quadratic HBM accesses, resulting in slower execution speed.”
Quote in the paperSubstantial claim3 of 3 sources checked- cites [60] [60] Maxim Milakov and Natalia Gimelshein. Online normalizer calculation for softmax. arXiv preprint arXiv:1805.02867 , 2018. - source
Section 5 (Benchmarking) links memory accesses to Softmax performance, but the paper does not address memory-efficient attention or whether its HBM accesses are quadratic. I searched our copy for attention, quadratic accesses, and the claimed run-time consequence; the passages concern Softmax and Softmax+TopK instead. (LLM, conf=0.78)
Experimental — accuracy not yet measured - cites [51] [51] Nikita Kitaev, Łukasz Kaiser, and Anselm Levskaya. Reformer: The efficient transformer. In The International Conference on Machine Learning (ICML) , 2020. - source
The memory-efficient attention discussion (Section 2, p. 2) says attention can use memory proportional to sequence length but may be less efficient. Table 1 (Section 2, pp. 4–5) gives memory-efficient attention quadratic time complexity. The paper does not identify quadratic HBM accesses as the reason for slower execution. (LLM, conf=0.87)
Experimental — accuracy not yet measured - cites [66] [66] Markus N Rabe and Charles Staats. Self-attention does not need 𝑂 𝑛 2 memory. arXiv preprint arXiv:2112.05682 , 2021. - source
The Introduction (p. 1) says the memory-efficient algorithm avoids quadratic memory use but still has quadratic time complexity. The Inference section (p. 4) reports roughly similar runtime to standard attention; it does not establish quadratic HBM accesses or attribute slow runtime to them. (LLM, conf=0.86)
Experimental — accuracy not yet measured
- Also stated in: § B Algorithm Details · plain
- Premisecitation§ A Related Work
Butterfly matrices and their products have been shown to be able to express any structured matrices with almost optimal runtime and number of parameters.
“The butterfly pattern we use for our block-sparse attention is motivated by the fact that butterfly matrices [15, 64] and their products have been shown to be able to express any structured matrices with almost optimal runtime and number of parameters [16, 20].”
Quote in the paperSubstantial claim2 of 4 sources checked- cites [15] [15] Tri Dao, Albert Gu, Matthew Eichhorn, Atri Rudra, and Christopher Ré. Learning fast algorithms for linear transforms using butterfly factorizations. In International Conference on Machine Learning (ICML) , 2019. - source
Section 3.3 (pp. 6–7) says the butterfly-product hierarchy represents several important transforms at low depth and can represent all square matrices at linear depth. The Introduction (p. 1) gives O(N) parameters and O(N log N) multiplication for a class of structured matrices. These passages do not establish that *any* structured matrix has a butterfly representation with almost-optimal runtime and parameter count; §4.1 (p. 7) says some structured matrices are not perfectly captured by the BPBP class. (LLM, conf=0.86)
Experimental — accuracy not yet measured - cites [64] [64] D Stott Parker. Random butterfly transformations with applications in computational linear algebra. 1995. -
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
- cites [16] [16] Tri Dao, Nimit Sohoni, Albert Gu, Matthew Eichhorn, Amit Blonder, Megan Leszczynski, Atri Rudra, and Christopher Ré. Kaleidoscope: An efficient, learnable representation for all structured linear maps. In International Conference on Learning Representations (ICLR) , 2020. - source
- cites [20] [20] Christopher De Sa, Albert Gu, Rohan Puttagunta, Christopher Ré, and Atri Rudra. A two-pronged progress in structured dense matrix vector multiplication. In Proceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms , pages 1060-1079. SIAM, 2018. -
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
- Findingnone given§ 4.2 Better Models with Longer Sequences
Training Transformers with longer sequences with FlashAttention improves performance on the MIMIC-III and ECtHR datasets.
“Training Transformers with longer sequences with FlashAttention improves performance on the MIMIC-III [47] and ECtHR [6, 7] datasets.”
Quote in the paperSubstantial claim3 of 3 sources checked- cites [47] [47] Alistair EW Johnson, Tom J Pollard, Lu Shen, Li-wei H Lehman, Mengling Feng, Mohammad Ghassemi, Benjamin Moody, Peter Szolovits, Leo Anthony Celi, and Roger G Mark. Mimic-iii, a freely accessible critical care database. Scientific data , 3(1):1-9, 2016. - source
- cites [6] [6] Ilias Chalkidis, Ion Androutsopoulos, and Nikolaos Aletras. Neural legal judgment prediction in English. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics , pages 4317-4323, Florence, Italy, 2019. Association for Computational Linguistics. doi: 10.18653/v1/P19-1424. URL https://www.aclweb.org/anthology/P19-1424 . - source
- cites [7] [7] Ilias Chalkidis, Manos Fergadiotis, Dimitrios Tsarapatsanis, Nikolaos Aletras, Ion Androutsopoulos, and Prodromos Malakasiotis. Paragraph-level rationale extraction through regularization: A case study on european court of human rights cases. In Proceedings of the Annual Conference of the North American Chapter of the Association for Computational Linguistics , Mexico City, Mexico, 2021. Association for Computational Linguistics. - source
- Premisecitation§ 3.3 Extension: Block-Sparse FlashAttention
The fixed butterfly sparsity pattern can approximate arbitrary sparsity.
“For downstream experiments, we use the fixed butterfly sparsity pattern [17], which has been shown to be able to approximate arbitrary sparsity [16].”
Quote in the paperNot a substantial claim2 of 2 sources checked- cites [17] [17] Tri Dao, Beidi Chen, Kaizhao Liang, Jiaming Yang, Zhao Song, Atri Rudra, and Christopher Ré. Pixelated butterfly: Simple and efficient sparse training for neural network models. In International Conference on Learning Representations (ICLR) , 2022. - source
Section 4.1 (p. 6) says that any sparse matrix can be represented as a product of block butterfly matrices and their transposes. That supports the claim about butterfly structures, but not the stronger claim that the fixed flat-block butterfly sparsity pattern used for the experiments can approximate arbitrary sparsity. Section 3.3 (p. 5) describes that fixed mask as a separate choice, with an added low-rank term. (LLM, conf=0.86)
Experimental — accuracy not yet measured - cites [16] [16] Tri Dao, Nimit Sohoni, Albert Gu, Matthew Eichhorn, Amit Blonder, Megan Leszczynski, Atri Rudra, and Christopher Ré. Kaleidoscope: An efficient, learnable representation for all structured linear maps. In International Conference on Learning Representations (ICLR) , 2020. - source
- Findingreasoning§ B.5 Comparison with Rabe and Staats [66]
Both FlashAttention and Rabe and Staats [66] offer substantial memory saving in terms of total memory required.
“In terms of total memory required, both methods offer substantial memory saving.”
Quote in the paperNot a substantial claim1 of 1 sources checked- cites Rabe and Staats [66] source
- Findingnone given§ 1 Introduction
For sequence length beyond 1K, some approximate attention methods (e.g., Linformer) start to become faster than FlashAttention.
“whereas for sequence length beyond 1K, some approximate attention methods (e.g., Linformer) start to become faster.”
Quote in the paperNot a substantial claim - Findingown data§ Abstract
FlashAttention extended to block-sparse attention yields an approximate attention algorithm faster than any existing approximate attention method.
“We also extend FlashAttention to block-sparse attention, yielding an approximate attention algorithm that is faster than any existing approximate attention method.”
- Also stated in: § 1 Introduction · plain
“As a proof of concept, we implement block-sparse FlashAttention , a sparse attention algorithm that is 2-4 faster than even FlashAttention , scaling up to sequence length of 64k.”
Quote in the paperSubstantial claim - Also stated in: § 1 Introduction · plain
- Findingown data§ 1 Introduction
Block-sparse FlashAttention has better IO complexity than FlashAttention by a factor proportional to the sparsity ratio.
“We prove that block-sparse FlashAttention has better IO complexity than FlashAttention by a factor proportional to the sparsity ratio.”
- Also stated in: § 3.3 Extension: Block-Sparse FlashAttention · plain
“Proposition 4. Let 𝑁 be the sequence length, 𝑑 be the head dimension, and 𝑀 be size of SRAM with 𝑑 𝑀 𝑁𝑑 . Block-sparse FlashAttention (Algorithm 5) requires Θ 𝑁𝑑 𝑁 2 𝑑 2 𝑀 1 𝑠 HBM accesses where 𝑠 is the fraction of nonzero blocks in the block-sparsity mask.”
Quote in the paperSubstantial claim - Also stated in: § 3.3 Extension: Block-Sparse FlashAttention · plain
- Findingreasoning§ Abstract
Block-sparse FlashAttention enables the first model to achieve better-than-chance performance on Path-256 (seq length 64K, 63.1% accuracy).
“and Path-256 (seq. length 64K, 63.1% accuracy).”
- Also stated in: § 1 Introduction · plain
“Block-sparse FlashAttention enables a Transformer to scale to even longer sequences (64K), resulting in the first model that can achieve better-than-chance performance on Path-256.”
Quote in the paperSubstantial claim - Also stated in: § 1 Introduction · plain
- Findingreasoning§ 1 Introduction
For typical values of d (64-128) and M (around 100KB), FlashAttention requires many times fewer HBM accesses than standard attention (up to 9x fewer).
“For typical values of 𝑑 and 𝑀 , FlashAttention requires many times fewer HBM accesses compared to standard attention (up to 9 fewer, as shown in Fig. 2).”
- Also stated in: § 3.2 Analysis: IO Complexity of FlashAttention · plain
“For typical values of 𝑑 (64-128) and 𝑀 (around 100KB), 𝑑 2 is many times smaller than 𝑀 , and thus FlashAttention requires many times fewer HBM accesses than standard implementation.”
Quote in the paperSubstantial claim - Also stated in: § 3.2 Analysis: IO Complexity of FlashAttention · plain
- Findingreasoning§ 2.2 Standard Attention Implementation
Standard attention performs HBM accesses quadratic in the sequence length N.
“In Section 3.2, we will show that the standard attention implementation performs HBM accesses quadratic in the sequence length 𝑁 .”
- Also stated in: § 3.2 Analysis: IO Complexity of FlashAttention · plain
“Standard attention (Algorithm 0) requires Θ 𝑁𝑑 𝑁 2 HBM accesses”
Quote in the paperSubstantial claim - Also stated in: § 3.2 Analysis: IO Complexity of FlashAttention · plain
- Findingown data§ Abstract
FlashAttention achieves 2.4x speedup on long-range arena (seq length 1K-4K) compared to baselines.
“2.4 speedup on long-range arena (seq. length 1K-4K).”
- Also stated in: § 1 Introduction · plain
“long-range arena (seq. length 1K-4K) 2.4 faster than baselines.”
- Also stated in: § 4.1 Faster Models with FlashAttention · plain
“Table 3 shows that FlashAttention achieves up 2.4 speed-up compared to standard attention.”
Quote in the paperSubstantial claim - Also stated in: § 1 Introduction · plain
- Findingnone given§ 1 Introduction
Block-sparse FlashAttention is faster than all existing approximate attention methods that the authors know of.
“On the other hand, block-sparse FlashAttention is faster than all existing approximate attention methods that we know of.”
- Also stated in: § 4.1 Faster Models with FlashAttention · hedged
“Block-sparse FlashAttention is faster than all of the approximate attention methods that we have tested.”
Quote in the paperNot a substantial claim - Also stated in: § 4.1 Faster Models with FlashAttention · hedged
- Findingown data§ 4.3 Benchmarking Attention
The approximate attention runtimes begin to cross over with FlashAttention at sequences between 512 and 1024.
“The approximate attention runtimes begin to cross over with FlashAttention at sequences between 512 and 1024.”
Quote in the paperNot a substantial claim - Findingreasoning§ C Proofs
Standard attention implementation requires Θ(Nd + N^2) global memory accesses.
“Overall, standard attention implementation requires Θ 𝑁𝑑 𝑁 2 global memory accesses.”
Quote in the paperSubstantial claim - Findingown data§ 4.2 Better Models with Longer Sequences
We report the first Transformer model that can achieve non-random performance on Path-X and Path-256.
“We report the first Transformer model that can achieve non-random performance on Path-X and Path-256.”
- Also stated in: § 4.2 Better Models with Longer Sequences · plain
“We present here the first result of Transformer models being able to solve Path-X and Path-256 (Table 6).”
Quote in the paperSubstantial claim - Also stated in: § 4.2 Better Models with Longer Sequences · plain
- Findingnone given§ 4.3 Benchmarking Attention
Block-sparse FlashAttention is faster than all implementations of exact, sparse, and approximate attention that we know of, across all sequence lengths.
“On the other hand, block-sparse FlashAttention is faster than all implementations of exact, sparse, and approximate attention that we know of, across all sequence lengths.”
Quote in the paperSubstantial claim - Findingown data§ 4.3 Benchmarking Attention
FlashAttention runs significantly faster than exact attention baselines, up to 3× faster than the PyTorch implementation.
“Runtime grows quadratically with sequence length, but FlashAttention runs significantly faster than exact attention baselines, up to 3 faster than the PyTorch implementation.”
Quote in the paperSubstantial claim - Findingreasoning§ C Proofs
Any algorithm that computes exact attention must incur at least Ω(Nd) HBM accesses.
“However, the input to attention (matrices Q K V ) and the output O have size 𝑁𝑑 and they start out being in HBM, so if the algorithm computes exact attention it must incur at least Ω 𝑁𝑑 HBM accesses.”
Quote in the paperSubstantial claim - Findingreasoning§ 4.1 Faster Models with FlashAttention
FlashAttention achieves the same perplexity as HuggingFace and Megatron-LM implementations for GPT-2.
“FlashAttention achieves the same perplexity as the other two implementations, as we do not change the model definition.”
Quote in the paperSubstantial claim - Findingreasoning§ Algorithm 3 Standard Attention Backward Pass
When computing the softmax gradient, D_i = P_i: dP_i: can be computed without reducing over P_i: and dP_i: of size N; instead D_i = do_i · o_i can be computed as a dot product between vectors of size d.
“When computing the softmax gradient, we use Eq. (4) to compute 𝐷 𝑖 𝑃 𝑖 : 𝑑𝑃 𝑖 : without reducing over 𝑃 𝑖 : and 𝑑𝑃 𝑖 : of size 𝑁 (they might not fit into SRAM). Instead we can rewrite 𝐷 𝑖 𝑑𝑜 𝑖 𝑜 𝑖 and compute the dot product between vectors of size 𝑑 .”
Quote in the paperSubstantial claim - Findingown data§ 4.3 Benchmarking Attention
Runtime grows quadratically with sequence length.
“Runtime grows quadratically with sequence length, but FlashAttention runs significantly faster than exact attention baselines, up to 3 faster than the PyTorch implementation.”
Quote in the paperNot a substantial claim - Findingown data§ 3.2 Analysis: IO Complexity of FlashAttention
FlashAttention's backward pass requires Θ(N^2 d^2 M^{-1}) HBM accesses.
“We similarly prove that the backward pass of standard attention requires Θ 𝑁𝑑 𝑁 2 HBM accesses while the backward pass of FlashAttention requires Θ 𝑁 2 𝑑 2 𝑀 1 HBM accesses (Appendix B).”
Quote in the paperSubstantial claim - Findingown data§ 4.2 Better Models with Longer Sequences
Sequence length 16K outperforms length 512 by 4.3 points on MIMIC.
“Table 5 shows that sequence length 16K outperforms length 512 by 4.3 points on MIMIC, and that length 8K outperforms length 512 by 8.5 points on ECtHR.”
Quote in the paperSubstantial claim - Findingreasoning§ 4.3 Benchmarking Attention
FlashAttention still runs faster than approximate and sparse attention for short sequences.
“The runtimes of many approximate/sparse attention mechanisms grow linearly with sequence length, but FlashAttention still runs faster than approximate and sparse attention for short sequences due to fewer memory accesses.”
Quote in the paperNot a substantial claim - Findingown data§ A Related Work
Block-sparse FlashAttention performs almost as well as dense FlashAttention on the Long-range Arena tasks.
“Out block-sparse FlashAttention can also be seen as a fixed lottery ticket in the context of attention: we fix the sparsity pattern to be the butterfly pattern through training, and observe that it performs almost as well as the (dense) FlashAttention on the Long-range Arena tasks.”
Quote in the paperNot a substantial claim - Findingreasoning§ B.1 Memory-efficient forward pass
Once the softmax normalization constant L_i is computed, the attention output o_i can be computed without extra memory by repeatedly summing e^{q_i^T k_j}/L_i v_j.
“We see that once 𝐿 𝑖 is computed, we can compute 𝑜 𝑖 without extra memory by repeatedly summing 𝑒 𝑞 𝑇 𝑖 𝑘 𝑗 𝐿 𝑖 𝑣 𝑗 .”
Quote in the paperSubstantial claim - Findingown data§ 4.2 Better Models with Longer Sequences
Sequence length 8K outperforms length 512 by 8.5 points on ECtHR.
“Table 5 shows that sequence length 16K outperforms length 512 by 4.3 points on MIMIC, and that length 8K outperforms length 512 by 8.5 points on ECtHR.”
Quote in the paperSubstantial claim - Findingown data§ 3.3 Extension: Block-Sparse FlashAttention
Block-sparse FlashAttention requires Θ(Nd + N^2 d^2 M^{-1} s) HBM accesses where s is the fraction of nonzero blocks in the block-sparsity mask.
“Proposition 4. Let 𝑁 be the sequence length, 𝑑 be the head dimension, and 𝑀 be size of SRAM with 𝑑 𝑀 𝑁𝑑 . Block-sparse FlashAttention (Algorithm 5) requires Θ 𝑁𝑑 𝑁 2 𝑑 2 𝑀 1 𝑠 HBM accesses where 𝑠 is the fraction of nonzero blocks in the block-sparsity mask.”
Quote in the paperSubstantial claim - Findingown data§ 4.2 Better Models with Longer Sequences
FlashAttention achieves 61.4 accuracy on Path-X.
“FlashAttention achieves 61.4 accuracy on Path-X.”
Quote in the paperSubstantial claim - Findingreasoning§ C Proofs
The final value of O in HBM is softmax(S)V = softmax(QK^T)V.
“When 𝑗 𝑇 𝑐 , we conclude that the final value of O in HBM is softmax S V softmax QK V .”
Quote in the paperSubstantial claim - Findingreasoning§ C Proofs
FlashAttention forward pass loads each element of K and V from HBM once and makes T_c passes over Q and O, resulting in Θ(Nd T_c) HBM accesses.
“Following Algorithm 1, we see that each element of K and V is loaded from HBM once (Algorithm 1 line 6). We make 𝑇 𝑐 passes over Q and O , each pass loading all of Q and all of O to HBM (Algorithm 1 line 8). Therefore the number of HBM accesses is Θ 𝑁𝑑 𝑁𝑑𝑇 𝑐 Θ 𝑁𝑑𝑇 𝑐 .”
Quote in the paperSubstantial claim - Findingreasoning§ E.5 Speedup On Different Hardware and Configurations
FlashAttention speedup changes when the head dimension is increased.
“Speedup also changes when we increase the head dimension.”
Quote in the paperNot a substantial claim - Findingown data§ E.5 Speedup On Different Hardware and Configurations
On an A100 GPU with batch size 8, head dimension 64, and 12 attention heads, across different sequence lengths, FlashAttention achieves generally 2-4x speedup over standard PyTorch attention.
“We generally see 2-4 speedup, and we see more speedup when using dropout and masking due to kernel fusion.”
Quote in the paperSubstantial claim - Findingown data§ E.5 Speedup On Different Hardware and Configurations
On an A100 GPU with head dimension 128, batch size 16, and 12 heads, with a causal mask, FlashAttention achieves up to 3x speedup over standard PyTorch attention.
“We see less speedup overall-but we can still see significant speedup (up to 3 ) with a causal mask, where half the blocks are masked out.”
Quote in the paperNot a substantial claim - Findingown data§ E.5 Speedup On Different Hardware and Configurations
On a T4 GPU, FlashAttention speedup over standard PyTorch attention is less than on an A100.
“As a result, we observe less speedup on T4, which matches the IO complexity analysis in Section 3.2.”
Quote in the paperNot a substantial claim - Findingown data§ E.5 Speedup On Different Hardware and Configurations
On an A100 GPU with head dimension 128, batch size 16, and 12 heads, FlashAttention speedup over standard PyTorch attention is less overall than with head dimension 64.
“We see less speedup overall-but we can still see significant speedup (up to 3 ) with a causal mask, where half the blocks are masked out.”
Quote in the paperNot a substantial claim - Findingown data§ E.1 BERT
Each training run of BERT-large on 8 A100-80GB GPUs takes between 16 and 19 minutes, averaged over 10 runs.
“We train the model on 8 A100-80GB GPUs. Each training run takes between 16 and 19 minutes, and we average the results of 10 runs.”
Quote in the paperNot a substantial claim - Findingreasoning§ E.5 Speedup On Different Hardware and Configurations
On an A100 GPU with batch size 8, head dimension 64, and 12 attention heads, FlashAttention speedup over standard PyTorch attention is greater when using dropout and masking than without.
“We generally see 2-4 speedup, and we see more speedup when using dropout and masking due to kernel fusion.”
Quote in the paperNot a substantial claim - Premisenone given§ 2.2 Standard Attention Implementation
Standard attention implementations materialize the matrices S and P to HBM, which takes O(N^2) memory.
“Standard attention implementations materialize the matrices S and P to HBM, which takes 𝑂 𝑁 2 memory.”
Quote in the paperSubstantial claim - Interpretationreasoning§ Abstract
FlashAttention is an IO-aware exact attention algorithm that uses tiling to reduce the number of memory reads/writes between GPU HBM and GPU on-chip SRAM.
“We propose FlashAttention , an IO-aware exact attention algorithm that uses tiling to reduce the number of memory reads/writes between GPU high bandwidth memory (HBM) and GPU on-chip SRAM.”
- Also stated in: § 1 Introduction · plain
“We propose FlashAttention , a new attention algorithm that computes exact attention with far fewer memory accesses.”
Quote in the paperSubstantial claim - Also stated in: § 1 Introduction · plain
- Interpretationreasoning§ 3.3 Extension: Block-Sparse FlashAttention
Applying block-sparsity yields a direct improvement by the sparsity to the larger term in the IO complexity.
“We see that applying block-sparsity yields a direct improvement by the sparsity to the larger term in the IO complexity.”
Quote in the paperSubstantial claim - Interpretationown data§ 4.3 Benchmarking Attention
FlashAttention runs faster than approximate and sparse attention for short sequences due to fewer memory accesses.
“The runtimes of many approximate/sparse attention mechanisms grow linearly with sequence length, but FlashAttention still runs faster than approximate and sparse attention for short sequences due to fewer memory accesses.”
Quote in the paperSubstantial claim - Interpretationreasoning§ B.5 Comparison with Rabe and Staats [66]
Reducing memory accesses necessarily reduces the total amount of memory required.
“Reducing memory accesses also necessarily reduces the total amount of memory required (e.g., if an operation incurs 𝐴 memory accesses, then its total memory requirement is at most 𝐴 ).”
Quote in the paperSubstantial claim - Premisenone given§ B.1 Memory-efficient forward pass
The main challenge in making attention memory-efficient is the softmax that couples the columns of K (and columns of V).
“The main challenge in making attention memory-efficient is the softmax that couples the columns of K (and columns of V ).”
Quote in the paperSubstantial claim - Premisenone given§ D.2 Potential Extensions
FlashAttention relies on the fact that the N×N attention matrix is a function of a low-rank matrix QK^T of rank d << N.
“Our approach in FlashAttention relies on the fact that the 𝑁 𝑁 attention matrix is a function of a low-rank matrix QK (of rank 𝑑 𝑁 ).”
Quote in the paperSubstantial claim - Interpretationreasoning§ E.5 Speedup On Different Hardware and Configurations
On a T4 GPU, smaller block sizes are needed in FlashAttention to fit into SRAM.
“T4 SRAM is smaller than A100, so we need to make the block sizes smaller in FlashAttention .”
Quote in the paperNot a substantial claim- Rests on an assumption: T4 SRAM is smaller than A100 SRAM.
- Interpretationnone given§ E.5 Speedup On Different Hardware and Configurations
FlashAttention speedup varies between different GPU types and generations depending on HBM bandwidth and SRAM size.
“Speedup varies between different types of GPU types and generations depending on HBM bandwidth and SRAM size.”
Quote in the paperNot a substantial claim - Interpretationreasoning§ E.5 Speedup On Different Hardware and Configurations
The observed less FlashAttention speedup on T4 matches the IO complexity analysis in Section 3.2.
“As a result, we observe less speedup on T4, which matches the IO complexity analysis in Section 3.2.”
Quote in the paperNot a substantial claim - Interpretationown data§ E.5 Speedup On Different Hardware and Configurations
The greater FlashAttention speedup over standard PyTorch attention when using dropout and masking is due to kernel fusion.
“We generally see 2-4 speedup, and we see more speedup when using dropout and masking due to kernel fusion.”
Quote in the paperNot a substantial claim - Interpretationown data§ E.5 Speedup On Different Hardware and Configurations
The higher FlashAttention speedup on RTX 3090 compared to A100 is because the RTX 3090's memory bandwidth is lower than the A100's.
“We observe slightly higher speedups on the RTX 3090 (between 2.5-4.5 ), since the memory bandwidth on an RTX 3090 is lower than on an A100 (roughly 900 GB/s vs. 1.5 TB/s).”
Quote in the paperNot a substantial claim- Rests on an assumption: RTX 3090 memory bandwidth is roughly 900 GB/s and A100 memory bandwidth is roughly 1.5 TB/s, and the RTX 3090's is lower.
- May combine two claims. 48
- Classified as probably not a substantial claim. 19
May combine two claims.
Premisecitation§ 3.3 Extension: Block-Sparse FlashAttentionFor large sequence lengths N, s is often set to N^{-1/2} or N^{-1} log N, resulting in Θ(N sqrt N) or Θ(N log N) IO complexity.
“For large sequence lengths 𝑁 , 𝑠 is often set to 𝑁 1 2 [11] or 𝑁 1 log 𝑁 [3, 17, 92], resulting in Θ 𝑁 𝑁 or Θ 𝑁 log 𝑁 IO complexity.”
Quote in the paperNot a substantial claim4 of 4 sources checked- cites [11] [11] Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509 , 2019. - source
The citation to Child et al. is attached to the logarithmic-complexity option. Instead, Section 4.3 (p. 4) chooses a stride close to √N, and Section 4.2 (p. 4) gives O(N√N) computation. The paper does not give the attributed Θ(N log N) IO complexity. (LLM, conf=0.85)
Checked by a reasoning model — may be wrong.
Experimental — accuracy not yet measured - cites [3] [3] Iz Beltagy, Matthew E Peters, and Arman Cohan. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150 , 2020. - source
Section 3.1 (p. 3) gives sliding-window attention a computation complexity of O(n × w) for a fixed window size. Our copy does not say that sparsity s is set to N⁻¹ log N or give a Θ(N log N) IO complexity; a search for those terms found no supporting passage. (LLM, conf=0.73)
Experimental — accuracy not yet measured - cites [17] [17] Tri Dao, Beidi Chen, Kaizhao Liang, Jiaming Yang, Zhao Song, Atri Rudra, and Christopher Ré. Pixelated butterfly: Simple and efficient sparse training for neural network models. In International Conference on Learning Representations (ICLR) , 2022. - source
Section 3.2 (p. 5) says flat butterfly matrices have O(n log k) nonzeros; with maximum stride k = n, this supports an O(N log N) sparsity pattern. The Problem Formulation (p. 17) relates memory accesses to nonzero blocks. The paper does not state that s is often set to either claimed value, or establish the stated Θ IO complexities, including the Θ(N√N) case. (LLM, conf=0.78)
Experimental — accuracy not yet measured - cites [92] [92] Manzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, et al. Big bird: Transformers for longer sequences. Advances in Neural Information Processing Systems , 33, 2020. - source
Section 2 (pp. 3–4) describes sparse attention and its reduced complexity, including attention to a limited number of random keys. It does not specify a sparsity fraction of (log N)/N or establish Θ(N log N) IO complexity; the Θ(N√N) alternative is attached to a different citation in the citing sentence. (LLM, conf=0.76)
Experimental — accuracy not yet measured
May combine two claims.
Findingcitation§ AbstractFlashAttention and block-sparse FlashAttention enable longer context in Transformers, yielding higher quality models (0.7 better perplexity on GPT-2 and 6.4 points of lift on long-document classification).
“FlashAttention and block-sparse FlashAttention enable longer context in Transformers, yielding higher quality models (0.7 better perplexity on GPT-2 and 6.4 points of lift on long-document classification) and entirely new capabilities: the first”
- Also stated in: § 1 Introduction · plain
“We observe a 0.7 improvement in perplexity on GPT-2 and 6.4 points of lift from modeling longer sequences on long-document classification [13].”
- Also stated in: § 4 Experiments · plain
“Modeling longer sequences yields 6.4 points of lift on two longdocument classification tasks.”
Quote in the paperSubstantial claim1 of 1 sources checked- cites [13] [13] Xiang Dai, Ilias Chalkidis, Sune Darkner, and Desmond Elliott. Revisiting transformer-based models for long document classification. arXiv preprint arXiv:2204.06683 , 2022. - source
The Introduction and Conclusions report that processing more text can improve long-document classification, and §3.1 describes Longformer as a way to process longer sequences. Our copy does not attribute those gains to FlashAttention or block-sparse FlashAttention, and it does not report the claimed 0.7 GPT-2 perplexity improvement or 6.4-point classification lift (searched those terms and figures). Page numbers were not available in our copy. (LLM, conf=0.86)
Experimental — accuracy not yet measured
- Also stated in: § 1 Introduction · plain
May combine two claims.
Premisereasoning§ AbstractApproximate attention methods reduce compute complexity by trading off model quality but often do not achieve wall-clock speedup.
“Approximate attention methods have attempted to address this problem by trading off model quality to reduce the compute complexity, but often do not achieve wall-clock speedup.”
- Also stated in: § 1 Introduction · plain
“Although these methods reduce the compute requirements to linear or near-linear in sequence length, many of them do not display wall-clock speedup against standard attention and have not gained wide adoption.”
Quote in the paperSubstantial claim5 of 5 sources checked- cites [51] [51] Nikita Kitaev, Łukasz Kaiser, and Anselm Levskaya. Reformer: The efficient transformer. In The International Conference on Machine Learning (ICML) , 2020. - source
The Introduction (p. 1) says LSH attention reduces complexity from O(L²) to O(L log L), and the synthetic-task analysis (p. 5) reports accuracy losses in some settings. But the paper does not support the claim that approximate attention methods often fail to achieve wall-clock speedups; its Experiments section (p. 9) reports that LSH attention remains fast as sequence length increases while regular attention slows. (LLM, conf=0.87)
Experimental — accuracy not yet measured - cites [74] [74] Aurko Roy, Mohammad Saffar, Ashish Vaswani, and David Grangier. Efficient content-based sparse attention with routing transformers. Transactions of the Association for Computational Linguistics , 9: 53-68, 2021. - source
The Abstract says sparse attention reduces compute complexity, and §6.1 reports that local attention was slightly worse than full attention on CIFAR-10. Section 6.3 supports a qualified wall-clock concern: Routing Transformer was slower than local attention on the reported TPU tests. But local attention was faster than full attention, and some Routing Transformer configurations were faster too, so the paper does not establish that approximate attention methods generally fail to achieve wall-clock speedups. (LLM, conf=0.84)
Experimental — accuracy not yet measured - cites [12] [12] Krzysztof Marcin Choromanski, Valerii Likhosherstov, David Dohan, Xingyou Song, Andreea Gane, Tamas Sarlos, Peter Hawkins, Jared Quincy Davis, Afroz Mohiuddin, Lukasz Kaiser, et al. Rethinking attention with performers. In International Conference on Learning Representations (ICLR) , 2020. - source
The Introduction and Related Work (p. 1) describes more tractable attention methods and limitations that can affect their representation power or accuracy. Section 2.2 (p. 3) shows reduced time complexity for the paper’s approximate attention mechanism. But the paper does not say that approximate methods often fail to achieve wall-clock speedups; Section 4.1 (p. 6) instead reports lower wall-clock time for its own method. (LLM, conf=0.84)
Experimental — accuracy not yet measured - cites [50] [50] Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and François Fleuret. Transformers are RNNs: Fast autoregressive transformers with linear attention. In International Conference on Machine Learning , pages 5156-5165. PMLR, 2020. - source
The Introduction (p. 1) says sparse attention and locality-sensitive hashing reduce computational complexity but do not speed up autoregressive inference. That supports the speed claim only for that setting: the paper also says these methods can be trained efficiently on long sequences, and it does not establish a general trade-off in model quality. (LLM, conf=0.86)
Experimental — accuracy not yet measured - cites [84] [84] Sinong Wang, Belinda Z Li, Madian Khabsa, Han Fang, and Hao Ma. Linformer: Self-attention with linear complexity. arXiv preprint arXiv:2006.04768 , 2020. - source
The Introduction (p. 1) says sparse attention reduces complexity but incurs a performance drop, while Reformer’s efficiency gains appear only for sequences longer than 2048 tokens. The claim overstates the wall-clock point for sparse attention: the paper reports a limited but real 20% speedup, not no speedup. (LLM, conf=0.85)
Experimental — accuracy not yet measured
- Also stated in: § 1 Introduction · plain
May combine two claims.
Findingreasoning§ B.5 Comparison with Rabe and Staats [66]Rabe and Staats [66] focuses on reducing total memory footprint while FlashAttention focuses on reducing memory accesses.
“The first major difference is that Rabe and Staats [66] focuses on the reducing the total memory footprint (maximum amount of GPU memory required) while FlashAttention focuses on reducing memory accesses (the number of memory reads/writes).”
Quote in the paperNot a substantial claim1 of 1 sources checked- cites Rabe and Staats [66] source
May combine two claims.
Premisecitation§ 4.2 Better Models with Longer SequencesIn prior work, all transformer models have either run out of memory or only achieved random performance on Path-X and Path-256.
“In prior work, all transformer models have either run out of memory, or only achieved random performance [80].”
Quote in the paperSubstantial claim1 of 1 sources checked- cites [80] [80] Yi Tay, Mostafa Dehghani, Samira Abnar, Yikang Shen, Dara Bahri, Philip Pham, Jinfeng Rao, Liu Yang, Sebastian Ruder, and Donald Metzler. Long range arena: A benchmark for efficient transformers. In International Conference on Learning Representations , 2020. - source
The Quantitative Results (p. 7) say that all models evaluated on Path-X failed, achieving at best 50% accuracy, consistent with chance performance. The paper does not establish this for all transformer models or for Path-256, and the cited passages do not say that any Path-X model ran out of memory. (LLM, conf=0.88)
Experimental — accuracy not yet measured
Probably not a substantial claim: may not pass S3 (load-bearing).
Premisecitation§ 4.2 Better Models with Longer SequencesLRA accuracy results are highly dependent on the tuning procedure.
“3 LRA accuracy results are known to be highly dependent on the tuning procedure [90].”
Quote in the paperNot a substantial claim1 of 1 sources checked- cites [90] [90] Yunyang Xiong, Zhanpeng Zeng, Rudrasis Chakraborty, Mingxing Tan, Glenn Fung, Yin Li, and Vikas Singh. Nyströmformer: A nystöm-based algorithm for approximating self-attention. In Proceedings of the AAAI Conference on Artificial Intelligence. AAAI Conference on Artificial Intelligence , volume 35, page 14138, 2021. - source
The Long Range Arena Benchmark section (p. 8) describes the evaluation setup and reports accuracy, but does not say that accuracy is highly dependent on the tuning procedure. Searches for LRA tuning and hyperparameter sensitivity found a sensitivity discussion only for MRPC, a different task (Fine-tuning on Downstream NLP tasks, p. 7). (LLM, conf=0.76)
Experimental — accuracy not yet measured
May combine two claims.
Findingreasoning§ B.5 Comparison with Rabe and Staats [66]FlashAttention is faster than standard attention (2-4×) while Rabe and Staats [66] is around the same speed or slightly slower than standard attention.
“As a result, FlashAttention is faster than standard attention (2-4 ) while Rabe and Staats [66] is around the same speed or slightly slower than standard attention.”
Quote in the paperNot a substantial claim1 of 1 sources checked- cites Rabe and Staats [66] source
Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.
Premisecitation§ A Related WorkEven though structured matrices are efficient in theory, they have not seen wide adoption since it is hard to translate their efficiency to wall-clock speedup since dense unconstrained matrix multiply has very optimized implementation, a phenomenon known as the hardware lottery.
“However, even though structured matrices are efficient in theory, they have not seen wide adoption since it is hard to translate their efficiency to wall-clock speedup since dense unconstrained matrix multiply has very optimize implementation, a phenomenon known as the hardware lottery [41].”
Quote in the paperNot a substantial claim1 of 1 sources checked- cites [41] [41] Sara Hooker. The hardware lottery. arXiv preprint arXiv:2009.06489 , 2020. - source
Split into 2 atoms — 0 confirmed, 2 partially supported, 0 disputed, 0 misattributed, 0 unverifiable. Expand the claim to see per-atom verdicts.
Experimental — accuracy not yet measured
May combine two claims.
Findingreasoning§ B.5 Comparison with Rabe and Staats [66]FlashAttention simplifies the backward pass analytically, only recomputes the attention matrix and does not recompute the temporary output of each block, reducing memory requirement for the backward pass and yielding speedup compared to Rabe and Staats [66].
“FlashAttention instead simplifies the backward pass analytically (Appendices B.2 and B.4). It only recomputes the attention matrix and does not recompute the temporary output of each block. This reduces the memory requirement for the backward pass and yields speedup.”
Quote in the paperSubstantial claim1 of 1 sources checked- cites Rabe and Staats [66] source
Split into 2 atoms — 0 confirmed, 2 partially supported, 0 disputed, 0 misattributed, 0 unverifiable. Expand the claim to see per-atom verdicts.
Experimental — accuracy not yet measured
May combine two claims.
Findingown data§ 4.1 Faster Models with FlashAttentionGPT-2 small and medium using FlashAttention achieve up to 3x speedup compared to Huggingface and up to 1.7x compared to Megatron-LM.
“Table 2 shows up to 3 endto-end speedup compared to Huggingface and 1.7 speedup compared to Megatron-LM.”
- Also stated in: § 4.1 Faster Models with FlashAttention · plain
“GPT-2 small and medium using FlashAttention achieve up to 3 speed up compared to Huggingface implementation and up to 1.7 compared to Megatron-LM.”
Quote in the paperSubstantial claim2 of 2 sources checked- cites [87] [87] Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander M. Rush. Transformers: State-of-the-art natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations , pages 38-45, Online, October 2020. Association for Computational Linguistics. URL https://www source
The Deployment section reports a nearly 4× speedup using ONNX, not FlashAttention. Searches for the claimed 3× and 1.7× end-to-end comparisons found no such results in our copy; Related Work mentions Megatron-LM but does not benchmark against it. (LLM, conf=0.77)
Experimental — accuracy not yet measured - cites [77] [77] Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared Casper, and Bryan Catanzaro. Megatron-LM: Training multi-billion parameter language models using model parallelism. arXiv preprint arXiv:1909.08053 , 2019. - source
- Also stated in: § 4.1 Faster Models with FlashAttention · plain
May combine two claims.
Findingreasoning§ B.5 Comparison with Rabe and Staats [66]FlashAttention has smaller total memory requirement compared to Rabe and Staats [66] because it incrementally updates the output after processing each block, needing only one copy instead of K copies for K blocks.
“FlashAttention instead incrementally updates the output (Algorithm 1 line 12) after processing each block, so only one copy of the output is needed (instead of 𝐾 copies for 𝐾 blocks). This means that FlashAttention has smaller total memory requirement compared to Rabe and Staats [66].”
Quote in the paperSubstantial claim1 of 1 sources checked- cites Rabe and Staats [66] source
Section 4 (p. 4) says the practical implementation keeps one summary per key/value chunk before rescaling them, producing √n summaries and O(√n) memory overhead. That supports the comparison with storing K intermediate results, but the paper does not establish the claimed smaller total memory requirement for FlashAttention. It also describes an O(log n)-memory self-attention algorithm in the Abstract (p. 1), so the comparison cannot be applied to all of its methods. (LLM, conf=0.84)
Experimental — accuracy not yet measured
May combine two claims.
Findingown data§ 4.1 Faster Models with FlashAttentionFlashAttention yields the fastest single-node BERT training speed known to the authors, 15% faster than Nvidia MLPerf 1.1.
“FlashAttention yields the fastest single-node BERT training speed that we know of. We train a BERT-large [22] model with FlashAttention on Wikipedia. Table 1 compares our training time to the implementation from Nvidia that set the training speed record for MLPerf 1.1 [58]. Our implementation is 15% faster.”
Quote in the paperSubstantial claim1 of 2 sources checked- cites [22] [22] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. 2019. - source
- cites [58] [58] Peter Mattson, Christine Cheng, Gregory Diamos, Cody Coleman, Paulius Micikevicius, David Patterson, Hanlin Tang, Gu-Yeon Wei, Peter Bailis, Victor Bittorf, et al. Mlperf training benchmark. Proceedings of Machine Learning and Systems , 2:336-349, 2020. - source
The citation is attached to the claim that an NVIDIA implementation set the MLPerf 1.1 training-speed record, not to the citing authors’ 15% comparison. The Results (p. 9) discuss only MLPerf v0.5 and v0.6; searches for MLPerf 1.1, NVIDIA, and BERT found no passage establishing the cited record. (LLM, conf=0.76)
Experimental — accuracy not yet measured
Classified as probably not a substantial claim.
Premisecitation§ B.2 Memory-efficient backward passThe backward pass of attention can be done without quadratic extra memory by applying gradient checkpointing to the memory-efficient forward pass.
“Rabe and Staats [66] suggests that the backward pass can be done without quadratic extra memory by applying gradient checkpointing to the memory-efficient forward pass.”
Quote in the paperSubstantial claim1 of 1 sources checked- cites Rabe and Staats [66] source
May combine two claims.
Findingown data§ 1 IntroductionBlock-sparse FlashAttention is 2-4x faster than even FlashAttention, scaling up to sequence length of 64k.
“As a proof of concept, we implement block-sparse FlashAttention , a sparse attention algorithm that is 2-4 faster than even FlashAttention , scaling up to sequence length of 64k.”
Quote in the paperSubstantial claimMay combine two claims.
Findingown data§ Algorithm 1 FlashAttentionAlgorithm 1 returns O = softmax(QK^T)V with O(N^2 d) FLOPs and requires O(N) additional memory beyond inputs and output.
“Theorem 1. Algorithm 1 returns O softmax QK V with 𝑂 𝑁 2 𝑑 FLOPs and requires 𝑂 𝑁 additional memory beyond inputs and output.”
Quote in the paperSubstantial claimMay combine two claims.
Findingown data§ AbstractFlashAttention is optimal for a range of SRAM sizes; no exact attention algorithm can asymptotically improve on the number of HBM accesses over all SRAM sizes.
“and is optimal for a range of SRAM sizes.”
- Also stated in: § 1 Introduction · plain
“Moreover, we provide a lower bound, showing that no exact attention algorithm can asymptotically improve on the number of HBM accesses over all SRAM sizes.”
- Also stated in: § 3.2 Analysis: IO Complexity of FlashAttention · plain
“Proposition 3. Let 𝑁 be the sequence length, 𝑑 be the head dimension, and 𝑀 be size of SRAM with 𝑑 𝑀 𝑁𝑑 . There does not exist an algorithm to compute exact attention with 𝑜 𝑁 2 𝑑 2 𝑀 1 HBM accesses for all 𝑀 in the range 𝑑 𝑁𝑑 .”
Quote in the paperSubstantial claim- Also stated in: § 1 Introduction · plain
May combine two claims.
Findingreasoning§ 1 IntroductionFlashAttention runs faster (up to 7.6x on GPT-2) and uses less memory-linear in sequence length-than standard attention, even with increased FLOPs due to recomputation.
“Even with the increased FLOPs due to recomputation, our algorithm both runs faster (up to 7.6x on GPT-2 [67], Figure 1 right) and uses less memory -linear in sequence length-than standard attention, thanks to the massively reduced amount of HBM access.”
Quote in the paperSubstantial claim0 of 1 sources checked- cites [67] [67] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. Language models are unsupervised multitask learners. OpenAI blog , 1(8):9, 2019. -
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
- Rests on an assumption: All gradient checkpointing implementations known to the authors trade speed for memory.
May combine two claims.
Findingown data§ 1 IntroductionFlashAttention is up to 3x faster than standard attention across common sequence lengths from 128 to 2K and scales up to 64K.
“FlashAttention is up to 3 faster than the standard attention implementation across common sequence lengths from 128 to 2K and scales up to 64K.”
Quote in the paperSubstantial claimMay combine two claims.
Findingown data§ 1 IntroductionUp to sequence length of 512, FlashAttention is both faster and more memory-efficient than any existing attention method.
“Up to sequence length of 512, FlashAttention is both faster and more memory-efficient than any existing attention method, whereas for sequence length beyond 1K, some approximate attention methods (e.g., Linformer) start to become faster.”
Quote in the paperSubstantial claimMay combine two claims.
Findingown data§ 4.3 Benchmarking AttentionFlashAttention is up to 20× more memory efficient than exact attention baselines, and is more memory-efficient than the approximate attention baselines.
“FlashAttention is up to 20 more memory efficient than exact attention baselines, and is more memory-efficient than the approximate attention baselines.”
Quote in the paperSubstantial claimMay combine two claims.
Findingreasoning§ Algorithm 4 FlashAttention Backward PassStandard attention backward pass requires Θ(Nd + N^2) HBM accesses, while FlashAttention backward pass requires Θ(N^2 d^2 M^{-1}) HBM accesses.
“Theorem 5. Let 𝑁 be the sequence length, 𝑑 be the head dimension, and 𝑀 be size of SRAM with 𝑑 𝑀 𝑁𝑑 . Standard attention (Algorithm 0) backward pass requires Θ 𝑁𝑑 𝑁 2 HBM accesses, while FlashAttention backward pass (Algorithm 4) requires Θ 𝑁 2 𝑑 2 𝑀 1 HBM accesses.”
- Also stated in: § C Proofs · plain
“At each step of the standard attention backward pass, one needs to load inputs of size 𝑁𝑑 or 𝑁 2 from HBM, and needs to write the outputs of size 𝑁 2 or 𝑁𝑑 to HBM. This incurs Θ 𝑁𝑑 𝑁 2 HBM accesses.”
- Also stated in: § C Proofs · plain
“Similar to Theorem 2, we see that each element of K and V is loaded from HBM once. Each element of dK and dV is only written to HBM once. We make 𝑇 𝑐 passes over Q O dO , each pass loading all of Q O dO to HBM. We also make 𝑇 𝑐 passes over dQ , each pass reading/writing all of dQ from/to HBM. Therefore the number of HBM accesses is Θ 𝑁𝑑 𝑁𝑑𝑇 𝑐 Θ 𝑁𝑑𝑇 𝑐 .”
Quote in the paperSubstantial claim- Also stated in: § C Proofs · plain
Probably not a substantial claim: may not pass S3 (load-bearing), S4 (based).
Findingnone given§ 5 Limitations and Future DirectionsOur IO-aware implementation of attention is optimal within constants for computing attention on a single GPU.
“Our IO-aware implementation of attention is optimal within constants for computing attention on a single GPU.”
Quote in the paperNot a substantial claimMay combine two claims.
Findingown data§ Algorithm 4 FlashAttention Backward PassFlashAttention backward pass performs O(N^2) FLOPs and only requires O(N) extra memory beyond inputs, output, output gradient, and input gradients.
“We see that similar to the forward pass, the backward pass performs 𝑂 𝑁 2 FLOPs and only requires 𝑂 𝑁 extra memory beyond inputs, output, output gradient, and input gradients.”
Quote in the paperSubstantial claimClassified as probably not a substantial claim.
Findingnone given§ 4.3 Benchmarking AttentionThe runtimes of many approximate/sparse attention mechanisms grow linearly with sequence length.
“The runtimes of many approximate/sparse attention mechanisms grow linearly with sequence length, but FlashAttention still runs faster than approximate and sparse attention for short sequences due to fewer memory accesses.”
Quote in the paperSubstantial claimMay combine two claims.
Findingreasoning§ Algorithm 3 Standard Attention Backward PassFlashAttention backward pass does not need to store the dropout mask of size O(N^2) from the forward pass; saving PRNG states and regenerating the dropout mask in the backward pass allows only O(N) extra memory.
“We do not need to store the dropout mask of size 𝑂 𝑁 2 from the forward pass. Instead, we can save the pseudo-random number generator states from the forward pass and re-generate the dropout mask in the backward pass. This allows us to only use 𝑂 𝑁 extra memory.”
Quote in the paperSubstantial claimMay combine two claims.
Findingown data§ 4.2 Better Models with Longer SequencesGPT-2 with FlashAttention and context length 4K is still 30% faster than GPT-2 from Megatron with context length 1K, while achieving 0.7 better perplexity.
“Table 4 shows that that GPT-2 with FlashAttention and context length 4K is still 30% faster than GPT-2 from Megatron with context length 1K, while achieving 0.7 better perplexity.”
Quote in the paperSubstantial claimMay combine two claims.
Findingown data§ 4.2 Better Models with Longer SequencesBlock-sparse FlashAttention enables Transformers to scale to sequence length 64K, achieving 63.1 accuracy on Path-256.
“Additionally, block-sparse FlashAttention enables the Transformers to scale to sequence length 64K, achieving 63.1 accuracy 4 on Path-256.”
Quote in the paperSubstantial claimMay combine two claims.
Findingown data§ 4.3 Benchmarking AttentionAll other algorithms except for Linformer run out of memory on an A100 GPU before 64K, and FlashAttention is still 2× more efficient than Linformer.
“All other algorithms except for Linformer run out of memory on an A100 GPU before 64K, and FlashAttention is still 2 more efficient than Linformer.”
Quote in the paperSubstantial claimMay combine two claims.
Findingown data§ 4.3 Benchmarking AttentionFlashAttention and block-sparse FlashAttention have the same memory footprint, which grows linearly with sequence length.
“FlashAttention and block-sparse FlashAttention have the same memory footprint, which grows linearly with sequence length.”
Quote in the paperNot a substantial claimMay combine two claims.
Findingown data§ 3.3 Extension: Block-Sparse FlashAttentionBlock-sparse FlashAttention achieves 2.8x speedup on the LRA benchmark while performing on par with standard attention.
“On the LRA benchmark, block-sparse FlashAttention achieves 2.8 speedup, while performing on par with standard attention (Section 4).”
Quote in the paperSubstantial claimMay combine two claims.
Findingown data§ 4.1 Faster Models with FlashAttentionFlashAttention is as numerically stable as the baselines and produces the same training/validation curves.
“Appendix E includes plots of the validation perplexity throughout training, confirming that FlashAttention is as numerically stable as the baselines and produces the same training / validation curves.”
Quote in the paperSubstantial claimMay combine two claims.
Findingnone given§ 4.2 Better Models with Longer SequencesBoth MIMIC-III and ECtHR contain very long text documents; the average number of tokens in MIMIC is 2,395 tokens, and the longest document contains 14,562 tokens, while the average and longest numbers in ECtHR are 2,197 and 49,392, respectively.
“Both of these datasets contain very long text documents; the average number of tokens in MIMIC is 2,395 tokens, and the longest document contains 14,562 tokens, while the average and longest numbers in ECtHR are 2,197 and 49,392, respectively.”
Quote in the paperSubstantial claimMay combine two claims.
Findingown data§ 4 ExperimentsThe runtime of block-sparse FlashAttention scales linearly in sequence length and is faster than all existing approximate attention baselines.
“We confirm that runtime of block-sparse FlashAttention scales linearly in seq. length and is faster than all existing approximate attention baselines.”
Quote in the paperSubstantial claimMay combine two claims.
Findingreasoning§ B Algorithm DetailsAttention forward and backward passes can be computed with O(n) extra memory, linear instead of quadratic in the sequence length.
“We first derive the forward and backward passes of attention and show that they can be computed in a memory-efficient manner (requiring extra memory linear instead of quadratic in the sequence length).”
- Also stated in: § B.1 Memory-efficient forward pass · plain
“Therefore the forward pass can be computed with 𝑂 𝑛 extra memory:”
- Also stated in: § B.2 Memory-efficient backward pass · plain
“Therefore the backward pass can also be computed with 𝑂 𝑛 extra memory:”
Quote in the paperSubstantial claim- Also stated in: § B.1 Memory-efficient forward pass · plain
May combine two claims.
Findingown data§ 4 ExperimentsThe memory footprint of FlashAttention scales linearly with sequence length and is up to 3x faster than standard attention for common sequence lengths up to 2K.
“We confirm that the memory footprint of FlashAttention scales linearly with seq. length and is up to 3 faster than standard attention for common seq. lengths (up to 2K).”
Quote in the paperSubstantial claimMay combine two claims.
Findingown data§ E.5 Speedup On Different Hardware and ConfigurationsOn an RTX 3090 GPU with batch size 12 and 12 attention heads, FlashAttention speedup over standard PyTorch attention is between 2.5-4.5x, slightly higher than on an A100.
“We observe slightly higher speedups on the RTX 3090 (between 2.5-4.5 ), since the memory bandwidth on an RTX 3090 is lower than on an A100 (roughly 900 GB/s vs. 1.5 TB/s).”
Quote in the paperNot a substantial claimMay combine two claims.
Findingreasoning§ E.4 Comparison with Apex FMHAFlashAttention can support much longer sequences (e.g., up to length 64K), more head dimensions (16, 32, 64, 128), and broader GPU types (all Turing and Ampere GPUs at the time of writing).
“As a result, we can support much longer sequences (e.g., up to length 64K). We also support more head dimensions (16, 32, 64, 128) and broader GPU types (all Turing and Ampere GPUs at the time of writing).”
Quote in the paperSubstantial claimMay combine two claims.
Findingown data§ E.2 GPT-2Training GPT-2 small takes between 2.7-9.5 days, and training GPT-2 medium takes between 6.9-21.0 days on 8 A100-40GB GPUs.
“We train the model on 8 A100-40GB GPUs, and we measure the wall-clock training time. Training GPT-2 small takes between 2.7-9.5 days, and training GPT-2 medium takes between 6.9-21.0 days (Table 2).”
Quote in the paperNot a substantial claimMay combine two claims.
Findingreasoning§ D.1 Block-sparse FlashAttentionFor block-sparse FlashAttention, the number of HBM accesses is scaled by s, the fraction of nonzero blocks in the block-sparsity mask, but for small s the result O must still be written.
“For the block-sparse case, notice that we only need to load blocks corresponding to nonzero blocks. As a result, the number of HBM accesses are scaled by 𝑠 , the fraction of nonzero blocks in the block-sparsity mask. However, for small values of 𝑠 , we would still need to write the result O 𝑁 𝑑 . Therefore the number of HBM accesses is”
Quote in the paperSubstantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
Findingnone given§ E.6 Full Benchmarking ResultsLongformer and BigBird do not support sequence lengths longer than 8092.
“Longformer and BigBird do not support sequence lengths longer than 8092.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
Findingnone given§ E.6 Full Benchmarking ResultsLocal Attention's implementation only supports FP32.
“We use FP16 for all measurements, except for Local Attention, whose implementation only supports FP32.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
Findingnone given§ E.3 LRA detailsAfter hyperparameter tuning, almost all attention methods achieve similar accuracy on all five LRA tasks.
“After hyperparameter tuning, almost all of the attention methods achieve similar accuracy on all of the five LRA tasks.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
Findingnone given§ E.6 Full Benchmarking ResultsBlock-Sparse (OpenAI) does not support sequence lengths longer than 4096.
“Block-Sparse (OpenAI) does not support sequence lengths longer than 4096.”
Quote in the paperNot a substantial claimMay combine two claims.
Findingown data§ E.4 Comparison with Apex FMHACompared to FMHA, overall runtime of FlashAttention is about 4% slower for sequence length 128, 8% faster for sequence length 256, and 5% faster for sequence length 512.
“Compared to FMHA, the overall runtime of FlashAttention is about 4% slower for sequence length 128, 8% faster for sequence length 256, and 5% faster for sequence length 512.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
Findingnone given§ E.6 Full Benchmarking ResultsThe Megatron implementation does not support sequence lengths longer than 2048.
“The Megatron implementation does not support sequence lengths longer than 2048.”
Quote in the paperNot a substantial claimMay combine two claims.
Findingreasoning§ E.4 Comparison with Apex FMHAFlashAttention is slightly faster than FMHA in the forward pass and slightly slower than FMHA in the backward pass.
“Generally FlashAttention is slightly faster than FMHA in the forward pass and slightly slower than FMHA in the backward pass.”
Quote in the paperNot a substantial claimMay combine two claims.
Findingreasoning§ E.4 Comparison with Apex FMHAFMHA stores the attention matrix softmax mask QK^T to HBM in the forward pass for gradient computation, so it does not offer substantial memory saving.
“In the forward pass, it stores the attention matrix softmax mask QK 𝑇 to HBM to be used in gradient computation. As a result, it does not offer substantial memory saving (though for shorter sequences memory footprint is often not a primary concern).”
Quote in the paperNot a substantial claimMay combine two claims.
Findingown data§ E.2 GPT-2FlashAttention behaves the same as the baseline HuggingFace implementation, with validation perplexity curves of the two implementations almost lying on top of each other.
“We see that FlashAttention behaves the same as the baseline implementation and the validation perplexity curves of the two implementations almost lie on top of each other.”
Quote in the paperSubstantial claimProbably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.
Findingown data§ E.3 LRA detailsFor Path-X, additional fine-tuning adds roughly 4 points of accuracy to FlashAttention, but the model starts overfitting afterwards.
“For Path-X, we take the best performing checkpoint (according to val accuracy), and additionally fine-tune it for 200 epochs with the same warmup and learning rate (this adds roughly 4 points of accuracy to FlashAttention for Path-X, but the model starts overfitting afterwards).”
Quote in the paperNot a substantial claimMay combine two claims.
Premisereasoning§ AbstractTransformers are slow and memory-hungry on long sequences because self-attention time and memory complexity are quadratic in sequence length.
“Transformers are slow and memory-hungry on long sequences, since the time and memory complexity of self-attention are quadratic in sequence length.”
- Also stated in: § 1 Introduction · plain
“since the self-attention module at their heart has time and memory complexity quadratic in sequence length.”
Quote in the paperSubstantial claim- Also stated in: § 1 Introduction · plain
Probably not a substantial claim: may not pass S3 (load-bearing).
Premisecitation§ 1 IntroductionIO-aware algorithms have been critical for memory-bound operations such as database joins, image processing, and numerical linear algebra.
“IO-aware algorithms have been critical for similar memory-bound operations, when reading and writing data can account for a large portion of the runtime-such as database joins [71], image processing [70], numerical linear algebra [4], and more [40, 85].”
Quote in the paperNot a substantial claim0 of 3 sources checked- cites [71] [71] Raghu Ramakrishnan, Johannes Gehrke, and Johannes Gehrke. Database management systems , volume 3. McGraw-Hill New York, 2003. -
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
- cites [70] [70] Jonathan Ragan-Kelley, Connelly Barnes, Andrew Adams, Sylvain Paris, Frédo Durand, and Saman Amarasinghe. Halide: a language and compiler for optimizing parallelism, locality, and recomputation in image processing pipelines. Acm Sigplan Notices , 48(6):519-530, 2013. - source
- cites [4] [4] L Susan Blackford, Antoine Petitet, Roldan Pozo, Karin Remington, R Clint Whaley, James Demmel, Jack Dongarra, Iain Duff, Sven Hammarling, Greg Henry, et al. An updated set of basic linear algebra subprograms (blas). ACM Transactions on Mathematical Software , 28(2):135-151, 2002. -
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
May combine two claims.
Study design and conductnone given§ 1 IntroductionFlashAttention is implemented in CUDA to achieve fine-grained control over memory access and fuse all attention operations into one GPU kernel.
“We implement FlashAttention in CUDA to achieve fine-grained control over memory access and fuse all the attention operations into one GPU kernel.”
Quote in the paperSubstantial claim- Rests on an assumption: Common Python interfaces to deep learning such as PyTorch and Tensorflow do not allow fine-grained control of memory access.
May combine two claims.
Interpretationreasoning§ 5 Limitations and Future DirectionsBuilding IO-aware implementations of attention requires writing the attention algorithm in a considerably lower-level language than PyTorch, and requires significant engineering effort.
“This requires writing the attention algorithm in a considerably lower-level language than PyTorch, and requires significant engineering effort.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
Interpretationreasoning§ 5 Limitations and Future DirectionsImplementations may also not be transferrable across GPU architectures.
“Implementations may also not be transferrable across GPU architectures.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
Interpretationnone given§ 5 Limitations and Future DirectionsOur current approach to building IO-aware implementations of attention requires writing a new CUDA kernel for each new attention implementation.
“Our current approach to building IO-aware implementations of attention requires writing a new CUDA kernel for each new attention implementation.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing), S4 (based). May combine two claims.
Interpretationreasoning§ 4.2 Better Models with Longer SequencesThe discrepancies in performance between MIMIC-III and ECtHR may be due to subtle distribution shifts: MIMIC-III contains specialized medical text and thus may be more susceptible to a distribution shift in document length, whereas ECtHR contains general language.
“The discrepancies may be due to subtle distribution shifts: MIMIC-III contains specialized medical text and thus may be more susceptible to a distribution shift in the document length, whereas ECtHR contains general language.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing), S4 (based). May combine two claims.
Interpretationnone given§ 4.3 Benchmarking AttentionPath-256 requires longer sequences but has relatively shorter paths than Path-X, so it is easier to obtain a higher accuracy.
“Path-256 requires longer sequences but has relatively shorter paths than Path-X, so it is easier to obtain a higher accuracy.”
Quote in the paperNot a substantial claimMay combine two claims.
Interpretationreasoning§ B Algorithm DetailsFlashAttention implements both forward and backward passes on GPUs, reduces HBM accesses, and leads to both faster runtime and smaller memory footprint.
“We describe the FlashAttention algorithm to implement both the forward and the backward passes on GPUs that reduces HBM accesses, leading to both faster runtime and smaller memory footprint.”
Quote in the paperSubstantial claim- Rests on an assumption: Attention time and memory scale quadratically in the sequence length.
May combine two claims.
Interpretationreasoning§ E.5 Speedup On Different Hardware and ConfigurationsWhen the head dimension increases, each block requires more memory, so smaller block sizes are needed to fit into SRAM.
“Each block requires more memory, so we need to use smaller block sizes to fit into SRAM.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.
Interpretationreasoning§ D.2 Potential ExtensionsBecause the attention matrix is a function of low-rank QK^T, one can repeatedly load inputs Q,K and recompute the needed block of the attention matrix, significantly reducing HBM access.
“As a result, we can repeatedly load the inputs Q K and recompute the block of the attention matrix that we need, significantly reducing HBM access.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
Study design and conductown data§ E.6 Full Benchmarking ResultsBlock Sparse, Longformer, and BigBird did not successfully run the backward pass with masking due to a bug in external libraries.
“These methods did not successfully run the backward pass with masking due to a bug in external libraries, so we measured them without masking to be generous.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing), S4 (based).
Study design and conductnone given§ E.6 Full Benchmarking ResultsMemory footprint does not vary between runs.
“We only measure memory footprint once, since it does not vary between runs.”
Quote in the paperNot a substantial claim
The paper relies on this without support.
Common Python interfaces to deep learning such as PyTorch and Tensorflow do not allow fine-grained control of memory access.
“However, common Python interfaces to deep learning such as PyTorch and Tensorflow do not allow fine-grained control of memory access.”
The paper relies on this without support.
All gradient checkpointing implementations known to the authors trade speed for memory.
“While gradient checkpointing has been suggested to reduce the maximum amount of memory required [66], all implementations (that we know off) have to trade speed for memory.”
The paper relies on this without support.
Attention time and memory scale quadratically in the sequence length.
“However, one of their computational bottlenecks is that their time and memory scales quadratic in the sequence length.”
The paper relies on this without support.
RTX 3090 memory bandwidth is roughly 900 GB/s and A100 memory bandwidth is roughly 1.5 TB/s, and the RTX 3090's is lower.
“since the memory bandwidth on an RTX 3090 is lower than on an A100 (roughly 900 GB/s vs. 1.5 TB/s).”
The paper relies on this without support.
T4 SRAM is smaller than A100 SRAM.
“T4 SRAM is smaller than A100, so we need to make the block sizes smaller in FlashAttention .”
The paper relies on this without support.
T4 GPUs are commonly used for inference.
“T4 GPUs are commonly used for inference, so we also report speedup on the forward pass only.”
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
FlashAttention uses CUDA kernels that fuse block-wise matrix multiplication with an online softmax computation, to reduce the quadratic time and memory complexity in the sequence length of vanilla self-attention.
“For example, FlashAttention [166-167] uses CUDA kernels that fuse block-wise matrix multiplication with an online softmax computation, to reduce the quadratic time and memory complexity in the sequence length of vanilla self-attention.”
From A Survey of Large Language Models (2026) · cites this paper as [166]
The Introduction (p. 2) and Section 3.1 (p. 5) describe block-wise computation, incremental softmax, and fusion into a CUDA kernel. They support reduced memory use and faster execution, but not reduced quadratic computational time complexity: Algorithm 1 (p. 5) still requires O(N²d) operations. (LLM, conf=0.91)
Experimental — accuracy not yet measuredThe additive pre-softmax form is compatible with FlashAttention.
“The additive pre-softmax form is compatible with FlashAttention [2,13,23] .”
From Inference-Time Attention Steering for Vision-Language-Action Driving Models (2026) · cites this paper as [2]
Algorithm 2 (p. 20) applies a mask to attention scores before computing softmax, supporting compatibility with that specific pre-softmax modification. Appendix B.3 (p. 19) defines the mask as setting selected entries to a masking value while leaving others unchanged; it does not establish compatibility with a general additive pre-softmax term. (LLM, conf=0.78)
Experimental — accuracy not yet measuredRecent works extend context windows to 100K+ tokens.
“Recent works extend context windows to 100K+ tokens [18], [19], [23].”
From From Goldfish to Elephant: Long-Term Memory for Large Language Models via Selective Storage and Hierarchical Compression (2026) · cites this paper as [19]
Section 4.2 (pp. 8–9) shows that FlashAttention extends sequence lengths, but reports 4K for GPT-2 and 64K for the block-sparse Path-256 model. The paper does not support the cited sentence’s 100K+ token figure. (LLM, conf=0.87)
Experimental — accuracy not yet measuredUnlimited context remains computationally infeasible and doesn't address selective retention or consistency.
“unlimited context remains computationally infeasible and doesn't address selective retention or consistency.”
From From Goldfish to Elephant: Long-Term Memory for Large Language Models via Selective Storage and Hierarchical Compression (2026) · cites this paper as [19]
The Introduction (p. 1) says longer context is difficult because self-attention has quadratic time and memory complexity, and Benchmarking Attention (p. 9) says FlashAttention's runtime still grows quadratically with sequence length. This supports a computational limit on extending context, but the paper does not address selective retention or consistency, and it does not specifically assess 'unlimited' context. (LLM, conf=0.86)
Experimental — accuracy not yet measuredIn LLMs, each decoding step involves generating a single token, with the transfer of weights between High Bandwidth Memory (HBM) and cache contributing to significant overhead.
“Specifically, in LLMs, each decoding step involves generating a single token, with the transfer of weights between High Bandwidth Memory (HBM) and cache contributing to significant overhead [33, 34].”
From SnapKV: LLM Knows What You are Looking for Before Generation (2024) · cites this paper as [33]
Section 2.2 (p. 4) says repeated HBM accesses make standard attention slow, and Section 3.1 (p. 4) describes moving attention inputs from HBM to on-chip SRAM. These passages support memory-transfer overhead in attention, but they do not say that each LLM decoding step generates one token or that transferring model weights between HBM and cache causes that overhead. (LLM, conf=0.84)
Experimental — accuracy not yet measured
FlashAttention accelerated self-attention by 2-4× while cutting memory operations by 10-20×.
“FlashAttention thoroughly researched and implemented various tiling techniques, accelerating selfattention by 2-4 × while cutting memory operations by 10-20 × .”
From ChunkAttention: Efficient Self-Attention with Prefix-Aware KV Cache and Two-Phase Partition (2024) · cites this paper as Dao et al., 2022
Appendix B.5 (p. 22) says FlashAttention is 2–4× faster than standard attention. The Introduction (p. 2) reports up to 9× fewer HBM accesses, not 10–20× fewer memory operations; the up-to-20× figure in §4.3 (p. 10) concerns memory footprint instead. (LLM, conf=0.88)
Experimental — accuracy not yet measuredSGLang is compatible with many other common inference optimizations.
“Additionally, SGLang is compatible with many other common inference optimizations [60, 39, 3, 23, 59, 10, 26, 15, 19, 32, 31, 11].”
From SGLang: Efficient Execution of Structured Language Model Programs (2023) · cites this paper as [10]
Section 3 (p. 4) identifies FlashAttention as a faster, memory-efficient attention algorithm, and Appendix E.5 (p. 29) reports forward-pass speedups on hardware commonly used for inference. It therefore supports FlashAttention as an example of an inference optimization, but the paper does not address whether SGLang is compatible with it. (LLM, conf=0.85)
Experimental — accuracy not yet measuredChunked-prefill schedulers, memory-efficient attention kernels, paged memory management, and tensor/pipeline parallelism layouts mitigate but do not eliminate the prefill/decode asymmetry, and they leave the cross-pool transport question largely open.
“Chunked-prefill schedulers such as Sarathi-Serve [1], memory-efficient attention kernels [8, 14], paged memory management [2], and tensor/pipeline parallelism layouts [10, 31] mitigate but do not eliminate this asymmetry, and they leave the cross-pool transport question largely open.”
From Janus: Joint Prefill/Decode Disaggregation with KV-Cache-Aware Multi-Cloud Routing for Edge-Adjacent LLM Serving (2026) · cites this paper as [8]
Split into 2 atoms — 0 confirmed, 2 partially supported, 0 disputed, 0 misattributed, 0 unverifiable. Expand the claim to see per-atom verdicts.
Experimental — accuracy not yet measuredFlashAttention exploits the asymmetric GPU memory hierarchy to achieve memory saving linear instead of quadratic and runtime speedup 2-4x compared to optimized baselines, with no approximation.
“FlashAttention [5] exploits the asymmetric GPU memory hierarchy to bring significant memory saving (linear instead of quadratic) and runtime speedup (2-4 × compared to optimized baselines), with no approximation.”
From FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning (2023) · cites this paper as [5]
The Introduction (p. 2) and Algorithm section (p. 4) support the claim that FlashAttention uses GPU memory-aware tiling to compute exact attention with linear rather than quadratic extra memory. The paper reports 2.4× and 3× training speedups over baselines, but its explicit 2–4× figure refers to block-sparse FlashAttention being faster than FlashAttention, not to exact FlashAttention versus optimized baselines (Introduction, p. 2). (LLM, conf=0.86)
Experimental — accuracy not yet measuredFlashAttention yields 2-4x wall-clock time speedup over optimized baselines.
“By significantly reducing the amount of memory reads/writes, FlashAttention yields 2-4 × wall-clock speedup over optimized baseline attention implementations.”
From FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning (2023) · cites this paper as [5]
The Introduction (p. 2) and Experiments (p. 7) report wall-clock speedups for FlashAttention, including 2.4× on Long-Range Arena and about 3× on GPT-2, and link its speed to reduced memory access. But the Introduction’s explicit 2–4× figure describes block-sparse FlashAttention relative to FlashAttention, not FlashAttention relative to optimized baseline attention implementations. The cited paper therefore supports the general speedup claim, but not that specific range and comparator. (LLM, conf=0.87)
Experimental — accuracy not yet measuredFlashAttention backward pass achieves 2-4x wall-clock speedup due to reduced memory reads/writes.
“The backward pass also achieves 2-4 × wall-clock speedup due to reduce memory reads/writes.”
From FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning (2023) · cites this paper as [5]
Appendix B (p. 17) says FlashAttention reduces HBM accesses in both forward and backward passes, leading to faster runtime. But our copy does not establish a 2–4× wall-clock speedup for the backward pass; the Apex FMHA comparison (p. 28) instead reports a slightly slower FlashAttention backward pass for the tested short sequences. (LLM, conf=0.86)
Experimental — accuracy not yet measuredFlashAttention backward pass avoids storing large intermediate values by recomputing S and P, yielding 10-20x memory saving depending on sequence length.
“In the backward pass, by re-computing the values of the attention matrices S and P once blocks of inputs Q , K , V are already loaded to SRAM, FlashAttention avoids having to store large intermediate values. By not having to save the large matrices S and P of size 𝑁 × 𝑁 , FlashAttention yields 10-20 × memory saving depending on sequence length”
From FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning (2023) · cites this paper as [5]
The Introduction (p. 2) says FlashAttention recomputes attention on-chip in the backward pass rather than storing the large intermediate matrix; Algorithm 4 (p. 21) shows blocks of S and P computed on-chip. Section 4.3 (p. 10) reports memory use that grows linearly with sequence length and is up to 20× more efficient than exact-attention baselines. It does not establish the claimed 10–20× range across sequence lengths. (LLM, conf=0.84)
Experimental — accuracy not yet measuredFlashAttention applies tiling and kernel optimizations to reduce the peak memory of attention computation and reduce I/O costs.
“FlashAttention [13] applies tiling and kernel optimizations to reduce the peak memory of attention computation and reduce I/O costs.”
From Efficient Memory Management for Large Language Model Serving with PagedAttention (2023) · cites this paper as [13]
Recent hardware and algorithm improvements have resulted in language models with larger context windows.
“Recent improvements in hardware (e.g., faster GPUs with more memory) and algorithms (Dai et al., 2019;Dao et al., 2022;Poli et al., 2023;Rubin and Berant, 2023, inter alia) have resulted in language models with larger context windows (e.g., 4096, 32K, and even 100K tokens)”
From Lost in the Middle: How Language Models Use Long Contexts (2024) · cites this paper as Dao et al., 2022
Compactor scoring incurs minimal overhead compared to the cost of a single Flash Attention pass for large contexts.
“Compactor scoring incurs minimal overhead compared to the cost of a single Flash Attention (Dao et al., 2022) pass for large contexts”
From Compactor: Calibrated Query-Agnostic KV Cache Compression with Approximate Leverage Scores (2025) · cites this paper as Dao et al., 2022
Most operations (except matrix multiply) on modern GPUs are bounded by memory bandwidth.
“On modern hardware accelerators (GPUs) most operations (except matrix multiply) are bounded by memorybandwidth (Dao, Fu, Ermon, et al. 2022; Ivanov et al. 2021; Williams, Waterman, and Patterson 2009).”
From Mamba: Linear-Time Sequence Modeling with Selective State Spaces (2023) · cites this paper as Dao, Fu, Ermon, et al. 2022
FlashAttention accelerates kernel execution by minimizing memory movement during attention computation.
“A primary focus has been on accelerating kernel execution by minimizing memory movement during attention computation, with FlashAttention being a prominent example [166].”
From A Survey of Large Language Models (2026) · cites this paper as [166]
Partition strategies in ChunkAttention are built on online softmax and inspired by FlashAttention.
“Partition strategies in ChunkAttention are built on online softmax (Milakov and Gimelshein, 2018) and inspired by FlashAttention (Dao et al., 2022; Dao, 2023), which adopted the same algorithm.”
From ChunkAttention: Efficient Self-Attention with Prefix-Aware KV Cache and Two-Phase Partition (2024) · cites this paper as Dao et al., 2022
FlashAttention shows that attention performance depends heavily on data movement.
“FlashAttention [3] shows that attention performance depends heavily on data movement.”
From TokenDance: Scaling Multi-Agent LLM Serving via Collective KV Cache Sharing (2026) · cites this paper as [3]
FlashAttention exploits asymmetric GPU memory hierarchy to achieve linear memory scaling instead of quadratic requirements.
“FlashAttention exploits asymmetric GPU memory hierarchy to achieve linear memory scaling instead of quadratic requirements”
From A Survey of Context Engineering for Large Language Models (2025) · cites this paper as [200]
LLMs consistently face challenges in processing long contexts.
“Despite this growing importance, LLMs consistently face challenges in processing long contexts, primarily due to the substantial computational resources required for long sequence training (Dao et al., 2022; Dao, 2023) as well as the apparent inability to generalize to sequences longer than those encountered during training (Chen et al., 2023; Peng et al., 2023b).”
From ∞Bench: Extending Long Context Evaluation Beyond 100K Tokens (2024) · cites this paper as Dao et al., 2022
Longer prompts require much more compute costs.
“While performance monotonically improves, longer prompts require much more compute costs (Dao et al., 2022).”
From Does Few-Shot Learning Help LLM Performance in Code Synthesis? (2024) · cites this paper as Dao et al., 2022
FlashAttention achieves 2-4× speedup over standard attention while reducing memory from O(N^2) to O(N).
“FlashAttention (Dao et al., 2022) achieves 2-4× speedup over standard attention while reducing memory from O(N 2 ) to O(N ).”
From KernelBench-Verified: Do LLM-Generated Kernels Actually Beat PyTorch? (2026) · cites this paper as Dao et al., 2022
FlashAttention-2 returns the correct output O = softmax(QK^T)V with no approximation.
“As with FlashAttention , Algorithm 1 returns the correct output O = softmax ( QK ⊤ ) V (with no approximation), using 𝑂 ( 𝑁 2 𝑑 ) FLOPs and requires 𝑂 ( 𝑁 ) additional memory beyond inputs and output (to store the logsumexp 𝐿 ).”
From FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning (2023) · cites this paper as [5]
FlashAttention yields up to 10-20x memory saving depending on sequence length.
“up to 10-20 × memory saving”
From FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning (2023) · cites this paper as [5]
FlashAttention reduces memory usage from quadratic to linear in sequence length.
“Dao et al. [5] proposed to reorder the attention computation and leverages classical techniques (tiling, recomputation) to significantly speed it up and reduce memory usage from quadratic to linear in sequence length.”
From FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning (2023) · cites this paper as [5]
FlashAttention applies tiling to reduce memory IOs by loading blocks of inputs from HBM to SRAM, computing attention with respect to that block, and updating the output without writing the large intermediate matrices S and P to HBM.
“FlashAttention applies the classical technique of tiling to reduce memory IOs, by (1) loading blocks of inputs from HBM to SRAM, (2) computing attention with respect to that block, and then (3) updating the output without writing the large intermediate matrices S and P to HBM.”
From FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning (2023) · cites this paper as [5]
Our version of FlashAttention is on par with or better than the original on all cases considered, while covering more use-cases and hardware.
“Our version is on par with or better than the original on all cases considered, while covering more use-cases and hardware.”
From DINOv2: Learning Robust Visual Features without Supervision (2023) · cites this paper as Dao et al., 2022
mLSTM is parallelizable analog to FlashAttention or GLA, while sLSTM is not parallelizable due to memory mixing.
“While mLSTM is parallelizable analog to FlashAttention (Dao et al., 2022;Dao, 2024) or GLA (Yang et al., 2023), sLSTM is not parallelizable due to the memory mixing (hidden-hidden connections).”
From xLSTM: Extended Long Short-Term Memory (2024) · cites this paper as Dao et al., 2022
Researchers try to extend the context length of LLMs via training from scratch, fine-tuning, or specific algorithms.
“To avoid text truncation, researchers try to extend the context length of LLMs via training from scratch, fine-tuning, or specific algorithms (e.g., FlashAttention; Dao et al., 2022).”
From Recursively summarizing enables long-term dialogue memory in large language models (2025) · cites this paper as Dao et al., 2022
FlashAttention-2 provides approximately twice the speed through reduced non-matrix multiplication operations and optimized work distribution.
“FlashAttention-2 providing approximately twice the speed through reduced non-matrix multiplication operations and optimized work distribution [200, 199].”
From A Survey of Context Engineering for Large Language Models (2025) · cites this paper as [200]
The Introduction (p. 2) describes FlashAttention, not FlashAttention-2, and attributes its speedup to reduced HBM memory accesses. Searches for FlashAttention-2, reduced non-matrix-multiplication operations, and optimized work distribution found no passage supporting the claimed approximately twofold speedup or its stated causes. (LLM, conf=0.78)
Experimental — accuracy not yet measuredThe first version of FlashAttention parallelizes over batch size and number of heads, using 1 thread block to process one attention head.
“The first version of FlashAttention parallelizes over batch size and number of heads. We use 1 thread block to process one attention head, and there are overall batch size · number of heads thread blocks.”
From FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning (2023) · cites this paper as [5]
The Introduction (p. 2) says FlashAttention is implemented in CUDA, and Section 3.1 (p. 5) says its operations are fused into one CUDA kernel. Neither specifies parallelization over batches and heads or one thread block per attention head. Searches for those thread-block assignments found no passage addressing them. (LLM, conf=0.71)
Experimental — accuracy not yet measuredThe practicality of fine-tuning poses challenges for many labs; even minimally fine-tuning foundation models can require extensive GPU resources, given that scGPT's architecture relies on FlashAttention not available for older and smaller graphics cards.
“Secondly, the practicality of fine-tuning poses challenges for many labs. Even minimally fine-tuning foundation models can require extensive GPU resources, given that, for example, scGPT's architecture relies on the use of FlashAttention [16] not available for older and smaller graphics cards 3 .”
From Assessing the limits of zero-shot foundation models in single-cell biology (2023) · cites this paper as [16]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
Each contradiction between two passages listed here was confirmed by an independent check.
Reported 8192-length results exceed the stated support limit
MinorThe text says Longformer and BigBird do not support lengths above 8092, yet Table 10 reports backward-pass runtimes for both at length 8192.
“Longformer and BigBird do not support sequence lengths longer than 8092.”
“| Longformer | 1.27 | 1.31 | 1.29 | 2.04 | 5.24 | 10.74 | 25.95 | - | - | - | | BigBird | 1.33 | 1.28 | 1.32 | 1.81 | 5.55 | 11.44 | 27.45 | - | - | - |”
GPT-2 speedup exceeds the stated maximum
MinorThe text says Table 2 shows up to 3× speedup over HuggingFace, but the table reports 3.5× for GPT-2 small.
“Table 2 shows up to 3 endto-end speedup compared to Huggingface and 1.7 speedup compared to Megatron-LM.”
“| GPT-2 small - FlashAttention | 18.2 | 2.7 days (3.5 ) |”
Block-sparse FlashAttention is not fastest at every sequence length
MinorThe claim covers all sequence lengths, but Table 17 reports a slower combined runtime for block-sparse FlashAttention than for FlashAttention at sequence length 128 (0.91 versus 0.35 ms).
“On the other hand, block-sparse FlashAttention is faster than all implementations of exact, sparse, and approximate attention that we know of, across all sequence lengths.”
“| FlashAttention | 0.35 | 0.36 | 0.80 | 2.52 | 9.16 | 36.70 | 146.13 | 583.45 | 2332.01 | 9323.63 | | Block-Sparse FlashAttention | 0.91 | 0.83 | 0.94 | 0.92 | 1.83 | 3.50 | 7.02 | 13.56 | 26.71 | 53.92 |”
Cites
The publisher hasn’t deposited this paper’s reference list.
Research works printed but not linked: 9
- [4][4] L Susan Blackford, Antoine Petitet, Roldan Pozo, Karin Remington, R Clint Whaley, James Demmel, Jack Dongarra, Iain Duff, Sven Hammarling, Greg Henry, et al. An updated set of basic linear algebra subprograms (blas). ACM Transactions on Mathematical Software , 28(2):135-151, 2002. -
- [26][26] Jean Feydy, Joan Glaunès, Benjamin Charlier, and Michael Bronstein. Fast geometric learning with symbolic matrices. Advances in Neural Information Processing Systems , 33, 2020. -
- [40][40] John Hennessy and David Patterson. Memory hierarchy design. Computer Architecture: A Quantitative Approach , pages 390-525, 2003. -
- [44][44] Zhe Jia and Peter Van Sandt. Dissecting the Ampere GPU architecture via microbenchmarking. GPU Technology Conference, 2021. -
- [55][55] Ji Lin, Yongming Rao, Jiwen Lu, and Jie Zhou. Runtime neural pruning. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, editors, Advances in Neural Information Processing Systems , volume 30. Curran Associates, Inc., 2017. -
- [59][59] Frank McSherry, Michael Isard, and Derek G Murray. Scalability! but at what COST ? In 15th Workshop on Hot Topics in Operating Systems (HotOS XV) , 2015. -
- [65][65] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, highperformance deep learning library. Advances in neural information processing systems , 32, 2019. -
- [67][67] Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. Language models are unsupervised multitask learners. OpenAI blog , 1(8):9, 2019. -
- [88][88] David P Woodruff. Optimal space lower bounds for all frequency moments. In SODA , volume 4, pages 167-175. Citeseer, 2004. -
Cited by
Sorted by citations
Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena
Zheng, L., Chiang, W.-L., Sheng, Y., Zhuang, S., Wu, Z., Zhuang, Y., Lin, Z., Li, Z., Li, D., Xing, E. P., et al. (2023) · arXiv · doi:10.48550/arxiv.2306.05685 · Cited by 1,888 · see citing works
Efficient Memory Management for Large Language Model Serving with PagedAttention
Kwon, W., Li, Z., Zhuang, S., Sheng, Y., Zheng, L., Yu, C. H., Gonzalez, J., Zhang, H., & Stoica, I. (2023) · Proceedings of the 29th Symposium on Operating Systems Principles · doi:10.1145/3600006.3613165 · Cited by 1,817 · see citing works
Efficient Memory Management for Large Language Model Serving with PagedAttention
Kwon, W., Li, Z., Zhuang, S., Sheng, Y., Zheng, L., Yu, C. H., Gonzalez, J. E., Zhang, H., & Stoica, I. (2023) · arXiv · doi:10.48550/arxiv.2309.06180 · Cited by 1,802 · see citing works
Lost in the Middle: How Language Models Use Long Contexts
Liu, N. F., Lin, K., Hewitt, J., Paranjape, A., Bevilacqua, M., Petroni, F., & Liang, P. (2024) · Transactions of the Association for Computational Linguistics · doi:10.1162/tacl_a_00638 · Cited by 1,612 · see citing works
“Dao et al. (2022) instead provide a faster exact attention by a carefully-crafted IO-aware CUDA kernel.”
BackgroundMamba: Linear-Time Sequence Modeling with Selective State Spaces
Gu, A., & Dao, T. (2023) · arXiv · doi:10.48550/arxiv.2312.00752 · Cited by 1,579 · see citing works
Self-citationA Survey of Large Language Models
Zhao, W. X., Zhou, K., Li, J., Tang, T., Dong, Z., Hou, Y., Zhang, B., Min, Y., Zhang, J., Liu, P., et al. (2026) · Frontiers of Computer Science · doi:10.1007/s11704-026-60308-3 · Cited by 2,093 · see citing works
scGPT: Towards Building a Foundation Model for Single-Cell Multi-omics Using Generative AI
Cui, H., Wang, C., Maan, H., Pang, K., Luo, F., & Wang, B. (2023) · doi:10.1101/2023.04.30.538439 · Cited by 1,383 · see citing works
“To address this challenge and ensure efficient self-attention mechanisms, we leverage the accelerated self-attention implementation by Flash-Attention [65].”
MethodA Comprehensive Overview of Large Language Models
Naveed, H., Khan, A. U., Qiu, S., Saqib, M., Anwar, S., Usman, M., Akhtar, N., Barnes, N., & Mian, A. (2025) · ACM Transactions on Intelligent Systems and Technology · doi:10.1145/3744746 · Cited by 1,257 · see citing works
“We discuss both in sections II-C and II-D, respectively.”
DINOv2: Learning Robust Visual Features without Supervision
Oquab, M., Darcet, T., Moutakanni, T., Vo, H., Szafraniec, M., Khalidov, V., Fernandez, P., Haziza, D., Massa, F., El-Nouby, A., et al. (2023) · arXiv · doi:10.48550/arxiv.2304.07193 · Cited by 1,078 · see citing works
“We implemented our own version of FlashAttention (Dao et al., 2022) to improve memory usage and speed on the self-attention layers.”
MethodMultimodal learning with transformers: A survey
Xu, P., Zhu, X., & Clifton, D. A. (2023) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/tpami.2023.3275156 · Cited by 1,072 · see citing works
EfficientViT: Memory Efficient Vision Transformer with Cascaded Group Attention
Liu, X., Peng, H., Zheng, N., Yang, Y., Hu, H., & Yuan, Y. (2023) · 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr52729.2023.01386 · Cited by 956 · see citing works
“The activation functions are element-wise operations that occupy a considerable amount of processing time on GPU/CPU [15,48,72], thus utilizing ReLU instead of more complicated activation functions is of better efficiency.”
BackgroundMethodInfluentialPoint Transformer V3: Simpler, Faster, Stronger
Wu, X., Jiang, L., Wang, P., Liu, Z., Liu, X., Qiao, Y., Ouyang, W., He, T., & Zhao, H. (2024) · IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings · doi:10.1109/cvpr52733.2024.00463 · Cited by 727 · see citing works
“Our experimental results demonstrate that xCPE fully unleashes the performance with a slight increase in latency of a few milliseconds compared to the standard CPE, the performance gains justify this minor trade-off. tion [18, 19], which can be advantageous for our PTv3.”
BackgroundResultBoltz-1 Democratizing Biomolecular Interaction ModelingPreprint
Wohlwend, J., Corso, G., Passaro, S., Getz, N., Reveiz, M., Leidal, K., Swiderski, W., Atkinson, L., Portnoi, T., Chinn, I., et al. (2024) · bioRxiv (Cold Spring Harbor Laboratory) · doi:10.1101/2024.11.19.624167 · Cited by 535 · see citing works
“This is an extension of FlashAttention that allows for the inner bias term [Dao et al., 2022].”
Regulating ChatGPT and other Large Generative AI Models
Hacker, P., Engel, A., & Mauer, M. (2023) · 2023 ACM Conference on Fairness Accountability and Transparency · doi:10.1145/3593013.3594067 · Cited by 466 · see citing works
“and, in particular, transformers, more efficient [48, 49], the energy required to train models this large has triggered concerns from a climate policy perspective [25, 50-54] (see also Part 6).”
BackgroundGQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints
Ainslie, J., Lee-Thorp, J., de Jong, M., Zemlyanskiy, Y., Lebrón, F., & Sanghai, S. (2023) · arXiv · doi:10.48550/arxiv.2305.13245 · Cited by 447 · see citing works
“Recently, decoder-only models are extremely popular, and since these models do not have separate self-attention and cross-attention, we expect GQA to have a stronger advantage over MQA.”
BackgroundAhdritz, G., Bouatta, N., Floristean, C., Kadyan, S., Xia, Q., Gerecke, W., O’Donnell, T. J., Berenberg, D., Fisk, I., Zanichelli, N., et al. (2024) · Nature Methods · doi:10.1038/s41592-024-02272-z · Cited by 439 · see citing works
“As such, OpenFold can be readily used by the widest community of developers and interfaces with a rich ecosystem of existing machine learning software 26–29 .”
InfluentialGQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints
Ainslie, J., Lee-Thorp, J., de Jong, M., Zemlyanskiy, Y., Lebron, F., & Sanghai, S. (2023) · Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2023.emnlp-main.298 · Cited by 454 · see citing works
Is Mamba effective for time series forecasting?
Wang, Z., Kong, F., Feng, S., Wang, M., Yang, X., Zhao, H., Wang, D., & Zhang, Y. (2024) · Neurocomputing · doi:10.1016/j.neucom.2024.129178 · Cited by 307 · see citing works
xLSTM: Extended Long Short-Term Memory
Beck, M., Pöppel, K., Spanring, M., Auer, A., Prudnikova, O., Kopp, M., Klambauer, G., Brandstetter, J., & Hochreiter, S. (2024) · arXiv · doi:10.48550/arxiv.2405.04517 · Cited by 299 · see citing works
Splitwise: Efficient Generative LLM Inference Using Phase Splitting
Patel, P., Choukse, E., Zhang, C., Shah, A., Goiri, Í., Maleki, S., & Bianchini, R. (2024) · 2024 ACM/IEEE 51st Annual International Symposium on Computer Architecture (ISCA) · doi:10.1109/isca59077.2024.00019 · Cited by 298 · see citing works
“LLM inference serving is a rapidly developing field, with several recent works optimizing batching [23], [25], [51], [53], [81], scheduling [22], [42], [51], [66], [73], [79], and memory usage [32], [35], [51], [74].”
MethodJia, D., Yuan, Y., He, H., Wu, X., Yu, H., Lin, W., Sun, L., Zhang, C., & Hu, H. (2023) · IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings · doi:10.1109/cvpr52729.2023.01887 · Cited by 298 · see citing works
“, Flash Attention [10] can decrease the memory to linear complexity, and the sequential attention technique in SwinV2 can also greatly reduce the memory consumption for both self/cross attention.”
BackgroundxLSTM: Extended Long Short-Term Memory
Beck, M., Pöppel, K., Spanring, M., Auer, A., Prudnikova, O., Kopp, M., Klambauer, G., Brandstetter, J., & Hochreiter, S. (2024) · Advances in Neural Information Processing Systems 37 · doi:10.52202/079017-3417 · Cited by 286 · see citing works
Efficient Deformable ConvNets: Rethinking Dynamic and Sparse Operator for Vision Applications
Xiong, Y., Li, Z., Chen, Y., Wang, F., Zhu, X., Luo, J., Wang, W., Lü, T., Li, H., Qiao, Y., et al. (2024) · IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings · doi:10.1109/cvpr52733.2024.00540 · Cited by 284 · see citing works
“Flash-Attention [9], by reducing the number of accesses to High Bandwidth Memory (HBM), achieves a significantly faster speed in practice despite having higher FLOPs compared to vanilla attention.”
Group DETR: Fast DETR Training with Group-Wise One-to-Many Assignment
Chen, Q., Chen, X., Wang, J., Zhang, S., Yao, K., Feng, H., Han, J., Ding, E., Zeng, G., & Wang, J. (2023) · IEEE/CVF International Conference on Computer Vision (ICCV) · doi:10.1109/iccv51070.2023.00610 · Cited by 266 · see citing works
“With a memoryefficient implementation [12], Group DETR does not bring much memory burden during training, only requires 1.”
BackgroundMethodEPlus-LLM: A large language model-based computing platform for automated building energy modeling
Jiang, G., Ma, Z., Zhang, L., & Chen, J. (2024) · Applied Energy · doi:10.1016/j.apenergy.2024.123431 · Cited by 204 · see citing works
Medical large language models are vulnerable to data-poisoning attacks
Alber, D. A., Yang, Z., Alyakin, A., Yang, E., Rai, S., Valliani, A. A., Zhang, J., Rosenbaum, G. R., Amend-Thomas, A. K., Kurland, D. B., et al. (2025) · Nature Medicine · doi:10.1038/s41591-024-03445-1 · Cited by 195 · see citing works
A Survey of AI-Generated Content (AIGC)
Cao, Y., Li, S., Liu, Y., Yan, Z., Dai, Y., Yu, P. S., & Sun, L. (2024) · ACM Computing Surveys · doi:10.1145/3704262 · Cited by 1,099 · see citing works
A Cookbook of Self-Supervised Learning
Balestriero, R., Ibrahim, M., Sobal, V., Morcos, A., Shekhar, S., Goldstein, T., Bordes, F., Bardes, A., Mialon, G., Tian, Y., et al. (2023) · arXiv · doi:10.48550/arxiv.2304.12210 · Cited by 182 · see citing works
“Another approach, is to resort to IO-aware optimizations [Ivanov et al., 2021], the most known one perhaps being FlashAttention [Dao et al., 2022].”
BackgroundMentaLLaMA: Interpretable Mental Health Analysis on Social Media with Large Language Models
Yang, K., Zhang, T., Kuang, Z., Xie, Q., Huang, J., & Ananiadou, S. (2024) · International World Wide Web Conference (WWW) · doi:10.1145/3589334.3648137 · Cited by 214 · see citing works
Jaume, G., Vaidya, A. J., Chen, R. J., Williamson, D. F. K., Liang, P. P., & Mahmood, F. (2024) · IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings · doi:10.1109/cvpr52733.2024.01100 · Cited by 161 · see citing works
“…reduce memory and computational requirements [4, 12, 14, 15, 29, 31, 80, 82], for instance, by approximating self-attention with a low-rank decomposition [44, 82], using latent bottleneck distillation [31, 32, 50], by optimizing GPU reads/writes [14, 15] or using sparse attention patterns [4, 53].”
BackgroundYour Diffusion Model is Secretly a Zero-Shot Classifier
Li, A. C., Prabhudesai, M., Duggal, S., Brown, E. V., & Pathak, D. (2023) · IEEE/CVF International Conference on Computer Vision (ICCV) · doi:10.1109/iccv51070.2023.00210 · Cited by 159 · see citing works
Legalbench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Models
Guha, N., Nyarko, J., Ho, D. E., Ré, C., Chilton, A., Narayana, A., Chohlas-Wood, A., Peters, A., Waldon, B., Rockmore, D., et al. (2023) · doi:10.2139/ssrn.4583531 · Cited by 154 · see citing works
Self-citationGenerative AI in cybersecurity: A comprehensive review of LLM applications and vulnerabilities
Ferrag, M. A., Alwahedi, F., Battah, A., Cherif, B., Mechri, A., Tihanyi, N., Bisztray, T., & Debbah, M. (2025) · Internet of Things and Cyber-Physical Systems · doi:10.1016/j.iotcps.2025.01.001 · Cited by 148 · see citing works
SGLang: Efficient Execution of Structured Language Model Programs
Zheng, L., Yin, L., Xie, Z., Sun, C., Huang, J., Yu, C. H., Cao, S., Kozyrakis, C., Stoica, I., Gonzalez, J. E., et al. (2023) · arXiv · doi:10.48550/arxiv.2312.07104 · Cited by 145 · see citing works
“Additionally, SGLang is compatible with many other common inference optimizations [60, 39, 3, 23, 59, 10, 26, 15, 19, 32, 31, 11].”
FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
Dao, T. (2023) · arXiv · doi:10.48550/arxiv.2307.08691 · Cited by 143 · see citing works
“In the case of long sequences (which usually means small batch sizes or small number of heads), to make better use of the multiprocessors on the GPU, we now additionally parallelize over the sequence length dimension.”
BackgroundMethodInfluentialSelf-citationSparseFusion: Fusing Multi-Modal Sparse Representations for Multi-Sensor 3D Object Detection
Xie, Y., Xu, C., Rakotosaona, M., Rim, P., Tombari, F., Keutzer, K., Tomizuka, M., & Zhan, W. (2023) · IEEE/CVF International Conference on Computer Vision (ICCV) · doi:10.1109/iccv51070.2023.01613 · Cited by 147 · see citing works
“† : CMT [49] adopts flash-attention [7] for transformer acceleration.”
BackgroundFlatFormer: Flattened Window Attention for Efficient Point Cloud Transformer
Liu, Z., Yang, X., Tang, H., Shang, Y., & Han, S. (2023) · IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings · doi:10.1109/cvpr52729.2023.00122 · Cited by 126 · see citing works
When Embodied AI Meets Industry 5.0: Human-Centered Smart Manufacturing
Xu, J., Sun, Q., Han, Q., & Tang, Y. S. (2025) · IEEE/CAA Journal of Automatica Sinica · doi:10.1109/jas.2025.125327 · Cited by 135 · see citing works
GFNet: Global Filter Networks for Visual Recognition
Rao, Y., Zhao, W., Zhu, Z. D., Zhou, J., & Lu, J. (2023) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/tpami.2023.3263824 · Cited by 546 · see citing works
“There are also many promising methods to improve the efficiency of Transformers by modifying the self-attention operation for lower time complexity and memory access like Linformer [68], Performer [11], FlashAttention [14] and SOFT [49].”
MethodInfluentialToken Merging for Fast Stable Diffusion
Bolya, D., & Hoffman, J. (2023) · 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW) · doi:10.1109/cvprw59228.2023.00484 · Cited by 115 · see citing works
“Flash Attention [2] computes attention efficiently by cleverly accounting for memory bandwidth.”
BackgroundDynamoLLM: Designing LLM Inference Clusters for Performance and Energy Efficiency
Stojkovic, J., Zhang, C., Goiri, Í., Torrellas, J., & Choukse, E. (2025) · 2025 IEEE International Symposium on High Performance Computer Architecture (HPCA) · doi:10.1109/hpca61900.2025.00102 · Cited by 112 · see citing works
Deep learning for cross-domain data fusion in urban computing: Taxonomy, advances, and outlook
Zou, X., Yan, Y., Hao, X., Hu, Y., Wen, H., Liu, E., Zhang, J., Li, Y., Li, T., Zheng, Y., et al. (2024) · Information Fusion · doi:10.1016/j.inffus.2024.102606 · Cited by 117 · see citing works
Efficient Methods for Natural Language Processing: A Survey
Treviso, M., Lee, J.-U., Ji, T., van Aken, B., Cao, Q., Ciosici, M. R., Hassid, M., Heafield, K., Hooker, S., Raffel, C., et al. (2023) · Transactions of the Association for Computational Linguistics · doi:10.1162/tacl_a_00577 · Cited by 124 · see citing works
Wang, F., Zhang, Z., Zhang, X., Wu, Z., Mo, T., Lu, Q., Wang, W., Li, R., Xu, J., Tang, X., et al. (2025) · ACM Transactions on Intelligent Systems and Technology · doi:10.1145/3768165 · Cited by 106 · see citing works
Evolution and Prospects of Foundation Models: From Large Language Models to Large Multimodal Models
Chen, Z., Xu, L., Zheng, H., Chen, L., Tolba, A. K. R., Zhao, L., Yu, K., & Feng, H. (2024) · Computers, materials & continua/Computers, materials & continua (Print) · doi:10.32604/cmc.2024.052618 · Cited by 112 · see citing works
Asai, A., Wu, Z., Wang, Y., Sil, A., & Hajishirzi, H. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2310.11511 · Cited by 101 · see citing works
“FlashAttention (Dao et al., 2022) is used to make the long-context training more efficient.”
MethodDeepSeek LLM: Scaling Open-Source Language Models with Longtermism
DeepSeek-AI, :, Bi, X., Chen, D., Chen, G., Chen, S., Dai, D., Deng, C., Ding, H., Dong, K., et al. (2024) · arXiv · doi:10.48550/arxiv.2401.02954 · Cited by 99 · see citing works
“We also leverage the flash attention (Dao, 2023; Dao et al., 2022) technique to improve hardware utilization.”
MethodLarge Language Models for Next Point-of-Interest Recommendation
Li, P., de Rijke, M., Xue, H., Ao, S., Song, Y., & Salim, F. D. (2024) · International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR) · doi:10.1145/3626772.3657840 · Cited by 104 · see citing works
Evaluating Very Long-Term Conversational Memory of LLM Agents
Maharana, A., Lee, D.-H., Tulyakov, S., Bansal, M., Barbieri, F., & Fang, Y. (2024) · Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2024.acl-long.747 · Cited by 96 · see citing works
Transformers and genome language models
Consens, M. E., Dufault, C., Wainberg, M., Forster, D., Karimzadeh, M., Goodarzi, H., Theis, F. J., Moses, A. M., & Wang, B. (2025) · Nature Machine Intelligence · doi:10.1038/s42256-025-01007-9 · Cited by 148 · see citing works
“Transformer-based gLMs that do not use downsampling techniques to reduce dimensionality before calculating self-attention, or do not apply a more efficiently implemented attention method 97 , will be limited by their context window.”
Large Language Models for Telecom: Forthcoming Impact on the Industry
Maatouk, A., Piovesan, N., Ayed, F., Domenico, A. D., & Debbah, M. A. (2024) · IEEE Communications Magazine · doi:10.1109/mcom.001.2300473 · Cited by 88 · see citing works
Understanding the Potential of FPGA-based Spatial Acceleration for Large Language Model Inference
Chen, H., Zhang, J., Du, Y., Xiang, S., Yue, Z., Zhang, N., Cai, Y., & Zhang, Z. (2024) · ACM Transactions on Reconfigurable Technology and Systems · doi:10.1145/3656177 · Cited by 86 · see citing works
“The rapid evolution of LLM architectures [5, 54, 70] contrasts with the comparatively slow pace of hardware development.”
On Efficient Training of Large-Scale Deep Learning Models
Shen, L., Sun, Y., Yu, Z., Ding, L., Tian, X., & Tao, D. (2024) · ACM Computing Surveys · doi:10.1145/3700439 · Cited by 126 · see citing works
BOLT: Privacy-Preserving, Accurate and Efficient Inference for Transformers
Pang, Q., Zhu, J., Möllering, H., Zheng, W., & Schneider, T. H. (2024) · IEEE Symposium on Security and Privacy (S&P) · doi:10.1109/sp54263.2024.00130 · Cited by 87 · see citing works
“Algorithms from Flash Attention [15] are also compatible with BOLT but do not significantly speed up operations since they optimize GPU memory access during attention computation, whereas BOLT runs on the CPU and its bottlenecks are communication and HE computations rather than memory access.”
MethodLarge models for intelligent transportation systems and autonomous vehicles: A survey
Gan, L., Chu, W., Li, G., Tang, X., & Li, K. (2024) · Advanced Engineering Informatics · doi:10.1016/j.aei.2024.102786 · Cited by 79 · see citing works
A Survey on Efficient Training of Transformers
Zhuang, B., Liu, J., Pan, Z., He, H., Weng, Y., & Shen, C. (2023) · Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence · doi:10.24963/ijcai.2023/764 · Cited by 78 · see citing works
Chen, K., Zhou, Y., Ding, M., Wang, Y., Ren, Z., & Yang, Y. (2024) · Briefings in Bioinformatics · doi:10.1093/bib/bbae163 · Cited by 77 · see citing works
“24.0) and Flash attention library [29].”
InfluentialSnapKV: LLM Knows What You are Looking for Before Generation
Li, Y., Huang, Y., Yang, B., Venkitesh, B., Locatelli, A., Ye, H., Cai, T., Lewis, P., & Chen, D. (2024) · arXiv · doi:10.48550/arxiv.2404.14469 · Cited by 74 · see citing works
“Specifically, in LLMs, each decoding step involves generating a single token, with the transfer of weights between High Bandwidth Memory (HBM) and cache contributing to significant overhead [33, 34].”
MethodEvans, Z., Parker, J. D., Carr, C., Zukowski, Z., Taylor, J., & Pons, J. (2025) · IEEE International Conference on Acoustics Speech and Signal Processing · doi:10.1109/icassp49660.2025.10888461 · Cited by 73 · see citing works
Token Fusion: Bridging the Gap between Token Pruning and Token Merging
Kim, M., Gao, S., Hsu, Y.-C., Shen, Y., & Jin, H. (2024) · IEEE Winter Conference on Applications of Computer Vision · doi:10.1109/wacv57701.2024.00141 · Cited by 76 · see citing works
“Furthermore, our technique can be seamlessly integrated with works like [7] that aim to expedite the computation speed of the attention module.”
MethodDPNet: Dual-Path Network for Real-Time Object Detection With Lightweight Attention
Zhou, Q., Shi, H., Xiang, W., Kang, B., & Latecki, L. J. (2024) · IEEE Transactions on Neural Networks and Learning Systems · doi:10.1109/tnnls.2024.3376563 · Cited by 72 · see citing works
“Besides taking running speed into account, FlashAttention [42] also considers the memory constraint in designing efficient Transformers.”
EdgeMoE: Empowering Sparse Large Language Models on Mobile Devices
Yi, R., Guo, L., Wei, S., Zhou, A., Wang, S., & Xu, M. (2025) · IEEE Transactions on Mobile Computing · doi:10.1109/tmc.2025.3546466 · Cited by 69 · see citing works
Comprehensive review of Transformer‐based models in neuroscience, neurology, and psychiatry
Cong, S., Wang, H., Zhou, Y., Wang, Z., Yao, X., & Yang, C. (2024) · Brain‐X · doi:10.1002/brx2.57 · Cited by 70 · see citing works
Understanding LLMs: A comprehensive overview from training to inference
Liu, Y., He, H., Han, T., Zhang, X., Liu, M., Tian, J., Zhang, Y., Wang, J., Gao, X., Zhong, T., et al. (2024) · Neurocomputing · doi:10.1016/j.neucom.2024.129190 · Cited by 68 · see citing works
Token Merging: Your ViT But Faster
Bolya, D., Fu, C.-Y., Dai, X., Zhang, P., Feichtenhofer, C., & Hoffman, J. (2022) · arXiv · doi:10.48550/arxiv.2210.09461 · Cited by 140 · see citing works
“Some focus on faster attention (Choromanski et al., 2020; Shen et al., 2021; Dao et al., 2022; Wang et al., 2020; Bolya et al., 2022), some attempt to prune heads or features (Meng et al.”
BackgroundHan, S., Wang, M., Zhang, J., Li, D., & Duan, J. (2024) · Electronics · doi:10.3390/electronics13245040 · Cited by 72 · see citing works
Assessing the limits of zero-shot foundation models in single-cell biology
Kedzierska, K. Z., Crawford, L., Amini, A. P., & Lu, A. X. (2023) · bioRxiv (Cold Spring Harbor Laboratory) · doi:10.1101/2023.10.16.561085 · Cited by 61 · see citing works
“Even minimally fine-tuning foundation models can require extensive GPU resources, given that, for example, scGPT’s architecture relies on the use of FlashAttention [16] not available for older and smaller graphics cards 3 .”
MethodLamaakal, I., Maleh, Y., El Makkaoui, K., Ouahbi, I., Pławiak, P., Alfarraj, O., Almousa, M., & Abd El-Latif, A. A. (2025) · Sensors · doi:10.3390/s25051318 · Cited by 60 · see citing works
“Additionally, Flash Attention [79,80] accelerates the computation of attention by minimizing memory usage, which is particularly important when working with longer input sequences.”
Progress and opportunities of foundation models in bioinformatics
Li, Q., Hu, Z., Wang, Y., Li, L., Fan, Y., King, I., Jia, G., Wang, S., Song, L., & Li, Y. (2024) · Briefings in Bioinformatics · doi:10.1093/bib/bbae548 · Cited by 62 · see citing works
“These include leveraging attention mechanisms such as FlashAttention [129] and Multi-Query Attention [130], kernels [131], sparse activation [65], and other advanced mechanisms to reduce both the model’s training time and detection time.”
MethodLLMCompass: Enabling Efficient Hardware Design for Large Language Model Inference
Zhang, H., Ning, A., Prabhakar, R. B., & Wentzlaff, D. (2024) · Proceedings - International Symposium on Computer Architecture/Proceedings · doi:10.1109/isca59077.2024.00082 · Cited by 68 · see citing works
“Figure 13 indicates our proposed latency-oriented design and throughput-oriented design are around the sweet point.”
Evaluating the representational power of pre-trained DNA language models for regulatory genomics
Tang, Z., Somia, N., Yu, Y., & Koo, P. K. (2025) · Genome biology · doi:10.1186/s13059-025-03674-8 · Cited by 63 · see citing works
Adapting Language Models to Compress Contexts
Chevalier, A., Wettig, A., Ajith, A., & Chen, D. (2023) · Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2023.emnlp-main.232 · Cited by 59 · see citing works
Large language models in plant biology
Lam, H. Y. I., Ong, X. E., & Mutwil, M. (2024) · Trends in Plant Science · doi:10.1016/j.tplants.2024.04.013 · Cited by 59 · see citing works
UNI-RNA: UNIVERSAL PRE-TRAINED MODELS REVOLUTIONIZE RNA RESEARCHPreprint
Wang, X., Gu, R., Chen, Z., Li, Y., Ji, X.-H., Ke, G., & Wen, H. (2023) · bioRxiv (Cold Spring Harbor Laboratory) · doi:10.1101/2023.07.11.548588 · Cited by 60 · see citing works
“Implementation Details In the pursuit of enhancing the efficacy of our proposed model, we have employed the IO-aware Flash Attention mechanism[73] in place of the traditional MultiHeadAttention.”
MethodSpecies-aware DNA language models capture regulatory elements and their evolution
Karollus, A., Hingerl, J., Gankin, D., Grosshauser, M., Klemon, K., & Gagneur, J. (2024) · Genome biology · doi:10.1186/s13059-024-03221-x · Cited by 57 · see citing works
Chen, B., Cheng, X., Li, P., Geng, Y., Gong, J., Li, S., Bei, Z., Tan, X., Wang, B., Zeng, X., et al. (2025) · Nature Methods · doi:10.1038/s41592-025-02636-z · Cited by 174 · see citing works
“To mitigate this, more advanced efficient compression technologies in terms of parameters or memory, such as quantization 32 , kernel fusion 28 and other accelerate technologies 33–35 , could be applied.”
ByteTransformer: A High-Performance Transformer Boosted for Variable-Length Inputs
Zhai, Y., Jiang, C., Wang, L., Jia, X., Zhang, S., Chen, Z., Liu, X., & Zhu, Y. (2023) · IEEE International Parallel and Distributed Processing Symposium (IPDPS) · doi:10.1109/ipdps54959.2023.00042 · Cited by 57 · see citing works
“This is because FlashAttention maps a whole attention unit to a threadblock, which, although allows for the complete preservation of the intermediate matrix of an attention unit within shared-memory for any sequence length, results in performance degradation when there are insufficient tasks assigned.”
MethodInfluentialSpeed Is All You Need: On-Device Acceleration of Large Diffusion Models via GPU-Aware Optimizations
Chen, Y., Sarokin, R., Lee, J., Tang, J., Chang, C.-L., Kulik, A., & Grundmann, M. (2023) · IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW) · doi:10.1109/cvprw59228.2023.00490 · Cited by 57 · see citing works
“Although FlashAttention seeks to enhance latency and reduce global memory read/write, its kernel is highly register-intensive.”
BackgroundMethodInfluentialEvaluation of LLM-based chatbots for OSINT-based Cyber Threat Awareness
Shafee, S., Bessani, A., & Ferreira, P. (2024) · Expert Systems with Applications · doi:10.1016/j.eswa.2024.125509 · Cited by 83 · see citing works
“In Vicuna, gradient checkpointing [56] and flash attention [57] alleviate the memory demand.”
Recursively summarizing enables long-term dialogue memory in large language models
Wang, Q., Fu, Y., Cao, Y., Wang, S., Tian, Z., & Ding, L. (2025) · Neurocomputing · doi:10.1016/j.neucom.2025.130193 · Cited by 55 · see citing works
SWE-bench: Can Language Models Resolve Real-World GitHub Issues?
Jimenez, C. E., Yang, J., Wettig, A., Yao, S., Pei, K., Press, O., & Narasimhan, K. (2023) · arXiv · doi:10.48550/arxiv.2310.06770 · Cited by 72 · see citing works
“We used DeepSpeed Ulysses (Jacobs et al., 2023) and Flash Attention (Dao et al., 2022) to enable long context training.”
BackgroundChen, Z., Chen, H., Imani, M., Chen, R., & Imani, F. (2024) · Expert Systems with Applications · doi:10.1016/j.eswa.2024.125769 · Cited by 55 · see citing works
BurstGPT: A Real-World Workload Dataset to Optimize LLM Serving Systems
Wang, Y., Chen, Y., Li, Z., Kang, X., Fang, Y., Zhou, Y., Zheng, Y., Tang, Z., He, X. J., Guo, R., et al. (2025) · ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD) · doi:10.1145/3711896.3737413 · Cited by 53 · see citing works
Chain-of-Thought in Neural Code Generation: From and for Lightweight Language Models
Yang, G., Zhou, Y., Chen, X., Zhang, X., Zhuo, T. Y., & Chen, T. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3440503 · Cited by 56 · see citing works
Masked Autoencoders for Microscopy are Scalable Learners of Cellular Biology
Kraus, O. Z., Kenyon-Dean, K., Saberian, S., Fallah, M., McLean, P., Leung, J., Sharma, V., Khan, A., Balakrishnan, J., Çelik, S., et al. (2024) · IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings · doi:10.1109/cvpr52733.2024.01117 · Cited by 51 · see citing works
“All MAE-ViTs were trained with stochastic depth [3], LayerScale [3], flash attention [18], parallel scaling blocks [19], QK-normalization [19], and no QK-bias [19].”
MethodTelecomGPT: A Framework to Build Telecom-Specific Large Language Models
Zou, H., Zhao, Q., Tian, Y., Bariah, L., Bader, F., Lestable, T., & Debbah, M. A. (2025) · IEEE Transactions on Machine Learning in Communications and Networking · doi:10.1109/tmlcn.2025.3593184 · Cited by 72 · see citing works
Scalable Swin Transformer network for brain tumor segmentation from incomplete MRI modalities
Zhang, D., Wang, C., Chen, T., Chen, W., & Shen, Y. (2024) · Artificial Intelligence in Medicine · doi:10.1016/j.artmed.2024.102788 · Cited by 50 · see citing works
Zhu, H., Gu, J., Wang, H., Jiang, Z., Zhang, Z., Tang, R., Feng, C., Han, S., Chen, R. T., & Pan, D. Z. (2024) · IEEE International Symposium on High-Performance Computer Architecture (HPCA) · doi:10.1109/hpca57654.2024.00059 · Cited by 51 · see citing works
“L system.”
LongLoRA: Efficient Fine-tuning of Long-Context Large Language Models
Chen, Y., Qian, S., Tang, H., Lai, X., Liu, Z., Han, S., & Jia, J. (2023) · arXiv · doi:10.48550/arxiv.2309.12307 · Cited by 50 · see citing works
Wang, Z., Yi, J., Chen, A., Chen, L., Hui, L., & Xu, K. (2025) · ISPRS Journal of Photogrammetry and Remote Sensing · doi:10.1016/j.isprsjprs.2025.01.017 · Cited by 48 · see citing works
Wang, R., Gao, Z., Zhang, L., Yue, S., & Gao, Z. (2025) · Computer Science Review · doi:10.1016/j.cosrev.2025.100755 · Cited by 51 · see citing works
Large language model-based evolutionary optimizer: Reasoning with elitism
Brahmachary, S., Joshi, S. M., Panda, A., Koneripalli, K., Sagotra, A. K., Patel, H., Sharma, A., Jagtap, A. D., & Kalyanaraman, K. (2024) · Neurocomputing · doi:10.1016/j.neucom.2024.129272 · Cited by 50 · see citing works
Cross-Modal Learning for Anomaly Detection in Complex Industrial Process: Methodology and Benchmark
Wu, G., Zhang, Y., Deng, L., Zhang, J., & Chai, T. (2024) · IEEE Transactions on Circuits and Systems for Video Technology · doi:10.1109/tcsvt.2024.3491865 · Cited by 49 · see citing works
Nie, T., Sun, J., & Ma, W. (2025) · Artificial Intelligence for Transportation · doi:10.1016/j.ait.2025.100003 · Cited by 56 · see citing works
“…x i based on the preceding tokens x i in this sequence: • Autoencoding pretraining: (e.g., BERT (Devlin et al., 2019) and BART (Lewis et al., 2019)) masks or corrupts random tokens with replaced spans or masks and trains models to reconstruct them, enhancing bidirectional context understanding.”
CAT-LM Training Language Models on Aligned Code And Tests
Rao, N., Jain, K., Alon, U., Goues, C. L., & Hellendoorn, V. J. (2023) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase56229.2023.00193 · Cited by 49 · see citing works
“We use the GPT-NeoX toolkit [20] enhanced with Flash Attention [21] to pretrain CAT-LM using an auto-regressive (standard left-to-right) pre-training objective that captures the mapping between code and test files, while learning general code and test structure.”
Music Source Separation With Band-Split Rope Transformer
Lu, W.-T., Wang, J.-C., Kong, Q., & Hung, Y.-N. A. (2024) · IEEE International Conference on Acoustics Speech and Signal Processing · doi:10.1109/icassp48485.2024.10446843 · Cited by 45 · see citing works
“Other efforts such as checkpointing, mixed precision, and flash attention [24] could also help the training efficiency.”
BackgroundMethodExeGPT: Constraint-Aware Resource Scheduling for LLM Inference
Oh, H., Kim, K. J., Kim, J., Kim, S., Lee, J., Chang, D.-S., & Seo, J. (2024) · International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS) · doi:10.1145/3620665.3640383 · Cited by 45 · see citing works
Resource-efficient Algorithms and Systems of Foundation Models: A Survey
Xu, M., Cai, D., Yin, W., Wang, S., Jin, X., & Liu, X. (2024) · ACM Computing Surveys · doi:10.1145/3706418 · Cited by 153 · see citing works
“FlashAttention [43] and FlashAttention-2 [42] design for FM training can be simply used to accelerate the prefill phase.”
Semnani, S. J., Yao, V., Zhang, H., & Lam, M. S. (2023) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2023.findings-emnlp.157 · Cited by 52 · see citing works
“We reduced the latency 6.5 times by (1) fusing stages 6-7, (2) removing chains of thought, (3) us-ing TGI with FlashAttention (Dao et al., 2022), and other optimizations.”
MethodInfluential
- Authors
- Dao, T., Fu, D. Y., Ermon, S., Rudra, A., & Ré, C.
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2022
- Pages
- 16344-16359
- ISSN
- 1049-5258 (ISSN-L)
- arXiv
- 2205.14135
- OpenAlex
- W7133227460
- Cited by
- 1,214
- References
- 0
- Citations by year
- 2026: 555 · 2025: 316 · 2024: 256 · 2023: 86 · 2022: 1
- FWCI
- 132.50
- Type
- conference paper
- Language
- en
- Open access
- green
- arxiv.org
- Locations
- neural information processing systems (publishedVersion)
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University)
- Funders
- National Science Foundation (1763315, 1563078, 1937301)
- U.S. Department of Defense (N000141712266)
- Accenture
- Nvidia
- VMware
- National Institutes of Health (N000141712266, CCF1563078, CCF1763315)
- National Defense Science and Engineering Graduate
- Office of Naval Research (N000141712266, ONR-N00014, N00014-20, N00014)
- National Institute of Biomedical Imaging and Bioengineering (U54EB020405)
- Topics
- Physical Sciences › Computer Science › Hardware and Architecture › Parallel Computing and Optimization Techniques
- Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Advanced Neural Network Applications
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Keywords
- FlashAttention, memory efficiency, transformer attention, large language models, GPU memory optimization
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Claims read under definition version 3 (extract-v3) on 2026-09-28.
Classified by jev-1.13-20260917 (gold-guideline-v0.2) on 2026-09-28.
Cited sources are checked by gpt-6-sol.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review