AttnSR: Attention Step Reward for Long-Horizon Agentic RL
Mengsong Wu, Tianchen Zhou, Zhaochen Su, Zhenhua Liu, Zhe Cui, Aimin Zhou
Abstract
Long-horizon LLM agents make multi-step decisions, yet outcome-reward-only reinforcement learning provides little direct supervision for individual steps. We introduce AttnSR, a step-level reward augmentation method that derives reward allocations from policy attention extracted during training replay, without a separately trained reward model or additional rollouts. AttnSR traces backward through the policy model attention graph to estimate the relevance of earlier steps to the final response. The terminal step, measured relative to a running baseline, determines whether these rewards reinforce or penalize the selected steps. In a controlled Qwen2.5-7B-Instruct study, AttnSR consistently outperforms the PPO baseline across all evaluated checkpoints on ALFWorld, raising final held-out success from 91.2% to 97.1%. The ablation experiment shows that the benefit depends on how intermediate rewards are assigned, rather than simple accumulation of step rewards over time. AttnSR also improves ScienceWorld at every checkpoint while cutting environment interactions by 29.9%. These results support policy attention as a practical prior for step-level reward allocation in long-horizon agentic RL. Code is available at https://github.com/fairyshine/AttnSR .
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI
- Comments
- 20 pages, 4 figures, including appendices. Code: https://github.com/fairyshine/AttnSR
Related papers
Plug-and-Play Verifier for Decoupling Process Reward in Stabilizing Long-Horizon Agentic Reasoning
Shared title terminologycs.LGMingwei Xu, Jieyuan Pei, Binghao Tu et al.
PACE: Keeping the Right Tokens in the KV Cache Is Not Enough for Long-Horizon LLM Agents
Shared title terminologycs.LGSuman Chatterjee
Reliable Prerequisite-Aware Learning Path Recommendation under Uncertain Knowledge Structures: Long-Horizon Evaluation and Cross-Dataset Validation
Shared title terminologycs.LGM. M. Golam Hafiz, A. K. M. Shahriar Emtiaz, Safia Akter Simi et al.
When2What: A Timing-Conditioned Framework for Long-Horizon Forecasting of Continuous Cardiovascular Waveforms
Shared title terminologycs.LGChaoqi Zhang, Shujie Yan, Zhao Zhang et al.
QRAE: Query-Relevant Attention Entropy for Context Compression in DeepSearch Agents
Shared title terminologycs.LGYingjie Tan, Haiquan Qiu, Quanming Yao et al.
Compute-Aware Submodular Online Learning in Open Multi-Agent Systems
Shared title terminologycs.LGJing Liu, Luca Ballotta, Fangfei Li et al.