Sliding Window Attention Training for Efficient Large Language Models
Not on the map. Why?
Abstract (arXiv)
Recent advances in transformer-based Large Language Models (LLMs) have demonstrated remarkable capabilities across various tasks. However, their quadratic computational complexity concerning sequence length remains a significant bottleneck for processing long documents. As a result, many efforts like sparse attention and state space models have been proposed to improve the efficiency of LLMs over long sequences. Though effective, these approaches compromise the performance or introduce structural complexity. This calls for a simple yet efficient model that preserves the fundamental Transformer architecture. To this end, we introduce SWAT, which enables efficient long-context handling via Sliding Window Attention Training. This paper first attributes the inefficiency of Transformers to the attention sink phenomenon resulting from the high variance of softmax operation. Then, we replace softmax with the sigmoid function and utilize a balanced ALiBi and Rotary Position Embedding for efficient information compression and retention. Experiments demonstrate that SWAT achieves SOTA performance compared with state-of-the-art linear recurrent architectures on eight benchmarks. Code is available at https://github.com/Fzkuji/swat-attention.
Key facts. Cited by 21 papers in the map (data through 7 Oct 2026). Builds on 28 of its 40 references that are in the map. First posted on arXiv 26 Feb 2025.
Builds on
28 of 40 references.
References · 28
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
16 more
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Rethinking Attention with Performerscited by 1,584
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
- 2024Titans: Learning to Memorize at Test Timecited by 303
- 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 200
- 2024Theory, Analysis, and Best Practices for Sigmoid Self-Attentioncited by 62
- 2023Latent Positional Information is in the Self-Attention Variance of Transformer Language Models Without Positional Embeddingscited by 23
Built on by
Citing papers per year: 2025: 9; 2026: 12.
21 papers.
Sort:
By area:
- 2025A Survey of Context Engineering for Large Language Modelscited by 120
- 2025A Survey of Scaling in Large Language Model Reasoningcited by 10
- 2026DeepContext: Stateful Real-Time Detection of Multi-Turn Adversarial Intent Drift in LLMscited by 8
- 2025Compact Attention: Exploiting Structured Spatio-Temporal Sparsity for Fast Video Generationcited by 5
- 2026CoMem: Context Management with A Decoupled Long-Context Modelcited by 5
- 2025Data Efficient Adaptation in Large Language Models via Continuous Low-Rank Fine-Tuningcited by 4
- 2025db-SP: Accelerating Sparse Attention for Visual Generative Models with Dual-Balanced Sequence Parallelismcited by 3
- 2025SWAA: Sliding Window Attention Adaptation for Efficient and Quality Preserving Long Context Processingcited by 3
- 2026Beyond Few-Step Inference: Accelerating Video Diffusion Transformer Model Serving with Inter-Request Caching Reusecited by 3
- 2026LIVEditor-14B: Lightning Unified Video Editing via In-Context Sparse Attentioncited by 3
- 2025Nirvana: A Specialized Generalist Model With Task-Aware Memory Mechanismcited by 2
- 2025Understanding Task Transfer in Vision-Language Modelscited by 2
9 more
- 2026HARD-KV: Head-Adaptive Regularization for Decoding-time KV Compressioncited by 2
- 2026Prefix Sliding for efficient test-time scalingcited by 2
- 2025P/D-Device: Disaggregated Large Language Model between Cloud and Devicescited by 1
- 2026Training-Inference Consistent Segmented Execution for Long-Context LLMscited by 1
- 2026KV-streams for Efficient Compaction in Agentic Reinforcement Learningcited by 1
- 2026CoFrGeNet: Continued Fraction Architectures for Language Generationcited by 0
- 2026DASH: Fast Differentiable Architecture Search for Hybrid Attention in Minutes on a Single GPUcited by 0
- 2026CoWindow Attention: Full Causal Coverage Is a Collective Propertycited by 0
- 2026MassAlloc Attention: Let Attention Allocate Its Own Computecited by 0
- 2026KV-streams for Efficient Compaction in Agentic Reinforcement Learning28 Sep 2026
- 2026MassAlloc Attention: Let Attention Allocate Its Own Compute26 Sep 2026
- 2026CoWindow Attention: Full Causal Coverage Is a Collective Property26 Sep 2026
- 2026Prefix Sliding for efficient test-time scaling26 Aug 2026
- 2026HARD-KV: Head-Adaptive Regularization for Decoding-time KV Compression27 Jun 2026
- 2026CoMem: Context Management with A Decoupled Long-Context Model29 May 2026
- 2026DASH: Fast Differentiable Architecture Search for Hybrid Attention in Minutes on a Single GPU20 May 2026
- 2026Training-Inference Consistent Segmented Execution for Long-Context LLMs12 May 2026
- 2026LIVEditor-14B: Lightning Unified Video Editing via In-Context Sparse Attention6 May 2026
- 2026Beyond Few-Step Inference: Accelerating Video Diffusion Transformer Model Serving with Inter-Request Caching Reuse6 Apr 2026
- 2026DeepContext: Stateful Real-Time Detection of Multi-Turn Adversarial Intent Drift in LLMs18 Feb 2026
- 2026CoFrGeNet: Continued Fraction Architectures for Language Generation29 Jan 2026
9 more
- 2025SWAA: Sliding Window Attention Adaptation for Efficient and Quality Preserving Long Context Processing11 Dec 2025
- 2025db-SP: Accelerating Sparse Attention for Visual Generative Models with Dual-Balanced Sequence Parallelism28 Nov 2025
- 2025Understanding Task Transfer in Vision-Language Models24 Nov 2025
- 2025Nirvana: A Specialized Generalist Model With Task-Aware Memory Mechanism30 Oct 2025
- 2025Data Efficient Adaptation in Large Language Models via Continuous Low-Rank Fine-Tuning23 Sep 2025
- 2025Compact Attention: Exploiting Structured Spatio-Temporal Sparsity for Fast Video Generation18 Aug 2025
- 2025P/D-Device: Disaggregated Large Language Model between Cloud and Devices12 Aug 2025
- 2025A Survey of Context Engineering for Large Language Models17 Jul 2025
- 2025A Survey of Scaling in Large Language Model Reasoning2 Apr 2025
- 2025A Survey of Scaling in Large Language Model Reasoningcited by 10
- 2026Prefix Sliding for efficient test-time scalingcited by 2
- 2026Prefix Sliding for efficient test-time scaling26 Aug 2026
- 2025A Survey of Scaling in Large Language Model Reasoning2 Apr 2025
- 2025Understanding Task Transfer in Vision-Language Modelscited by 2
- 2025Understanding Task Transfer in Vision-Language Models24 Nov 2025
- 2025A Survey of Context Engineering for Large Language Modelscited by 120
- 2025Compact Attention: Exploiting Structured Spatio-Temporal Sparsity for Fast Video Generationcited by 5
- 2025Data Efficient Adaptation in Large Language Models via Continuous Low-Rank Fine-Tuningcited by 4
- 2025SWAA: Sliding Window Attention Adaptation for Efficient and Quality Preserving Long Context Processingcited by 3
- 2026LIVEditor-14B: Lightning Unified Video Editing via In-Context Sparse Attentioncited by 3
- 2025Nirvana: A Specialized Generalist Model With Task-Aware Memory Mechanismcited by 2
- 2025P/D-Device: Disaggregated Large Language Model between Cloud and Devicescited by 1
- 2026Training-Inference Consistent Segmented Execution for Long-Context LLMscited by 1
- 2026CoFrGeNet: Continued Fraction Architectures for Language Generationcited by 0
- 2026CoWindow Attention: Full Causal Coverage Is a Collective Propertycited by 0
- 2026MassAlloc Attention: Let Attention Allocate Its Own Computecited by 0
- 2026MassAlloc Attention: Let Attention Allocate Its Own Compute26 Sep 2026
- 2026CoWindow Attention: Full Causal Coverage Is a Collective Property26 Sep 2026
- 2026Training-Inference Consistent Segmented Execution for Long-Context LLMs12 May 2026
- 2026LIVEditor-14B: Lightning Unified Video Editing via In-Context Sparse Attention6 May 2026
- 2026CoFrGeNet: Continued Fraction Architectures for Language Generation29 Jan 2026
- 2025SWAA: Sliding Window Attention Adaptation for Efficient and Quality Preserving Long Context Processing11 Dec 2025
- 2025Nirvana: A Specialized Generalist Model With Task-Aware Memory Mechanism30 Oct 2025
- 2025Data Efficient Adaptation in Large Language Models via Continuous Low-Rank Fine-Tuning23 Sep 2025
- 2025Compact Attention: Exploiting Structured Spatio-Temporal Sparsity for Fast Video Generation18 Aug 2025
- 2025P/D-Device: Disaggregated Large Language Model between Cloud and Devices12 Aug 2025
- 2025A Survey of Context Engineering for Large Language Models17 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2023Attention Alignment and Flexible Positional Embeddings Improve Transformer Length Extrapolation
- 2025DAM: Dynamic Attention Mask for Long-Context Large Language Model Inference Acceleration
- 2026Sliding-window beats linear attention
- 2024A Training-free Sub-quadratic Cost Transformer Model Serving Framework With Hierarchically Pruned Attention
- 2024Prompt Compression for Large Language Models: A Survey
- 2026Blurry Window Attention
- 2023TransNormerLLM: A Faster and Better Large Language Model with Improved TransNormer
- 2022Efficient Long Sequence Modeling via State Space Augmented Transformer