AdaSplash: Adaptive Sparse Flash Attention
Not on the map. Why?
Abstract (arXiv)
The computational cost of softmax-based attention in transformers limits their applicability to long-context tasks. Adaptive sparsity, of which α-entmax attention is an example, offers a flexible data-dependent alternative, but existing implementations are inefficient and do not leverage the sparsity to obtain runtime and memory gains. In this work, we propose AdaSplash, which combines the efficiency of GPU-optimized algorithms with the sparsity benefits of α-entmax. We first introduce a hybrid Halley-bisection algorithm, resulting in a 7-fold reduction in the number of iterations needed to compute the α-entmax transformation. Then, we implement custom Triton kernels to efficiently handle adaptive sparsity. Experiments with RoBERTa and ModernBERT for text classification and single-vector retrieval, along with GPT-2 for language modeling, show that our method achieves substantial improvements in runtime and memory efficiency compared to existing α-entmax implementations. It approaches -- and in some cases surpasses -- the efficiency of highly optimized softmax implementations like FlashAttention-2, enabling long-context training while maintaining strong task performance.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 35 of its 50 references that are in the map. First posted on arXiv 17 Feb 2025.
Builds on
35 of 50 references.
References · 35
- 2017Attention Is All You Needcited by 59,932
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
23 more
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,225
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,104
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
- 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 527
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 391
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
- 2021Random Feature Attentioncited by 350
- 2016From Softmax to Sparsemax: A Sparse Model of Attention and Multi-Label Classificationcited by 337
- 2019Neural Legal Judgment Prediction in Englishcited by 208
- 2024Flex Attention: A Programming Model for Generating Optimized Attention Kernelscited by 180
- 2019Sparse Sequence-to-Sequence Modelscited by 167
- 2018Online normalizer calculation for softmaxcited by 154
- 2024Keep the Cost Down: A Review on Methods to Optimize LLM' s KV-Cache Consumptioncited by 96
- 2024A Simple and Effective L2 Norm-Based Strategy for KV Cache Compressioncited by 84
- 2021Paragraph-level Rationale Extraction through Regularization: A case study on European Court of Human Rights Casescited by 77
- 2021Memory-efficient Transformers via Top-k Attentioncited by 59
- 2022Revisiting Transformer-based Models for Long Document Classificationcited by 48
- 2018Learning Classifiers with Fenchel-Young Losses: Generalized Entropies, Margins, and Algorithmscited by 27
- 2021Predicting Attention Sparsity in Transformerscited by 13
Built on by
Citing papers per year: 2025: 4; 2026: 8.
12 papers.
- 2025Long-Context Generalization with Sparse Attentioncited by 18
- 2025NOSA: Native and Offloadable Sparse Attentioncited by 4
- 2025SSA: Sparse Sparse Attention by Aligning Full and Sparse Attention Outputs in Feature Spacecited by 4
- 2026DashAttention: Differentiable and Adaptive Sparse Hierarchical Attentioncited by 3
- 2026Sparse Attention as Compact Kernel Regressioncited by 2
- 2026Improving Sparse Autoencoder with Dynamic Attentioncited by 2
- 2026Flexible Empowerment at Reasoning with Extended Best-of-N Samplingcited by 2
- 2025NABLA: Neighborhood Adaptive Block-Level Attentioncited by 1
- 2026Perspectives on Tsallis Statistics for Artificial Intelligencecited by 1
- 2026EntmaxKV: Support-Aware Decoding for Entmax Attentioncited by 0
- 2026Vision Transformers Need Better Token Interactioncited by 0
- 2026Memoization Without Keys: Compact, Out-of-Core Tables for Functions of Sorted Argumentscited by 0
- 2026Perspectives on Tsallis Statistics for Artificial Intelligence2 Aug 2026
- 2026Memoization Without Keys: Compact, Out-of-Core Tables for Functions of Sorted Arguments29 Jul 2026
- 2026Vision Transformers Need Better Token Interaction22 May 2026
- 2026EntmaxKV: Support-Aware Decoding for Entmax Attention20 May 2026
- 2026DashAttention: Differentiable and Adaptive Sparse Hierarchical Attention18 May 2026
- 2026Flexible Empowerment at Reasoning with Extended Best-of-N Sampling17 Apr 2026
- 2026Improving Sparse Autoencoder with Dynamic Attention16 Apr 2026
- 2026Sparse Attention as Compact Kernel Regression30 Jan 2026
- 2025SSA: Sparse Sparse Attention by Aligning Full and Sparse Attention Outputs in Feature Space25 Nov 2025
- 2025NOSA: Native and Offloadable Sparse Attention15 Oct 2025
- 2025NABLA: Neighborhood Adaptive Block-Level Attention17 Jul 2025
- 2025Long-Context Generalization with Sparse Attention19 Jun 2025