Sparser is Faster and Less is More: Efficient Sparse Attention for Long-Range Transformers
Not on the map. Why?
Abstract (arXiv)
Accommodating long sequences efficiently in autoregressive Transformers, especially within an extended context window, poses significant challenges due to the quadratic computational complexity and substantial KV memory requirements inherent in self-attention mechanisms. In this work, we introduce SPARSEK Attention, a novel sparse attention mechanism designed to overcome these computational and memory obstacles while maintaining performance. Our approach integrates a scoring network and a differentiable top-k mask operator, SPARSEK, to select a constant number of KV pairs for each query, thereby enabling gradient-based optimization. As a result, SPARSEK Attention offers linear time complexity and constant memory footprint during generation. Experimental results reveal that SPARSEK Attention outperforms previous sparse attention methods and provides significant speed improvements during both training and inference, particularly in language modeling and downstream tasks. Furthermore, our method can be seamlessly integrated into pre-trained Large Language Models (LLMs) with minimal fine-tuning, offering a practical solution for effectively managing long-range dependencies in diverse applications.
Key facts. Cited by 51 papers in the map (data through 7 Oct 2026). Builds on 66 of its 79 references that are in the map. First posted on arXiv 24 Jun 2024.
Builds on
66 of 79 references.
References · 66
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 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
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
- 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,031
38 more
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2017Decoupled Weight Decay Regularizationcited by 1,722
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
- 2022Simplified State Space Layers for Sequence Modelingcited by 776
- 2018Image Transformercited by 770
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 466
- 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 428
- 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 397
- 2019Axial Attention in Multidimensional Transformerscited by 350
- 2021Random Feature Attentioncited by 350
- 2023Adapting Language Models to Compress Contextscited by 350
- 2016From Softmax to Sparsemax: A Sparse Model of Attention and Multi-Label Classificationcited by 337
- 2020Sparse Sinkhorn Attentioncited by 250
- 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 243
- 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 206
- 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 201
- 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 194
- 2022Transformer Quality in Linear Timecited by 189
- 2024Data Engineering for Scaling Language Models to 128K Contextcited by 183
- 2019Sparse Sequence-to-Sequence Modelscited by 167
- 2020Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processingcited by 161
- 2019Blockwise Self-Attention for Long Document Understandingcited by 158
- 2019Adaptive Attention Span in Transformerscited by 148
- 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 128
50 most cited of 66 All 66 (JSON)
Built on by
Citing papers per year: 2024: 7; 2025: 31; 2026: 13.
51 papers.
Sort:
By area:
- 2025Position: Episodic Memory is the Missing Piece for Long-Term LLM Agentscited by 35
- 2025Tracing the Representation Geometry of Language Models from Pretraining to Post-trainingcited by 33
- 2025Bidirectional Sparse Attention for Faster Video Diffusion Trainingcited by 18
- 2024On Efficient Variants of Segment Anything Model: A Surveycited by 16
- 2024Locret: Enhancing Eviction in Long-Context LLM Inference with Trained Retaining Heads on Consumer-Grade Devicescited by 15
- 2024When Precision Meets Position: BFloat16 Breaks Down RoPE in Long-Context Trainingcited by 15
- 2024E2LLM: Encoder Elongated Large Language Models for Long-Context Understanding and Reasoningcited by 13
- 2025CEReBrO: Compact Encoder for Representations of Brain Oscillations Using Efficient Alternating Attentioncited by 13
- 2025ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Planscited by 10
- 2025A Survey of Scaling in Large Language Model Reasoningcited by 10
- 2025OrthoRank: Token Selection via Sink Token Orthogonality for Efficient LLM inferencecited by 8
- 2025Hardware-aligned Hierarchical Sparse Attention for Efficient Long-term Memory Accesscited by 7
38 more
- 2025LIFELONG SOTOPIA: Evaluating Social Intelligence of Language Agents Over Lifelong Social Interactionscited by 7
- 2025Attention Reveals More Than Tokens: Training-Free Long-Context Reasoning with Attention-guided Retrievalcited by 5
- 2025Spark Transformer: Reactivating Sparsity in FFN and Attentioncited by 5
- 2025LOOM-Scope: a comprehensive and efficient LOng-cOntext Model evaluation frameworkcited by 5
- 2025QuantSparse: Comprehensively Compressing Video Diffusion Transformer with Model Quantization and Attention Sparsificationcited by 5
- 2025Cost-Optimal Grouped-Query Attention for Long-Context Modelingcited by 4
- 2025APB: Accelerating Distributed Long-Context Inference by Passing Compressed Context Blocks across GPUscited by 3
- 2025ConTextual: Improving Clinical Text Summarization in LLMs with Context-preserving Token Filtering and Knowledge Graphscited by 3
- 2025Sparse-to-Dense: A Free Lunch for Lossless Acceleration of Video Understanding in LLMscited by 3
- 2025ILRe: Intermediate Layer Retrieval for Context Compression in Causal Language Modelscited by 3
- 2025Every Token Counts: Generalizing 16M Ultra-Long Context in Large Language Modelscited by 3
- 2025Top-Theta Attention: Sparsifying Transformers by Compensated Thresholdingcited by 2
- 2025Adaptive and Resource-efficient Agentic AI Systems for Mobile and Embedded Devices: A Surveycited by 2
- 2026RAM-Net: Linear-Time Sequence Modeling with Sparsely Addressable Statecited by 2
- 2026Routing Absorption in Sparse Attention: Why Random Gates Are Hard to Beatcited by 2
- 2024Reorganizing attention-space geometry with expressive attentioncited by 1
- 2024You Only Use Reactive Attention Slice For Long Context Retrievalcited by 1
- 2024Multi-Scenario Reasoning: Unlocking Cognitive Autonomy in Humanoid Robots for Multimodal Understandingcited by 1
- 2025Neural Attention Searchcited by 1
- 2025Crisp Attention: Regularizing Transformers via Structured Sparsitycited by 1
- 2025Block Sparse Flash Attentioncited by 1
- 2026Global Context Compression with Interleaved Vision-Text Transformationcited by 1
- 2026Benchmarking Compact VLMs for Clip-Level Surveillance Anomaly Detection Under Weak Supervisioncited by 1
- 2025Attention Condensation via Sparsity Induced Regularized Trainingcited by 0
- 2025It Takes a Good Model to Train a Good Model: Generalized Gaussian Priors for Optimized LLMscited by 0
- 2025SoftStep: Learning Sparse Similarity Powers Deep Neighbor-Based Regressioncited by 0
- 2025Lag-Relative Sparse Attention In Long Context Trainingcited by 0
- 2025SCOUT: Toward Sub-Quadratic Attention via Segment Compression for Optimized Utility in Transformerscited by 0
- 2025ReSSFormer: A Recursive Sparse Structured Transformer for Scalable and Long-Context Reasoningcited by 0
- 2025MatchAttention: Embedding Explicit Matching Constraints into Attention for Efficient Stereo Matchingcited by 0
- 2026Towards Infinite Length Extrapolation: A Unified Approachcited by 0
- 2026S3-Attention:Attention-Aligned Endogenous Retrieval for Memory-Bounded Long-Context Inferencecited by 0
- 2026LLM-CoOpt: A Co-Design and Optimization Framework for Efficient LLM Inference on Heterogeneous Platformscited by 0
- 2026Chimera: Neuro-Symbolic Attention Primitives for Trustworthy Dataplane Intelligencecited by 0
- 2026TempoNet: Slack-Quantized Transformer-Guided Reinforcement Scheduler for Adaptive Deadline-Centric Real-Time Dispatchscited by 0
- 2026AgenticSum: An Agentic Inference-Time Framework for Faithful Clinical Text Summarizationcited by 0
- 2026Efficient Matrix Implementation for Rotary Position Embeddingcited by 0
- 2026LISA: Linear-Indexed Sparse Attention for Efficient Long-Context Reasoningcited by 0
50 most cited of 51 All 51 (JSON)
- 2026Parameter-free Adaptive Sparse Attention via Compression-Based Content Selection23 Jul 2026
- 2026LISA: Linear-Indexed Sparse Attention for Efficient Long-Context Reasoning29 May 2026
- 2026Efficient Matrix Implementation for Rotary Position Embedding10 Apr 2026
- 2026Benchmarking Compact VLMs for Clip-Level Surveillance Anomaly Detection Under Weak Supervision3 Mar 2026
- 2026AgenticSum: An Agentic Inference-Time Framework for Faithful Clinical Text Summarization23 Feb 2026
- 2026TempoNet: Slack-Quantized Transformer-Guided Reinforcement Scheduler for Adaptive Deadline-Centric Real-Time Dispatchs20 Feb 2026
- 2026Chimera: Neuro-Symbolic Attention Primitives for Trustworthy Dataplane Intelligence13 Feb 2026
- 2026RAM-Net: Linear-Time Sequence Modeling with Sparsely Addressable State12 Feb 2026
- 2026Routing Absorption in Sparse Attention: Why Random Gates Are Hard to Beat11 Feb 2026
- 2026LLM-CoOpt: A Co-Design and Optimization Framework for Efficient LLM Inference on Heterogeneous Platforms10 Feb 2026
- 2026S3-Attention:Attention-Aligned Endogenous Retrieval for Memory-Bounded Long-Context Inference25 Jan 2026
- 2026Global Context Compression with Interleaved Vision-Text Transformation15 Jan 2026
38 more
- 2026Towards Infinite Length Extrapolation: A Unified Approach3 Jan 2026
- 2025Block Sparse Flash Attention7 Dec 2025
- 2025Every Token Counts: Generalizing 16M Ultra-Long Context in Large Language Models28 Nov 2025
- 2025MatchAttention: Embedding Explicit Matching Constraints into Attention for Efficient Stereo Matching16 Oct 2025
- 2025ReSSFormer: A Recursive Sparse Structured Transformer for Scalable and Long-Context Reasoning2 Oct 2025
- 2025Adaptive and Resource-efficient Agentic AI Systems for Mobile and Embedded Devices: A Survey30 Sep 2025
- 2025QuantSparse: Comprehensively Compressing Video Diffusion Transformer with Model Quantization and Attention Sparsification28 Sep 2025
- 2025Tracing the Representation Geometry of Language Models from Pretraining to Post-training27 Sep 2025
- 2025Bidirectional Sparse Attention for Faster Video Diffusion Training1 Sep 2025
- 2025SCOUT: Toward Sub-Quadratic Attention via Segment Compression for Optimized Utility in Transformers31 Aug 2025
- 2025ILRe: Intermediate Layer Retrieval for Context Compression in Causal Language Models25 Aug 2025
- 2025Crisp Attention: Regularizing Transformers via Structured Sparsity8 Aug 2025
- 2025LOOM-Scope: a comprehensive and efficient LOng-cOntext Model evaluation framework7 Jul 2025
- 2025OrthoRank: Token Selection via Sink Token Orthogonality for Efficient LLM inference5 Jul 2025
- 2025LIFELONG SOTOPIA: Evaluating Social Intelligence of Language Agents Over Lifelong Social Interactions14 Jun 2025
- 2025Lag-Relative Sparse Attention In Long Context Training13 Jun 2025
- 2025SoftStep: Learning Sparse Similarity Powers Deep Neighbor-Based Regression9 Jun 2025
- 2025Spark Transformer: Reactivating Sparsity in FFN and Attention7 Jun 2025
- 2025It Takes a Good Model to Train a Good Model: Generalized Gaussian Priors for Optimized LLMs31 May 2025
- 2025Sparse-to-Dense: A Free Lunch for Lossless Acceleration of Video Understanding in LLMs25 May 2025
- 2025Hardware-aligned Hierarchical Sparse Attention for Efficient Long-term Memory Access23 Apr 2025
- 2025ConTextual: Improving Clinical Text Summarization in LLMs with Context-preserving Token Filtering and Knowledge Graphs23 Apr 2025
- 2025A Survey of Scaling in Large Language Model Reasoning2 Apr 2025
- 2025Attention Reveals More Than Tokens: Training-Free Long-Context Reasoning with Attention-guided Retrieval12 Mar 2025
- 2025Cost-Optimal Grouped-Query Attention for Long-Context Modeling12 Mar 2025
- 2025Attention Condensation via Sparsity Induced Regularized Training3 Mar 2025
- 2025Neural Attention Search18 Feb 2025
- 2025APB: Accelerating Distributed Long-Context Inference by Passing Compressed Context Blocks across GPUs17 Feb 2025
- 2025Top-Theta Attention: Sparsifying Transformers by Compensated Thresholding12 Feb 2025
- 2025ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans11 Feb 2025
- 2025Position: Episodic Memory is the Missing Piece for Long-Term LLM Agents10 Feb 2025
- 2025CEReBrO: Compact Encoder for Representations of Brain Oscillations Using Efficient Alternating Attention18 Jan 2025
- 2024Multi-Scenario Reasoning: Unlocking Cognitive Autonomy in Humanoid Robots for Multimodal Understanding29 Dec 2024
- 2024When Precision Meets Position: BFloat16 Breaks Down RoPE in Long-Context Training20 Nov 2024
- 2024On Efficient Variants of Segment Anything Model: A Survey7 Oct 2024
- 2024Locret: Enhancing Eviction in Long-Context LLM Inference with Trained Retaining Heads on Consumer-Grade Devices2 Oct 2024
- 2024E2LLM: Encoder Elongated Large Language Models for Long-Context Understanding and Reasoning10 Sep 2024
- 2024You Only Use Reactive Attention Slice For Long Context Retrieval3 Sep 2024
50 newest of 51 All 51 (JSON)
- 2024E2LLM: Encoder Elongated Large Language Models for Long-Context Understanding and Reasoningcited by 13
- 2025A Survey of Scaling in Large Language Model Reasoningcited by 10
- 2025Attention Reveals More Than Tokens: Training-Free Long-Context Reasoning with Attention-guided Retrievalcited by 5
- 2025Adaptive and Resource-efficient Agentic AI Systems for Mobile and Embedded Devices: A Surveycited by 2
- 2025ReSSFormer: A Recursive Sparse Structured Transformer for Scalable and Long-Context Reasoningcited by 0
- 2026LISA: Linear-Indexed Sparse Attention for Efficient Long-Context Reasoningcited by 0
- 2026LISA: Linear-Indexed Sparse Attention for Efficient Long-Context Reasoning29 May 2026
- 2025ReSSFormer: A Recursive Sparse Structured Transformer for Scalable and Long-Context Reasoning2 Oct 2025
- 2025Adaptive and Resource-efficient Agentic AI Systems for Mobile and Embedded Devices: A Survey30 Sep 2025
- 2025A Survey of Scaling in Large Language Model Reasoning2 Apr 2025
- 2025Attention Reveals More Than Tokens: Training-Free Long-Context Reasoning with Attention-guided Retrieval12 Mar 2025
- 2024E2LLM: Encoder Elongated Large Language Models for Long-Context Understanding and Reasoning10 Sep 2024
- 2024Locret: Enhancing Eviction in Long-Context LLM Inference with Trained Retaining Heads on Consumer-Grade Devicescited by 15
- 2025OrthoRank: Token Selection via Sink Token Orthogonality for Efficient LLM inferencecited by 8
- 2025ILRe: Intermediate Layer Retrieval for Context Compression in Causal Language Modelscited by 3
- 2025Neural Attention Searchcited by 1
- 2026LLM-CoOpt: A Co-Design and Optimization Framework for Efficient LLM Inference on Heterogeneous Platformscited by 0
- 2026LLM-CoOpt: A Co-Design and Optimization Framework for Efficient LLM Inference on Heterogeneous Platforms10 Feb 2026
- 2025ILRe: Intermediate Layer Retrieval for Context Compression in Causal Language Models25 Aug 2025
- 2025OrthoRank: Token Selection via Sink Token Orthogonality for Efficient LLM inference5 Jul 2025
- 2025Neural Attention Search18 Feb 2025
- 2024Locret: Enhancing Eviction in Long-Context LLM Inference with Trained Retaining Heads on Consumer-Grade Devices2 Oct 2024
- 2025Position: Episodic Memory is the Missing Piece for Long-Term LLM Agentscited by 35
- 2025LIFELONG SOTOPIA: Evaluating Social Intelligence of Language Agents Over Lifelong Social Interactionscited by 7
- 2026AgenticSum: An Agentic Inference-Time Framework for Faithful Clinical Text Summarizationcited by 0
- 2026AgenticSum: An Agentic Inference-Time Framework for Faithful Clinical Text Summarization23 Feb 2026
- 2025LIFELONG SOTOPIA: Evaluating Social Intelligence of Language Agents Over Lifelong Social Interactions14 Jun 2025
- 2025Position: Episodic Memory is the Missing Piece for Long-Term LLM Agents10 Feb 2025
- 2025Tracing the Representation Geometry of Language Models from Pretraining to Post-trainingcited by 33
- 2024On Efficient Variants of Segment Anything Model: A Surveycited by 16
- 2024When Precision Meets Position: BFloat16 Breaks Down RoPE in Long-Context Trainingcited by 15
- 2025CEReBrO: Compact Encoder for Representations of Brain Oscillations Using Efficient Alternating Attentioncited by 13
- 2025ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Planscited by 10
- 2025Hardware-aligned Hierarchical Sparse Attention for Efficient Long-term Memory Accesscited by 7
- 2025Spark Transformer: Reactivating Sparsity in FFN and Attentioncited by 5
- 2025LOOM-Scope: a comprehensive and efficient LOng-cOntext Model evaluation frameworkcited by 5
- 2025Cost-Optimal Grouped-Query Attention for Long-Context Modelingcited by 4
- 2025APB: Accelerating Distributed Long-Context Inference by Passing Compressed Context Blocks across GPUscited by 3
- 2025ConTextual: Improving Clinical Text Summarization in LLMs with Context-preserving Token Filtering and Knowledge Graphscited by 3
- 2025Sparse-to-Dense: A Free Lunch for Lossless Acceleration of Video Understanding in LLMscited by 3
12 most cited of 32 All 32 (JSON)
- 2026Parameter-free Adaptive Sparse Attention via Compression-Based Content Selection23 Jul 2026
- 2026Efficient Matrix Implementation for Rotary Position Embedding10 Apr 2026
- 2026Benchmarking Compact VLMs for Clip-Level Surveillance Anomaly Detection Under Weak Supervision3 Mar 2026
- 2026TempoNet: Slack-Quantized Transformer-Guided Reinforcement Scheduler for Adaptive Deadline-Centric Real-Time Dispatchs20 Feb 2026
- 2026Chimera: Neuro-Symbolic Attention Primitives for Trustworthy Dataplane Intelligence13 Feb 2026
- 2026RAM-Net: Linear-Time Sequence Modeling with Sparsely Addressable State12 Feb 2026
- 2026Routing Absorption in Sparse Attention: Why Random Gates Are Hard to Beat11 Feb 2026
- 2026S3-Attention:Attention-Aligned Endogenous Retrieval for Memory-Bounded Long-Context Inference25 Jan 2026
- 2026Towards Infinite Length Extrapolation: A Unified Approach3 Jan 2026
- 2025Block Sparse Flash Attention7 Dec 2025
- 2025Every Token Counts: Generalizing 16M Ultra-Long Context in Large Language Models28 Nov 2025
- 2025MatchAttention: Embedding Explicit Matching Constraints into Attention for Efficient Stereo Matching16 Oct 2025
12 newest of 32 All 32 (JSON)