---
title: "Why is FlashAttention faster?"
description: "FlashAttention is faster because it avoids writing full attention matrices to HBM. Follow the 4K-token memory traffic and exact softmax method."
canonical_url: "https://fanout.sh/blog/why-is-flash-attention-faster"
md_url: "https://fanout.sh/blog/why-is-flash-attention-faster.md"
last_updated: "2026-11-11"
access: "pro-preview"
---

# Why is FlashAttention faster?

FlashAttention is faster because it avoids writing full attention matrices to HBM. Follow the 4K-token memory traffic and exact softmax method.

- Author: Suraj Gaud

- Published: 2026-08-13

- Updated: 2026-11-11

- Track: Inference engineering

- Access: Fanout Pro (public preview)

- Tags: FlashAttention, attention, GPU memory, HBM, online softmax, LLM inference

Why is FlashAttention faster? It moves far less data between GPU high-bandwidth memory and fast on-chip memory.

It still computes standard softmax attention. The speed comes from tiling, online softmax, and kernel fusion, which avoid writing the full token-by-token attention matrices to HBM.

The arithmetic count stays quadratic in sequence length. The expensive memory traffic drops because intermediate scores and probabilities remain in small on-chip tiles.

## In this article

- Why is FlashAttention faster on long sequences?
- The 4K-token traffic FlashAttention avoids
- Tiling keeps intermediates close to compute
- Online softmax keeps the answer exact
- Extra computation can still finish sooner
- Kernel fusion removes stage boundaries
- Why FlashAttention is not always faster
- FlashAttention is not KV-cache compression
- Read the profiler as memory traffic

## Continue reading

This field note is part of Fanout Pro, with the complete archive, courses, labs, and every Daily paper guide.

---
This representation contains public Fanout content only. Protected Pro lessons, account data, billing, checkout, and pricing are not included.

Browse the public content map: https://fanout.sh/sitemap.md
