arXiv cs.AI· Kai Liu, Peijie Dong, Xinchen Xie, Jianfei Gao, Qipeng Guo, Xiaowen Chu, Shaoting Zhang, Kai Chen·· 12 小时前AI 评分34
SWARR:架构感知强化学习让滑动窗口注意力在数学推理中具备竞争力
Architecture-Aware Reinforcement Learning Makes Sliding-Window Attention Competitive in Math Reasoning
AI 导读
SWARR 提出一套将预训练自注意力模型转为滑动窗口注意力(SWA)的两阶段方案:先用 SFT 高效转换、避免重新预训练基座模型,再用强化学习做策略适配。研究发现 SWA 在 SFT 后仍落后于 SA,部分原因是 SFT 数据与 SWA 架构不匹配,而 on-policy RL 能让自生成轨迹更好适配 SWA。
正文 · 原文
Abstract: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.
| Subjects: | Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2606.11634 [cs.AI] |
| (or arXiv:2606.11634v2 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2606.11634 arXiv-issued DOI via DataCite |
Submission history
From: Kai Liu [view email]
[v1]
Wed, 10 Jun 2026 03:56:03 UTC (1,103 KB)
[v2]
Fri, 23 Oct 2026 15:47:04 UTC (1,055 KB)
来源:arXiv cs.AI · arxiv.org