mlsanityData to 14 Oct 2026

RATTENTION: Towards the Minimal Sliding Window Size in Local-Global Attention Models

arXiv 2506.15545 ↗First posted 18 Jun 2025cs.CLcited by 10

Not on the map. Why?

Abstract (arXiv)

Local-global attention models have recently emerged as compelling alternatives to standard Transformers, promising improvements in both training and inference efficiency. However, the crucial choice of window size presents a Pareto tradeoff: larger windows maintain performance akin to full attention but offer minimal efficiency gains in short-context scenarios, while smaller windows can lead to performance degradation. Current models, such as Gemma2 and Mistral, adopt conservative window sizes (e.g., 4096 out of an 8192 pretraining length) to preserve performance. This work investigates strategies to shift this Pareto frontier, enabling local-global models to achieve efficiency gains even in short-context regimes. Our core motivation is to address the intrinsic limitation of local attention -- its complete disregard for tokens outside the defined window. We explore RATTENTION, a variant of local attention integrated with a specialized linear attention mechanism designed to capture information from these out-of-window tokens. Pretraining experiments at the 3B and 12B scales demonstrate that RATTENTION achieves a superior Pareto tradeoff between performance and efficiency. As a sweet spot, RATTENTION with a window size of just 512 consistently matches the performance of full-attention models across diverse settings. Furthermore, the recurrent nature inherent in the linear attention component of RATTENTION contributes to enhanced long-context performance, as validated on the RULER benchmark. Crucially, these improvements do not compromise training efficiency; thanks to a specialized kernel implementation and the reduced window size, RATTENTION maintains training speeds comparable to existing state-of-the-art approaches. We open-sourced our Pallas kernels along with model codes to facilitate further research effort.

Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 20 of its 31 references that are in the map. First posted on arXiv 18 Jun 2025.

Builds on

20 of 31 references.

References · 20

  1. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  2. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  3. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  4. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  5. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  6. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  7. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
  8. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  9. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  10. 2020Reformer: The Efficient Transformercited by 1,668
  11. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  12. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
8 more
  1. 2017Crowdsourcing Multiple Choice Science Questionscited by 765
  2. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
  3. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
  4. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
  5. 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 242
  6. 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 208
  7. 2023Unlimiformer: Long-Range Transformers with Unlimited Length Inputcited by 128
  8. 2025Rope to Nope and Back Again: A New Hybrid Attention Strategycited by 47

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 8.

10 papers.