FlashAttention-2

Method · 2023

Definition

“Scaling Transformers to longer sequence lengths has been a major problem in the last several years, promising to improve performance in language modeling and high-resolution image understanding, as well as to unlock new applications in code, audio, and video generation.”

From the defining paper: FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning (Tri Dao, ICLR 2024).

Lineage

Parent: FlashAttention

Children: none in this seed

Incoming edges (1)

improves · parallelization

From FlashAttention · confidence 0.8 (Tradeoff quote is null; confidence 0.8.)

Bottleneck
“FlashAttention is still not nearly as fast as optimized matrix-multiply (GEMM) operations” Source: FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
Mechanism
“parallelize the attention computation, even for a single head, across different thread blocks” Source: FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
Trade-off
No trade-off quoted.

Outgoing edges (0)

No outgoing edges in this seed.

Back to the explorer