论文

AttnSR:用注意力分配步级奖励,提升长程智能体强化学习效果

AttnSR: Attention Step Reward for Long-Horizon Agentic RL

精选理由

训练长程 Agent 时只有最终结果奖励不够用,这篇用模型自己的注意力给中间步骤发奖励,ALFWorld 成功率从 91.2% 拉到 97.1%,代码开源可复现。

论文提出 AttnSR,一种步级奖励增强方法,直接从策略模型在训练回放时的注意力图反推早期步骤对最终响应的相关性,无需单独训练奖励模型或额外 rollout。在 Qwen2.5-7B-Instruct 的受控实验中,AttnSR 在 ALFWorld 上将最终 held-out 成功率从 PPO 基线的 91.2% 提升到 97.1%,且在每个检查点都优于基线。在 ScienceWorld 上,AttnSR 在每个检查点均有提升,同时减少 29.9% 的环境交互次数。消融实验显示收益来自中间奖励的分配方式,而非简单的时间累积。

原文 · arXiv cs.LG

AttnSR: Attention Step Reward for Long-Horizon Agentic RL

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 .