Lune

ICML2025顶会

AdaSplash: Adaptive Sparse Flash Attention

Nuno Gonçalves, Marcos V. Treviso, André F. T. Martins

摘要

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 approachesand in some cases surpasses-the efficiency of highly optimized softmax implementations like FlashAttention-2, enabling long-context training while maintaining strong task performance. 1

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Efficient Streaming Language Models with Attention Sinks 引用了 Big Bird: Transformers for Longer Sequences
  • Efficient Streaming Language Models with Attention Sinks 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • Efficient Streaming Language Models with Attention Sinks 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
  • Efficient Streaming Language Models with Attention Sinks 引用了 Reformer: The Efficient Transformer
  • Improving Sparse Autoencoder with Dynamic Attention 引用了 Efficient Streaming Language Models with Attention Sinks
  • Improving Sparse Autoencoder with Dynamic Attention 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • Big Bird: Transformers for Longer Sequences 引用了 Reformer: The Efficient Transformer
  • Threshold Differential Attention for Sink-Free, Ultra-Sparse, and Non-Dispersive Language Modeling 引用了 Efficient Streaming Language Models with Attention Sinks
  • Threshold Differential Attention for Sink-Free, Ultra-Sparse, and Non-Dispersive Language Modeling 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • Threshold Differential Attention for Sink-Free, Ultra-Sparse, and Non-Dispersive Language Modeling 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
  • SSA: Sparse Sparse Attention by Aligning Full and Sparse Attention Outputs in Feature Space 引用了 Efficient Streaming Language Models with Attention Sinks
  • SSA: Sparse Sparse Attention by Aligning Full and Sparse Attention Outputs in Feature Space 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
  • FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness 引用了 Big Bird: Transformers for Longer Sequences
  • FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness 引用了 Reformer: The Efficient Transformer
  • FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning 引用了 Big Bird: Transformers for Longer Sequences
  • FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning 引用了 Reformer: The Efficient Transformer
  • AdaSplash-2: Faster Differentiable Sparse Attention 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • AdaSplash-2: Faster Differentiable Sparse Attention 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
  • AdaSplash-2: Faster Differentiable Sparse Attention 引用了 Long-Context Generalization with Sparse Attention
  • Long-Context Generalization with Sparse Attention 引用了 Efficient Streaming Language Models with Attention Sinks
  • Long-Context Generalization with Sparse Attention 引用了 Big Bird: Transformers for Longer Sequences
  • Long-Context Generalization with Sparse Attention 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper6

  1. Long-Context Generalization with Sparse AttentionPavlo Vasylenko, Hugo Pitorro, Andre F. T. Martins, Marcos V. TrevisoICLR 2026 · 19 次引用
  2. Threshold Differential Attention for Sink-Free, Ultra-Sparse, and Non-Dispersive Language ModelingXingyue Huang, Xueying Ding, Mingxuan Ju, Yozen Liu 等ACL 2026 · 3 次引用
  3. AdaSplash-2: Faster Differentiable Sparse AttentionNuno M. T. Gonçalves, Hugo Pitorro, Vlad Niculae, Edoardo Ponti 等ICML 2026 · 3 次引用
  4. Improving Sparse Autoencoder with Dynamic AttentionDongsheng Wang, Jinsen Zhang, Dawei Su, Hui HuangCVPR 2026 · 2 次引用
  5. SSA: Sparse Sparse Attention by Aligning Full and Sparse Attention Outputs in Feature SpaceZhenyi Shen, Junru Lu, Lin Gui, Jiazheng Li 等ICML 2026 · 2 次引用

它引用的 Paper18

  1. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessTri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra 等NeurIPS 2022 · 5,493 次引用
  2. Big Bird: Transformers for Longer SequencesManzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie 等NeurIPS 2020 · 3,159 次引用
  3. Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 次引用
  4. FlashAttention-2: Faster Attention with Better Parallelism and Work PartitioningTri DaoICLR 2024 · 2,600 次引用
  5. Efficient Streaming Language Models with Attention SinksGuangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han 等ICLR 2024 · 1,714 次引用

相关 Paper

  1. ELSA: Exact Linear-Scan Attention for Fast and Memory-Light Vision TransformersChih-Chung Hsu, Xin-Di Ma, Wo-Ting Liao, Chia-Ming LeeCVPR Findings 2026
  2. Fast Attention Over Long Sequences With Dynamic Sparse Flash AttentionMatteo Pagliardini, Daniele Paliotta, Martin Jaggi, François FleuretNeurIPS 2023 · 26 次引用
  3. SALO: an efficient spatial accelerator enabling hybrid sparse attention mechanisms for long sequencesGuan Shen, Jieru Zhao, Quan Chen, Jingwen Leng 等DAC 2022 · 37 次引用
  4. Scaling Attention via Feature SparsityYan Xie, Tiansheng Wen, Tangda Huang, Bo Chen 等ICLR 2026 · 3 次引用
  5. FSA: An Alternative Efficient Implementation of Native Sparse Attention KernelRan Yan, Youhe Jiang, Zhuoming Chen, Haohui Mai 等ICLR 2026 · 10 次引用
黄昏的海面,两侧是细线勾勒的悬崖