mlsanityData to 7 Oct 2026

Attend or Perish: Benchmarking Attention in Algorithmic Reasoning

arXiv 2503.01909 ↗First posted 28 Feb 2025cs.LG cs.AIcited by 2

On the map: LLM reasoning → Test-time compute and efficient thinking

Abstract (arXiv)

Can transformers learn to perform algorithmic tasks reliably across previously unseen input/output domains? While pre-trained language models show solid accuracy on benchmarks incorporating algorithmic reasoning, assessing the reliability of these results necessitates an ability to distinguish genuine algorithmic understanding from memorization. In this paper, we propose AttentionSpan, an algorithmic benchmark comprising five tasks of infinite input domains where we can disentangle and trace the correct, robust algorithm necessary for the task. This allows us to assess (i) models' ability to extrapolate to unseen types of inputs, including new lengths, value ranges or input domains, but also (ii)to assess the robustness of their learned mechanisms. By analyzing attention maps and performing targeted interventions, we show that attention mechanism directly causes failures in extrapolation. We make the implementation of all our tasks and interpretability methods publicly available at https://github.com/michalspiegel/AttentionSpan .

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 10 of its 19 references that are in the map. First posted on arXiv 28 Feb 2025.

Builds on

10 of 19 references.

References · 10

  1. 2024The Llama 3 Herd of Modelscited by 14,192
  2. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  3. 2024Qwen2 Technical Reportcited by 2,076
  4. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
  5. 2020Quantifying Attention Flow in Transformerscited by 759
  6. 2015Unitary Evolution Recurrent Neural Networkscited by 291
  7. 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 208
  8. 2023Exposing Attention Glitches with Flip-Flop Language Modelingcited by 74
  9. 2024The CLRS-Text Algorithmic Reasoning Language Benchmarkcited by 28
  10. 2024BenCzechMark : A Czech-centric Multitask and Multimetric Benchmark for Large Language Models with Duel Scoring Mechanismcited by 12

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Positional versus Symbolic Attention Heads: Learning Dynamics, RoPE Geometry, and Length Generalization
  2. 2026A Systematic Study of Small Language Models on Abstract Reasoning Tasks
  3. 2026Improving Chain-of-Thought for Logical Reasoning via Attention-Aware Intervention
  4. 2025Attention Illuminates LLM Reasoning: The Preplan-and-Anchor Rhythm Enables Fine-Grained Policy Optimization
  5. 2022Attention in Reasoning: Dataset, Analysis, and Modeling
  6. 2026On-Policy Attention Linearization
  7. 2026A Provable Expressiveness Hierarchy in Hybrid Linear-Full Attention
  8. 2025Unveiling Reasoning Thresholds in Language Models: Scaling, Fine-Tuning, and Interpretability through Attention Maps