mlsanityData to 7 Oct 2026

Sliding Window Attention Training for Efficient Large Language Models

arXiv 2502.18845 ↗First posted 26 Feb 2025cs.CL cs.AI cs.LGcited by 21

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

  1. 2024The Llama 3 Herd of Modelscited by 14,192
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  3. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  4. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  5. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  6. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  7. 2020Longformer: The Long-Document Transformercited by 3,362
  8. 2016Pointer Sentinel Mixture Modelscited by 2,992
  9. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  10. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
  11. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  12. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
16 more
  1. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  2. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  3. 2020Rethinking Attention with Performerscited by 1,584
  4. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  5. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
  6. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
  7. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
  8. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  9. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
  10. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
  11. 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
  12. 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
  13. 2024Titans: Learning to Memorize at Test Timecited by 303
  14. 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 200
  15. 2024Theory, Analysis, and Best Practices for Sigmoid Self-Attentioncited by 62
  16. 2023Latent Positional Information is in the Self-Attention Variance of Transformer Language Models Without Positional Embeddingscited by 23

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 9; 2026: 12.

21 papers.

Sort:

By area:

  1. 2025A Survey of Context Engineering for Large Language Modelscited by 120
  2. 2025A Survey of Scaling in Large Language Model Reasoningcited by 10
  3. 2026DeepContext: Stateful Real-Time Detection of Multi-Turn Adversarial Intent Drift in LLMscited by 8
  4. 2025Compact Attention: Exploiting Structured Spatio-Temporal Sparsity for Fast Video Generationcited by 5
  5. 2026CoMem: Context Management with A Decoupled Long-Context Modelcited by 5
  6. 2025Data Efficient Adaptation in Large Language Models via Continuous Low-Rank Fine-Tuningcited by 4
  7. 2025db-SP: Accelerating Sparse Attention for Visual Generative Models with Dual-Balanced Sequence Parallelismcited by 3
  8. 2025SWAA: Sliding Window Attention Adaptation for Efficient and Quality Preserving Long Context Processingcited by 3
  9. 2026Beyond Few-Step Inference: Accelerating Video Diffusion Transformer Model Serving with Inter-Request Caching Reusecited by 3
  10. 2026LIVEditor-14B: Lightning Unified Video Editing via In-Context Sparse Attentioncited by 3
  11. 2025Nirvana: A Specialized Generalist Model With Task-Aware Memory Mechanismcited by 2
  12. 2025Understanding Task Transfer in Vision-Language Modelscited by 2
9 more
  1. 2026HARD-KV: Head-Adaptive Regularization for Decoding-time KV Compressioncited by 2
  2. 2026Prefix Sliding for efficient test-time scalingcited by 2
  3. 2025P/D-Device: Disaggregated Large Language Model between Cloud and Devicescited by 1
  4. 2026Training-Inference Consistent Segmented Execution for Long-Context LLMscited by 1
  5. 2026KV-streams for Efficient Compaction in Agentic Reinforcement Learningcited by 1
  6. 2026CoFrGeNet: Continued Fraction Architectures for Language Generationcited by 0
  7. 2026DASH: Fast Differentiable Architecture Search for Hybrid Attention in Minutes on a Single GPUcited by 0
  8. 2026CoWindow Attention: Full Causal Coverage Is a Collective Propertycited by 0
  9. 2026MassAlloc Attention: Let Attention Allocate Its Own Computecited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2023Attention Alignment and Flexible Positional Embeddings Improve Transformer Length Extrapolation
  2. 2025DAM: Dynamic Attention Mask for Long-Context Large Language Model Inference Acceleration
  3. 2026Sliding-window beats linear attention
  4. 2024A Training-free Sub-quadratic Cost Transformer Model Serving Framework With Hierarchically Pruned Attention
  5. 2024Prompt Compression for Large Language Models: A Survey
  6. 2026Blurry Window Attention
  7. 2023TransNormerLLM: A Faster and Better Large Language Model with Improved TransNormer
  8. 2022Efficient Long Sequence Modeling via State Space Augmented Transformer