---
title: Graph-Distance Contribution Reward (GDCR)
url: https://www.emergentmind.com/topics/graph-distance-contribution-reward-gdcr
type: topic
---

# Graph-Distance Contribution Reward (GDCR)

Searching arXiv for the specified paper to ground the article in the cited source.
Graph-Distance Contribution Reward (GDCR) is a step-level process reward for agentic search that assigns credit according to how close newly retrieved and newly cited entities are to an answer node in a training-time Entity-Relation (ER) graph. It is introduced in “Beyond Trajectory Rewards: Step-level Credit Assignment for Agentic Search via Graph Modeling” [2605.29697] as a response to the limitations of trajectory-level outcome rewards in long-horizon information-seeking tasks, where different search steps contribute unequally to final success. The method is paired with Step Advantage Policy Optimization (SAPO), which converts GDCR into step-level advantages and combines them with trajectory-level outcome advantages during policy optimization [2605.29697].

## 1. Problem setting and motivation

The central motivation for GDCR is that standard reinforcement learning for agentic search typically uses trajectory-level outcome rewards: the entire search trajectory receives a reward based on whether the final answer is correct, and that reward is broadcast uniformly to all steps. The paper characterizes this as the operating mode of GRPO-style methods and argues that it is too coarse for multi-turn information-seeking processes, because some steps move the agent toward the answer whereas others are redundant, distractive, or logically far from the answer [2605.29697].

Within this formulation, the key deficiency is not merely sparse reward, but misallocated credit. A trajectory-level signal can indicate whether the overall search succeeded, yet it cannot identify which intermediate actions were useful. The paper states that such methods “overlook the fact that different steps in a multi-turn search process contribute differently to the final success” [2605.29697]. GDCR is proposed to address this by assigning step-level credit without relying on costly tree sampling.

The paper also situates GDCR against existing step-level methods that estimate credit by expanding multiple continuations and backpropagating leaf rewards. Although such methods can be accurate in principle, they are described as too expensive for long multi-turn search trajectories with large branching factors. GDCR instead uses a structural prior: if a step retrieves or cites entities that are graph-closer to the answer node, that step should receive more credit [2605.29697].

## 2. Graph-theoretic formulation

The conceptual basis of GDCR is a graph view of knowledge and search. World knowledge is treated as a latent world graph,
$$
\mathcal{G}^{\mathrm{world}} = (\mathcal{V}^{\mathrm{world}}, \mathcal{E}^{\mathrm{world}})
$$
where nodes are entities and edges are semantic or relational dependencies. For each query $q$, the answer-relevant substructure is modeled as a latent task graph,
$$
\mathcal{G}_q = (\mathcal{V}_q, \mathcal{E}_q), \quad \mathcal{G}_q \subseteq \mathcal{G}^{\mathrm{world}}
$$
with answer node $v_q^\ast \in \mathcal{V}_q$ [2605.29697].

Under this interpretation, agentic search is exploration over the latent task graph. A good search step is one that makes graph progress toward the answer node. Retrieved or cited entities that lie on short paths to the answer should therefore receive more credit than entities that are semantically related but graph-distant [2605.29697].

Because the latent task graph is unobservable, the method constructs a training-time ER graph
$$
\hat{\mathcal{G}}_q = (\hat{\mathcal{V}}_q, \hat{\mathcal{E}}_q)
$$
for each query-answer pair, which serves as a proxy for $\mathcal{G}_q$. The answer entity is explicitly annotated as the answer node $v_q^\ast$ [2605.29697]. This suggests that the operational success of GDCR depends on whether the proxy graph preserves the answer-directed connectivity structure that the latent task graph is assumed to contain.

## 3. Formal definition of GDCR

For any entity node $v \in \hat{\mathcal{V}}_q$, let $\hat{\mathcal{P}}(v, v_q^\ast)$ denote the set of reachable paths from $v$ to the answer node. The shortest-path graph distance is defined as
$$
d_q(v, v_q^\ast) = \min_{p \in \hat{\mathcal{P}}(v, v_q^\ast)} |p|
$$
where $|p|$ is the number of edges in path $p$ [2605.29697].

Each entity receives a contribution score that decays exponentially with distance:
$$
c_q(v) = k^{-d_q(v, v_q^\ast)}
$$
where $k$ is a decay factor. The experiments use $k=2$, so distance $0$ gives score $1$, distance $1$ gives score $1/2$, and distance $2$ gives score $1/4$ [2605.29697].

GDCR is defined over cumulative entity sets in a trajectory:
$$
T_t \subseteq \hat{\mathcal{V}}_q, \quad O_t \subseteq \hat{\mathcal{V}}_q
$$
where $T_t$ contains entities explicitly cited in thoughts up to step $t$, and $O_t$ contains entities appearing in observations up to step $t$, with initialization
$$
T_0 = O_0 = \emptyset
$$
[2605.29697].

Newly cited entities at step $t$ are
$$
\Delta C_t = T_t \setminus T_{t-1}
$$
and their reward is
$$
r_t^{\mathrm{cite}} = \sum_{v \in \Delta C_t} c_q(v)
$$
Newly retrieved entities at step $t$ are
$$
\Delta O_t = O_t \setminus O_{t-1}
$$
and their reward is
$$
r_t^{\mathrm{ret}} = \sum_{v \in \Delta O_t} c_q(v)
$$
The final Graph-Distance Contribution Reward is
$$
r_{t,g} = r_t^{\mathrm{cite}} + r_t^{\mathrm{ret}}
$$
so the step-level signal is the sum of credit from newly retrieved graph-linked entities and newly cited graph-linked entities [2605.29697].

This construction makes the notion of a positive step explicit. A step is informative if it retrieves new entities from the search environment that are close to the answer node in the ER graph, or explicitly cites new entities in the thought that were previously observed and are close to the answer node. The paper’s qualitative example contrasts “Christopher Nolan” as high value and close to the answer with “Science Fiction” as semantically related but graph-distant and less useful [2605.29697].

## 4. Construction of the training-time ER graph

The paper describes two synthesis pipelines for constructing the ER graph proxy used by GDCR. For the Chinese dataset, the pipeline is knowledge-graph-centric. It builds a large-scale knowledge graph from Baidu Baike content, uses a random walk strategy to derive a candidate training-time ER graph, and applies three quality checks: distant unreachability checks, intermediate unskippability checks, and connectivity checks. Then GPT-4o generates questions from the validated graph, followed by further obfuscation and filtering [2605.29697].

For the English dataset, the pipeline is search-agent-centric. It starts from the Asearcher synthesis pipeline, and after final questions are generated, the model is instructed to build a corresponding ER graph from the supporting statements. The answer must appear exactly as an entity in at least one triple [2605.29697].

Once the ER graph $\hat{\mathcal{G}}_q$ is constructed, the distance from any entity node to the answer node is computed as the shortest path length in the graph:
$$
d_q(v, v_q^\ast) = \min_{p \in \hat{\mathcal{P}}(v, v_q^\ast)} |p|
$$
This shortest-path signal is the basis of GDCR [2605.29697].

A plausible implication is that the ER graph plays a dual role: it is both a supervision scaffold for reward construction and a structural approximation to the latent answer-relevant search topology. The paper’s later robustness analysis is consistent with this interpretation, since corruption of the graph degrades performance, especially when the answer node itself is perturbed [2605.29697].

## 5. Integration into Step Advantage Policy Optimization

GDCR is not used as a standalone reward; it is converted into a step-level advantage inside Step Advantage Policy Optimization. For each query $q$, SAPO samples a group of trajectories
$$
\{\mathcal{H}^{(i)}\}_{i=1}^{G}
$$
Each trajectory receives a trajectory-level outcome reward based on final-answer correctness and format validity, and this is group-normalized into an outcome advantage $\hat{A}^{(i)}_o$ [2605.29697].

Given the GDCR sequence for a trajectory,
$$
\mathbf{r}^{(i)}_g = (r^{(i)}_{1,g}, \ldots, r^{(i)}_{T_i,g})
$$
SAPO normalizes it within the trajectory and clips it:
$$
A^{(i)}_{t,g} = \mathrm{clip}\left( \frac{r^{(i)}_{t,g}-\mathrm{mean}_{t=1}^{T_i}(r^{(i)}_{t,g})} {\mathrm{std}_{t=1}^{T_i}(r^{(i)}_{t,g})+\varepsilon}, -1, 1 \right)
$$
[2605.29697].

The final advantage for all tokens in step $t$ is then
$$
A^{(i)}_{t} = \hat{A}^{(i)}_o + \lambda |\hat{A}^{(i)}_o| A^{(i)}_{t,g}, \quad t=1,\ldots,T_i
$$
where $\lambda$ controls the step-level reward strength and $|\hat{A}^{(i)}_o|$ scales the contribution by outcome confidence [2605.29697]. The paper explains this combination as preserving the final-answer objective via the trajectory reward while allowing the GDCR-derived signal to differentiate good and bad steps.

SAPO then uses a GRPO-style clipped objective,
$$
J(\theta) = \mathbb{E}_{(q,y)\sim\mathcal{D},\,\mathcal{B}_q} \Bigg[ \frac{1}{G}\sum_{i=1}^{G} \frac{1}{|\mathcal{H}^{(i)}|} \sum_{j=1}^{|\mathcal{H}^{(i)}|} \min\!\Big( \rho_{i,j}(\theta) A_{i,j}, \mathrm{clip}(\rho_{i,j}(\theta),1-\epsilon_l,1+\epsilon_h) A_{i,j} \Big) \Bigg]
$$
where $\mathcal{B}_q=\{\mathcal{H}^{(i)}\}_{i=1}^{G}$, $\rho_{i,j}(\theta)$ is the token-level importance ratio, $A_{i,j}$ is the advantage of the step containing token $j$, and $\epsilon_l,\epsilon_h$ are clipping bounds [2605.29697].

The implementation logic given in the paper is to maintain cumulative observation and cited entity sets, compute $\Delta C_t$ and $\Delta O_t$, evaluate shortest-path distances to the answer node, transform them with $c_q(v)=k^{-d_q(v,v_q^\ast)}$, sum them into $r_t^{\mathrm{cite}}$, $r_t^{\mathrm{ret}}$, and $r_{t,g}$, normalize and clip within trajectory, combine with the outcome advantage using $\lambda$, and optimize with the clipped policy-gradient objective. A central implementation property is that SAPO does not require extra search branches, critic models, or tree expansion [2605.29697].

## 6. Empirical behavior and benchmark results

The paper evaluates SAPO with GDCR on four agentic search benchmarks: BrowseComp, BrowseComp-ZH, xbench-DS, and GAIA, specifically the text-only validation subset with 103 samples [2605.29697]. The reported results show consistent gains over SFT and GRPO.

For Qwen3-8B, the reported scores are as follows:

| Benchmark | SFT | GRPO | SAPO |
|---|---:|---:|---:|
| BrowseComp-ZH | 17.9 | 19.7 | 22.2 |
| BrowseComp | 2.7 | 4.3 | 4.9 |
| xbench-DS | 18.0 | 20.0 | 22.0 |
| GAIA | 38.8 | 51.5 | 52.4 |

Under the same rollout budget, SAPO also outperforms ARPO on all four benchmarks, with ARPO reported as 15.9 / 4.1 / 16.0 / 47.3 and SAPO as 22.2 / 4.9 / 22.0 / 52.4 [2605.29697].

For Qwen3-30B-A3B-thinking, the reported scores are:

| Benchmark | SFT | GRPO | SAPO |
|---|---:|---:|---:|
| BrowseComp-ZH | 27.3 | 33.2 | 45.7 |
| BrowseComp | 13.9 | 14.9 | 42.8 |
| xbench-DS | 53.0 | 67.0 | 75.0 |
| GAIA | 57.3 | 62.1 | 70.9 |

The paper provides several pieces of evidence specifically about GDCR rather than only the end-to-end SAPO system. First, correct trajectories reach smaller history-best distances to the answer node than incorrect ones. Second, the GDCR step score is positively correlated with final correctness, with
$$
r=0.334,\quad p<10^{-179}
$$
Third, SAPO reduces the average shortest-path distance over the course of a trajectory more than GRPO. Fourth, adding the newly-cited component increases the proportion of retrieved entities later cited. Fifth, ablations show that both GDCR parts matter: removing newly-retrieved reward hurts, removing newly-cited reward hurts, and full GDCR is best or tied best [2605.29697].

These results support the interpretation that GDCR is not merely a shaping heuristic attached to SAPO, but a reward construction that correlates with trajectory quality and changes search behavior in the intended answer-directed manner.

## 7. Scope, limitations, and failure modes

The paper explicitly limits GDCR to complex information-seeking tasks with definitive answers. It requires an answer node in the training-time ER graph and therefore does not directly apply to open-ended generation, subjective analysis, or tasks without a clear endpoint [2605.29697].

Performance depends on the quality of the search environment, the document index, and the graph-construction pipeline [2605.29697]. This dependency is empirically examined through robustness experiments in which the training-time ER graphs are corrupted by node deletion, noisy node injection, and answer perturbation. The reported findings are that SAPO is stable under moderate corruption, stronger noise degrades performance, and answer perturbation is especially harmful [2605.29697]. The last point is particularly significant because GDCR is explicitly anchored to the answer node; perturbing that anchor distorts the shortest-path signal used for contribution scoring.

The ablation studies further clarify the operational regime of the method. On Qwen3-8B, full SAPO is reported as best overall; removing the newly-retrieved reward lowers performance, and removing the newly-cited reward lowers performance more noticeably on some datasets [2605.29697]. The step-level weight $\lambda$ is tested at $\lambda=0.0$, $\lambda=0.3$, $\lambda=0.5$, and $\lambda=1.0$, where $\lambda=0.0$ collapses to GRPO, $\lambda=0.5$ is best overall, and $\lambda=1.0$ is worse than the best setting [2605.29697]. The distance decay factor $k$ is tested at $k=1$, $k=2$, and $k=4$, with $k=1$ degrading performance because it removes meaningful distance distinction, $k=2$ best overall, and $k=4$ producing mixed results that are not as good as $k=2$ [2605.29697].

A qualitative failure case in the paper shows GRPO failing because it does not sufficiently cite retrieved entities, causing the agent to drift to a wrong conclusion, whereas SAPO succeeds by progressively retrieving and citing answer-relevant entities [2605.29697]. This illustrates a common misconception that retrieval alone is the crucial intermediate behavior. In the GDCR framework, newly retrieved and newly cited entities are both reward-bearing, and the citation component is treated as an essential part of step utility rather than a secondary logging artifact.

In summary, GDCR formalizes step-level credit assignment in agentic search by rewarding answer-directed graph progress in a training-time ER graph. Its defining equations,
$$
c_q(v)=k^{-d_q(v,v_q^\ast)}
$$
and
$$
r_{t,g}= \sum_{v\in \Delta C_t} c_q(v) + \sum_{v\in \Delta O_t} c_q(v)
$$
embed a shortest-path prior into process supervision, while SAPO incorporates this signal into a trajectory-level optimization framework through
$$
A_t = \hat{A}_o + \lambda |\hat{A}_o| A_{t,g}
$$
[2605.29697]. The method is presented as a way to obtain step-level credit assignment without tree sampling overhead, with demonstrated gains on BrowseComp, BrowseComp-ZH, xbench-DS, and GAIA.

Source: https://www.emergentmind.com/topics/graph-distance-contribution-reward-gdcr