Manuscript Offprint
arXiv:2608.23318Agent-G: Gaussian Guidance for Agentic Reinforcement Learning
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Hint-based reinforcement learning addresses reward sparsity in long-horizon agentic tasks by retaining a prefix of an expert trajectory before each rollout, letting the policy explore from a state closer to success. Its effectiveness hinges on the guidance depth: how much of the trajectory to keep. Existing methods treat this depth as a deterministic scalar. Scheduled approaches share one value across samples and ignore per-task heterogeneity; per-sample probing estimates it separately at the cost of extra rollouts. We find that useful guidance occupies a band of depths whose informativeness profile is approximately Gaussian around the band center, rather than concentrating at a single optimal point. We propose Agent-G , a Gaussian guidance framework that draws the depth per task from a Gaussian whose center and spread are estimated online from rollouts already collected for policy optimization, requiring no probe rollouts or learned depth predictor. The center combines a global baseline with per-cluster difficulty, and the spread tracks within-cluster variance. We evaluate Agent-G on ALFWorld and WebShop on Qwen2.5-1.5B / 7B-Instruct. Agent-G outperforms the strongest hint-based, hint-free, and Aux-RL baselines on ALFWorld by 2.3 / 3.9 / 7.4 points at under one-third the rollout cost of per-sample probing.
1 Introduction
LLM agents trained with reinforcement learning have made progress on long-horizon decision-making tasks (Shen et al., 2023; Zhang et al., 2026a), including web navigation (Yao et al., 2023a; Zhou et al., 2024a; Deng et al., 2023), embodied control (Ahn et al., 2022; Huang et al., 2022; Wang et al., 2025c), and scientific experimentation (Boiko et al., 2023; Bran et al., 2023). A recurring obstacle is reward sparsity: tasks span dozens
(a) Schedule-based Method

(b) Probe-based Method
(c) Agent-

Per-sample distribution, no extra rollouts
Figure 1: Hint-based RL paradigms across training steps . (a) Schedule-based: shared across samples. (b) Probe-based: per-sample probes. (c) Agent- (ours): per task, estimated online from existing rollouts.
of sequential decisions, yet only a binary signal is issued at termination, and on-policy exploration from the initial state rarely reaches a successful terminal state. Hint-based RL mitigates this obstacle by retaining a prefix of an expert trajectory before each rollout, so the policy explores from a state closer to success (Xi et al., 2024a; Zhang et al., 2025a; Su et al., 2025), directly addressing advantage collapse in GRPO-style training (Zhang et al., 2025b; Wang et al., 2025b; Li et al., 2025).
The effectiveness of hint-based RL depends critically on the guidance depth: how much of the expert trajectory to retain. Too little guidance leaves few successful rollouts; too much saturates the reward and eliminates the contrast needed for advantage estimation. Despite this sensitivity, existing methods uniformly treat depth as a deterministic scalar, differing only in how they select it (Fig-
Equal contribution.
Corresponding author.
ure 1). Schedule-based methods (Xi et al., 2024a; Guo et al., 2025; Huang et al., 2026) derive one depth from the training step or batch-level feedback and share it across all samples, ignoring per-task heterogeneity. Per-sample methods (Su et al., 2025; Zhang et al., 2025b; Li et al., 2025; Zhang et al., 2025a) estimate a separate depth through binary search or enumeration, but pay extra rollouts per sample or the rollout budget. Moreover, these methods have been developed almost exclusively on mathematical reasoning, where tasks share uniform structure; agentic tasks present a different challenge, as difficulty varies widely within a single batch (e.g., a two-step "Pick" vs. a twenty-step "Pick Two" in ALFWorld) (Tu et al., 2026; Lian et al., 2026b; Li et al., 2026; Chen et al., 2026).
Our diagnostic in Section 2 quantifies both failure modes: shared-depth schedulers place over 60% of assignments outside the informative band (Figure 2(a)), while per-sample probing reduces this mismatch only by spending extra rollouts that remain too noisy under a GRPO-matched budget (Figure 2(b)). Both families share a deeper assumption: that one optimal depth exists per task, and the goal is to pinpoint it. Our analysis in Section 2 reveals that this assumption is mismatched to the problem structure: informative depths form a band around the optimal point, with a training-signal profile that is unimodal, approximately symmetric, and well fit by a Gaussian ( , ; Figure 3(b)). The right guidance depth is not a point to be found, but a neighborhood to be covered.
This observation motivates Agent-G , a Gaussian guidance framework for hint-based RL on long-horizon agentic tasks. Agent-G models guidance depth as a per-task Gaussian whose center and spread are estimated online through a global-local decomposition: a global baseline tracks the policy’s overall progress, while per-cluster statistics adjust the center by task difficulty and widen the spread to match within-cluster variance. For each task, one depth is drawn from its cluster’s Gaussian and converted to a prefix length shared by all rollouts. The same rollouts that update the policy also refresh the Gaussian parameters, achieving per-task depth variation at no extra rollout cost.
We evaluate Agent-G on ALFWorld and WebShop with Qwen2.5-1.5B-Instruct and Qwen2.5-7B-Instruct. On ALFWorld, Agent-G reaches 95.3% overall success at 1.5B and 98.4% at 7B, improving over the strongest hint-based RL base-

(a) Long-horizon guidance
(b) Rollout cost
Figure 2: Scalar-depth schedulers misallocate guidance. (a) Shared-depth schedulers keep fewer than half of assignments in-range; (b) per-sample probing lowers the mismatch ratio only by spending extra rollouts.
line by 1.5 and 2.3 points and over the strongest hint-free RL baseline by 3.9 points at both scales. On WebShop, Agent-G obtains a 92.3 reward score at both scales, with 78.9% and 84.4% final-purchase success. These gains hold across benchmarks, model scales, and horizon groups, without the probe-rollout overhead of per-sample search.
In summary, our contributions are as follows:
• We reveal the neighborhood structure of guidance depth: informative depths form a band with approximately Gaussian training-signal profile, explaining the structural failure modes of both shared-depth schedulers and per-sample probing.
• We propose Agent-G , a Gaussian guidance framework that estimates the per-task depth distribution online from rollout statistics via a global-local decomposition, requiring no probe rollouts or learned depth predictor.
• On ALFWorld and WebShop with Qwen2.5-1.5B / 7B-Instruct, we show that Agent-G consistently outperforms the strongest non-probing hint-based, hint-free, and Aux-RL baselines on both benchmarks, at under one-third the rollout cost of per-sample probing.

(a) Injection depth k
(b) Relative depth
Figure 3: Useful guidance forms a band around . (a) Rollout success rate vs. depth, with under-/in-range/over-guided regimes shaded; the in-range band spans several depths. (b) Bernoulli-variance informativeness aligned by , with a Gaussian fit ( , ).
. Full details appear in Appendix A.
Mismatch in Shared-Depth Scheduling Shared-depth schedulers set one guidance depth from the training step or batch-level feedback and apply it to all tasks in a batch. While avoiding additional probe rollouts, this scalar assignment ignores task-level heterogeneity. Figure 2(a) shows that among the shared-depth schedulers we test, the three step-based schedulers place only 15%–23% of rollout groups inside the in-range band, with most assignments being over-guided. Even the best shared scheduler, Target-acc, leaves 38% of its assignments outside the in-range band. This failure is structural rather than a tuning issue: a single depth cannot match tasks with different in-range bands.
Cost-precision Trade-off of Per-sample Probing Per-sample probing samples rollouts at candidate depths and selects the depth whose estimated success rate is closest to 0.5, removing the shared-depth assumption at the cost of additional probe rollouts. Figure 2(b) quantifies this cost-precision trade-off. With rollouts per candidate depth, Binary Search still leaves 75% of assignments mismatched. Enumeration is more accurate but costlier: reaches 47% mismatch at the GRPO rollout budget, while near-zero mismatch requires at the budget. Thus, methods that try to pinpoint a single depth from noisy rollout estimates must trade additional rollout cost for selection error.
Modeling Depth as a Gaussian. The two failure modes above stem from a shared premise: that one optimal depth exists per task. We now show that useful guidance has a richer structure.
Observation 1: Useful guidance occupies a band. Figure 3(a) plots against , with the under-guided, in-range, and over-guided regimes shaded. The in-range regime spans multiple neighboring depths rather than a single value, indicating that several nearby depths can keep rollouts in the just-learnable regime. Thus, a scheduler that localizes one exact depth ignores a neighborhood of informative choices.
Observation 2: Informative signal is Gaussian-like. We define and align task-depth pairs by . As a proxy for training informativeness we use the Bernoulli variance , which peaks at and drops to 0 at deterministic rollouts. The peak at follows from the definition of , but the symmetry and decay along do not: they reflect how varies with depth. The aligned profile (Figure 3(b)) is unimodal and approximately symmetric, with a Gaussian fit yielding and . The Gaussian provides the two parameters our sampler needs: a center for the band location and a spread for its width. Both map onto the mean and variance of batch rollouts, so the sampler in Section 3 runs online without extra probing. We discuss the choice of parametric family in Section A.
3 Method: Agent-G
Section 2 showed that scalar-depth schedulers either ignore per-task heterogeneity or require costly per-sample probing, while informative depths form Gaussian-like profiles around task-specific effective depths. Agent-G translates these findings into a practical training framework (Figure 4): an adaptive Gaussian schedule derives per-task distributions from existing rollout statistics (Section 3.2), sampling draws one depth per task (Section 3.3), and the same rollouts update both the policy and the schedule (Section 3.4).
3.1 Problem Formulation
We consider LLM agents trained with reinforcement learning on long-horizon tasks with reward only at termination. Each task has a natural-language instruction and one expert trajectory of length . A hint scheduler selects a guidance ratio , which is converted to a prefix length . The first expert actions are executed in the environment to reach a post-

Figure 4: Agent-G pipeline. (1) Tasks are clustered offline by difficulty. (2) A global baseline and per-cluster statistics ( ) form a per-task Gaussian . (3) One prefix length is drawn per task; R rollouts run from the post-prefix state. (4) The policy is updated with prefix SFT plus GRPO loss. (5) The same rollouts refresh for the next batch.
prefix state, from which the policy runs independent rollouts. Each rollout terminates with a binary reward , and denotes the empirical success rate. We optimize with GRPO (Shao et al., 2024), which computes a group-normalized advantage from the terminal rewards within each task.
3.2 Adaptive Gaussian Schedule
Agent-G assigns each task i a Gaussian distribution over the guidance ratio . Its center and spread are computed online from rollouts already collected for policy optimization. The scheduler maintains three types of state: a global guidance baseline that tracks the overall guidance level, and for each offline cluster , EMA estimates and that summarize the level and dispersion of empirical success rates. We use the standard midpoint target for binary success feedback, following the curriculum principle that training is most informative near the success–failure boundary (Florensa et al., 2018; Zhang et al., 2025a). All schedule states are initialized from weak priors that only determine the first-batch schedule, then continuously refreshed by rollout statistics.
Global baseline. The global baseline tracks the guidance level required by the current policy. For a training batch with average success rate , we shift by in the direction that drives toward :
Low batch success raises the baseline for deeper next-batch prefixes; high success lowers it.
Cluster statistics. The training set is partitioned offline into clusters by each task's expert-trajectory length, which serves as a simple proxy for separating tasks of different difficulty levels, and denotes the cluster of task . For each non-empty , the batch produces
(2)
which are folded into and by EMA:
(3)
Clusters absent from the batch are left unchanged. estimates the current success level of cluster k, while measures how unevenly tasks in the cluster respond to the current policy.
Per-task distribution. The center and spread for task i in cluster are
(4)
A lower cluster success rate shifts toward deeper guidance; a higher within-cluster variance widens , giving the sampler broader coverage of the informative band identified in Section 2.
3.3 Per-Task Sampling and Rollout
Given from the schedule, we draw one guidance ratio per task:
The sampled ratio determines the prefix length , executed once to reach the post-prefix state shared by all rollouts of task (Section 3.1). Since are induced by the statistics of cluster , tasks in the same cluster share Gaussian parameters, while independent sampling yields task-level depth variation without extra rollouts.
3.4 Training
Each batch closes the loop between policy optimization and schedule adaptation: rollouts generated from sampled prefixes drive both updates.
Policy update. We combine the GRPO loss with a teacher-forced loss on sampled expert prefixes, following common practice in hint-based RL (Zhang et al., 2025b; Huang et al., 2026):
where is the state reached after the first expert actions. The full objective is
with controlling the auxiliary weight. The auxiliary term preserves imitation supervision on the sampled prefixes and is ablated in Section 4.4.
Schedule update. The terminal rewards from the same rollouts refresh for the next batch as specified in Section 3.2. Schedule adaptation therefore reuses rollouts already collected for policy optimization and introduces no probe rollouts or learned depth predictor. Algorithm 1 summarizes the full per-batch loop.
4 Experiments
4.1 Setup
Benchmarks. We evaluate Agent-G on two long-horizon agent benchmarks. ALFWorld (Shridhar et al., 2021) is a text-based embodied environment where the agent completes household tasks through multi-step interaction with sparse terminal rewards. We follow the standard six task types and group them by horizon into Short (Pick, Look),
Algorithm 1 Agent-G² per-batch training loop.
Require: Policy , expert trajectories , clusters
Require: Hyperparameters , , , , , , ;
1: Initialize , , weak priors
2: for each batch do
▷ Per-task schedule, sampling, and prefix execution
3: for each task with do
4:
5:
6: ;
7:
8: Execute to reach state
9: Record for
10: for do
11: Roll out from ; record
12: end for
13: end for
▷ Policy update
14: Update : minimize
▷ Schedule feedback
15: for
16:
17: Refresh , , (Section 3.2)
18: end for
19: return
Medium (Clean, Heat, Cool), and Long (Pick2). WebShop (Yao et al., 2023a) is a web navigation environment where the agent searches, filters, and purchases products matching a natural-language specification, with reward issued at final purchase.
We compare Agent-G against five families. (1) Prompting: ReAct (Yao et al., 2023b) and Reflexion (Shinn et al., 2023) on the same base, with GPT-4o (OpenAI et al., 2024) and Gemini-2.5-Pro (Comanici et al., 2025) as closed-source references. (2) Imitation: Full SFT, supervised fine-tuning on entire expert trajectories. (3) RL without hints: GRPO (Shao et al., 2024), GiGPO (Feng et al., 2025), and BEACON (Wang et al., 2026), trained with sparse terminal rewards and no expert prefix. (4) Aux-RL: ETO (Song et al., 2024) and RLVMR (Zhang et al., 2025d), which add auxiliary supervision beyond the terminal reward. (5) Hint-based RL, subdivided into: schedule-based methods (Linear, Cosine, Step decay, Target acc); search-based methods (Binary Search, Enumeration); and end-to-end methods (StepHint (Zhang et al., 2025a), TraPO (Su et al., 2025)). All schedule- and search-based baselines share Agent-G 's GRPO backbone, isolating prefix-depth allocation as the only variable.
Implementation. We instantiate Agent-G on Qwen2.5-1.5B / 7B-Instruct (Qwen et al.,
Table 1: Main results on ALFWorld and WebShop (success rate, %). Best and second-best are highlighted.
| Type | Method | ALFWorld | WebShop | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Short | Medium | Long Pick2 | All | Score | Succ | |||||
| Pick | Look | Clean | Heat | Cool | ||||||
| Closed-Source Models | ||||||||||
| Prompting | GPT-4o (OpenAI et al., 2024) | 75.3 | 60.8 | 31.2 | 56.7 | 21.6 | 49.8 | 48.0 | 31.8 | 23.7 |
| Prompting | Gemini-2.5-Pro (Comanici et al., 2025) | 92.8 | 63.3 | 62.1 | 69.0 | 26.6 | 58.7 | 60.3 | 42.5 | 35.9 |
| Base: Qwen2.5-1.5B-Instruct | ||||||||||
| Prompting | Direct Prompt (Qwen et al., 2025) | 5.9 | 5.5 | 3.3 | 9.7 | 4.2 | 0.0 | 4.1 | 23.1 | 5.2 |
| Prompting | ReAct (Yao et al., 2023b) | 17.4 | 20.5 | 15.7 | 6.2 | 7.7 | 2.0 | 12.8 | 40.1 | 11.3 |
| Prompting | Reflexion (Shinn et al., 2023) | 35.3 | 22.2 | 21.7 | 13.6 | 19.4 | 3.7 | 21.8 | 55.8 | 21.9 |
| SFT | Full SFT | 68.8 | 70.6 | 61.9 | 71.4 | 42.9 | 28.0 | 56.3 | 86.6 | 69.5 |
| RL | GRPO (Shao et al., 2024) | 85.3 | 53.7 | 84.5 | 78.2 | 59.7 | 53.5 | 72.8 | 75.8 | 56.8 |
| RL | GiGPO (Feng et al., 2025) | 96.0 | 76.5 | 91.8 | 91.3 | 71.7 | 79.5 | 86.1 | 83.1 | 65.0 |
| RL | BEACON (Wang et al., 2026) | 100 | 88.2 | 86.7 | 100 | 78.9 | 92.9 | 91.4 | 86.1 | 75.6 |
| Aux-RL | ETO (Song et al., 2024) | 73.6 | 46.3 | 66.2 | 68.3 | 62.8 | 55.6 | 66.4 | - | - |
| Aux-RL | RLVMR (Zhang et al., 2025d) | 95.2 | 78.8 | 91.2 | 90.2 | 83.9 | 77.6 | 87.9 | - | - |
| Hint-RL | Linear decay | 92.5 | 83.3 | 90.0 | 66.6 | 71.4 | 82.6 | 83.6 | 88.9 | 74.2 |
| Hint-RL | Cosine decay | 97.6 | 70.0 | 83.3 | 58.3 | 85.0 | 76.2 | 83.6 | 83.2 | 73.4 |
| Hint-RL | Step decay | 85.0 | 100 | 95.0 | 83.3 | 95.2 | 86.9 | 89.8 | 89.1 | 74.2 |
| Hint-RL | Target acc | 100 | 83.3 | 100 | 100 | 90.5 | 82.6 | 93.8 | 86.4 | 75.0 |
| Hint-RL | Enumeration | 100 | 81.8 | 100 | 68.8 | 80.0 | 61.1 | 86.0 | 90.1 | 78.1 |
| Hint-RL | Binary Search (Zhang et al., 2025b) | 83.3 | 75.0 | 90.9 | 78.6 | 95.7 | 81.5 | 85.2 | 89.7 | 77.3 |
| Hint-RL | StepHint (Zhang et al., 2025a) | 86.0 | 60.0 | 84.9 | 63.7 | 75.0 | 65.2 | 77.3 | 87.6 | 71.9 |
| Hint-RL | TRAPO (Su et al., 2025) | 79.2 | 50.0 | 85.2 | 56.3 | 54.8 | 18.2 | 59.4 | 89.4 | 75.8 |
| Hint-RL | Agent-G2 (Ours) | 96.8 | 100 | 100 | 92.9 | 84.2 | 94.7 | 95.3 | 92.3 | 78.9 |
| Base: Qwen2.5-7B-Instruct | ||||||||||
| Prompting | ReAct (Yao et al., 2023b) | 48.5 | 35.4 | 34.3 | 13.2 | 18.2 | 17.6 | 31.2 | 46.2 | 19.5 |
| SFT | Full SFT | 75.0 | 100 | 80.0 | 43.8 | 59.1 | 37.8 | 64.9 | 88.3 | 79.7 |
| RL | GRPO (Shao et al., 2024) | 90.8 | 66.1 | 89.3 | 74.7 | 72.5 | 64.7 | 77.6 | 79.3 | 66.1 |
| RL | GiGPO (Feng et al., 2025) | 91.8 | 88.6 | 95.9 | 90.2 | 86.5 | 85.2 | 90.2 | 84.4 | 72.8 |
| RL | BEACON (Wang et al., 2026) | 100 | 81.8 | 96.3 | 92.9 | 94.7 | 90.0 | 94.5 | 87.7 | 79.7 |
| Aux-RL | ETO (Song et al., 2024) | 88.2 | 70.5 | 82.3 | 83.6 | 71.0 | 51.2 | 74.2 | - | - |
| Aux-RL | RLVMR (Zhang et al., 2025d) | 95.3 | 88.2 | 90.1 | 92.4 | 89.8 | 86.7 | 91.8 | - | - |
| Hint-RL | Linear decay | 97.5 | 92.9 | 66.7 | 85.2 | 87.5 | 92.0 | 85.2 | 91.1 | 82.8 |
| Hint-RL | Cosine decay | 97.1 | 100 | 78.9 | 85.7 | 83.3 | 90.0 | 89.4 | 90.1 | 82.0 |
| Hint-RL | Step decay | 95.0 | 92.9 | 90.5 | 91.7 | 100 | 80.0 | 91.4 | 92.1 | 83.6 |
| Hint-RL | Target acc | 97.5 | 100 | 95.2 | 83.3 | 81.3 | 92.0 | 92.9 | 89.3 | 79.7 |
| Hint-RL | Enumeration | 100 | 100 | 96.4 | 100 | 90.5 | 86.7 | 96.1 | 96.0 | 89.8 |
| Hint-RL | Binary Search (Zhang et al., 2025b) | 97.6 | 100 | 96.3 | 73.7 | 84.6 | 93.8 | 92.2 | 91.2 | 83.6 |
| Hint-RL | StepHint (Zhang et al., 2025a) | 97.3 | 100 | 89.4 | 94.1 | 79.1 | 91.7 | 91.4 | 90.9 | 82.0 |
| Hint-RL | TRAPO (Su et al., 2025) | 89.3 | 66.7 | 88.5 | 90.0 | 68.8 | 44.8 | 75.0 | 90.6 | 77.3 |
| Hint-RL | Agent-G2 (Ours) | 100 | 100 | 100 | 100 | 100 | 91.7 | 98.4 | 92.3 | 84.4 |
2025). Agent-G-specific hyperparameters (, , ) are fixed across both benchmarks without per-task tuning. We report success rate (%) on the held-out test set averaged over 5 seeds; full configurations appear in Appendix B.
4.2 Main Results
Overall performance. On ALFWorld, Agent-G reaches 95.3% (1.5B) and 98.4% (7B). It outperforms RLVMR, the strongest method using auxiliary supervision, by +7.4 / +6.6, and Enumeration, the strongest probe-based baseline, by +9.3 / +2.3, without any auxiliary network or probe rollouts. On WebShop, Agent-G is the strongest non-probing method at both scales (92.3 reward score, 78.9% / 84.4% purchase success), and at 1.5B also outperforms Enumeration by +2.2 reward-score points.
Cross-scale robustness. Agent-G remains effective as the backbone scales from 1.5B to 7B. On ALFWorld, the margin over the strongest hint-based baseline grows from +1.5 to +2.3, so finer scheduling does not become redundant on stronger backbones. On WebShop, purchase success climbs from 78.9% to 84.4%, consistent with stronger action precision at scale. The 1.5B model also surpasses all 7B non-probing baselines, indicating that schedule design substitutes for backbone scaling rather than only compensating for limited capacity.

(a) Beyond Imitation
(b) Schedule at
Figure 5: Beyond imitation. (a) ALFWorld success on Qwen2.5-1.5B: Agent-G (95%) far exceeds Full SFT (56%) and Sampled-Prefix SFT (27%). (b) Per-cluster (Short / Medium / Long) depth densities at t=29.

(a) Val Success Rate
(b) Schedule
Figure 6: Training dynamics of Agent-G . (a) Success rate vs. gradient steps for Agent-G and the strongest scalar-depth baseline. (b) Evolution of the per-task guidance-depth distribution across training.
4.3 Analysis
Beyond imitation. The gain of Agent-G cannot be explained by imitation alone. Full SFT reaches 56.3%, and Sampled-Prefix SFT, which trains only on the prefix supervision pairs collected during Agent-G training, reaches 26.6%; both are far below Agent-G 's 95.3% (Figure 5(a)). The 68.4-point gap between Sampled-Prefix SFT and Agent-G isolates the contribution of post-prefix RL: the missing ingredient is not copying expert tokens, but learning from sampled post-prefix states.
Heterogeneous depths in the same batch. Agent-G gains most when samples in the same batch require different prefix depths. In Figure 6(a), the convergence gap is largest between steps 50 and 150, the window in which the depth distribution in Figure 6(b) is widest. A scalar is brittle here: a single depth is too deep for easy samples and too shallow for hard ones, pushing most rollouts outside the informative band. Agent-G samples a neighborhood of depths instead, so both ends of the difficulty spectrum receive usable guidance.
Schedule emerges from the rollouts. The shape of the distribution in Figure 6(b) is set by training itself. At it favors deep prefixes, because the policy has yet to reach learnable states on its own. Around it widens, as the cluster variance peaks while easy and hard clusters separate. By it concentrates near zero, because the success rate has cleared the threshold of Equation (1) on every cluster. The mean follows global and cluster success, the spread follows , and both come from rollouts already collected for policy optimization. Figure 7 in Appendix B samples this pattern across four training phases, with the Long cluster retaining a wider for longer.
Table 2: Per-step training cost on Qwen2.5-1.5B / ALFWorld. Median wall-clock seconds per gradient step. Ratios are relative to Agent-G .
| Method | Type | Cost/step (s) | Ratio |
|---|---|---|---|
| Agent-G2 | Distribution | 88 | 1.00× |
| Step decay | Schedule | 57 | 0.65× |
| Cosine decay | Schedule | 60 | 0.68× |
| Linear decay | Schedule | 61 | 0.69× |
| Target acc | Schedule | 80 | 0.91× |
| Enumeration | Probe | 425 | 4.83× |
| Binary Search | Probe | 285 | 3.24× |
Training efficiency. We assess efficiency by convergence speed and per-step wall-clock cost. Figure 6(a) shows that Agent-G reaches the final accuracy of scheduled baselines in roughly half the gradient steps. Although Agent-G incurs a modest per-step overhead over scheduled methods (88s vs. 57–80s), it is substantially cheaper than probing-based methods (285–425s, or 3.24–4.83× higher), which spend extra rollouts to estimate depths. Therefore, by combining faster convergence with much lower cost than probing, Agent-G achieves the best overall training efficiency.
Decomposing the learned schedule. Figure 5(b) decomposes the learned schedule at by horizon group. These patterns are not manually specified: each cluster only maintains rollout-derived statistics and , and the separation emerges from training feedback.
4.4 Ablation Studies
Sampling drives the gain. Replacing the Gaussian draw with the deterministic mean removes stochastic depth coverage and drops the overall success rate from 95.3% to 89.8%. This shows that a single-depth estimate cannot cover the informative band. Replacing the Gaussian with a variance-matched uniform distri-
Table 3: Ablation of Agent-G on ALFWorld / Qwen2.5-1.5B-Instruct. is the change in All relative to the full method. Removing is equivalent to Sampled-Prefix SFT.
| Variant | Long | All | Δ |
|---|---|---|---|
| Agent-G2 | 94.7 | 95.3 | - |
| Sampling form | |||
| w/o sampling: | 84.6 | 89.8 | ↓ 5.5 |
| Uniform sampling: | 80.8 | 88.3 | ↓ 7.0 |
| Adaptive moments | |||
| w/o adaptive center: | 79.2 | 91.4 | ↓ 3.9 |
| w/o adaptive spread: | 78.3 | 93.8 | ↓ 1.5 |
| w/o grouping: K=1 | 65.4 | 89.1 | ↓ 6.2 |
| Loss components | |||
| w/o | 76.7 | 86.7 | ↓ 8.6 |
| w/o | 10.0 | 26.6 | ↓ 68.7 |
bution reduces performance to 88.3%, confirming that the gain comes from coverage of the informative band, not the exact distributional shape.
Both center and spread matter. Removing the cluster-dependent center correction by setting lowers the overall success rate to 91.4%, showing that a global baseline alone cannot capture difficulty variation across clusters. Removing the adaptive spread by setting reduces performance to 93.8%, with a pronounced drop on Long tasks (94.7% → 78.3%), indicating that dynamically adapting is important for maintaining sufficient depth coverage, especially on hard long-horizon tasks. Collapsing all tasks into a single cluster (K = 1) drops the overall success rate to 89.1%, with the largest degradation on Long tasks, decreasing by 29.3 points. Together, these results show that both cluster-aware centering and adaptive spreading are necessary for handling heterogeneous task difficulty.
Auxiliary loss is supportive. Removing from Equation (7) lowers the overall success rate by 8.6 points, showing that prefix supervision helps stabilize training. In contrast, removing reduces the method to Sampled-Prefix SFT and drops performance to 26.6%, a 68.7-point decrease. This indicates that imitating sampled prefixes alone is insufficient; the main gain comes from GRPO learning on sampled post-prefix states, while acts as a stabilizer for prefix-token imitation.
5 Related Work
Hint-Guidance Strategies. Hint-based RL injects an expert trajectory prefix into rollouts to ad- dress reward sparsity, and methods differ primarily in how they choose the prefix depth d. Schedule-based methods set d from the training step or batch success rate and share one value across samples (Xi et al., 2024a; Huang et al., 2026; Guo et al., 2025; Lu et al., 2026b). Per-sample methods make d instance-specific by probing each sample with extra rollouts (Zhang et al., 2025a,b; Wang et al., 2025b; Zhang et al., 2026b; Su et al., 2025; Li et al., 2025). In both lines, d is a deterministic scalar that ignores per-task heterogeneity within a training context, and existing methods are evaluated almost exclusively on math reasoning. Agent-G draws a per-task from a cluster-level Gaussian whose mean and variance are estimated from GRPO's rollout statistics, removing both the shared-scalar assumption and the probing overhead, and we evaluate it on long-horizon agentic benchmarks.
Auxiliary Supervision for Agentic RL. In agentic settings, prior work typically converts expert trajectories into supervision for an auxiliary model, rather than using them to seed rollouts directly. These auxiliary signals take five forms: SFT targets for behavior cloning (Zeng et al., 2023; Xi et al., 2024b; Qi et al., 2025; Bai et al., 2024), preference pairs for trajectory-level DPO (Song et al., 2024; Putta et al., 2024; Lai et al., 2024; Yuan et al., 2025; Lian et al., 2026a), value heads or Q-critics distilled from demonstrations (Xiang et al., 2024; Zhou et al., 2024b; Feng et al., 2024; Gu et al., 2025), step-level process reward models (Choudhury, 2025; Wang et al., 2025a; Xiong et al., 2024; Lu et al., 2026a), and milestone-shaped rewards extracted from successful traces (Wang et al., 2026; Zheng et al., 2026). Each route adds an auxiliary network and inherits its annotation, Monte-Carlo labeling, or reward-model fragility cost (Zhang et al., 2025c; Pan et al., 2026). Agent-G uses the same expert trajectories directly as rollout-starting prefixes inside an on-policy GRPO loop, training no auxiliary model and requiring no further offline annotation.
6 Conclusion
We proposed Agent-G , a Gaussian guidance framework for hint-based reinforcement learning on long-horizon agentic tasks. Rather than treating guidance depth as a deterministic scalar, Agent-G draws it per task from a Gaussian whose center and spread are estimated online from rollouts collected for policy optimization, without learned depth predictor or extra probe rollouts. Agent-G is the strongest on ALFWorld and the strongest non-probing method on WebShop at both 1.5B and 7B scales, with 1.5B Agent-G already surpassing 7B BEACON, showing that schedule design can substitute for backbone scaling.
Limitations
Agent-G relies on the availability of one expert trajectory per training task. When such trajectories are unavailable or costly to obtain, the framework cannot be applied directly; extending it to weaker forms of supervision (e.g., suboptimal demonstrations or language hints) is an open direction.
The Gaussian parameterization is motivated by the empirical informativeness profile observed in Section 2, which fits well on our two benchmarks. Tasks with multimodal or heavily skewed depth profiles may benefit from richer distributional families, though our uniform-distribution ablation (Section 4.4) suggests that the exact shape matters less than stochastic coverage of the informative band.
The difficulty clusters are defined offline by expert-trajectory length, which serves as a simple proxy for task horizon and difficulty. Although effective in our experiments, this fixed partitioning does not adapt as the policy improves and task-relative difficulty changes. Online difficulty estimation could further improve adaptivity.
Ethics Statement
We adhere to the ACL Code of Ethics and Code of Conduct. Our work uses only publicly available benchmarks and pretrained open-source models. Code and training scripts will be released under the MIT License upon publication. We used Claude for grammatical refinement; all scientific content and conclusions are the authors' own work.
Acknowledgements
This work was supported by National Key Research and Development Project (No. 2024YFB3312900), National Natural Science Foundation of China (No. 62506332) and CCF-Baidu Open Fund.
References
Michael Ahn, Anthony Brohan, Noah Brown, Yevgen Chebotar, Omar Cortes, Byron David, Chelsea Finn, Chuyuan Fu, Keerthana Gopalakrishnan, Karol Hausman, Alex Herzog, Daniel Ho, Jasmine Hsu, Julian Ibarz, Brian Ichter, Alex Irpan, Eric Jang, Rosario Jauregui Ruano, Kyle Jeffrey, and 26 others. 2022. Do as i can, not as i say: Grounding language in robotic affordances. Preprint, arXiv:2204.01691.
Hao Bai, Yifei Zhou, Mert Cemri, Jiayi Pan, Alane Suhr, Sergey Levine, and Aviral Kumar. 2024. Digirl: Training in-the-wild device-control agents with autonomous reinforcement learning. Preprint, arXiv:2406.11896.
Daniil A. Boiko, Robert MacKnight, and Gabe Gomes. 2023. Emergent autonomous scientific research capabilities of large language models. Preprint, arXiv:2304.05332.
Andres M Bran, Sam Cox, Oliver Schilter, Carlo Baldassari, Andrew D White, and Philippe Schwaller. 2023. Chemcrow: Augmenting large-language models with chemistry tools. Preprint, arXiv:2304.05376.
Tongbo Chen, Zhengxi Lu, Zhan Xu, Guocheng Shao, Shaohan Zhao, Fei Tang, Yong Du, Kaitao Song, Yizhou Liu, Yuchen Yan, Wenqi Zhang, Xu Tan, Weiming Lu, Jun Xiao, Yueting Zhuang, and Yongliang Shen. 2026. Knowu-bench: Towards interactive, proactive, and personalized mobile agent evaluation. Preprint, arXiv:2604.08455.
Sanjiban Choudhury. 2025. Process reward models for llm agents: Practical framework and directions. Preprint, arXiv:2502.10325.
Gheorghe Comanici, Eric Bieber, Mike Schaekermann, Ice Pasupat, Noveen Sachdeva, Inderjit Dhillon, Marcel Blistein, Ori Ram, Dan Zhang, Evan Rosen, Luke Marris, Sam Petulla, Colin Gaffney, Asaf Aharoni, Nathan Lintz, Tiago Cardal Pais, Henrik Jacobsson, Idan Szpektor, Nan-Jiang Jiang, and 3416 others. 2025. Gemini 2.5: Pushing the frontier with advanced reasoning, multimodality, long context, and next generation agentic capabilities. Preprint, arXiv:2507.06261.
Xiang Deng, Yu Gu, Boyuan Zheng, Shijie Chen, Samuel Stevens, Boshi Wang, Huan Sun, and Yu Su. 2023. Mind2web: Towards a generalist agent for the web. Preprint, arXiv:2306.06070.
Lang Feng, Zhenghai Xue, Tingcong Liu, and Bo An. 2025. Group-in-group policy optimization for llm agent training. Preprint, arXiv:2505.10978.
Peiyuan Feng, Yichen He, Guanhua Huang, Yuan Lin, Hanchong Zhang, Yuchen Zhang, and Hang Li. 2024. Agile: A novel reinforcement learning framework of llm agents. Preprint, arXiv:2405.14751.
Carlos Florensa, David Held, Xinyang Geng, and Pieter Abbeel. 2018. Automatic goal generation for reinforcement learning agents. Preprint, arXiv:1705.06366.
Yu Gu, Kai Zhang, Yuting Ning, Boyuan Zheng, Boyu Gou, Tianci Xue, Cheng Chang, Sanjari Srivastava, Yanan Xie, Peng Qi, Huan Sun, and Yu Su. 2025. Is your llm secretly a world model of the internet?
model-based planning for web agents. Preprint, arXiv:2411.06559.
Yongxin Guo, Wenbo Deng, Zhenglin Cheng, and Xiaoying Tang. 2025. G rpo-a: Guided group relative policy optimization with adaptive guidance. Preprint, arXiv:2508.13023.
Wenlong Huang, Pieter Abbeel, Deepak Pathak, and Igor Mordatch. 2022. Language models as zero-shot planners: Extracting actionable knowledge for embodied agents. Preprint, arXiv:2201.07207.
Zeyu Huang, Tianhao Cheng, Zihan Qiu, Zili Wang, Yinghui Xu, Edoardo M. Ponti, and Ivan Titov. 2026. Blending supervised and reinforcement fine-tuning with prefix sampling. Preprint, arXiv:2507.01679.
Hanyu Lai, Xiao Liu, Iat Long Long, Shuntian Yao, Yuxuan Chen, Pengbo Shen, Hao Yu, Hanchen Zhang, Xiaohan Zhang, Yuxiao Dong, and Jie Tang. 2024. Autowebglm: A large language model-based web navigating agent. Preprint, arXiv:2404.03648.
Dinging Li, Yingxiu Zhao, Xinrui Cheng, Kangheng Lin, Hongbo Peng, Hongxing Li, Zixuan Wang, Yuhong Dai, Haodong Li, Jia Wang, Yukang Shi, Liang Zhao, Jianjian Sun, Zheng Ge, Xiangyu Zhang, Weiming Lu, Jun Xiao, Yueting Zhuang, and Yongliang Shen. 2026. Spatialevo: Self-evolving spatial intelligence via deterministic geometric environments. Preprint, arXiv:2604.14144.
Ziheng Li, Zexu Sun, Jinman Zhao, Erxue Min, Yongcheng Zeng, Hui Wu, Hengyi Cai, Shuaiqiang Wang, Dawei Yin, Xu Chen, and Zhi-Hong Deng. 2025. Staying in the sweet spot: Responsive reasoning evolution via capability-adaptive hint scaffolding. Preprint, arXiv:2509.06923.
Niu Lian, Tongbo Chen, Zhehao Yu, Chengzhen Duan, Fazhan Liu, Hui Liu, Pei Fu, Jian Luan, Heng Qu, Shu-Tao Xia, and Jinpeng Wang. 2026a. Ui-mopd: Multi-platform on-policy distillation for unified gui agents. Preprint, arXiv:2607.04425.
Niu Lian, Yuting Wang, Hanshu Yao, Jinpeng Wang, Bin Chen, Yaowei Wang, Min Zhang, and Shu-Tao Xia. 2026b. From verbatim to gist: Distilling pyramidal multimodal memory via semantic information bottleneck for long-horizon video agents. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 11601–11617.
Zhengxi Lu, Zhiyuan Yao, Zhuowen Han, Zi-Han Wang, Jinyang Wu, Qi Gu, Xunliang Cai, Weiming Lu, Jun Xiao, Yueting Zhuang, and Yongliang Shen. 2026a. Self-distilled agentic reinforcement learning. Preprint, arXiv:2605.15155.
Zhengxi Lu, Zhiyuan Yao, Jinyang Wu, Chengcheng Han, Qi Gu, Xunliang Cai, Weiming Lu, Jun Xiao, Yueting Zhuang, and Yongliang Shen. 2026b. Skill0: In-context agentic reinforcement learning for skill internalization. Preprint, arXiv:2604.02268.
OpenAI, :, Aaron Hurst, Adam Lerer, Adam P. Goucher, Adam Perelman, Aditya Ramesh, Aidan Clark, AJ Ostrow, Akila Welihinda, Alan Hayes, Alec Radford, Aleksander Mądry, Alex Baker-Whitcomb, Alex Beutel, Alex Borzunov, Alex Carney, Alex Chow, Alex Kirillov, and 401 others. 2024. Gpt-4o system card. Preprint, arXiv:2410.21276.
Teng Pan, Yuchen Yan, Zixuan Wang, Ruiqing Zhang, Guiyang Hou, Wenqi Zhang, Weiming Lu, Jun Xiao, and Yongliang Shen. 2026. CoVerRL: Breaking the consensus trap in label-free reasoning via generator-verifier co-evolution. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 29833–29853, San Diego, California, United States. Association for Computational Linguistics.
Pranav Putta, Edmund Mills, Naman Garg, Sumeet Motwani, Chelsea Finn, Divyansh Garg, and Rafael Rafailov. 2024. Agent q: Advanced reasoning and learning for autonomous ai agents. Preprint, arXiv:2408.07199.
Zehan Qi, Xiao Liu, Iat Long Long, Hanyu Lai, Xueqiao Sun, Wenyi Zhao, Yu Yang, Xinyue Yang, Jiadai Sun, Shuntian Yao, Tianjie Zhang, Wei Xu, Jie Tang, and Yuxiao Dong. 2025. Webrl: Training llm web agents via self-evolving online curriculum reinforcement learning. Preprint, arXiv:2411.02337.
Qwen, :, An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, Huan Lin, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jingren Zhou, and 25 others. 2025. Qwen2.5 technical report. Preprint, arXiv:2412.15115.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. 2024. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. Preprint, arXiv:2402.03300.
Yongliang Shen, Kaitao Song, Xu Tan, Dongsheng Li, Weiming Lu, and Yueting Zhuang. 2023. Hugginggpt: Solving ai tasks with chatgpt and its friends in hugging face. In Advances in Neural Information Processing Systems, volume 36, pages 38154–38180. Curran Associates, Inc.
Guangming Sheng, Chi Zhang, Zilingfeng Ye, Xibin Wu, Wang Zhang, Ru Zhang, Yanghua Peng, Haibin Lin, and Chuan Wu. 2025. Hybridflow: A flexible and efficient rlhf framework. In Proceedings of the Twentieth European Conference on Computer Systems, EuroSys '25, page 1279–1297, New York, NY, USA. Association for Computing Machinery.
Noah Shinn, Federico Cassano, Edward Berman, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. 2023. Reflexion: Language agents with verbal reinforcement learning. Preprint, arXiv:2303.11366.
Mohit Shridhar, Xingdi Yuan, Marc-Alexandre Côté, Yonatan Bisk, Adam Trischler, and Matthew Hausknecht. 2021. Alfworld: Aligning text and embodied environments for interactive learning. Preprint, arXiv:2010.03768.
Yifan Song, Da Yin, Xiang Yue, Jie Huang, Sujian Li, and Bill Yuchen Lin. 2024. Trial and error: Exploration-based trajectory optimization for LLM agents. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (ACL).
Mingyu Su, Jian Guan, Yuxian Gu, Minlie Huang, and Hongning Wang. 2025. Trust-region adaptive policy optimization. Preprint, arXiv:2512.17636.
Geng Tu, Dingming Li, Jun Huang, and Ruifeng Xu. 2026. Consensus-driven multi-agent cognitive reasoning for enhancing the emotional intelligence of large language models. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pages 17751–17759.
Hanlin Wang, Chak Tou Leong, Jiashuo Wang, Jian Wang, and Wenjie Li. 2025a. Spa-rl: Reinforcing llm agents via stepwise progress attribution. Preprint, arXiv:2505.20732.
Xinyi Wang, Jinyi Han, Zishang Jiang, Tingyun Li, Jiaqing Liang, Sihang Jiang, Zhaoqian Dai, Shuguang Ma, Fei Yu, and Yanghua Xiao. 2025b. Hint: Helping ineffective rollouts navigate towards effectiveness. Preprint, arXiv:2510.09388.
Zixuan Wang, Dingming Li, Hongxing Li, Shuo Chen, Yuchen Yan, Wenqi Zhang, Yongliang Shen, Weiming Lu, Jun Xiao, and Yueting Zhuang. 2025c. Omniear: Benchmarking agent reasoning in embodied tasks. Preprint, arXiv:2508.05614.
Zixuan Wang, Yuchen Yan, Hongxing Li, Teng Pan, Dingming Li, Ruiqing Zhang, Weiming Lu, Jun Xiao, Yueting Zhuang, and Yongliang Shen. 2026. Milestone-guided policy learning for long-horizon language agents. Preprint, arXiv:2605.06078.
Zhiheng Xi, Wenxiang Chen, Boyang Hong, Senjie Jin, Rui Zheng, Wei He, Yiwen Ding, Shichun Liu, Xin Guo, Junzhe Wang, Honglin Guo, Wei Shen, Xiaoran Fan, Yuhao Zhou, Shihan Dou, Xiao Wang, Xinbo Zhang, Peng Sun, Tao Gui, and 2 others. 2024a. Training large language models for reasoning through reverse curriculum reinforcement learning. Preprint, arXiv:2402.05808.
Zhiheng Xi, Yiwen Ding, Wenxiang Chen, Boyang Hong, Honglin Guo, Junzhe Wang, Dingwen Yang, Chenyang Liao, Xin Guo, Wei He, Songyang Gao, Lu Chen, Rui Zheng, Yicheng Zou, Tao Gui, Qi Zhang, Xipeng Qiu, Xuanjing Huang, Zuxuan Wu, and Yu-Gang Jiang. 2024b. Agentgym: Evolving large language model-based agents across diverse environments. Preprint, arXiv:2406.04151.
Yufei Xiang, Yiqun Shen, Yeqin Zhang, and Cam-Tu Nguyen. 2024. Retrospex: Language agent meets offline reinforcement learning critic. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing (EMNLP).
Weimin Xiong, Yifan Song, Xiutian Zhao, Wenhao Wu, Xun Wang, Ke Wang, Cheng Li, Wei Peng, and Sujian Li. 2024. Watch every step! llm agent learning via iterative step-level process refinement. Preprint, arXiv:2406.11176.
Shunyu Yao, Howard Chen, John Yang, and Karthik Narasimhan. 2023a. Webshop: Towards scalable real-world web interaction with grounded language agents. Preprint, arXiv:2207.01206.
Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. 2023b. React: Synergizing reasoning and acting in language models. Preprint, arXiv:2210.03629.
Siyu Yuan, Zehui Chen, Zhiheng Xi, Junjie Ye, Zhengyin Du, and Jiecao Chen. 2025. Agent-r: Training language model agents to reflect via iterative self-training. Preprint, arXiv:2501.11425.
Aohan Zeng, Mingdao Liu, Rui Lu, Bowen Wang, Xiao Liu, Yuxiao Dong, and Jie Tang. 2023. Agenttuning: Enabling generalized agent abilities for llms. Preprint, arXiv:2310.12823.
Kaiyi Zhang, Ang Lv, Jinpeng Li, Yongbo Wang, Feng Wang, Haoyuan Hu, and Rui Yan. 2025a. Stephint: Multi-level stepwise hints enhance reinforcement learning to reason. Preprint, arXiv:2507.02841.
Ningyu Zhang, Yunzhi Yao, Jiaxin Qin, Haoming Xu, Yuqi Zhu, Zeping Yu, Mengru Wang, Yuqi Tang, Jia-Chen Gu, Shumin Deng, and Huajun Chen. 2026a. Towards principled knowledge editing methods for large language model reasoning. Nature Machine Intelligence, 8(8):1189–1200.
Xichen Zhang, Sitong Wu, Yinghao Zhu, Haoru Tan, Shaozuo Yu, Ziyi He, and Jiaya Jia. 2026b. Scaf-grpo: Scaffolded group relative policy optimization for enhancing llm reasoning. Preprint, arXiv:2510.19807.
Xuechen Zhang, Zijian Huang, Yingcong Li, Chenshun Ni, Jiasi Chen, and Samet Oymak. 2025b. Bread: Branched rollouts from expert anchors bridge sft & rl for reasoning. Preprint, arXiv:2506.17211.
Zhenru Zhang, Chujie Zheng, Yangzhen Wu, Beichen Zhang, Runji Lin, Bowen Yu, Dayiheng Liu, Jingren Zhou, and Junyang Lin. 2025c. The lessons of developing process reward models in mathematical reasoning. Preprint, arXiv:2501.07301.
Zijing Zhang, Ziyang Chen, Mingxiao Li, Zhaopeng Tu, and Xiaolong Li. 2025d. Rlvmr: Reinforcement learning with verifiable meta-reasoning rewards for robust long-horizon agents. Preprint, arXiv:2507.22844.
Congmin Zheng, Xiaoyun Mo, Xinbei Ma, Qiqiang Lin, Yin Zhao, Jiachen Zhu, Xingyu Lou, Jun Wang, Zhaoxiang Wang, Weiwen Liu, Zhuosheng Zhang, Yong Yu, and Weinan Zhang. 2026. Adaptive milestone reward for gui agents. Preprint, arXiv:2602.11524.
Shuyan Zhou, Frank F. Xu, Hao Zhu, Xuhui Zhou, Robert Lo, Abishek Sridhar, Xianyi Cheng, Tianyue Ou, Yonatan Bisk, Daniel Fried, Uri Alon, and Graham Neubig. 2024a. Webarena: A realistic web environment for building autonomous agents. Preprint, arXiv:2307.13854.
Yifei Zhou, Andrea Zanette, Jiayi Pan, Sergey Levine, and Aviral Kumar. 2024b. Archer: Training language model agents via hierarchical multi-turn rl. Preprint, arXiv:2402.19446.
A Diagnostic Protocol Details
In-range set and mismatch ratio. Let denote the guidance-depth grid and the diagnostic task set. For each , we estimate the per-depth success rate by enumeration with independent rollouts:
Following Florensa et al. (2018), the in-range set of task is the subset of depths whose estimated success rate lies in the just-learnable band [0.4, 0.6]:
Depths with are under-guided and those with are over-guided. Given a scheduler that assigns depth to each task , the mismatch ratio is the fraction of tasks placed outside their in-range set:
corresponds to every task receiving an in-range depth, and corresponds to every assignment being under- or over-guided.
Shared-depth schedulers. A shared scheduler outputs one depth per training step that is applied to every task in the batch, so the per-task assignment is for all . The stacked bars in Figure 2(a) report the empirical fraction of assignments in each of the three categories defined above: under-guided , in-range , and over-guided .
Mismatch across training checkpoints. The diagnostic in Figure 2(a) is computed at step 50. To verify that shared-depth mismatch is not specific to this checkpoint, we repeat the protocol at five additional Qwen2.5-1.5B / ALFWorld checkpoints (Table 4). The Fix-step baseline, which holds constant within 20-step windows, exceeds 48% mismatch at every checkpoint, and the two step-decay schedules (Linear, Step-dec) stay near 50%. Target-acc, the only shared scheduler with batch-level feedback, achieves the lowest mismatch (39.8% on average) but still misses the in-range band on roughly two in five tasks. The structural mismatch of shared-depth scheduling thus persists across the training trajectory and is not a step-50 artifact.
Table 4: Mismatch ratio of shared-depth schedulers across five training checkpoints on Qwen2.5-1.5B / ALFWorld. is the number of diagnostic tasks at that step.
| Step | n | Fix-step | Linear | Step-dec | Tar-acc |
|---|---|---|---|---|---|
| 10 | 28 | 67.9 | 42.9 | 42.9 | 32.1 |
| 20 | 28 | 64.3 | 39.3 | 39.3 | 35.7 |
| 40 | 28 | 75.0 | 57.1 | 57.1 | 50.0 |
| 80 | 58 | 48.3 | 55.2 | 55.2 | 41.4 |
| 160 | 45 | 71.1 | 55.6 | 55.6 | 40.0 |
| Avg | — | 65.3 | 50.0 | 50.0 | 39.8 |
Probing schedulers. A probing scheduler samples rollouts per visited depth on a candidate subset , forms the noisy estimate , and outputs
is the full grid for Enumeration and the subset visited during the search for Binary Search. The output is judged against the reference in-range set via the mismatch ratio defined above. Figure 2(b) varies . Scheduler implementations follow the hint-based RL baselines in Table 7.
Agent-G. For Agent-G in Figure 2(b), we draw using the schedule parameters reached at step 50 (5 independent draws per task) and report the mismatch ratio averaged over draws and over tasks. No probing rollouts are performed: and are read from the rollouts already collected for the GRPO update at that step.
Rollout-cost axis. The horizontal axis in Figure 2(b) reports , where is the GRPO rollout budget per task. Agent-G is plotted at because its schedule is refreshed from these rollouts without any additional probing.
Reference depth . The per-task reference depth
with ties broken in favor of the smaller depth, is used only in Figure 3(b) to align profiles via . It plays no role in the mismatch computation of Section 2.
Gaussian fit. For Figure 3(b), we bin pairs by relative depth with width 0.1 and fit to the binned mean Bernoulli variance by least squares.
Table 5: Agent- hyperparameters. Shared across ALFWorld and WebShop unless noted. Hint-based RL baselines reuse the Policy optimization, Rollout, and Training schedule blocks.
| Hyperparameter | Symbol | Value |
|---|---|---|
| Agent--specific | ||
| Global baseline step | Δ | 0.1 |
| Cluster EMA rate | α | 0.2 |
| Center scale | λ | 1.0 |
| Variance scale | γ | 1.0 |
| Variance floor | σmin | 0.1 |
| Aux. loss weight | η | 0.5 |
| Target success rate | 0.5 | |
| Initial baseline | 0.8 | |
| Difficulty clusters | K | 3 |
| Policy optimization | ||
| Optimizer | - | AdamW |
| Peak learning rate | - | |
| LR schedule | - | cosine, 10% warmup |
| AdamW () | - | (0.9, 0.999) |
| Weight decay | - | 0.01 |
| GRPO clip ratio | ε | 0.2 |
| KL penalty | 0.01 | |
| Precision | - | bfloat16 |
| Rollout | ||
| Tasks per step | 16 | |
| Rollouts per task | R | 8 |
| Max prompt length | - | 7000 |
| Max response length | - | 512 |
| Temperature (train/eval) | - | 1.0/0.4 |
| Training schedule | ||
| Steps (ALFWorld) | - | 200 |
| Steps (WebShop) | - | 150 |
Gaussian fit across training. Figure 3(b) reports the fit at step 50. To check that the Gaussian shape is not specific to this checkpoint, we partition the training trajectory into three non-overlapping windows, pool aligned pairs within each window to enlarge the per-window sample size and reduce statistical noise in the fit, and refit the same form (Table 6). The fit quality stays high across all three windows (), and the fitted width drifts only mildly from 0.198 early to 0.231 late, consistent with a gradually widening informative band as the policy improves and with the upward trend of the per-cluster in Figure 6(b). The two-parameter Gaussian thus captures the informativeness profile throughout training, not only at the mid-training checkpoint used in the figure.
Choice of Gaussian for the sampler. Our choice of Gaussian for the sampler in Section 3 rests on two design considerations rather than fit quality alone. First, the Gaussian provides a simple two- Table 6: Gaussian fit of the aligned informativeness profile across training windows on Qwen2.5-1.5B / ALFWorld. Each window pools pairs collected within the listed checkpoint range; counts pairs entering the least-squares fit.
| Training Stage | σ | n | |
|---|---|---|---|
| Early (ckpts 0–50) | 0.198 | 0.906 | 116 |
| Mid (ckpts 50–100) | 0.206 | 0.888 | 146 |
| Late (ckpts 100–150) | 0.231 | 0.936 | 109 |
moment parameterization whose mean and variance align directly with the two statistics that batch rollouts naturally produce: is driven by the per-cluster empirical success rate, and by the per-cluster success-rate variance. Other symmetric families require additional shape parameters (for instance, the degrees of freedom of Student- or the shape exponent of generalized normal) that cannot be read directly from rollout aggregates. Second, Gaussian sampling on the bounded ratio admits a closed-form truncated form and is numerically stable; heavy-tailed alternatives such as Cauchy produce unbounded magnitudes that would require ad-hoc clipping. The ablation in Table 3 confirms that on top of these design considerations, replacing the Gaussian with a variance-matched uniform distribution over the same band drops overall success by 7.0 points and Long-horizon success by 13.9 points.
B Implementation Details
Hyperparameters. Table 5 lists the full Agent- configuration. On both benchmarks we build on the GiGPO codebase (Feng et al., 2025), adopting its training recipe for shared hyperparameters and inheriting its train/validation/test splits.
Baseline configurations. Table 7 summarizes the trained baselines; prompting baselines run inference-time without further specification. We use the authors' public implementations with default hyperparameters for GiGPO, BEACON, StepHint, and TraPO.
Expert trajectory source. The expert trajectories used by are drawn from the same ALFWorld and WebShop expert pool as RLVMR (Zhang et al., 2025d) and ETO (Song et al., 2024), so the underlying expert data is identical across the three methods. The difference lies in usage: Agent- treats the prefix tokens only as a token-level imitation target inside the joint ob-

(i) — Deep init
(ii) — Clusters separate
(iii) — Spreads peak
(iv) — Converged
Figure 7: Four-phase snapshot of the per-cluster Gaussian schedule on Qwen2.5-1.5B / ALFWorld. Each panel shows the density for the horizon clusters (Short, Medium, Long) at one training step. Their batch-weighted mixture yields the aggregate in Figure 6(b).
Table 7: Baseline configurations. Hint-based RL baselines reuse the training blocks of Table 5; only the depth-assignment rule differs.
| Method | Configuration |
|---|---|
| Imitation | |
| Full SFT | LR , , 2 epochs |
| RL without hints | |
| GRPO | Table 5 with |
| GiGPO | authors' default |
| BEACON | authors' default |
| Hint-based RL: schedule | |
| Linear | linear, |
| Cosine | cosine, |
| Step | step decay 0.1 / 20 steps |
| Target-acc | online to batch-acc 0.8 |
| Hint-based RL: search | |
| Binary Search | probes per task |
| Enumeration | exhaustive over |
| Hint-based RL: end-to-end | |
| StepHint | authors' default |
| TraPO | authors' default |
jective, without introducing any auxiliary network or additional supervision signal. The gains over RLVMR and ETO in Table 1 therefore reflect algorithmic differences rather than any advantage in expert-data access.
Hardware and framework. We implement training in the verl framework (Sheng et al., 2025) and run all experiments on a single node with 8 NVIDIA H800 GPUs; a Qwen2.5-1.5B-Instruct training run on ALFWorld (200 gradient steps) takes approximately 10 hours.
Per-cluster training dynamics. Figure 7 samples the per-cluster Gaussian schedule at four training steps that mark distinct phases of training. At (saturation), stays near 1 on every cluster (0.98, 1.00, 1.00 for Short, Medium, Long) with , because the policy cannot yet reach learnable states unaided. At (separation), the means split by horizon (0.19, 0.35, 0.68) and widens with the cluster variance . At (peak spread), the means contract toward 0 on all clusters while reaches its peak (0.15, 0.21, 0.23); the sampler draws a wide neighborhood around the shallow center to keep harder tasks in the just-learnable band. By (collapse), on every cluster and recedes toward , with only Long retaining a wider spread (0.16), consistent with the slower convergence of long-horizon tasks. Figure 8 plots the full trajectories across all 200 training steps for the same three clusters.

Figure 8: Per-cluster schedule trajectories on Qwen2.5-1.5B / ALFWorld. Each row shows one horizon cluster ( Short, Medium, Long); columns plot and over training steps.
Table 8: Clustering design ablation on Qwen2.5-1.5B / ALFWorld (success rate %). Length-quantile bins tasks by horizon; random samples a partition uniformly. values are 5-seed standard deviations. and length-quantile are reproduced from Table 3.
| Clustering signal | K | All |
|---|---|---|
| None | 1 | 89.1 |
| Length quantile | 3 | 95.3±2.3 |
| Length quantile | 5 | 96.5±1.9 |
| Length quantile | 10 | 86.2 |
| Random | 3 | 89.4 |
Clustering design. Table 8 sweeps the cluster count for length-quantile clustering and adds a random-assignment control on Qwen2.5-1.5B / ALFWorld.
Length-quantile clustering is stable in the range: () and () overlap within run-to-run noise, so the difference between them is not significant under our seed budget. Pushing to thins each cluster to under two tasks per batch under and drops accuracy by 9.1 points relative to , as per-cluster sample size becomes inadequate for stable EMA estimation. Random assignment at comes within 0.5 points of , so the gain from clustering relies on alignment with difficulty, not on partitioning itself.
We pick length as the alignment signal for two reasons. (i) Length correlates with the difficulty of reaching the terminal reward without guidance, so it accelerates the convergence of relative to a difficulty-orthogonal signal. (ii) Length needs no task-type annotation or semantic embedding, so the same rule applies to both benchmarks.
We fix across both ALFWorld and WebShop without per-benchmark tuning, because it matches the Short / Medium / Long taxonomy of Section 4.1 and keeps per-cluster sample size sufficient for stable EMA under . The 6.2-point vs. gap in Table 3 bounds what a richer signal could recover; in benchmarks where horizon and difficulty decouple, additional signals beyond length may help.