BEACON

Milestone-Guided Policy Learning for Long-Horizon Language Agents

Zixuan Wang1,2, Yuchen Yan1, Hongxing Li1, Teng Pan1,2, Dingming Li1, Ruiqing Zhang2,
Weiming Lu1, Jun Xiao1, Yueting Zhuang1, Yongliang Shen1†
1Zhejiang University, 2Baidu Inc.
Corresponding author: syl@zju.edu.cn
ICML 2026
BEACON overview

BEACON. GRPO assigns uniform credit from terminal outcomes, penalizing correct early actions when later actions fail. BEACON partitions trajectories at milestones and estimates advantages at dual scales, isolating local action quality from later-segment variance.

Abstract

While long-horizon agentic tasks require language agents to perform dozens of sequential decisions, training such agents with reinforcement learning remains challenging. We identify two root causes: credit misattribution, where correct early actions are penalized due to terminal failures, and sample inefficiency, where scarce successful trajectories result in near-total loss of learning signal.

We introduce a milestone-guided policy learning framework, BEACON, that leverages the compositional structure of long-horizon tasks to ensure precise credit assignment. BEACON partitions trajectories at milestone boundaries, applies temporal reward shaping within segments to credit partial progress, and estimates advantages at dual scales to prevent distant failures from corrupting the evaluation of local actions.

On ALFWorld, WebShop, and ScienceWorld, BEACON consistently outperforms GRPO and GiGPO. Notably, on long-horizon ALFWorld tasks, BEACON achieves 92.9% success rate, nearly doubling GRPO's 53.5%, while improving effective sample utilization from 23.7% to 82.0%. These results establish milestone-anchored credit assignment as an effective paradigm for training long-horizon language agents.

Highlights

92.9%
on ALFWorld Long tasks (vs. 53.5% for GRPO).
23.7% → 82.0%
effective sample utilization, recovering signal from partial successes.
+26.2% → +73.6%
relative gains over GRPO scale with task horizon (Short → Long).

Method

BEACON framework

The BEACON framework. Top: trajectory partitioning at milestone boundaries with temporal reward decay (factor γ). Bottom: dual-scale advantage estimation combining trajectory-level and segment-level signals.

BEACON operates in three stages:

  1. Trajectory partitioning. A milestone indicator Φ identifies verifiable subgoal-completion transitions and splits each trajectory into segments at milestone boundaries. Φ is environment-defined and requires no learned model: ALFWorld uses object/state predicates, WebShop uses page-transition phases, ScienceWorld exposes subgoal_completed directly.
  2. Temporal reward shaping. Within each completed segment, actions receive shaped reward $r_t = R_{\text{ms}} \cdot \gamma^{\,t_k - t}$, assigning graduated positive credit to actions leading up to a milestone and converting partial successes into learning signal.
  3. Dual-scale advantage estimation. The trajectory-level advantage (GRPO-style) captures global task performance; the segment-level advantage compares only among trajectories that reached the same milestone, isolating local action quality from variance in later segments. The two are combined as $\hat{A}_{i,t} = A^{\text{traj}}_i + \lambda \cdot A^{\text{seg}}_{i,t}$.

Main Results

Main results

BEACON outperforms GRPO and GiGPO across ALFWorld, ScienceWorld, and WebShop at both 1.5B and 7B scales, using a single set of hyperparameters across all benchmarks.

Analysis

BibTeX

@misc{wang2026milestoneguidedpolicylearninglonghorizon,
  title         = {Milestone-Guided Policy Learning for Long-Horizon Language Agents},
  author        = {Zixuan Wang and Yuchen Yan and Hongxing Li and Teng Pan and Dingming Li
                   and Ruiqing Zhang and Weiming Lu and Jun Xiao and Yueting Zhuang
                   and Yongliang Shen},
  year          = {2026},
  eprint        = {2605.06078},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CL},
  url           = {https://arxiv.org/abs/2605.06078},
}