Top 3 Sparse Attention Patterns for Extreme Context
Key sparse attention patterns include the Sliding Window for efficient local context, Global Attention for critical tokens, and Dilated/Block-Sparse structures, which collectively reduce the quadratic O(N²) complexity to near O(N) for processing millions of tokens.
The top 3
- Top Theoretical Speed: Linear vs. Log-Linear: Performer's FAVOR+ algorithm and patterns like Longformer's achieve optimal O(N) linear computational complexity, surpassing Reformer's O(N log N) with LSH attention for extreme context lengths.
- Reformer's 1 Million Word Context Record: The Reformer model, utilizing Locality-Sensitive Hashing (LSH) attention and reversible layers, achieved processing context windows of up to 1 million words on a single GPU with 16GB of memory.
- Performer's FAVOR+ Algorithm Innovation: The Performer architecture introduced the Fast Attention Via Positive Orthogonal Random Features (FAVOR+) algorithm, which approximates full softmax attention with linear space and time complexity without relying on sparsity priors.
Sources
Open the full topic