AI Paper Atlas

Research map / Architectures and efficiency / Attention and transformers

FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness

NeurIPS 2022 · Architectures and efficiency › Attention and transformers · approach: Linear attention approximations · 498 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's title only (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace standard attention with IO-aware tiled FlashAttentionBERT-large · BERT-large Wikipedia trainingtraining time: 20.0 ± 1.5 -> 17.4 ± 1.4 minutesHelped
Replace Huggingface attention implementation with FlashAttentionGPT-2 small · OpenWebTexttraining time: 9.5 days -> 2.7 days (3.5×)Helped
Replace Megatron-LM attention implementation with FlashAttentionGPT-2 medium · OpenWebTexttraining time: 11.5 days -> 6.9 days (3.0×)Helped
Replace standard attention with FlashAttentionTransformer · LRA averagescore: 59.3 -> 59.8Helped
Replace standard attention with FlashAttentionTransformer · LRA averagespeedup: 2.4×Helped
Use block-sparse attention instead of dense FlashAttention (ablation)Transformer · LRA averagespeedup: 2.4× -> 2.8×Helped
Use block-sparse attention instead of dense FlashAttention (ablation)Transformer · LRA averagescore: 59.8 -> 59.6No clear effect
Increase context length from 1k to 4k (ablation)GPT-2 small with FlashAttention · OpenWebTextperplexity: 18.2 -> 17.5Helped
Increase sequence length from 512 to 16384 (ablation)RoBERTa with FlashAttention · MIMIC-IIImicro F1: 52.8 -> 57.1Helped
Increase sequence length from 512 to 8192 (ablation)RoBERTa with FlashAttention · ECtHRmicro F1: 72.2 -> 80.7Helped
Increase sequence length from 512 to 16384 (ablation)RoBERTa with FlashAttention · MIMIC-IIImicro F1: 52.8 -> 50.7 -> 51.7 -> 54.6 -> 56.4 -> 57.1Mixed
Increase sequence length from 512 to 16384 (ablation)RoBERTa with FlashAttention · ECtHRmicro F1: 72.2 -> 74.3 -> 77.1 -> 78.6 -> 80.7 -> 79.2Mixed

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy