Manuscript Offprint

arXiv:2610.03223

AdaStep: Adaptive Step Credit Weighting for Agentic Reinforcement Learning

Xin Wang, Wenhao Wu, Menghao Zhang, Zhi Wang, Kun Shao, Jian Luan

ABSTRACT

Long-horizon LLM agents are typically trained with sparse outcome rewards, making trajectory-level objectives too coarse to distinguish the contribution of individual decisions. Step-level credit assignment provides finer-grained supervision, but its estimates can be unreliable because observed returns also depend on subsequent actions, environment transitions, and trajectory length. We propose AdaStep, an Adaptive Step-credit weighting method that controls how strongly each group-derived local advantage modifies the trajectory-level signal. We formulate this weighting as a mean-squared-error estimation problem for the latent step advantage and, under an explicit conditional sampling assumption, derive an optimal per-state shrinkage coefficient. The coefficient admits a signal-to-total-variance interpretation: it preserves local credit when return variation is attributable to the selected action and suppresses it when variation is dominated by downstream randomness. AdaStep requires only lightweight scalar computation, with no critic, additional rollouts, or extra model inference. Experiments with three model backbones on ALFWorld, WebShop, and ScienceWorld show consistent improvements over baselines at low computational cost.

1 INTRODUCTION

Large language models (LLMs) are increasingly moving from chat-based interaction to agentic decision making (Yao et al., 2023; Zhou et al., 2024; Wang et al., 2026; Zheng et al., 2026). Unlike a chat model, which primarily maps a prompt to a response, an agent repeatedly interacts with an external environment by observing states, taking actions, and receiving subsequent states and rewards. Completing a task therefore requires coordinating a sequence of decisions whose consequences may unfold over a long horizon. Meanwhile, group-based reinforcement learning has become an important paradigm for LLM post-training (Yu et al., 2025; Min et al., 2026; Zhang et al., 2026; Liu et al., 2026), offering a simple, critic-free learning signal. Given multiple rollouts of the same task, the mean return serves as an empirical estimate of the task-level value, and each rollout's return relative to this mean provides an advantage estimate, without requiring a separately trained critic (Shao et al., 2024; Yu et al.,

Figure

Figure 1: The episode-level advantage provides an accurate but coarse signal of trajectory outcomes, while the step-level advantage offers finer-grained but noisy local credit. In GiGPO, combining these signals with equal weights can assign negative advantages to useful actions or excessively large positive advantages to actions unrelated to success. AdaStep retains the episode-level signal and adaptively weights the local correction for each step-level group.

∗^{*}Equal contribution.

†^{\dagger}Corresponding authors.

2025). Under binary success rewards, success-

ful trajectories receive nonnegative advantages

and failed trajectories receive nonpositive advantages. Sparse, delayed rewards make it difficult to identify which intermediate actions contributed to an eventual outcome (Arjona-Medina et al., 2019). For agentic tasks, however, the long-horizon nature of decision making exposes a fundamental limitation of trajectory-level credit assignment in Group Relative Policy Optimization (GRPO) (Shao et al., 2024). By broadcasting the same outcome-based advantage to every state-action pair along a trajectory, GRPO provides a global but coarse learning signal: it does not distinguish actions that contributed to success from those that were irrelevant or erroneous, nor does it identify which decisions were responsible for failure. Consequently, useful actions in failed trajectories may be penalized, while unhelpful actions in successful trajectories may be reinforced.

To address this coarse credit assignment, Group in GRPO (GiGPO) (Feng et al., 2025) augments the trajectory-level advantage with a local, step-level correction. It groups state-action pairs sharing the same anchor state across rollouts and uses the group's mean discounted return as an empirical state-value baseline. Each sampled return is then compared with this baseline to obtain a step-level relative advantage. This construction provides finer-grained credit assignment while preserving critic-free estimation. However, these local advantages are estimated from finite samples, and their credibility can vary across step-level groups (Li et al., 2026). Step-level credit provides finer supervision, but its estimates are affected by downstream randomness. Even for the same state-action pair, stochastic transitions, subsequent actions, and discounted reward timing can produce advantage estimates with opposite signs. Strong local corrections may therefore amplify estimation noise, whereas weak corrections may suppress useful action information. This trade-off connects to variance control in advantage estimation (Schulman et al., 2015) and shrinkage-based reward-baseline estimation with limited rollouts (Zeng et al., 2026).

GiGPO (Feng et al., 2025) adds a local step-level correction to the global trajectory-level advantage using a fixed coefficient. However, this correction can differ in credibility across anchor-state groups. In some groups, return differences mainly reflect differences in action quality, making the local estimates useful for guiding policy updates. In others, much of the return variation arises from subsequent decisions or stochastic transitions, even when the same action is taken. Such variation makes the local estimates less credible. A fixed coefficient cannot adapt to these differences: a large weight may amplify noisy corrections, while a small weight may weaken useful local signals. We propose AdaStep, which retains the global advantage as a reference and adapts the local step-level correction strength to each group's estimation credibility, as illustrated in Figure 1. We derive the coefficient under a mean-squared-error objective and estimate it from existing rollout statistics, requiring no critic, additional rollouts, or extra model forward passes.

Our main contributions are as follows:

  1. An estimation formulation of local credit assignment. Taking the trajectory-level advantage as a reference, we formulate local advantage weighting as an estimation problem for the true step-level advantage. This formulation makes explicit the trade-off between preserving useful local signals and suppressing sampling error.

  2. A principled correction coefficient for each group. Under the proposed objective and stated assumptions, we derive the optimal correction coefficient and obtain a computationally tractable expression that adapts the strength of local correction to the estimation credibility of each step-level group.

  3. Empirical gains across three benchmarks. Experiments on three agent-task benchmarks demonstrate that the proposed correction improves performance, supporting the value of accounting for local estimation credibility in group-relative credit assignment. AdaStep tops all trained baselines, gaining up to +9.36 points over GiGPO.

  4. Minimal computational overhead. The method requires only a lightweight coefficient computation for each step-level group and integrates directly into the existing advantage calculation with minimal additional time and memory costs, adding about 1% credit-computation time.

References (49)