arXiv:2610.01207cs.AIOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.01207

Dependency-Aware Reward Shaping for Agentic Reinforcement Learning

Ziyi Chen, Yan Zhang, Jianhui Wei, Daoan Zhang, Zuozhu Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

When training large language models with reinforcement learning, terminal rewards provide little guidance about which steps matter. Common methods for assigning step credit overlook that work built on uncorrected mistakes is wasted while independent work remains valid. With only a final success/failure reward, every step in a failed episode has zero total future reward, even when it made progress. We propose Dependency-Aware Reward Shaping (DARS), which represents task progress as predicates linked by prerequisite relations and assigns step-level credit over the dependency graph. An annotator marks which predicates each step verifies, invalidates, or repairs. Verified predicates are discounted according to graph distance from the nearest broken prerequisite, while independent predicates are unaffected. Repairs update these weights based on any errors that remain; invalidated predicates need re-verification to regain credit. A fixed potential converts these annotations into signed per-step rewards. A common reward and annotation interface allows DARS to integrate with a range of reasoning and agentic training methods, such as GiGPO and ARPO/AEPO, without changing their rollout strategies or optimizers. Across five task families and models from 1.5B to 8B, DARS improves success by up to 10 points over GiGPO trained with the same budget and harness (ALFWorld), raises the WebShop task score and Search-R1 QA accuracy, complements AEPO's entropy-based training on AIME24/25 with a Python interpreter, and exceeds OmniOPD in controlled tool-free reasoning comparisons at 1.7B and 4B. Ablations show that step-level credit, dependency attenuation, and graph topology each contribute. On ALFWorld, a distilled 8B annotator matches the API annotator, enabling DARS to run efficiently without a frontier judge. Code is available at https://github.com/JianhuiWei7/DARS.

1 INTRODUCTION

Language models increasingly perform tasks requiring sequences of interdependent decisions: planning household tasks (Shridhar et al., 2021), navigating shopping websites (Yao et al., 2022), and retrieving evidence across documents (Jin et al., 2025; Yao et al., 2023). Reinforcement learning with verifiable outcome rewards is the standard way to train these agents (Lambert et al., 2024; Shao et al., 2024; Guo et al., 2025), usually using group-based objectives that compare rollouts without a learned value function. Yet outcome rewards say little about each step's contributions: useful intermediate decisions and irrelevant detours receive the same credit, which makes policy optimization difficult over long trajectories (Minsky, 1961; Sutton, 1988; Zhang et al., 2025a).

Recent methods refine credit using uncertainty or temporal position. ARPO (Dong et al., 2026b) and AEPO (Dong et al., 2026a) use token entropy after tool calls to allocate additional rollouts (Wang et al., 2025c). This directs sampling toward uncertain decisions, but uncertainty does not necessarily indicate importance: alternative phrasings and different orders of independent subgoals can also produce high entropy (Wang et al., 2025b; Li et al., 2026). GiGPO (Feng et al., 2025) instead assigns finer credit by comparing actions taken from recurring states using discounted future returns. However, its discount is determined by the number of remaining turns rather than by which subgoals a step establishes or which later decisions depend on it (Shen et al., 2025; Cheng et al.,

Figure

Figure 1: Top: Comparison of existing methods. GRPO shares an episode-level signal across all steps; GiGPO uses time-discounted future returns; and ARPO/AEPO allocates additional rollouts around uncertain positions. Bottom: A schematic DARS credit assignment example. Product type c1c_1 is a prerequisite for size c2c_2 and scent c3c_3, while price c4c_4 is independent. Picking body wash (Step 5) breaks c1c_1, attenuating the weights of c2c_2, c3c_3 while preserving c4c_4. Re-selecting lotion (Step 7) repairs and re-verifies c1c_1, restoring full weight to the retained local evidence for c2c_2, c3c_3. Step rewards r~t\tilde{r}_t are signed changes in the dependency-weighted potential Φ\Phi, with λ=κ=ρ=1\lambda = \kappa = \rho = 1.

2026). Moreover, under outcome-only rewards, every step in a failed trajectory has zero return, leaving useful progress indistinguishable from mistakes within the same trajectory (Figure 1, top).

To address these limitations, we propose Dependency-Aware Reward Shaping (DARS). We represent the conditions for a successful task as a set of predicates connected by prerequisite relations. Together, these predicates and relations form the task's dependency graph. DARS assigns step-level credit according to changes in valid progress over this graph. Let π∗\pi^{*} denote the target policy. When an error invalidates a predicate, credit assigned to its dependent predicates is attenuated, while predicates on independent branches retain their credit. Subsequent steps that rely on the invalidated predicate form the dependent suffix, which is off-distribution relative to π∗\pi^{*} until the error is repaired. Figure 1 (bottom) illustrates this boundary: picking body wash invalidates the product-type predicate, attenuating credit for the dependent size and scent predicates while preserving credit for the independent price predicate. Re-selecting lotion repairs and re-verifies the prerequisite, restoring full weight to the retained size and scent evidence. This perspective connects dependency-aware credit assignment to the covariate shift underlying compounding errors in imitation learning (Ross et al., 2011) and autoregressive generation (Bachmann & Nagarajan, 2024), as well as to the propagation of root-cause errors through agent trajectories (Zhu et al., 2025; Liang et al., 2026).

DARS operationalizes this principle through a deterministic potential over the dependency graph (Figure 2). An annotator reads each completed trajectory once and reports which task predicates each step verifies, invalidates, or repairs. The potential weights each supported predicate according to its graph distance from the nearest broken ancestor, and the signed change in this potential defines the step reward. Consequently, credit is attenuated along dependent branches, preserved on independent branches, and restored after repair. Because DARS modifies only the reward signal, it can be integrated into existing RL algorithms without changing their rollout strategies or optimizers.

We evaluate one reward and annotation interface across five task families. DARS improves ALFWorld and WebShop over published GiGPO references, increases Search-R1 accuracy on shared-pool and held-out splits, raises AEPO's best evaluated AIME24/25 score by 4.2 points, and exceeds OmniOPD at both tool-free reasoning scales (Sections 5.2 and 5.3).

Our contributions are:

• Dependency-bounded invalidation (hypothesis). Under the task’s predicate-state abstraction, what an unrepaired error invalidates is bounded by the dependency structure rather than by step position, so only the dependent suffix is off-distribution for the target policy (Section 1); consistent with this reading, removing the attenuation, serializing the graph into a chain, or collapsing credit to a scalar each reduces performance (Section 5.4).

• Dependency-Aware Reward Shaping (DARS). A fine-grained step reward from a fixed dependency-graph potential over annotated task predicates, signed and auditable, whose single decay parameter spans milestone counting to hard masking below a break, and which integrates with GiGPO, ARPO/AEPO, and a token-level interface without changing their rollouts or optimizers (Section 4).

• Unified evidence on agentic and non-agentic tasks. A single reward and annotation interface improves on or matches strong recent methods on household planning, web shopping, multi-hop retrieval, and mathematical reasoning with and without tools, and learns faster than its closest baseline.