Architecture-Aware Reinforcement Learning Makes Sliding-Window Attention Competitive in Math Reasoning
On the map: LLM reasoning → Reinforcement learning for reasoning
also in 1 more
Abstract (arXiv)
The rapid progress of reasoning and agentic large language models (LLMs) has increased the demand for long-context inference, but self-attention (SA) scales quadratically with context length. To address this, we study SWARR (Sliding-Window Attention with Reinforced Adaptation for Math Reasoning), a practical recipe for adapting SWA models to mathematical reasoning. SWARR has two stages: (1) efficient conversion from a pretrained SA model to SWA with supervised fine-tuning (SFT), which avoids pretraining a new base model, and (2) policy adaptation with reinforcement learning (RL). We find that SWA still underperforms SA after SFT, and we hypothesize that this gap is caused in part by a data-architecture mismatch: most SFT data are prepared for SA models and may contain long-range dependencies that are difficult for SWA to model. Because on-policy RL optimizes self-generated trajectories under the SWA constraint, it can adapt trajectories to better match SWA. Experiments on mathematical reasoning benchmarks show that this recipe substantially narrows the gap between SWA and SA, recovering much of the accuracy lost during SWA conversion while preserving the efficiency benefits of linear-complexity attention. Our central contribution is the empirical finding that RL changes the conclusion one would draw from conversion and SFT alone about SWA's viability for math reasoning.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Reinforcement learning for reasoning, one of 17 directions in LLM reasoning. Builds on 46 of its 71 references that are in the map. First posted on arXiv 10 Jun 2026.
Builds on
46 of 71 references.
Closest ancestors · 7
Same direction, newest first
- 2025AceReason-Nemotron 1.1: Advancing Math and Code Reasoning through SFT and RL Synergy16 Jun
- 2025Act Only When It Pays: Efficient Reinforcement Learning for LLM Reasoning via Selective Rollouts2 Jun
- 2025AReaL: A Large-Scale Asynchronous Reinforcement Learning System for Language Reasoning30 May
- 2025SEED-GRPO: Semantic Entropy Enhanced GRPO for Uncertainty-Aware Policy Optimization18 May
- 2025SimpleRL-Zoo: Investigating and Taming Zero Reinforcement Learning for Open Base Models in the Wild24 Mar
- 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scale18 Mar
- 2017Proximal Policy Optimization Algorithms20 Jul
Other references · 39
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2025Qwen3 Technical Reportcited by 8,820
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2023Mistral 7Bcited by 3,164
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
- 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,848
- 2020Rethinking Attention with Performerscited by 1,601
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
27 more
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,386
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
- 2024OpenAI o1 System Cardcited by 1,244
- 2023Instruction-Following Evaluation for Large Language Modelscited by 1,228
- 2024Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvementcited by 1,090
- 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallelcited by 660
- 2023Instruction Tuning for Large Language Models: A Surveycited by 623
- 2025Kimi K2: Open Agentic Intelligencecited by 567
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
- 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 401
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 355
- 2025MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attentioncited by 263
- 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 198
- 2024An Empirical Study of Mamba-based Language Modelscited by 186
- 2024Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrencecited by 159
- 2025RWKV-7 "Goose" with Expressive Dynamic State Evolutioncited by 141
- 2024HGRN2: Gated Linear RNNs with State Expansioncited by 127
- 2025NVIDIA Nemotron Nano 2: An Accurate and Efficient Hybrid Mamba-Transformer Reasoning Modelcited by 108
- 2025The Art of Scaling Reinforcement Learning Compute for LLMscited by 101
- 2025Nemotron-H: A Family of Accurate and Efficient Hybrid Mamba-Transformer Modelscited by 100
- 2024Longhorn: State Space Models are Amortized Online Learnerscited by 59
- 2024Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Modelscited by 57
- 2025Jet-Nemotron: Efficient Language Model with Post Neural Architecture Searchcited by 41
- 2025A Systematic Analysis of Hybrid Linear Attentioncited by 39
- 2025Hunyuan-TurboS: Advancing Large Language Models through Mamba-Transformer Synergy and Adaptive Chain-of-Thoughtcited by 29
- 2025M1: Towards Scalable Test-Time Compute with Mamba Reasoning Modelscited by 21
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Offline Exploration-Aware Fine-Tuning for Long-Chain Mathematical Reasoning
- 2025From Efficiency to Adaptivity: A Deeper Look at Adaptive Reasoning in Large Language Models
- 2025QuestA: Expanding Reasoning Capacity in LLMs via Question Augmentation
- 2025Rethinking Expert Trajectory Utilization in LLM Post-training for Mathematical Reasoning
- 2025Scaling Reasoning, Losing Control: Evaluating Instruction Following in Large Reasoning Models
- 2025Boosting Accuracy and Efficiency of Budget Forcing in LLMs via Reinforcement Learning for Mathematical Reasoning
- 2025Reasoning Vectors: Transferring Chain-of-Thought Capabilities via Task Arithmetic
- 2025Beyond 'Aha!': Toward Systematic Meta-Abilities Alignment in Large Reasoning Models