# AttnSR: Attention Step Reward for Long-Horizon Agentic RL

AttnSR: 장기 과제 에이전트 강화학습을 위한 어텐션 단계 보상

Mengsong Wu, Tianchen Zhou, Zhaochen Su, Zhenhua Liu, Zhe Cui, Aimin Zhou · arXiv · 2026년 11월 5일

- **연구 문제** 긴 호흡의 에이전트 강화학습에서 결과 보상만으로는 개별 단계의 기여를 알기 어렵습니다.
- **연구 방법** 정책 모델의 어텐션으로 단계 간 관련도를 역추적하고, 신뢰도와 결과 중심화로 조절한 중간 보상을 PPO에 추가합니다.
- **주요 결과** ALFWORLD 성공률이 91.24%에서 97.08%로 올랐고, SCIENCEWORLD는 점수가 올랐지만 보정 후 유의하지 않았으며, WEBSHOP은 이득이 확인되지 않았습니다.

## 장기 에이전트 학습에서 중간 행동의 크레딧 문제

긴 호흡의 LLM 에이전트는 여러 단계의 결정을 거쳐 과제를 완료하지만, 결과 보상만 사용하는 강화학습은 개별 단계가 최종 결과에 얼마나 기여했는지에 대한 직접적인 지도 신호를 거의 주지 않습니다. 이 문제를 흔히 시간적 크레딧 할당이라고 부릅니다. 단계별 보상은 이 문제를 완화할 수 있지만, 단계 주석이나 추가 환경 상호작용, 별도로 학습한 평가기가 필요한 경우가 많습니다. 이 논문은 정책 모델 내부의 어텐션을 이러한 추가 비용 없이 중간 보상 배분의 사전 정보로 쓸 수 있는지 묻습니다. 다만 어텐션이 인과적 기여를 직접 증명하지 않는다는 점은 저자들이 분명히 구분하고 있습니다.

## ATTNSR의 어텐션 그래프와 중간 보상 계산

ATTNSR는 학습 중 궤적을 정책 모델에 다시 통과시켜 이전 로그확률을 얻는 과정에서 Q/K 값을 추출하고, 선택된 층마다 단계 간 의존 그래프를 만듭니다. 각 단계의 어시스턴트 메시지가 이전 어시스턴트 메시지와 관찰에 주는 주의 질량을 합산하고, 두 그래프를 같은 가중치로 섞습니다. 이후 최종 단계에서 이전 단계로 관련도를 역추적하며 경로별 간선 가중치의 곱에 홉마다 0.85의 감쇠를 적용합니다. 최근 단계로 쏠리는 경향을 줄이기 위해 종료 거리 기반 근접도 항을 로그 관련도와 함께 표준화하여 보정하고, 그 결과를 소프트맥스로 정규화해 단계별 배분을 얻습니다. 여러 층의 배분은 기하평균으로 융합됩니다.

![Figure 1: Overview of ATTNSR. Actor replay supplies attention for a step graph. Backtracking from the terminal step, recency correction, and layer fusion yield…](https://refivu.com/papers/07dce6ba-41ca-4919-9f47-b3310e2a8229/figures/figure-3280be1e3ebc8ebb688f7559aa789491.png?thumb=512)

**Figure 1** : Overview of ATTNSR. Actor replay supplies attention for a step graph. Backtracking from the terminal step, recency correction, and layer fusion yield an allocation, and confidence and the centered outcome scale it into signed intermediate rewards. The outcome reward is retained. Graph edges link later steps to earlier dependencies, and episode indices are omitted.

[원문](https://arxiv.org/abs/2611.07932v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mengsong Wu, Tianchen Zhou, Zhaochen Su, Zhenhua Liu, Zhe Cui, Aimin Zhou · AttnSR: Attention Step Reward for Long-Horizon Agentic RL · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

계산된 배분 자체는 보상의 부호를 정하지 않습니다. 신뢰도는 최종 단계가 덮은 주의 질량, 배분의 집중도, 층 간 일치도를 곱해 계산되며, 결과 보상과 실행 기준선의 차이에 곱해져 중간 보상 예산 β·C·(R−R̄)이 됩니다. 이 예산은 각 단계의 배분 비율로 나뉘어 중간 어시스턴트 종료 토큰에 배치되고, 최종 결과 보상은 그대로 유지됩니다. 따라서 어텐션은 중간 보상의 크기 방향을 정하는 신호로 쓰이고, 결과 중심화는 부호와 전체 예산을 조절합니다.

![Table 16: Notation. Hyperparameter values refer to the canonical AttnSR runs](https://refivu.com/papers/07dce6ba-41ca-4919-9f47-b3310e2a8229/figures/figure-bb0951bcd1c565081ae099a4a83a209d.png?thumb=512)

**Table 16** : Notation. Hyperparameter values refer to the canonical AttnSR runs.

[원문](https://arxiv.org/abs/2611.07932v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mengsong Wu, Tianchen Zhou, Zhaochen Su, Zhenhua Liu, Zhe Cui, Aimin Zhou · AttnSR: Attention Step Reward for Long-Horizon Agentic RL · 원문 그림 인용 · 원본 PDF 20쪽에서 그림 영역을 추출했습니다.

## PPO 학습 목표에 중간 보상을 넣는 방식

중간 보상은 PPO의 어시스턴트 토큰 보상 시퀀스에 추가되며, GAE 이전에 이점과 가치 목표를 바꾸는 방식으로 적용됩니다. 원문 식에 따르면 기존 PPO 보상은 최종 어시스턴트 종료 토큰에만 결과 보상을 두고, ATTNSR는 중간 단계 종료 토큰에 부호가 있는 보상을 더합니다. 어텐션 추출에는 정책 모델의 분리된 값이 쓰이며, 정책 확률은 최적화 중 미분 가능하게 남습니다. 비평자 구조와 손실은 그대로 유지되고, 이점은 정규화되어 정책 목적에 쓰이고 반환값은 비평자의 목표가 됩니다.

![Figure 2: Integration of ATTNSR into actor–critic RL. (a) The PPO integration of ATTNSR adds intermediate rewards while retaining the outcome reward. (b) Detac…](https://refivu.com/papers/07dce6ba-41ca-4919-9f47-b3310e2a8229/figures/figure-789d6d9c6e7b7755e54554e29bdfdfb5.png?thumb=512)

**Figure 2** : Integration of ATTNSR into actor–critic RL. (a) The PPO integration of ATTNSR adds intermediate rewards while retaining the outcome reward. (b) Detached actor attention supplies rewards, and pre-update critic values support GAE and target construction. Normalized advantages guide the actor, while estimated returns supervise the critic as in Equation 14. Targets remain fixed during optimization. Solid arrows carry signals or targets, and dashed arrows denote updates.

[원문](https://arxiv.org/abs/2611.07932v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mengsong Wu, Tianchen Zhou, Zhaochen Su, Zhenhua Liu, Zhe Cui, Aimin Zhou · AttnSR: Attention Step Reward for Long-Horizon Agentic RL · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

저자들은 이 방식이 원래 보상 최적화와 정책 불변성을 보장하지 않는다고 밝힙니다. 따라서 이 방법은 학습 휴리스틱이며, 평가는 원래 과제 지표로 수행됩니다.

## ALFWORLD와 다른 벤치마크에서의 비교 설정

주요 실험은 Qwen2.5-7B-Instruct를 동결하고 actor와 critic에 rank-64 LoRA를 붙인 설정에서 수행됩니다. ALFWORLD, WEBSHOP, SCIENCEWORLD를 각각 독립적으로 학습하며, 학습 분할은 held-out 과제와 분리됩니다. 평가에서는 에폭 4 체크포인트를 사용하고, 탐욕 디코딩으로 held-out 과제를 한 번씩 평가합니다. 기준선은 결과 보상만 쓰는 PPO이며, 위치 기반 Linear Step Reward와 GRPO 비교도 포함됩니다. 통계 검정은 같은 입력을 가진 쌍체 과제에서 McNemar 검정과 부트스트랩 구간으로 이루어집니다.

![Table 8: Framework and model configuration for the canonical runs](https://refivu.com/papers/07dce6ba-41ca-4919-9f47-b3310e2a8229/figures/figure-2ded182c2393a7a3f890003d9dab628f.png?thumb=512)

**Table 8** : Framework and model configuration for the canonical runs.

[원문](https://arxiv.org/abs/2611.07932v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mengsong Wu, Tianchen Zhou, Zhaochen Su, Zhenhua Liu, Zhe Cui, Aimin Zhou · AttnSR: Attention Step Reward for Long-Horizon Agentic RL · 원문 그림 인용 · 원본 PDF 14쪽에서 그림 영역을 추출했습니다.

## 주요 결과와 통계적 해석

ALFWORLD에서 PPO의 최종 성공률은 91.24%였고, PPO+ATTNSR는 97.08%였습니다. 이 차이는 쌍체 검정에서 20개 과제만 ATTNSR가 해결하고 4개만 PPO가 해결한 결과로 설명되며, 다중 비교 보정 후에도 ALFWORLD의 성공률 차이는 유지됩니다. SCIENCEWORLD에서는 공식 점수가 44.53%에서 46.35%로 올랐고 성공률은 28.59%에서 30.90%로 올랐지만, 보정 후 유의하다고 보기는 어렵습니다. WEBSHOP에서는 성공률이 소폭 올랐으나 공식 점수가 낮아졌고, 쌍체 구간이 0을 포함하므로 이득이 확인되지 않았습니다.

![Table 1: Task performance with Qwen2.5-7B-Instruct. (a) Main Result across three benchmarks. (b) ALFWorld success. All values are percentages (%)](https://refivu.com/papers/07dce6ba-41ca-4919-9f47-b3310e2a8229/figures/figure-b084cbcb8e65b927c08abbdbea910a38.png?thumb=512)

**Table 1** : Task performance with Qwen2.5-7B-Instruct. (a) Main Result across three benchmarks. (b) ALFWorld success. All values are percentages (%).

[원문](https://arxiv.org/abs/2611.07932v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mengsong Wu, Tianchen Zhou, Zhaochen Su, Zhenhua Liu, Zhe Cui, Aimin Zhou · AttnSR: Attention Step Reward for Long-Horizon Agentic RL · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

![Table 10: Paired evaluation-set uncertainty for the final-checkpoint comparison, computed over exact-input-matched episodes. Wins and losses count tasks solved…](https://refivu.com/papers/07dce6ba-41ca-4919-9f47-b3310e2a8229/figures/figure-0616f4cb40af82f9612bed8a85c68da1.png?thumb=512)

**Table 10** : Paired evaluation-set uncertainty for the final-checkpoint comparison, computed over exact-input-matched episodes. Wins and losses count tasks solved by exactly one policy, and p is the unadjusted two-sided exact McNemar test on those discordant pairs. Intervals are 10,000-resample percentile bootstrap intervals for the mean paired difference (AttnSR − PPO) in points. ALFWorld official score equals binary success. Intervals quantify sampling uncertainty over matched tasks.

[원문](https://arxiv.org/abs/2611.07932v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mengsong Wu, Tianchen Zhou, Zhaochen Su, Zhenhua Liu, Zhe Cui, Aimin Zhou · AttnSR: Attention Step Reward for Long-Horizon Agentic RL · 원문 그림 인용 · 원본 PDF 15쪽에서 그림 영역을 추출했습니다.

위치 기반 Linear Step Reward는 PPO 대비 1.10점 향상에 그쳐, 같은 예산 크기에서도 어텐션 기반 배분의 설명력이 더 크다는 해석을 뒷받침합니다. 다만 이 통제 실험은 단일 실행 결과이므로 강한 인과 증명으로 읽지 않아야 합니다.

![Table 5: ALFWorld success (%) across checkpoints for the canonical positional control. All check- points use the full 274-task held-out set](https://refivu.com/papers/07dce6ba-41ca-4919-9f47-b3310e2a8229/figures/figure-a589a64e7294d302271181a68009e36f.png?thumb=512)

**Table 5** : ALFWorld success (%) across checkpoints for the canonical positional control. All check- points use the full 274-task held-out set.

[원문](https://arxiv.org/abs/2611.07932v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mengsong Wu, Tianchen Zhou, Zhaochen Su, Zhenhua Liu, Zhe Cui, Aimin Zhou · AttnSR: Attention Step Reward for Long-Horizon Agentic RL · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.

## 해석 범위와 남은 한계

저자들은 어텐션이 관련도의 휴리스틱 사전 정보일 뿐 인과적 기여를 확정하지 않는다고 명시합니다. WEBSHOP에서는 이득이 검출되지 않았고, 짧은 궤적에서의 이득 감소는 가설로만 제시되었습니다. 여러 비교군은 최적화 예산과 체크포인트 선택, 체크포인트가 다르므로 단순 비교로 결론짓기 어렵습니다. 또한 대부분의 교차 백본과 GRPO 확장은 단일 실행이며 학습 시드 변동을 추정하지 않았습니다.

![Table 7: Canonical training-set sizes and update budgets, per method. One update uses one collected batch of eight trajectories](https://refivu.com/papers/07dce6ba-41ca-4919-9f47-b3310e2a8229/figures/figure-99907ce6f53342cc6d1b0febae79309e.png?thumb=512)

**Table 7** : Canonical training-set sizes and update budgets, per method. One update uses one collected batch of eight trajectories.

[원문](https://arxiv.org/abs/2611.07932v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mengsong Wu, Tianchen Zhou, Zhaochen Su, Zhenhua Liu, Zhe Cui, Aimin Zhou · AttnSR: Attention Step Reward for Long-Horizon Agentic RL · 원문 그림 인용 · 원본 PDF 14쪽에서 그림 영역을 추출했습니다.

![Figure 4: Qwen2.5-3B-Instruct held-out ALFWorld success after each of four PPO training epochs, shown overall (274 tasks), seen (140), and unseen (134). Each p…](https://refivu.com/papers/07dce6ba-41ca-4919-9f47-b3310e2a8229/figures/figure-3081a48a9575f7550176237b8cf046cc.png?thumb=512)

**Figure 4** : Qwen2.5-3B-Instruct held-out ALFWorld success after each of four PPO training epochs, shown overall (274 tasks), seen (140), and unseen (134). Each point is a full-set greedy evaluation from one training run per method. Lines connect checkpoints without smoothing, and no estimate of training-seed uncertainty is available.

[원문](https://arxiv.org/abs/2611.07932v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mengsong Wu, Tianchen Zhou, Zhaochen Su, Zhenhua Liu, Zhe Cui, Aimin Zhou · AttnSR: Attention Step Reward for Long-Horizon Agentic RL · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: Mengsong Wu, Tianchen Zhou, Zhaochen Su, Zhenhua Liu, Zhe Cui, Aimin Zhou
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 5일
- **등록일**: 2026년 11월 6일
- **수정일**: 2026년 11월 5일
- **버전**: v1
- **arXiv**: 2611.07932
- **분류**: cs.LG · cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.07932v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.07932v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

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 .

## 원문 인용

Mengsong Wu, Tianchen Zhou, Zhaochen Su, Zhenhua Liu, Zhe Cui, Aimin Zhou (2026). AttnSR: Attention Step Reward for Long-Horizon Agentic RL. arXiv:2611.07932v1. https://arxiv.org/abs/2611.07932v1

**BibTeX**

```
@misc{wu2026attnsr,
  title = {{AttnSR: Attention Step Reward for Long-Horizon Agentic RL}},
  author = {Mengsong Wu and Tianchen Zhou and Zhaochen Su and Zhenhua Liu and Zhe Cui and Aimin Zhou},
  year = {2026},
  eprint = {2611.07932},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.07932v1}
}
```

## 이 논문의 용어

- [LoRA](https://refivu.com/terms/84da7a415b66-low-rank-adaptation-lora)
- [GRPO](https://refivu.com/terms/17129d1bafd8-grpo)
- [PPO](https://refivu.com/terms/21c34991d674-ppo)
- [paired bootstrap](https://refivu.com/terms/63f3236bc607-paired-bootstrap)
- [Qwen2.5-7B-instruct](https://refivu.com/terms/7ec5caed2fdf-qwen2-5-7b-instruct)
- [AlfWorld](https://refivu.com/terms/492e006382ef-alfworld)
- [Bonferroni correction](https://refivu.com/terms/515c0da49aa8-bonferroni-correction)
- [WebShop](https://refivu.com/terms/3af52e1053c4-webshop)
- [GAE](https://refivu.com/terms/911dea6feff4-gae)
- [exact McNemar test](https://refivu.com/terms/6c3fd8c46ff6-exact-mcnemar-test)
- [ScienceWorld](https://refivu.com/terms/95c330b9f5dc-scienceworld)
- [geometric mean](https://refivu.com/terms/a5f4d0ddefde-geometric-mean)
- [Normalized entropy](https://refivu.com/terms/dd962f862b3e-normalized-entropy)

## 다른 논문 해설

- [MEMOIR: A Training-Free Memory Lifecycle for Long-Horizon LLM Agents](https://refivu.com/papers/bcaa5aab-9ef6-4cab-aa91-e1e0ef81d077-memoir-a-training-free-memory-lifecycle-for-long.md)
- [Beneath the Surface: What We Overlook When We Talk About Agent Evolution](https://refivu.com/papers/5dad123f-9ec8-40d0-b769-0fed8bfce880-beneath-the-surface-what-we-overlook-when-we.md)
- [How Should Agents See Code? Rethinking Code Representations for Agentic Software Engineering](https://refivu.com/papers/a030cfdc-f4fa-4334-a174-8b6cfc1a2460-how-should-agents-see-code-rethinking-code-representations.md)
- [More Agents, More Reliable? System-Level Reliability of Multi-Agent LLMs under Operational-Profile Uncertainty](https://refivu.com/papers/7fe8b88e-f386-49bf-8e3c-4db4c1641a1b-more-agents-more-reliable-system-level-reliability-of.md)
- [τ-bench-LILT: Evaluating Conversational Agents on Realistic Multilingual Tool-Use Tasks](https://refivu.com/papers/18631827-6e8d-44e8-9d01-74fdd2e225df-bench-lilt-evaluating-conversational-agents-on-realistic.md)
- [Multi-step SWE: Can Coding Agents Keep Building on Their Own Code Over Long Horizons?](https://refivu.com/papers/511fe30c-d341-4cb6-8e73-d0dbbbec3008-multi-step-swe-can-coding-agents-keep-building.md)
- [Exploring Proximity and Tactile Sensing for Robotic Manipulation](https://refivu.com/papers/b240f607-d1e6-4217-ae4a-92140846c3a3-exploring-proximity-and-tactile-sensing-for-robotic.md)
- [TACT-KV: Tri-Axis Cosine Transform for Compressing Volumetric KV Caches in Medical VLMs](https://refivu.com/papers/35c14f65-36a5-4248-b2fc-b6137851216a-tact-kv-tri-axis-cosine-transform-for-compressing.md)
- [STAG-Net: Structure-Aware Attention over Landmark Groups for Lightweight Head Pose Estimation](https://refivu.com/papers/60fb532c-9609-4738-83cb-74b21bc4bb05-stag-net-structure-aware-attention-over-landmark-groups.md)
- [The Popular Get More Popular: Auditing Brand Bias in Generative Search](https://refivu.com/papers/a64e3f68-cee4-4d60-a09c-d2ab359cca1a-the-popular-get-more-popular-auditing-brand-bias.md)
- [WaSP: Wasserstein Data Synthesis Pipeline for Solver-Free Operator Learning](https://refivu.com/papers/2c46a72a-d652-42bd-9f58-85f608965eff-wasp-wasserstein-data-synthesis-pipeline-for-solver-free.md)
- [Axis-LoRA: Probing and Adapting Embedding Models for Personal-Memory Retrieval](https://refivu.com/papers/32cf6bf4-9c1c-4058-aed2-7e2d20f40e13-axis-lora-probing-and-adapting-embedding-models-for.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/07dce6ba-41ca-4919-9f47-b3310e2a8229-attnsr-attention-step-reward-for-long-horizon-agentic)
