LLMs That Pioneered & Advanced Context with Sparse Attention
Early models like Longformer and BigBird utilized sparse attention to push context windows to 4K-16K tokens. More recently, Dynamic Hierarchical Sparse Attention (DHSA) has enabled Llama 3.1-8B to handle 100K context lengths on a single 24GB GPU, while experimental approaches claim up to 100M tokens for models like Qwen3.
The top 3
- Longformer's Hybrid Attention: Local Windows Meet Global Tokens: Longformer revolutionized long-context processing by combining local sliding window attention with global attention for specific tokens (like CLS), enabling efficient handling of sequences up to 4,096 tokens. This reduced computational complexity from O(n²) to O(n) while preserving crucial long-range dependencies.
- BigBird's Triple Threat: Random, Local, Global Attention: Google's BigBird model advanced sparse attention by combining random, windowed (local), and global attention patterns. This allowed it to process sequences up to eight times longer than previous models while theoretically preserving all known properties of full transformers.
- Reformer's LSH Attention: Hashing for Efficient Long Contexts: The Reformer model introduced Locality-Sensitive Hashing (LSH) attention, a unique sparse attention mechanism that grouped similar query and key vectors into buckets. This innovation reduced the computational complexity of attention from O(N²) to O(N log N) and significantly conserved memory, making it efficient for longer sequences.
Sources
Open the full topic