betaFeedback

WorksComputer Science

Contextual Credit Policy Optimization

Abstract

Group-based reinforcement learning enables large language model agents to learn from sparse outcome rewards in long-horizon tasks. Recent methods derive step-level credit by comparing observation-matched experiences across trajectories. However, identical observations can occur in different contexts, and matched peers are not equally informative for a given decision. Moreover, favorable terminal outcomes can obscure redundant actions or detours within successful trajectories. To address these two challenges, we propose Contextual Credit Policy Optimization (CCPO). For the first, CCPO weights observation-matched peers from other trajectories by contextual similarity, computed from frozen LLM representations and accumulated trajectory statistics, allowing peers from similar contexts to contribute more to a step's baseline. For the second, CCPO pairs historical credit, which compares the realized return against the weighted peer baseline, with future credit, which measures the change in contextual outcome value over a short realized continuation. A step is thus credited for the progress it makes, not only for its trajectory's eventual outcome. Both credits are computed in hindsight from rollouts already collected for training, enabling CCPO to address these challenges without an auxiliary value critic. Across two Qwen2.5-Instruct backbones (1.5B and 7B), CCPO achieves up to 97.4% success on ALFWorld and 79.4% on WebShop and outperforms GRPO by up to 21.6 and 18.5 points. Ablations show that contextual weighting outperforms uniform weighting, and that historical and future credit serve as complementary learning signals.

Affiliation Note: Huiwen Han was a visiting student at Texas A&M University during this work.

Project Page: agent-ccpo.github.io

Code: github.com/phai-lab/CCPO

Introduction

Large language model (LLM) agents increasingly undertake long-horizon tasks through sustained environment interaction [39, 52]. Benchmarks such as WebArena [55] and SWE-bench [12] require information gathering, coordinated actions, and adaptation to feedback. Reinforcement learning (RL) [34] provides a post-training framework that optimizes policies using rewards from interaction trajectories. Recent applications span open-web research, web navigation, and multi-step software engineering [54, 21, 17]. However, feedback often arrives only after many decisions.

Learning from such delayed feedback depends on how it is translated into policy updates. PPO-based actor–critic methods use learned value estimates to guide optimization, at the cost of training an additional value model [27]. Alternatively, group-based methods such as GRPO [28] estimate relative advantages from multiple sampled outcomes without a separately learned value critic. When applied at the trajectory level, however, a single advantage is shared across all actions in a rollout. Such comparisons differentiate outcomes across trajectories but provide limited information about the contributions of individual decisions, especially when rewards are sparse and delayed [52]. To enable fine-grained policy updates, recent methods extend this approach to construct step-level advantage estimates: GiGPO [7] compares actions encountered at shared observations, and G2PO [42] incorporates the structure of transitions between observation groups. HGPO [11] accounts for historical context by organizing comparisons into hierarchical groups. In each case, step-level credit comes from comparing experiences in existing rollouts, so it depends on how they are compared.

Two challenges remain when steps are compared at matched observations. The first is whom a step should be compared with. Identical observations can occur after different preceding actions, reasoning, exploration depth, and accumulated contexts. Peers that share an observation are therefore not equally informative for the step being evaluated (the query). Requiring peers to share the same history instead leaves few peers per step, and a baseline averaged over so few returns gives noisy advantages [11]. Our premise is that, within observation-matched groups, contextual similarity should determine each peer’s contribution to the query’s baseline and value estimates. The second is what a step should be credited for. A return comparison credits a step for belonging to a trajectory that ended well, but an eventual success can include redundant actions or detours. Separating a step that inherits a favorable context from one that makes progress from it requires a complementary comparison of realized gains over a short continuation.

To address both challenges, we propose Contextual Credit Policy Optimization (CCPO). For the first, CCPO represents each step’s context with semantic features of an interaction window from a frozen LLM and accumulated trajectory statistics, and gives greater weight to observation-matched peers with higher contextual similarity (Figure 1). For the second, CCPO builds two credit signals on these weighted peers. Historical credit compares the realized return with its contextual peer baseline. Future credit measures short-horizon progress as the change in contextual value, a weighted average of peers’ discounted terminal rewards, between the current step and a later step of the same rollout. Both are computed in hindsight from collected rollouts without requiring an auxiliary value critic or additional environment interactions. On agentic multi-step benchmarks, ALFWorld [32] and WebShop [45], CCPO outperforms prompting- and RL-based baselines using Qwen2.5-1.5B-Instruct and Qwen2.5-7B-Instruct backbones [23].

Overview of CCPO

Figure 1. Overview of CCPO. CCPO combines contextually weighted peer comparisons and short-horizon future progress for critic-free step-level credit assignment.

Our main contributions are as follows:

  • Contextual credit estimation from history and future progress. We assign step-level credit by combining a history-conditioned return residual with estimated value change over a future horizon, capturing outcome-relative performance and local progress. Analysis shows complementary effects of history and future credit as learning evolves.

  • Contextual similarity for step-level peer weighting. We aggregate peer returns with continuous weights set by the similarity between query and peer context representations, producing a context-dependent baseline. Replacing these weights with uniform ones lowers success by 3.7 and 2.6 points.

  • Semantic and structural context representations. We combine semantic hidden states of recent interactions with accumulated trajectory statistics, enabling context-sensitive comparisons across trajectories without training an auxiliary value critic.

Related Work

Agentic reinforcement learning for long-horizon tasks. Reinforcement learning (RL) [34] enables large language model (LLM) agents to improve through extended interactions in which observations, reasoning, actions, and feedback accumulate into trajectories [56, 52]. Applications span interactive gaming, web navigation, open-web research, and multi-step software engineering [43, 21, 54, 15, 17], where agents act in an environment and adapt to its feedback over many steps. Another line of work trains agents to reason with external tools, including search engines, web browsing tools, and code interpreters [13, 6] (Tongyi DeepResearch Team et al. 2026). Agentic RL can also learn from successes and failures through verbal reflection and trajectory preference learning [31, 47, 33, 20]. To collect high-quality trajectories, methods use uncertainty-guided branching and resampling [5, 38]. Reward design [44] is also crucial, spanning outcome-supervised reward models [21], process rewards from environment-aware models such as DataPRM [22], and turn-level reward assignment [36]. Despite these advances, sparse and delayed rewards, costly environment interaction, and training instability remain challenges [36, 15], motivating efficient and stable policy optimization from trajectories already collected.

Policy optimization for LLM agents. Existing approaches differ in their optimization objectives and advantage estimators. Preference-based methods, including DPO [25], ETO [33], and Agent Q [20], optimize policies from response or trajectory preferences, including successful and failed agent rollouts, without explicit reward-model fitting. Actor–critic methods use learned value estimates, as in PPO-based reinforcement learning from human feedback (RLHF) with InstructGPT [19] and multi-step agent learning with ArCHer [56]. To avoid a separate value critic, group-based methods estimate advantages from multiple sampled responses or trajectories. RLOO [1] uses the mean reward of other samples as a baseline, while GRPO [28], used in DeepSeek-R1 [10], standardizes group rewards. Related variants include LOOP [2] with leave-one-out PPO updates and Dr. GRPO [16] with revised length and reward normalization. Further refinements target update stability and exploration efficiency through clipping, importance weighting, and sampling, including DAPO [49], GSPO [53], CISPO [18], SAPO [8], VESPO [29], SAMPO [40], Clip-Cov [3], and T²PO [38]. However, trajectory-level applications of outcome-supervised GRPO share a single advantage across all actions in a rollout, without explicitly differentiating individual contributions [7]. This motivates the step-level methods discussed next.

Step-level credit assignment. Recent methods construct step-level learning signals for multi-step interactions (Zhang, 2026). Critic-based methods include SWEET-RL [57] with additional training-time information and HCAPO [35] with the agent as a hindsight critic. TRACE [36] derives turn-level rewards from a frozen model’s gold-answer likelihoods. OpenClaw-RL [41] combines evaluative rewards and corrective hints extracted from next-state feedback. Other methods estimate advantages by comparing collected trajectories. GiGPO [7] combines episode-level advantages with comparisons at matching observations, while HGPO [11] aggregates advantages from hierarchical groups matched at different history lengths. SALT [14] constructs graphs from trajectories of the same prompt, while G2PO [42] aggregates observations into a state-transition graph to estimate values and advantages. GEPO [50] uses task-conditioned graph centrality to shape trajectory returns and scale step-level advantages. Peer matching faces a granularity trade-off: observation-only matching can mix different histories, whereas exact history matching reduces the available samples [11]. CCPO keeps all observation-matched peers and weights each by the similarity of its context to the query’s, characterized by local semantic and accumulated trajectory features, thus enabling fine-grained comparisons utilizing available peers.

Contextual Credit Policy Optimization

Problem Formulation

Notation is summarized in Appendix § 7. We sample NN trajectories per task from behavior policy πold\pi_{\text{old}}. Trajectory ii for task xix_i contains TiT_i actions ai,0:Ti−1a_{i,0:T_i-1}, observations oi,0:Tio_{i,0:T_i}, and terminal outcome RiR_i. Prompt

Pi,t\mathcal{P}_{i,t} contains xix_i, oi,to_{i,t}, and up to KHK_H preceding observation–action pairs. Rewards come from environment feedback. GRPO [28] uses the mean reward of group rollouts as a baseline to estimate normalized advantages without a learned value critic. CCPO extends this critic-free estimation to individual steps, weighting peers by contextual similarity to estimate return baselines. The return target used by historical credit is

Yi,t=∑u=tTi−1γu−tri,uenv−η1{ai,t is invalid}.(1)Y_{i,t} = \sum_{u=t}^{T_i-1} \gamma^{u-t}r_{i,u}^{\mathrm{env}} - \eta\mathbf{1}\{a_{i,t}\text{ is invalid}\}. \tag*{(1)}

Here ri,uenvr_{i,u}^{\mathrm{env}} follows action ai,ua_{i,u} and γ\gamma discounts rewards. The penalty term subtracts η\eta for an invalid action at step tt only (Appendix § 9.§ 3).

Contextual Peer Estimation

CCPO assigns continuous, query-specific weights to individual peers based on contextual similarity (Figure 2). Averaging uniformly within an observation-matched group ignores that identical observations can follow different histories. Soft weighting within observation-matched groups accounts for these differences without exact history matching, which can leave few peers [11].

Figure 2. Contextual credit policy optimization of multi-step tasks. Contextual similarity weights observation-matched peers. A history-conditioned return residual and estimated outcome-value change over a short future window yield step-level credit from collected rollouts without an auxiliary value critic.

Peer selection. Exact peers share the task and observation and exclude the entire trajectory of the query step:

Ei,t={(j,s):xj=xi, j≠i, 0≤s<Tj, oj,s=oi,t}.(2)\mathcal{E}_{i,t} = \{(j,s): x_j=x_i,\ j\ne i,\ 0\le s<T_j,\ o_{j,s}=o_{i,t}\}. \tag*{(2)}

We use Pi,t=Ei,t\mathcal{P}_{i,t}=\mathcal{E}_{i,t} when nonempty; otherwise, we use all same-task steps with j≠ij\ne i. We quantify fallback rates and peer availability during training in Appendix § 15.

Context representation. Each step combines a frozen LLM representation hi,th_{i,t} with a trajectory summary ci,tc_{i,t}. The representation is the final-layer hidden state of the last prompt token. The summary records elapsed steps, distinct-observation count, novelty fraction, and a revisit indicator through step tt. Because the prompt holds only the most recent steps, the hidden state cannot reflect earlier history, and the summary supplies it.

We L2-normalize each preprocessed component, concatenate them with equal weights, and L2-normalize to obtain ϕi,t\phi_{i,t}.

Contextual readout. Bucket BB contains all batch steps matching the query’s task and observation, or task alone for fallback. We aggregate scalar targets rr over nonempty Pi,t\mathcal{P}_{i,t}:

wˉ(i,t),(j,s)∝exp⁡(−∥ϕi,t−ϕj,s∥2/τB),∑(j,s)∈Pi,twˉ(i,t),(j,s)=1.(3)\bar{w}_{(i,t),(j,s)} \propto\exp\left(-\lVert\phi_{i,t}-\phi_{j,s}\rVert_2/\tau_B\right), \qquad\sum_{(j,s)\in\mathcal{P}_{i,t}} \bar{w}_{(i,t),(j,s)}=1. \tag*{(3)}
Bi,t[r]=∑(j,s)∈Pi,twˉ(i,t),(j,s)rj,s.(4)\mathcal{B}_{i,t}[r]=\sum_{(j,s)\in\mathcal{P}_{i,t}}\bar{w}_{(i,t),(j,s)}r_{j,s}. \tag*{(4)}

The bandwidth τB\tau_B is proportional to the median pairwise context distance in BB, computed before trajectory exclusion. This readout estimates both return baselines and outcome values.

Temporal Credit Estimation

CCPO conditions return comparisons on a KHK_{\mathrm{H}}-step history window and assesses progress over a short realized continuation of KFK_{\mathrm{F}} steps. The future window compares discounted contextual outcome values at its endpoints. Historical credit depends on how the step’s trajectory ends, whereas future credit asks whether the step itself moved the trajectory to a more valuable context.

Historical credit. We subtract the contextual peer baseline from the return:

Ci,tH=Yi,t−Bi,t[Y].(5)C^{\mathrm{H}}_{i,t}=Y_{i,t}-\mathcal{B}_{i,t}[Y]. \tag*{(5)}

Future credit. We estimate contextual values from unpenalized terminal outcomes:

Zi,s=γTi−sRi,Vi,s={Bi,s[Z],s<Ti,Ri,s=Ti.(6)Z_{i,s}=\gamma^{T_i-s}R_i,\qquad V_{i,s}=\begin{cases} \mathcal{B}_{i,s}[Z], & s<T_i,\\ R_i, & s=T_i. \end{cases} \tag*{(6)}

For future horizon KFK_{\mathrm{F}}, let t+=min⁡(t+KF,Ti)t^{+}=\min(t+K_{\mathrm{F}},T_i). We compute

ΔVi,t=Vi,t+−Vi,t,Ci,tF=zxi[ΔV]i,t.(7)\Delta V_{i,t}=V_{i,t^{+}}-V_{i,t},\qquad C^{\mathrm{F}}_{i,t}=z_{x_i}[\Delta V]_{i,t}. \tag*{(7)}

where zxz_x standardizes eligible differences within task xx. Each nonterminal endpoint uses its own context and peer set, and future endpoints are used only during training. The endpoint difference measures growth in discounted contextual value, including changes due to shorter remaining time to success. Compared with a discount-aligned TD residual ([26]), this difference includes an extra nonnegative term that grows with the endpoint value and can survive task-wise centering, so future credit also rewards being closer to the end of a successful trajectory (Appendix § 9.§ 3).

Policy Optimization

We add historical credit and task-standardized future credit with unit coefficients:

Ai,tCC=Nxi[CH+CF]i,t.(8)A^{\mathrm{CC}}_{i,t}=\mathcal{N}_{x_i}[C^{\mathrm{H}}+C^{\mathrm{F}}]_{i,t}. \tag*{(8)}

The normalized contributions of the two credits, defined in Appendix § 9.§ 3, satisfy ACC=AH+AFA^{\mathrm{CC}}=A^{\mathrm{H}}+A^{\mathrm{F}}. The default uses Ai,t=Ai,tCCA_{i,t}=A^{\mathrm{CC}}_{i,t}. To test whether trajectory-level signals complement step-level credit, the episode-augmented variant adds a GRPO-style episode advantage ([28]), Ai,t=Ai,tCC+Ai,tEPA_{i,t}=A^{\mathrm{CC}}_{i,t}+A^{\mathrm{EP}}_{i,t}, with unit weight and no further normalization. Each step’s advantage weights response tokens in a dual-clipped objective ([48]), with a KL penalty toward the frozen reference policy. See Appendix § 9 for details.

Experiments

Experiments

Experimental Setup

Benchmarks and metrics. We evaluate CCPO against baseline methods on ALFWorld ([32]) and WebShop ([45]), covering household task execution and online shopping through multi-step interaction. ALFWorld comprises six household task categories, with 3,553 training tasks and 140 held-out tasks of the in-distribution evaluation split. For WebShop, we follow the goal partition implemented in verl-agent ([7]), reserving the first 500 goals as the evaluation pool and sampling training tasks from the remaining goals. Following prior work ([7, 42]), we report overall and per-category success rates on ALFWorld. For WebShop, we report success rate and mean task score.

Models and baselines. We use Qwen2.5-1.5B-Instruct and Qwen2.5-7B-Instruct ([23]) as policy backbones. We compare CCPO with three categories of baselines: (1) Off-the-shelf LLMs: Gemini 3.8 Flash ([9]), DeepSeek-V4.1-Flash ([4]), and Qwen3.8-27B ([24]). (2) Prompt-based agents: the Qwen2.5-Instruct backbones without task-specific RL fine-tuning, ReAct ([46]), and Reflexion ([31]). (3) RL training methods: PPO ([27]), RLOO ([1]), GRPO ([28]), GiGPO ([7]), HGPO ([11]), and G2PO ([42]). Baseline configurations are detailed in Appendix § 8.

Implementation details. We train CCPO using verl-agent ([7]), built on veRL ([30]), for 150 iterations, sampling 16 tasks with eight trajectories each per iteration. We use a learning rate of 10−610^{-6} and discount factor 0.95. Interaction limits are 50 steps for ALFWorld and 15 for WebShop. Settings are shared across both backbones and all group-based baselines, except that HGPO retains its published limits of 4,096 prompt tokens on ALFWorld and 30 interaction steps on WebShop. CCPO uses a KH=2K_{\mathrm{H}} = 2 history window and a KF=2K_{\mathrm{F}} = 2 future horizon. We evaluate two CCPO variants, a default and an episode-augmented one. The default uses ACCA_{\mathrm{CC}} from Equation (8). The variant uses ACC+AEPA_{\mathrm{CC}} + A_{\mathrm{EP}}, adding a standard episode-level advantage without further normalization. All training and evaluation are completed on 8×8 \times H200 GPUs. We report means and standard deviations across three random seeds. Appendix § 8 gives the shared training budgets and optimization settings. Appendix § 10 provides an ALFWorld prompt and response example.

Main Results

Comparison with baselines. Across CCPO variants, mean success gains over GRPO are 16.6–21.6 percentage points on ALFWorld and 12.3–18.5 on WebShop at 1.5B. At 7B, they are 12.3–15.4 and 5.5–6.5 points (Table 1). WebShop score gains are 13.1–14.8 at 1.5B and 1.7–6.5 at 7B. CCPO leads the listed RL baselines in mean success, reaching 96.9% and 97.4% on ALFWorld and 75.0% and 79.4% on WebShop at 1.5B and 7B.

TypeMethodAllPickLookCleanHeatCoolPick2Succ.Score
Off-the-Shelf Model
PromptingGemini 3.8 Flash*96.4100.084.6100.0100.092.095.849.254.0
PromptingDeepSeek-V4.1-Flash*75.088.684.666.762.576.066.722.027.9
PromptingQwen3.8-27B*70.785.761.566.756.372.066.729.039.5
Qwen2.5-1.5B-Instruct
PromptingQwen2.5*6.411.47.73.76.34.04.25.021.9
PromptingReAct12.817.420.515.76.27.72.011.340.1
PromptingReflexion21.835.322.221.713.619.43.721.955.8
RL TrainingPPO (with critic)54.4±3.164.8±3.540.5±6.957.1±4.960.6±6.646.4±4.047.4±1.951.5±2.973.8±3.0
RL TrainingRLOO69.7±2.588.3±3.052.8±8.671.0±5.962.8±8.766.4±5.556.9±4.752.1±6.773.9±5.6
RL TrainingGRPO*75.3±1.081.8±0.866.5±8.777.2±0.473.8±3.478.0±3.065.7±1.956.5±2.970.5±2.2
RL TrainingGiGPO*83.9±0.784.8±0.777.0±10.092.4±0.1100.0±0.075.0±0.974.6±1.967.4±2.280.1±1.8
RL TrainingGiGPO86.7±1.794.4±5.967.5±4.694.8±3.894.4±7.879.8±4.776.4±5.465.0±3.283.1±1.6
RL TrainingHGPO*89.1±0.693.9±0.380.1±6.092.4±0.1100.0±0.088.3±1.676.2±1.665.4±1.582.1±0.8
RL TrainingHGPO92.8±1.1Unreported71.5±4.085.6±2.971.5±4.085.6±2.9
RL TrainingG2PO*94.0±0.793.9±0.390.6±7.4100.0±0.0100.0±0.092.7±1.886.6±0.371.6±0.783.5±0.8
RL TrainingG2PO95.0±0.897.2±3.996.3±5.295.1±1.894.9±3.697.1±2.091.4±4.171.2±2.685.1±1.4
RL TrainingCCPO (ours)
ACC only96.9±0.8100.0±0.075.2±4.5100.0±0.093.1±0.7100.0±0.097.0±2.668.8±3.483.6±2.6
ACC + AEP91.9±0.593.9±0.2100.0±0.097.5±2.293.1±0.786.9±0.683.9±2.275.0±0.885.4±1.6
Δ GRPO16.6–21.612.1–18.28.7–33.520.3–22.819.38.9–22.018.2–31.312.3–18.513.1–14.8
Qwen2.5-7B-Instruct
PromptingQwen2.5*19.337.138.514.812.58.04.23.026.6
PromptingReAct31.248.535.434.313.218.217.619.546.2
PromptingReflexion42.762.041.644.930.936.323.828.858.1
RL TrainingPPO (with critic)80.4±2.792.3±4.064.0±8.492.5±2.489.5±7.080.3±2.068.8±8.368.7±5.181.4±3.1
RL TrainingRLOO75.5±4.687.6±4.378.2±8.387.3±5.881.3±7.671.9±5.248.9±8.465.7±4.080.3±3.2
RL TrainingGRPO*82.0±0.885.8±2.171.9±10.392.1±0.784.2±2.781.2±1.869.1±0.872.9±3.282.9±0.6
RL TrainingGiGPO*92.2±0.8100.0±0.093.3±11.596.0±0.395.7±3.789.9±2.176.5±2.374.7±4.084.3±3.5
RL TrainingGiGPO90.8±1.197.7±1.682.7±7.998.8±1.683.7±7.289.3±8.272.2±6.672.8±3.284.4±2.9
RL TrainingHGPO*95.8±0.5100.0±0.096.7±5.8100.0±0.0100.0±0.085.6±1.992.6±2.677.6±4.386.1±3.0
RL TrainingHGPO95.4±0.6Unreported78.5±4.189.0±1.0
RL TrainingG2PO*94.0±0.5100.0±0.0100.0±0.096.0±0.395.7±3.785.6±1.988.2±2.772.4±3.583.8±2.6
RL TrainingG2PO96.9±1.398.7±2.396.9±11.597.6±2.1100.0±0.098.8±2.193.7±8.478.3±0.689.8±1.7
RL TrainingCCPO (ours)
ACC only97.4±0.5100.0±0.0100.0±0.0100.0±0.095.7±3.794.3±2.294.1±2.579.4±1.689.4±1.0
ACC + AEP94.3±0.5100.0±0.085.9±5.196.0±0.3100.0±0.089.9±2.188.2±2.778.4±3.984.6±3.9
Δ GRPO12.3–15.414.214.0–28.13.9–7.911.5–15.88.7–13.119.1–25.05.5–6.51.7–6.5

Table 1. Table 1 Results on WebShop and ALFWorld. We report the success rate (%) for each sub-task and overall results for ALFWorld, and the success rate (%) and score for WebShop, averaged over 3 seeds with standard deviations. Within each section, the best means are highlighted and the second best are underlined. Higher is better. * marks baselines reproduced or off-the-shelf models evaluated by us. Light-gray rows show results from the original papers and are excluded from ranking highlights. Δ GRPO gives the min–max gain over GRPO across both CCPO variants.

Ablation Studies

We ablate CCPO with Qwen2.5-1.5B-Instruct, using ACCA_{\mathrm{CC}} on ALFWorld and ACC+AEPA_{\mathrm{CC}} + A_{\mathrm{EP}} on WebShop as reference configurations. All ablations follow the main evaluation protocol.

Peer selection and contextual weighting. Relative to CCPO, including same-trajectory peers lowers mean success by 6.3 on ALFWorld and 19.0 percentage points on WebShop (Table 2). Uniform weighting lowers success by 3.7 and 2.6 points, and cosine weighting by 4.2 and 4.7.

MethodALFWorld AllPickLookCleanHeatCoolPick2WebShop Succ.Score
Qwen2.5-1.5B-InstructACC onlyACC + AEP
w/o self-trajectory peer exclusion90.6±0.890.6 \pm0.897.0±0.197.0 \pm0.185.9±5.185.9 \pm5.188.1±1.088.1 \pm1.0100.0±0.0100.0 \pm0.086.9±0.686.9 \pm0.683.8±2.883.8 \pm2.856.0±5.556.0 \pm5.575.1±2.675.1 \pm2.6
w/o context summary94.3±0.594.3 \pm0.597.0±0.197.0 \pm0.181.9±7.181.9 \pm7.192.1±0.792.1 \pm0.795.7±3.795.7 \pm3.798.6±2.498.6 \pm2.492.6±2.692.6 \pm2.673.7±3.573.7 \pm3.584.5±3.084.5 \pm3.0
Uniform weighting93.2±0.593.2 \pm0.594.9±1.994.9 \pm1.992.6±6.492.6 \pm6.496.1±0.396.1 \pm0.395.7±3.795.7 \pm3.787.0±0.687.0 \pm0.692.6±2.792.6 \pm2.772.4±3.972.4 \pm3.983.1±3.483.1 \pm3.4
Cosine-based context similarity92.7±0.592.7 \pm0.597.9±1.897.9 \pm1.889.3±0.689.3 \pm0.692.1±0.792.1 \pm0.795.7±3.795.7 \pm3.789.9±2.189.9 \pm2.188.2±2.788.2 \pm2.770.3±2.770.3 \pm2.786.6±1.486.6 \pm1.4
Historical credit only
H: 2, F: 0, W: 3 ●●◎91.4±0.891.4 \pm0.893.9±0.293.9 \pm0.285.9±5.185.9 \pm5.1100.0±0.0100.0 \pm0.093.1±0.793.1 \pm0.786.9±0.686.9 \pm0.683.8±2.883.8 \pm2.872.7±2.872.7 \pm2.885.1±0.485.1 \pm0.4
Future credit only
H: 0, F: 2, W: 3 ◎◎◎84.6±1.684.6 \pm1.691.9±1.991.9 \pm1.971.9±10.371.9 \pm10.388.1±1.088.1 \pm1.082.0±2.482.0 \pm2.491.3±0.491.3 \pm0.470.6±3.070.6 \pm3.074.0±2.474.0 \pm2.485.1±2.485.1 \pm2.4
Symmetric context variation
H: 1, F: 1, W: 3 ●◎◎86.7±0.086.7 \pm0.091.9±1.991.9 \pm1.978.5±1.378.5 \pm1.392.1±0.792.1 \pm0.791.0±3.191.0 \pm3.185.6±1.985.6 \pm1.975.0±2.975.0 \pm2.9——
H: 3, F: 3, W: 7 ●●●◎◎◎◎91.4±0.891.4 \pm0.897.0±0.197.0 \pm0.185.9±5.185.9 \pm5.196.0±0.396.0 \pm0.393.1±0.793.1 \pm0.791.3±0.491.3 \pm0.479.4±2.879.4 \pm2.8——
Asymmetric context variation
H: 4, F: 0, W: 5 ●●●●◎94.3±0.994.3 \pm0.997.0±0.197.0 \pm0.189.3±0.689.3 \pm0.6100.0±0.0100.0 \pm0.095.7±3.795.7 \pm3.791.3±0.491.3 \pm0.488.2±2.788.2 \pm2.7——
H: 3, F: 1, W: 5 ●●●◎◎92.7±0.992.7 \pm0.9100.0±0.0100.0 \pm0.089.3±0.689.3 \pm0.696.0±0.396.0 \pm0.391.0±3.191.0 \pm3.1100.0±0.0100.0 \pm0.073.6±3.973.6 \pm3.9——
H: 1, F: 3, W: 5 ●◎◎◎◎89.3±1.689.3 \pm1.693.9±0.293.9 \pm0.282.6±10.982.6 \pm10.989.6±1.589.6 \pm1.582.0±2.482.0 \pm2.491.3±0.491.3 \pm0.488.2±2.788.2 \pm2.7——
H: 0, F: 4, W: 5 ◎◎◎◎◎62.0±1.862.0 \pm1.871.7±2.671.7 \pm2.682.6±10.982.6 \pm10.958.2±6.158.2 \pm6.166.1±3.466.1 \pm3.459.4±1.359.4 \pm1.344.1±1.144.1 \pm1.1——
CCPO (ours)
H: 2, F: 2, W: 5 ●●◎◎◎96.9±0.896.9 \pm0.8100.0±0.0100.0 \pm0.075.2±4.575.2 \pm4.5100.0±0.0100.0 \pm0.093.1±0.793.1 \pm0.7100.0±0.0100.0 \pm0.097.0±2.697.0 \pm2.675.0±0.875.0 \pm0.885.4±1.685.4 \pm1.6

Table 2. Ablations with Qwen2.5-1.5B-Instruct on ALFWorld and WebShop. best and second best are marked. HH and FF denote active historical and future credit spans, with W=H+F+1W = H + F + 1. Zero marks a disabled credit channel. Channel-only rows retain KH=KF=2K_H = K_F = 2. Temporal-window rows also change the actual window lengths (Table S3). Markers: ◎ current, ● history, and ⊙ future.

Structured context summaries alter peer influence. Context summaries add accumulated trajectory statistics to semantic representations: step count, distinct-observation count, novelty fraction, and a revisit indicator. Removing them lowers mean success by 2.6 percentage points on ALFWorld and 1.3 on WebShop (Table 2). Adding summaries changes normalized weights by more than one percentage point for 33.8% of matched query–peer pairs (Table 3; Appendix § 12.§ 3).

Change (pp)>0.25> 0.25>0.5> 0.5>1> 1>5> 5>10> 10
Pairs (%)62.148.733.88.63.6

Table 3. Absolute changes in matched peer weights from context summaries.

Historical and future credit. We compare the combined, history-only, and future-only credit configurations, retaining episode-level credit on WebShop. These channel-only ablations switch off the other credit component while retaining the default prompt-history length and future horizon, KH=KF=2K_\mathrm{H}=K_\mathrm{F}=2 (Table S3). On ALFWorld, success falls from 96.9% to 91.4% when using only historical credit and 84.6% when using only future credit. On WebShop, it decreases from 75.0% to 72.7% and 74.0%, respectively (Table 2). The combined configuration achieves the highest mean success on both benchmarks. History-only exceeds future-only in mean success on ALFWorld but trails it on WebShop, suggesting task-dependent credit utility.

VariantConfiguration change
ACC+AEPA_{\mathrm{CC}} + A_{\mathrm{EP}}Add episode advantage with unit weight after contextual normalization, without renormalizing the sum.
w/o self-trajectory peer exclusionAllow matching steps from the query trajectory, including the query itself, as peers.
w/o context summarySet the accumulated-statistics weight from 1 to 0; retain frozen hidden-state features and prompt history.
Cosine-based context similarityReplace the exponential kernel with cosine-based weighting.
Historical credit onlyTurn off future credit by setting its weight from 1 to 0. Retain historical credit with unit weight and the default windows KH=KF=2K_{\mathrm{H}} = K_{\mathrm{F}} = 2; the active spans are (H,F)=(2,0)(H, F) = (2, 0).
Future credit onlyTurn off historical credit by setting its weight from 1 to 0. Retain future credit with unit weight and horizon KF=2K_{\mathrm{F}} = 2, together with prompt history KH=2K_{\mathrm{H}} = 2; the active spans are (H,F)=(0,2)(H, F) = (0, 2).
Temporal window variationChange the actual prompt-history length and future horizon to the listed values: KH=HK_{\mathrm{H}} = H and KF=FK_{\mathrm{F}} = F. Set a channel’s weight to 0 when its listed span is zero, and to 1 otherwise. For example, (H,F)=(4,0)(H, F) = (4, 0) uses four history steps and turns off future credit; (0,4)(0, 4) uses a four-step future horizon, no preceding prompt-history pairs, and turns off historical credit.

Table S3. Table S3 CCPO variant and ablation configurations. Each ablation changes only the listed settings relative to its corresponding reference configuration. The default uses prompt history KH=2K_{\mathrm{H}} = 2, future horizon KF=2K_{\mathrm{F}} = 2, and unit weights for both credit channels. In Table 2, a disabled channel has active span zero; its underlying window is retained in the channel-only ablations.

Temporal window allocation. We vary symmetric windows on history length and future horizon. Increasing the symmetric window from (2,2)(2, 2) to (3,3)(3, 3) reduces success from 96.9% to 91.4%. We then compare asymmetric temporal allocations at fixed context span. The default CCPO (2 steps each way) outperforms all tested asymmetric windows. We restrict these variations to ALFWorld, where successful 1.5B trajectories average 8.7 steps versus 5.1 on WebShop under the reference configurations (Appendix § 14, Figure S4). These results favor a compact yet rich context window that balances locality with context span, since two steps each way outperforms both one and three steps.

Figure S4. Average steps among successful trajectories on ALFWorld and WebShop. Panels show Qwen2.5-1.5B/7B-Instruct agents and a shared off-the-shelf Gemini reference. Error bars show sample standard deviations across three evaluation subsets; no deviation is reported for Gemini.

Contextual Credit Analysis

Identical observations can conceal different task progress. In Figure 3, CiGPO and G2PO repeatedly visit an empty toiletpaper hanger without acquiring the target. CCPO encounters the same observation after acquisition and completes the task (Appendix § 13.§ 1). Appendix § 13.§ 2 presents a complementary failure mode: G2PO repeatedly removes and replaces one spraybottle, whereas CCPO places two distinct objects (Figure S3). Across three evaluation draws, CCPO’s revisit rate is 22.5%, versus 26.8–41.0% for the baselines (Table 4).

Figure 3. ALFWorld evaluation trajectories (Qwen2.5-1.5B-Instruct). Each cell denotes one step. Revisit counts track navigation to previously visited locations. CCPO uses ACCA_{\mathrm{CC}} only.

MethodGiGPOG2POHGPOCCPO (ACCA_{\mathrm{CC}} only)
Revisit rate (%)41.0±0.941.0_{\pm0.9}26.8±0.726.8_{\pm0.7}36.4±0.736.4_{\pm0.7}22.5±1.8\mathbf{22.5}_{\pm1.8}

Table 4. Revisit rates on ALFWorld evaluation rollouts.

Figure S3. Evaluation trajectories for the two-object task in Table S7. Each cell denotes one step; revisit counts track navigation to previously visited locations. CCPO uses ACCA_{\mathrm{CC}} only.

StepActionObservation excerpt / summary
G2PO: failed at 50 steps
10move spraybottle 2 to toilet 1You move the spraybottle 2 to the toilet 1.
14go to toilet 1On the toilet 1, you see a cloth 3, and a spraybottle 2.
15take spraybottle 2 from toilet 1You pick up the spraybottle 2 from the toilet 1.
16move spraybottle 2 to toilet 1You move the spraybottle 2 to the toilet 1.
37–39, 48–49Two further take–replace cycles with spraybottle 2; step 38 is an invalid action.
CCPO (ACCA_{\mathrm{CC}} only): success at step 15
4“1, and you have already taken ”Nothing happens.
5take spraybottle 1 from garbagecan 1You pick up the spraybottle 1 from the garbagecan 1.
8move spraybottle 1 to toilet 1You move the spraybottle 1 to the toilet 1.
11open cabinet 3In it, you see a spraybottle 2.
12take spraybottle 2 from cabinet 3You pick up the spraybottle 2 from the cabinet 3.
13“. now, you are at step 13, and”Nothing happens.
15move spraybottle 2 to toilet 1You move the spraybottle 2 to the toilet 1.
GiGPO: failed at 50 steps
11take soapbottle 2 from countertop 1You pick up the soapbottle 2 from the countertop 1.
StepActionObservation excerpt / summary
13move soapbottle 2 to toilet 1You move the soapbottle 2 to the toilet 1.
HGPO: failed at 50 steps
1–50Navigation and cabinet opening; no object is picked up.

Table S7. Table S7 continued

Contextual credit provides unique learning signals. Figure 4a compares ACCA_{\mathrm{CC}} with counterfactual AEPA_{\mathrm{EP}} from the same ACCA_{\mathrm{CC}}-only ALFWorld rollouts. AEPA_{\mathrm{EP}} is logged for comparison and excluded from policy updates. Their mean absolute magnitudes diverge as validation success improves: AEPA_{\mathrm{EP}} diminishes while ACCA_{\mathrm{CC}} remains elevated, so a learning signal remains after most episodes succeed.

Figure 4. Contextual credit dynamics on ALFWorld (Qwen2.5-1.5B and 7B). (a) ACCA_{\mathrm{CC}} versus AEPA_{\mathrm{EP}} from the same rollouts. Only ACCA_{\mathrm{CC}} is backpropagated. (b) Historical, future, and combined credit. Future-to-history ratios compare iterations 1–30 and 121–150. The heatmap correlates unsmoothed historical and future magnitudes by non-overlapping 10-iteration windows. Curves: mean absolute credit, centered 5-iteration means, and faint raw traces. Bands: 95% trajectory-bootstrap CIs.

The composition of contextual advantage changes during training. Figure 4b shows historical credit dominating initially, with future credit becoming more prominent despite fixed combination weights. Between iterations 1–30 and 121–150, the future-to-history mean absolute magnitude ratio rises from 0.25 to 0.60 at 1.5B and from 0.32 to 1.01 at 7B. Correlations between historical and future magnitudes within 10-iteration windows become less consistently positive later, especially at 7B. The two components thus evolve differently across training, supporting complementary roles.

What does future credit add beyond historical credit? Using successful 1.5B ALFWorld rollouts from iterations 101–150, we compare category-relative credit within task–observation-matched groups per iteration, with bootstrap CIs and Bonferroni correction across ten categories (Figure 5). Filtering and statistical procedures are detailed in Appendix § 12.§ 1. Relative to other actions, AFA^{F} favors new-location transitions more than AHA^{H} (difference: +0.037+0.037; adjusted CI: [0.001,0.073][0.001, 0.073]), while both favor cleaning, heating, and cooling. The (H,F)=(4,0),(0,4)(H,F) = (4,0), (0,4), and w/o-context-summary variants show similar patterns. Paired action timing also differs: against full CCPO, the future-only policy first opens a receptacle earlier in 72.1% of paired games, and the history-only policy later in 54.3% (Appendix § 12.§ 2, Figure S1). The failure case in Figure 3 shows that identical observations can accompany different task progress; the credit preferences in Figure 5 complement this behavioral evidence by showing how historical and future credit evaluate exploratory transitions differently.

Figure 5. Credit preferences on ALFWorld (Qwen2.5-1.5B-Instruct). Mean category-relative credit within matched task–observation groups and iterations, from successful rollouts at iterations 101–150. Asterisks: Bonferroni-adjusted CIs excluding zero. Dashes: fewer than 60 groups. Off: inactive component. Context markers denote ⊙ current, ◉ history, and ◎ future.

Figure S1. Action timing on ALFWorld (Qwen2.5-1.5B-Instruct). First occurrence at checkpoint 150, paired across the same 140 evaluation games against full CCPO. Percentages condition on both policies performing the action. Dashes: fewer than 12 pairs or unavailable results; gray rows are excluded. Context markers denote ◉ current, ◉ history, and ◎ future.

Conclusion

We introduced Contextual Credit Policy Optimization (CCPO) for two challenges in comparison-based step-level credit: whom a step is compared with, and what it is credited for. CCPO weights observation-matched peers by contextual similarity and pairs historical credit with future credit, both computed from collected rollouts without an auxiliary value critic. With Qwen2.5-7B-Instruct, it reaches 97.4% success on ALFWorld and 79.4% on WebShop. In ablations, uniform weights lower success by 3.7 and 2.6 points, and either credit alone lowers it by up to 12.3.

Limitations. CCPO has three main limitations. First, our evaluation covers two multi-step benchmarks and one model family. Broader generalization and applicability to short-horizon or single-step tasks remain untested. Second, exact observation matching can limit peer availability, while fixed temporal windows and hand-designed trajectory statistics may require adaptation across environments. Finally, future credit vanishes when all rollouts in a task group receive zero terminal reward, limiting the future channel’s contribution under sparse rewards, particularly early in training when successful trajectories are scarce.

Future work. The changing balance between historical and future credit motivates adaptive horizons and stage-dependent weighting. Further directions include streaming credit estimation from incomplete rollouts, multimodal contexts combining visual observations and textual histories, semantic peer retrieval beyond exact observation matching, and uncertainty estimates for correlated visits. Broader evaluation should examine generalization across model families and domains, computational scaling, and the effects of realized-future conditioning on policy updates.

Notation

Table S1 Notation for CCPO. Subscripts index trajectories and steps; H and F denote historical and future channels. Implementation details appear in Appendix § 9.

SymbolDefinition
Tasks, trajectories, and temporal indexing
xx, xix_iTask instance; xix_i is the task associated with trajectory ii.
NNNumber of trajectories sampled per task in a rollout batch.
τi\tau_iTrajectory ii, containing observations oi,0:Tio_{i,0:T_i}, actions ai,0:Ti−1a_{i,0:T_i-1}, and their outcomes.
ii, jjQuery-trajectory and peer-trajectory indices.
tt, ssZero-based query-step and peer-step indices: 0≤t<Ti0 \le t < T_i, 0≤s<Tj0 \le s < T_j.
TiT_iNumber of actions in trajectory ii; TiT_i also indexes its terminal endpoint.
oi,to_{i,t}Observation before action ai,ta_{i,t}; matching uses exact string equality.
ai,ta_{i,t}Generated response, including reasoning and the executable action.
pi,tp_{i,t}Task, current observation, and up to KHK_{\mathrm{H}} preceding observation–action pairs; excludes the current response.
ri,tenvr^{\mathrm{env}}_{i,t}, RiR_iEnvironment reward after action ai,ta_{i,t}, and terminal trajectory outcome.
γ\gamma, η\etaReturn discount factor and current invalid-action penalty coefficient.
KHK_{\mathrm{H}}, KFK_{\mathrm{F}}Prompt-history length and realized future horizon, both 2 by default.
t+t^{+}Future endpoint on the collected trajectory: t+=min⁡(t+KF,Ti)t^{+} = \min(t + K_{\mathrm{F}}, T_i).
HH, FF, WWActive credit spans in the ablation table, with W=H+F+1W = H + F + 1; zero denotes a disabled channel. Channel-only rows retain KH=KF=2K_{\mathrm{H}} = K_{\mathrm{F}} = 2, while temporal-window variations use KH=HK_{\mathrm{H}} = H and KF=FK_{\mathrm{F}} = F.
Context representation
hi,th_{i,t}Frozen reference model's final-layer hidden state at the last prompt token.
hˉ\bar{h}, P⊥,3P_{\perp,3}Batch mean hidden state and projection removing its three leading principal directions.
ni,tn_{i,t}Distinct-observation count: ∣{oi,0,…,oi,t}∣\lvert\{o_{i,0}, \ldots, o_{i,t}\}\rvert.
ni,t/(t+1)n_{i,t}/(t+1)Observation-novelty ratio over the observed prefix.
1{revisiti,t}\mathbf{1}\{\mathrm{revisit}_{i,t}\}Whether the current observation appeared earlier in the same trajectory.
ci,tc_{i,t}37-dimensional encoding of elapsed steps, distinct observations, novelty ratio, and revisit indicator.
ν(v)\nu(v)L2 normalization: v/max⁡(∥v∥2,10−9)v/\max(\lVert v\rVert_2, 10^{-9}).
ϕi,t\phi_{i,t}Fused context feature; see Equation (9).
[u;v][u;v]Vector concatenation.
Peer matching and contextual weighting
Ei,t\mathcal{E}_{i,t}Exact task–observation peers outside the query trajectory; Equation (2).
Pi,t\mathcal{P}_{i,t}Peers used for readout: Ei,t\mathcal{E}_{i,t} when nonempty, otherwise all same-task nonterminal steps with j≠ij \ne i.
u=(i,t)u=(i,t), v=(j,s)v=(j,s)Shorthand for query and peer step identifiers.
wu,vw_{u,v}Kernel weight: exp⁡(−∥ϕu−ϕv∥2/τB)\exp(-\lVert\phi_u-\phi_v\rVert_2/\tau_B).
wˉu,v\bar{w}_{u,v}Query-normalized weight: wu,v/∑v′∈Pi,twu,v′w_{u,v}/\sum_{v'\in\mathcal{P}_{i,t}}w_{u,v'}.
BBObservation or task bucket used to determine the bandwidth.
mBm_B, m~B\widetilde{m}_BMedian pairwise distance in BB and its safeguarded value; Appendix § 9.§ 2.
τB\tau_BKernel bandwidth 0.15m~B0.15\widetilde{m}_B, distinct from trajectory τi\tau_i.
rj,sr_{j,s}Readout target: Yj,sY_{j,s} for return baselines or Zj,sZ_{j,s} for outcome values.
Bi,t[r]\mathcal{B}_{i,t}[r]Contextual weighted readout; Equation (4).
SymbolDefinition
Temporal credit signals
Yi,tY_{i,t}Historical return target including the current invalid-action penalty; Equation (1).
Bi,t[Y]B_{i,t}[Y]Contextual peer baseline for the realized return.
Ci,tHC^{\mathrm{H}}_{i,t}Historical credit: Yi,t−Bi,t[Y]Y_{i,t} - B_{i,t}[Y].
Zi,sZ_{i,s}Unpenalized outcome target: γTi−sRi\gamma^{T_i-s}R_i.
Vi,sV_{i,s}Contextual outcome value: Bi,s[Z]B_{i,s}[Z] for s<Tis < T_i, and RiR_i at s=Tis = T_i.
ΔVi,t\Delta V_{i,t}Outcome-value change: Vi,t+−Vi,tV_{i,t+} - V_{i,t}.
Ci,tFC^{\mathrm{F}}_{i,t}Task-standardized future credit: zxi[ΔV]i,tz_{x_i}[\Delta V]_{i,t}.
Support, normalization, and advantages
SxHS_x^{\mathrm{H}}Unique steps of task xx with a defined historical baseline.
SxFS_x^{\mathrm{F}}Unique task-xx steps with both outcome-value endpoints defined.
Sx, S^xS_x,\ \hat{S}_xSx=SxH∪SxFS_x = S_x^{\mathrm{H}} \cup S_x^{\mathrm{F}}; S^x\hat{S}_x is the corresponding multiset of restored training rows.
Rx\mathcal{R}_xAll restored input step rows of task xx, used for episode statistics.
uˉS, sS(u)\bar{u}_S,\ s_S(u)Mean and sample standard deviation over set or row multiset SS.
zS[u]z_S[u]Standardization: (u−uˉS)/(sS(u)+10−6)(u - \bar{u}_S)/(s_S(u) + 10^{-6}) for ∣S∣>1|S| > 1.
zx[ΔV]z_x[\Delta V]Future-credit standardization over SxFS_x^{\mathrm{F}}.
Nx[⋅]\mathcal{N}_x[\cdot]Final contextual transformation.
ACC,i,tA_{\mathrm{CC},i,t}Contextual advantage Nxi[CH+CF]i,t\mathcal{N}_{x_i}[C^{\mathrm{H}} + C^{\mathrm{F}}]_{i,t}, also denoted Ai,tCCA^{\mathrm{CC}}_{i,t}.
Ai,tHA^{\mathrm{H}}_{i,t}Historical contribution after the final transformation; Equation (11).
Ai,tFA^{\mathrm{F}}_{i,t}Future contribution after the same transformation; ACC=AH+AFA^{\mathrm{CC}} = A^{\mathrm{H}} + A^{\mathrm{F}}.
μx, σx\mu_x,\ \sigma_xComponent mean and common scale for the additive decomposition; Appendix § 9.§ 3.
ei,te_{i,t}Episode-channel score: Ri−η1{ai,t invalid}R_i - \eta\mathbf{1}\{a_{i,t}\ \text{invalid}\}.
AEP,i,tA_{\mathrm{EP},i,t}Episode-score advantage over Rx\mathcal{R}_x.
αEP\alpha_{\mathrm{EP}}Episode-channel weight: 0 by default, 1 for the augmented variant.
Ai,tA_{i,t}Optimizer advantage: ACC,i,t+αEPAEP,i,tA_{\mathrm{CC},i,t} + \alpha_{\mathrm{EP}} A_{\mathrm{EP},i,t}.
Policy optimization
θ, πθ\theta,\ \pi_\thetaTrainable policy parameters and the current LLM policy.
πold\pi_{\mathrm{old}}Behavior policy used to collect rollouts.
πref\pi_{\mathrm{ref}}Frozen reference policy for feature extraction and KL regularization.

Table S1. Table S1 continued

Training and Ablation Configurations

SettingGRPOGiGPOHGPOG2POCCPO
Both benchmarks
Training iterations150150150150150
Tasks ×\times rollouts per iteration16×816 \times816×816 \times816×816 \times816×816 \times816×816 \times8
Total sampled trajectories19,20019,20019,20019,20019,200
NVIDIA H200 GPUs per run88888
Learning rate10−610^{-6}10−610^{-6}10−610^{-6}10−610^{-6}10−610^{-6}
Discount factor0.950.950.950.950.95
Actor KL coefficient0.010.010.010.010.01
KL estimatorlow_var_kllow_var_kllow_var_kllow_var_kllow_var_kl
KL included in rewardNoNoNoNoNo
Invalid-action penalty coeff.0.10.10.10.10.1
Environment training seed00000
Prompt history (steps)22222
Response token limit / step512512512512512

Table S2. Training configurations shared by 1.5B and 7B models on ALFWorld and WebShop.

SettingGRPOGiGPOHGPOG2POCCPO
Prompt truncationerrorerrorlefterrorerror
Validation decodingSamplingSamplingSamplingSamplingSampling
Validation temperature0.40.40.40.40.4
Validation interval (iterations)55555
ALFWorld
PPO mini-batch size256256256256256
Maximum interaction steps5050505050
Prompt token limit2,0482,0484,0962,0482,048
WebShop
PPO mini-batch size6464646464
Maximum interaction steps1515301515
Prompt token limit4,0964,0964,0964,0964,096

Table S2 (continued).

CCPO Implementation Details

Using complete, globally gathered rollouts, we remove identical step copies before feature construction, peer readouts, and future-credit standardization. Original rows are restored for final advantage computation before PPO minibatching. Training and ablation configurations are in Appendix § 8.

Context Representation

The frozen reference model supplies the final-layer hidden state at the last prompt token. Across unique steps in the batch, we center these states, remove their three leading principal directions, and L2-normalize. The summary encodes elapsed steps tt, distinct-observation count ni,tn_{i,t}, and novelty ratio ni,t/(t+1)n_{i,t}/(t+1) in three 12-dimensional thermometer blocks with upper bounds 30, 25, and 1. For value vv and bound bb, the first 12clip⁡(v/b,0,1)12\operatorname{clip}(v/b, 0, 1) coordinates are one; the rest are zero. Appending the binary revisit indicator gives ci,t∈R37c_{i,t} \in\mathbb{R}^{37}.

With ν(v)=v/max⁡(∥v∥2,10−9)\nu(v) = v / \max(\lVert v\rVert_2, 10^{-9}), the fused feature is

ϕi,t=ν([ν(P⊥,3(hi,t−hˉ));ν(ci,t)]).(9)\phi_{i,t} = \nu\left([\nu(P_{\perp,3}(h_{i,t} - \bar{h})); \nu(c_{i,t})]\right). \tag*{(9)}

The projection is recomputed per batch without reward labels. With two or three unique steps, we skip principal-direction removal; with one, we use the raw hidden block. Nonterminal endpoints use their own prompt features and accumulated statistics.

Peer Readouts

Readouts use Pi,t\mathcal{P}_{i,t} from § 3.2; a step whose peer set is empty receives zero contextual credit. For the full observation bucket BB, let mBm_B be the median distance over distinct unordered pairs before trajectory exclusion. Equation (3) uses τB=0.15m~B\tau_B = 0.15\tilde{m}_B, with m~B=mB\tilde{m}_B = m_B when mB>10−9m_B > 10^{-9} and 1 otherwise. Task-level fallback recomputes this bandwidth in the full task bucket.

Repeated visits retain individual weights. Each peer trajectory contributes its weighted mean, weighted again by its total kernel mass. Both denominators are floored at 10−1210^{-12}; all-zero weights yield zero while retaining support. Away from these floors, this implements Equation (4).

Credit Construction and Normalization

With terminal outcomes Ri∈{0,10}R_i \in\{0, 10\}, the supplied historical target is Yi,t=γTi−1−tRi−η1{ai,t invalid}Y_{i,t} = \gamma^{T_i-1-t}R_i - \eta1\{a_{i,t}\ \text{invalid}\}, whereas future values use Zi,t=γTi−tRiZ_{i,t} = \gamma^{T_i-t}R_i without penalties. The current-step penalty enters YY once. At t+=min⁡(t+KF,Ti)t^+ = \min(t + K_F, T_i), terminal values equal RiR_i, including zero for unsuccessful rollouts. Both value endpoints must be defined; their difference has no additional discount factor.

Let h=t+−th = t^+ - t. Equation (7) can be written as

ΔVi,t=(γhVi,t+−Vi,t)+(1−γh)Vi,t+.(10)\Delta V_{i,t} = \left(\gamma^h V_{i,t^+} - V_{i,t}\right) + \left(1 - \gamma^h\right)V_{i,t^+}. \tag*{(10)}

Our value targets are nonnegative, so the second term is nonnegative and can vary across steps. This time-dependent contribution can persist after task-wise centering.

Standardization uses sample standard deviation plus 10−610^{-6}, with equal weight per included row. Future differences are standardized over supported unique steps within each task in both benchmarks; fewer than two eligible steps give zero future credit. Unavailable components are zero-filled before combination. Unsupported contextual advantages remain zero. All-zero outcomes give zero future credit; historical targets still include local penalties.

For the plotted ALFWorld contributions, let μxd\mu_x^d be the mean of CdC^d over the restored union support and σx=sx(CH+CF)+10−6\sigma_x = s_x(C^{\mathrm{H}} + C^{\mathrm{F}}) + 10^{-6}. For multiple supported rows,

Ai,td=Ci,td−μxdσx,d∈{H,F},ACC=AH+AF.(11)A^d_{i,t} = \frac{C^d_{i,t} - \mu_x^d}{\sigma_x}, \qquad d \in\{\mathrm{H}, \mathrm{F}\}, \qquad A_{\mathrm{CC}} = A^{\mathrm{H}} + A^{\mathrm{F}}. \tag*{(11)}

Both contributions are zero outside the union support. These additive contributions share a normalization scale and sum to ACCA_{\mathrm{CC}}.

The optional episode channel uses ei,t=Ri−η1{ai,t invalid}e_{i,t} = R_i - \eta1\{a_{i,t}\ \text{invalid}\} over all restored task rows, including contextually unsupported steps. Hence longer trajectories contribute more rows, and local penalties can produce different episode advantages within a trajectory. The channel is added with unit weight after contextual normalization, without renormalizing.

Policy-Update Integration

The adapter broadcasts each detached step advantage to all generated response tokens, including reasoning and executable actions; prompt and padding tokens are excluded. The loss mask retains valid response tokens from steps with zero contextual credit. The dual-clipped policy objective ([48]) follows § 3.4. Features and credit estimates receive no gradients. Estimation uses float64 NumPy arithmetic, while the adapter extracts and returns detached float32 features and token advantages.

For a response token yy with preceding context cc, low_var_kl uses ℓ=clip⁡(log⁡πref(y∣c)−log⁡πθ(y∣c),−20,20)\ell= \operatorname{clip}(\log\pi_{\mathrm{ref}}(y \mid c)-\log\pi_{\theta}(y \mid c), -20, 20) and the penalty clip⁡(eℓ−ℓ−1,−10,10)\operatorname{clip}(e^{\ell}-\ell-1, -10, 10). The penalty is aggregated with the response-token mask and added to the policy loss with coefficient 0.01.

Algorithm 1 CCPO training iteration

  1. Collect complete rollouts with πold\pi_{\mathrm{old}}; gather metadata and reward targets.

  2. Extract frozen prompt features; retain unique steps and the input-row mapping.

  3. Encode prefix statistics; construct ϕ\phi by Equation (9).

  4. Select exact peers or task fallback; compute B[Y]\mathcal{B}[Y] and V=B[Z]V = \mathcal{B}[Z].

  5. Set t+←min⁡(t+KF,Ti)t^{+} \leftarrow\min(t + K_F, T_i) and terminal values Vi,Ti←RiV_{i,T_i} \leftarrow R_i.

  6. Set Ci,tH←Yi,t−Bi,t[Y]C^{H}_{i,t} \leftarrow Y_{i,t} - \mathcal{B}_{i,t}[Y] and Ci,tF←zxi[ΔV]i,tC^{F}_{i,t} \leftarrow z_{x_i}[\Delta V]_{i,t}, where ΔVi,t=Vi,t+−Vi,t\Delta V_{i,t} = V_{i,t^{+}} - V_{i,t}, on eligible steps.

  7. Zero-fill unavailable terms; restore rows; set ACC←Nx[CH+CF]A_{\mathrm{CC}} \leftarrow N_x[C^{H} + C^{F}].

  8. Set A←ACC+αEPAEPA \leftarrow A_{\mathrm{CC}} + \alpha_{\mathrm{EP}}A_{\mathrm{EP}}, αEP∈{0,1}\alpha_{\mathrm{EP}} \in\{0, 1\}; pass this sum directly to the token adapter.

  9. Broadcast detached AA to response tokens; update the policy with PPO and KL.

Validation Rollout Examples

ALFWorld: Picking up a Soapbar

ComponentExcerpt
Prompt
RoleYou are an expert agent operating in the ALFRED Embodied Environment.
TaskYour task is to: put two soapbar in garbagecan.
HistoryPrior to this step, you have already taken 5 step(s). Below are the most recent 2 observations and the corresponding actions you took:
History excerpt[Observation 4: ’You arrive at cabinet 1. The cabinet 1 is closed.’, Action 4: ’open cabinet 1’]
History excerpt[Observation 5: ’You open the cabinet 1. The cabinet 1 is open. In it, you see nothing.’, Action 5: ’go to sinkbasin 1’]
Current stepYou are now at step 6 and your current observation is: You arrive at sinkbasin 1. On the sinkbasin 1, you see a soapbar 3, and a soapbar 2.
ActionsYour admissible actions of the current situation are: [’examine sinkbasin 1’, [. . . ] ’take soapbar 2 from sinkbasin 1’, ’take soapbar 3 from sinkbasin 1’].
InstructionsNow it’s your turn to take an action. You should first reason step-by-step about the current situation. This reasoning process MUST be enclosed within <think> </think> tags. Once you’ve finished your reasoning, you should choose an admissible action for current step and present it within <action> </action> tags.
Model response
Response<think> The agent has arrived at the sinkbasin 1 and has two soapbars available: soapbar 2 and soapbar 3. The agent needs to put one of the soapbars in the garbagecan 1. </think> <action>take soapbar 2 from sinkbasin 1</action>

Table S4. ALFWorld prompt and response excerpts at step 6 (Qwen2.5-1.5B-Instruct).

Statistical Analysis

Statistical Analysis

Relative Credit Preferences

Data and filtering. For Figure 5, we analyze ALFWorld training rollouts from iterations 101–150 of four Qwen2.5-1.5B-Instruct runs: full CCPO and CCPO without the accumulated context summary, both with (KH,KF)=(2,2)(K_{\mathrm{H}}, K_{\mathrm{F}}) = (2, 2), together with the asymmetric (4,0)(4, 0) and (0,4)(0, 4) window variants of Table 2. All use the ACC_{\mathrm{CC}}-only configuration. Table S5 specifies the temporal windows and sample counts. We retain successful trajectories, identified by a recorded episode return greater than 0.5, and interior steps satisfying t≥2t \ge2 and tlast−t≥2t_{\mathrm{last}} - t \ge2, where tt is the zero-based logged step index and tlastt_{\mathrm{last}} is the last logged step in the trajectory. We apply this interior-step filter only to the analysis, consistently across all four runs. Padding duplicates are removed upstream; trajectories with missing episode returns are excluded. Each run is analyzed using its own rollouts, so comparisons across runs also reflect differences in the sampled behavior.

Run(KH,KF)(K_{\mathrm{H}}, K_{\mathrm{F}})StepsGroupsMM
CCPO (full)(2,2)(2, 2)39,50311,00310
w/o context summary(2,2)(2, 2)38,6809,7789
Asymmetric (history)(4,0)(4, 0)40,9729,91410
Asymmetric (future)(0,4)(0, 4)49,73613,23511

Table S5. Filtered samples for the credit-preference analysis. Groups match training iteration, task instance, and observation. MM counts categories with at least 60 usable groups; each contrast requires both the category and other actions in a group.

Action categories. The action at step tt is classified from the environment response recorded at step t+1t + 1, without using credit values. Fixed response-prefix rules identify task operations (clean, heat, or cool), take, examine, new location, revisit, open, put, toggle, invalid, close, and other. Arrivals are classified as new locations or revisits using the locations previously visited anywhere in the trajectory, including steps subsequently removed by filtering. Invalid actions are identified by the environment’s “Nothing happens.” response. Task completion may require revisiting a location.

Matched-group contrast. A comparison group BB contains steps from the same training iteration and task instance with identical observation text. Only exact task-observation groups enter this analysis. For action category cc, let IB(c)I_B(c) contain steps of that category and OB(c)O_B(c) contain the other steps in BB. We retain groups with both sets nonempty and, for a step-level quantity mum_u, define

dB(c;m)=1∣IB(c)∣∑u∈IB(c)mu−1∣OB(c)∣∑u∈OB(c)mud_B(c; m) = \frac{1}{\lvert I_B(c)\rvert}\sum_{u \in I_B(c)} m_u - \frac{1}{\lvert O_B(c)\rvert}\sum_{u \in O_B(c)} m_u
{#eq:12}

\Delta(c; m) = \frac{1}{\lvert \mathcal{U}(c)\rvert}\sum_{B \in \mathcal{U}(c)} d_B(c; m),

Equation not extracted

where U(c)\mathcal{U}(c) is the set of usable groups. We apply this definition to AHA^{\mathrm{H}}, AFA^{\mathrm{F}}, and ACCA_{\mathrm{CC}}, using the additive decomposition in Equation (11). Groups receive equal weight regardless of their size. A positive contrast indicates higher average group-relative credit for the category. Individual advantages may have either sign, and the contrast describes an association between action category and credit.

Bootstrap intervals and channel comparison. For each run, categories with fewer than 60 usable groups are excluded. We draw 6,000 bootstrap samples of usable groups with replacement, using random seed 0. Two-sided percentile intervals use quantile levels 0.05/(2M)0.05/(2M) and 1−0.05/(2M)1 - 0.05/(2M), where MM is the number of eligible categories in that run. Asterisks indicate intervals excluding zero. Each combination of run, analysis window, and measured quantity defines a separate Bonferroni correction family.

The channel comparison is paired within groups: we bootstrap dB(c;AF)−dB(c;AH)d_B(c; A^{\mathrm{F}}) - d_B(c; A^{\mathrm{H}}) using the same sampled groups for both terms. For new-location transitions in full CCPO, the mean paired difference is 0.0372 with adjusted interval [0.0011,0.0727][0.0011, 0.0727], based on 2,804 groups. The paired-contrast interval excludes zero; both channel-specific intervals include zero.

The analysis is conditional on successful trajectories and observations at which multiple action categories were sampled.

Paired Action Timing During Evaluation

Evaluation population. For Figure S1, we use evaluation rollouts from checkpoints at training iteration 150, collected following the main evaluation protocol. Each ablation is paired with full CCPO on the same 140 ALFWorld tasks using their evaluation-game identifiers. This analysis includes successful and failed episodes.

First occurrence. For game gg and category cc, let tg,ct_{g,c} denote the one-based step of its first occurrence, identified by the response-based categories above. The paired timing difference is

Δtg,c=tg,cablation−tg,cfull.(12)\Delta t_{g,c}=t_{g,c}^{\mathrm{ablation}}-t_{g,c}^{\mathrm{full}}. \tag*{(12)}

Only games where both policies perform the action are eligible. The plotted earlier, same, and later percentages count pairs with Δtg,c<0\Delta t_{g,c}<0, =0=0, and >0>0, respectively. Percentages are computed over eligible game pairs within each category. Games where only one policy performs the action enter separate coverage counts and are excluded from these percentages.

Displayed categories. Bars report descriptive proportions; dashes mark fewer than 12 eligible pairs or unavailable results. New location is excluded: its first occurrence is fixed at step 1 under this labeling rule. Invalid and other are also excluded.

Changes in Peer Contributions

Paired representation comparison. For Table 3, we use full CCPO’s Qwen2.5-1.5B-Instruct ALFWorld training rollouts from iterations 101–150 to recompute normalized peer weights with and without the accumulated context summary. Rollouts, queries, recorded peer sets, trajectory exclusions, and return targets are held fixed. The full representation has 1,573 dimensions; the comparison retains its 1,536-dimensional hidden-state block and renormalizes that block to unit length. The bandwidth rule is unchanged, but its numerical value is recomputed from distances in each representation. This comparison isolates the effect on weights for fixed rollouts; it is separate from comparing independently trained ablation policies.

Population and statistic. We retain the recorded peer-pool selection, including task-only fallback pools where used. This diagnostic covers successful and failed rollouts and retains boundary steps. It covers 99,424 queries and 1,678,986 query–peer pairs. For each pair, define the absolute change in normalized weight, measured in percentage points, as

Duv=100∣wˉu,vfull−wˉu,vno-summary∣.(13)D_{uv}=100\left|\bar{w}^{\mathrm{full}}_{u,v}-\bar{w}^{\mathrm{no\text{-}summary}}_{u,v}\right|. \tag*{(13)}

For a threshold dd, the reported percentage is

P(d)=100∣Q∣∑(u,v)∈Q1{Duv>d},(14)P(d)=\frac{100}{|\mathcal{Q}|}\sum_{(u,v)\in\mathcal{Q}}\mathbf{1}\{D_{uv}>d\}, \tag*{(14)}

where Q\mathcal{Q} is the set of query–peer step pairs (u,v)(u,v). Pairs receive equal weight, so queries with more peers contribute more terms. Thresholds of 0.25, 0.5, 1, 5, and 10 percentage points yield 62.1%, 48.7%, 33.8%, 8.6%, and 3.6% of pairs, respectively. These are descriptive proportions of the recorded pairs. These proportions quantify weight redistribution over fixed query–peer pairs.

Failure Mode Comparisons

We compare ALFWorld evaluation trajectories from Qwen2.5-1.5B-Instruct checkpoints at training step 150, with one sampled trajectory per method and task, temperature 0.4, and a 50-step limit. Tables show selected actions and observation excerpts; italicized rows summarize repeated actions.

Repeated Visits Without Acquiring the Target

Figure S2. Evaluation trajectories for the navigation task in Table S6. Reproduced from Figure 3. Each cell denotes one step; revisit counts track navigation to previously visited locations. CCPO uses ACCA_{\mathrm{CC}} only.

StepActionObservation excerpt / summary
GiGPO: failed at 50 steps; 47 revisits
3go to toiletpaperhanger 1On the toiletpaperhanger 1, you see nothing.
4–4946 navigation actions among countertop 1, toilet 1, and toiletpaperhanger 1; every returned observation repeats an earlier one.
StepActionObservation excerpt / summary
G2PO: failed at 50 steps; 42 revisits
5open cabinet 2In it, you see a soapbottle 1.
8–15Two navigation cycles: countertop 1 → cabinet 2 → toilet 1 → toiletpaperhanger 1.
HGPO: failed at 50 steps; 44 revisits
4go to toiletpaperhanger 1On the toiletpaperhanger 1, you see nothing.
5–1814 navigation actions among toilet 1, countertop 1, and toiletpaperhanger 1; every returned observation repeats an earlier one.
CCPO (ACCA_{\mathrm{CC}} only): success at step 7; 0 revisits
3go to cabinet 1The cabinet 1 is closed.
4open cabinet 1In it, you see [. . . ] a toiletpaper 1.
5take toiletpaper 1 from cabinet 1You pick up the toiletpaper 1 from the cabinet 1.
6go to toiletpaperhanger 1On the toiletpaperhanger 1, you see nothing.
7move toiletpaper 1 to toiletpaperhanger 1You move the toiletpaper 1 to the toiletpaperhanger 1.

Table S6. Repeated navigation versus target acquisition. Task: “put a toiletpaper in toiletpaperhanger.” Revisit counts refer to navigation to previously visited locations.

Repeating a Completed Subgoal

Trajectory Lengths

Figure S4 reports average steps among successful trajectories. At 1.5B, the ALFWorld reference configuration (ACCA_{\mathrm{CC}}) averages 8.65±0.088.65 \pm0.08 steps, compared with 5.13±0.115.13 \pm0.11 for the WebShop reference (ACC+AEPA_{\mathrm{CC}}+A_{\mathrm{EP}}). WebShop’s shorter successful trajectories motivate restricting the context-window variations to ALFWorld.

Exact-Match Fallback and Peer Availability

Figure S5. Exact-match fallback and peer availability during training. Results use Qwen2.5-1.5B-Instruct on ALFWorld and WebShop. (a,b) Percentage of rows falling back from the exact anchor-observation key to a task-only key, comparing CCPO (full) with five ablations. (c,d) No-peer row percentages, computed as the singleton-bucket fraction divided by mean bucket size; CCPO (full) is highlighted and ablations are gray. Faint traces show raw per-step values, while smoothed curves use centered five-step moving averages. Shading marks steps 101–150; annotations report unweighted means of raw per-step values over this window. All ALFWorld arms use ACCA_{\mathrm{CC}} only, and all WebShop arms use ACC+AEPA_{\mathrm{CC}} + A_{\mathrm{EP}}. Each arm represents one recorded training run. Vertical-axis ranges differ between benchmarks.

References

  1. [1]Arash Ahmadian, Chris Cremer, Matthias Gallé, Marzieh Fadaee, Julia Kreutzer, Olivier Pietquin, Ahmet Üstün, and Sara Hooker. Back to basics: Revisiting REINFORCE-style optimization for learning from human feedback in LLMs. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar, editors, Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12248–12267, Bangkok, Thailand, August 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.acl-long.662. https://aclanthology.org/2024.acl-long.662/.DOI
  2. [2]Kevin Chen, Marco Cusumano-Towner, Brody Huval, Aleksei Petrenko, Jackson Hamburger, Vladlen Koltun, and Philipp Krähenbühl. Reinforcement learning for long-horizon interactive LLM agents. arXiv preprint arXiv:2502.01600, 2025. https://arxiv.org/abs/2502.01600v3.
  3. [3]Ganqu Cui, Yuchen Zhang, Jiacheng Chen, Lifan Yuan, Zhi Wang, Yuxin Zuo, Haozhan Li, Yuchen Fan, Huayu Chen, Weize Chen, Zhiyuan Liu, Hao Peng, Lei Bai, Wanli Ouyang, Yu Cheng, Bowen Zhou, and Ning Ding. The entropy mechanism of reinforcement learning for reasoning language models. arXiv preprint arXiv:2505.22617, 2025. https://arxiv.org/abs/2505.22617v1.
  4. [4]DeepSeek-AI et al. DeepSeek-V4.1-Flash: Pushing the limits of KV cache compression. arXiv preprint arXiv:2609.19969, 2026. https://arxiv.org/abs/2609.19969v1.
  5. [5]Guanting Dong, Hangyu Mao, Kai Ma, Licheng Bao, Yifei Chen, Zhongyuan Wang, Zhongxia Chen, Jiazhen Du, Huiyang Wang, Fuzheng Zhang, Guorui Zhou, Yutao Zhu, Ji-Rong Wen, and Zhicheng Dou. Agentic reinforced policy optimization. In C. Vondrick, B. Hariharan, C. Raffel, L. Pinto, D. Yang, and A. Faust, editors, International Conference on Learning Representations, volume 2026, pages 16981–17017, 2026. https://proceedings.iclr.cc/paper_files/paper/2026/file/1c58e53bdf1fbf045440256fa657531ae-Paper-Conference.pdf.arxiv.org/abs/2507.19849
  6. [6]Jiazhan Feng, Shijue Huang, Xingwei Qu, Ge Zhang, Yujia Qin, Baoquan Zhong, Chengquan Jiang, Jinxin Chi, and Wanjun Zhong. ReTool: Reinforcement learning for strategic tool use in LLMs. In C. Vondrick, B. Hariharan, C. Raffel, L. Pinto, D. Yang, and A. Faust, editors, International Conference on Learning Representations, volume 2026, pages 37909–37926, 2026. https://proceedings.iclr.cc/paper_files/paper/2026/file/4038c9828dfc22644c60ad39c24e5c53-Paper-Conference.pdf.arxiv.org/abs/2504.11536
  7. [7]Lang Feng, Zhenghai Xue, Tingcong Liu, and Bo An. Group-in-group policy optimization for LLM agent training. In D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen, editors, Advances in Neural Information Processing Systems, volume 38, pages 46375–46408. Curran Associates, Inc., 2025. doi: 10.5220/085713-1544. https://proceedings.neurips.cc/paper_files/paper/2025/file/420c9cf777c0b4f78d5155e53cf74d58b2-Paper-Conference.pdf.arxiv.org/abs/2505.10978
  8. [8]Chang Gao, Chujie Zheng, Xiong-Hui Chen, Kai Dang, Shixuan Liu, Bowen Yu, An Yang, Shuai Bai, Jingren Zhou, and Junyang Lin. Soft adaptive policy optimization. arXiv preprint arXiv:2511.20347, 2025. https://arxiv.org/abs/2511.20347v2.
  9. [9]Google DeepMind. Gemini 3.8 Flash. Model card, September 2026. https://deepmind.google/models/model-cards/gemini-3-8-flash/. Published September 2, 2026. Accessed September 23, 2026.
  10. [10]Daya Guo, Dejian Yang, Haowei Zhang, et al. DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature, 645(8081):633–638, 2025. doi: 10.1038/s41586-025-09422-z. https://doi.org/10.1038/s41586-025-09422-z.
  11. [11]Shuo He, Lang Feng, qi wei, Xin Cheng, Lei Feng, and Bo An. Hierarchy-of-groups policy optimization for long-horizon agentic tasks. In C. Vondrick, B. Hariharan, C. Raffel, L. Pinto, D. Yang, and A. Faust, editors, International Conference on Learning Representations, volume 2026, pages 27572–27593, 2026. https://proceedings.iclr.cc/paper_files/paper/2026/file/2e7eb932f93d5db3b61c7a001e72fd0f-Paper-Conference.pdf.arxiv.org/abs/2602.22817
  12. [12]Carlos E Jimenez, John Yang, Alexander Wettig, Shunyu Yao, Kexin Pei, Ofir Press, and Karthik R Narasimhan. SWE-bench: Can language models resolve real-world GitHub issues? In The Twelfth International Conference on Learning Representations, 2024. https://openreview.net/forum?id=VTF8yNQM66.arxiv.org/abs/2310.06770
  13. [13]Bowen Jin, Hansi Zeng, Zhenrui Yue, Jinsung Yoon, Sercan O Arik, Dong Wang, Hamed Zamani, and Jiawei Han. Search-R1: Training LLMs to reason and leverage search engines with reinforcement learning. In Second Conference on Language Modeling, 2025. https://openreview.net/forum?id=Rwbhi91ideu.arxiv.org/abs/2503.09516
  14. [14]Jiazheng Li, Yawei Wang, Qiaojing Yan, Yijun Tian, Zhaochao Xu, Huan Song, Panpan Xu, and Lin Lee Cheong. SALT: Step-level advantage assignment for long-horizon agents via trajectory graph. In Vera Dember, Kentaro Inui, and Luís Marquez, editors, Findings of the Association for Computational Linguistics: EACL 2026, pages 4709–4725, Rabat, Morocco, March 2026a. Association for Computational Linguistics. ISBN 979-8-89176-386-9. doi: 10.18653/v1/2026.findings-eacl.247. https://aclanthology.org/2026.findings-eacl.247/.
  15. [15]Wanli Li, Bince Qu, Bo Pan, Jianyu Zhang, Zheng Liu, Pan Zhang, Wei Chen, and Bo Zhang. LiteResearcher: A scalable agentic RL training framework for deep research agent. In Third Conference on Language Modeling, 2026b. https://openreview.net/forum?id=6qDucSpMvz.arxiv.org/abs/2604.17931
  16. [16]Zichen Liu, Changyu Chen, Wenjun Li, Penghui Qi, Tianyu Pang, Chao Du, Wee Sun Lee, and Min Lin. Understanding R1-Zero-like training: A critical perspective. In Second Conference on Language Modeling, 2025. https://openreview.net/forum?id=5PAF7PAY2Y.arxiv.org/abs/2503.20783
  17. [17]Michael Luo, Naman Jain, Jaskirat Singh, Sijun Tan, Ameen Patel, Qingyang Wu, Alpay Ariyak, Colin Cai, Tarun Venkat, Shang Zhu, Ben Athiwaratkun, Manan Roongta, Ce Zhang, Li Erran Li, Raluca Ada Popa, Koushik Sen, and Ion Stoica. DeepSWE: Training a fully open-sourced, state-of-the-art coding agent by scaling RL. Together AI and Agentica research blog, 2025. https://www.together.ai/blog/deepswe.
  18. [18]MiniMax et al. MiniMax-M1: Scaling test-time compute efficiently with lightning attention. arXiv preprint arXiv:2506.13585, 2025. https://arxiv.org/abs/2506.13585v1.
  19. [19]Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul F Christiano, Jan Leike, and Ryan Lowe. Training language models to follow instructions with human feedback. In S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh, editors, Advances in Neural Information Processing Systems, volume 35, pages 27730–27744. Curran Associates, Inc., 2022. doi: 10.52202/068431-2011. https://proceedings.neurips.cc/paper_files/paper/2022/file/b1efed53e364a73914f58805a001731-Paper-Conference.pdf.DOI
  20. [20]Pranav Putta, Edmund Mills, Naman Garg, Sumeet Motwani, Chelsea Finn, Divyansh Garg, and Rafael Rafailov. Agent Q: Advanced reasoning and learning for autonomous AI agents. arXiv preprint arXiv:2408.07199, 2024. https://arxiv.org/abs/2408.07199v1.
  21. [21]Zehan Qi, Xiao Liu, Iat Long Iong, Hanyu Lai, Xueqiao Sun, Jiadai Sun, Xinyue Yang, Yu Yang, Shuntian Yao, Wei Xu, Jie Tang, and Yuxiao Dong. WebRL: Training LLM web agents via self-evolving online curriculum reinforcement learning. In Y. Yue, A. Garg, N. Peng, F. Sha, and R. Yu, editors, International Conference on Learning Representations, volume 2025, pages 79791–79821, 2025. https://proceedings.iclr.cc/paper_files/paper/2025/file/c66e1fcc9691aae706250638f36f681b-Paper-Conference.pdf.arxiv.org/abs/2411.02337
  22. [22]Zhisong Qiu, Shuofei Qiao, Kewei Xu, Yuqi Zhu, Lun Du, Ningyu Zhang, and Huajun Chen. Rewarding the scientific process: Process-level reward modeling for agentic data analysis. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.2, pages 11866–11877. ACM, 2026. doi: 10.1145/3770855.3819049. https://doi.org/10.1145/3770855.3819049.
  23. [23]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, Junyang Lin, Kai Dang, Keming Lu, Keqin Bao, Kexin Yang, Le Yu, Mei Li, Mingfeng Xue, Pei Zhang, Qin Zhu, Rui Men, Runji Lin, Tianhao Li, Tianyi Tang, Tingyu Xia, Xingzhang Ren, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yu Wan, Yuqiong Liu, Zeyu Cui, Zhenru Zhang, and Zihan Qiu. Qwen2.5 technical report. arXiv preprint arXiv:2412.15115, 2025. https://arxiv.org/abs/2412.15115v2.
  24. [24]Qwen Team. Qwen3.8-Max: A new bar for coding and cowork, August 2026. https://qwen.ai/blog?id=qwen3.8.
  25. [25]Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. Direct preference optimization: Your language model is secretly a reward model. In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine, editors, Advances in Neural Information Processing Systems, volume 36, pages 53728–53741. Curran Associates, Inc., 2023. doi: 10.52202/075280-2338. https://proceedings.neurips.cc/paper_files/paper/2023/file/a85b405ed65c6477a4fe8302b5e06ce7-Paper-Conference.pdf.DOI
  26. [26]John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, and Pieter Abbeel. High-dimensional continuous control using generalized advantage estimation. In International Conference on Learning Representations, 2016. https://arxiv.org/abs/1506.02438.
  27. [27]John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017. https://arxiv.org/abs/1707.06347v2.
  28. [28]Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024. https://arxiv.org/abs/2402.03300v3.
  29. [29]Guobin Shen, Chenxiao Zhao, Xiang Cheng, Lei Huang, and Xing Yu. VESPO: Variational sequence-level soft policy optimization for stable off-policy LLM training. arXiv preprint arXiv:2602.10693, 2026. https://arxiv.org/abs/2602.10693v3.
  30. [30]Guangming Sheng, Chi Zhang, Zilingfeng Ye, Xibin Wu, Wang Zhang, Ru Zhang, Yanghua Peng, Haibin Lin, and Chuan Wu. HybridFlow: A flexible and efficient RLHF framework. In Proceedings of the Twentieth European Conference on Computer Systems, pages 1279–1297. ACM, 2025. doi: 10.1145/3689031.3696075. https://doi.org/10.1145/3689031.3696075.
  31. [31]Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion: language agents with verbal reinforcement learning. In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine, editors, Advances in Neural Information Processing Systems, volume 36, pages 8634–8652. Curran Associates, Inc., 2023. doi: 10.52202/075280-0377. https://proceedings.neurips.cc/paper_files/paper/2023/file/1b44b878bb782e6954cd888628510e90-Paper-Conference.pdf.
  32. [32]Mohit Shridhar, Xingdi Yuan, Marc-Alexandre Côté, Yonatan Bisk, Adam Trischler, and Matthew Hausknecht. ALFWorld: Aligning text and embodied environments for interactive learning. In International Conference on Learning Representations, 2021. https://arxiv.org/abs/2010.03768v2.
  33. [33]Yifan Song, Da Yin, Xiang Yue, Jie Huang, Sujian Li, and Bill Yuchen Lin. Trial and error: Exploration-based trajectory optimization of LLM agents. In Lun-Wei Ku, Andre Martins, and Vivek Sr i kumar, editors, Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 7584–7600, Bangkok, Thailand, August 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.acl-long.409. https://aclanthology.org/2024.acl-long.409/.
  34. [34]Richard S Sutton and Andrew G Barto. Reinforcement Learning: An Introduction. MIT Press, 2nd edition, 2018. ISBN 9780262039246. https://mitpress.mit.edu/9780262039246/reinforcement-learning/.
  35. [35]Hui-Ze Tan, Xiao-Wen Yang, Hao Chen, Jie-Jing Shao, Yi Wen, Yuteng Shen, Weihong Luo, Xiku Du, Lan-Zhe Guo, and Yu-Feng Li. Hindsight credit assignment for long-horizon LLM agents. arXiv preprint arXiv:2603.08754, 2026. https://arxiv.org/abs/2603.08754v1.
  36. [36]Leitian Tao, Baolin Peng, Wenlin Yao, Tao Ge, Hao Cheng, Mike Hang Wang, Jianfeng Gao, and Sharon Li. TRACE: Turn-level reward assignment via credit estimation for long-horizon agents. arXiv preprint arXiv:2607.13988, 2026. https://arxiv.org/abs/2607.13988v1.
  37. [38]Haixin Wang, Hejie Cui, Chenwei Zhang, Xin Liu, Shouwei Jin, Shijie Geng, Xinyang Zhang, Nasser Zalmout, Zhenyu Shi, and Yizhou Sun. T²PO: Uncertainty-guided exploration control for stable multi-turn agentic reinforcement learning. In Forty-third International Conference on Machine Learning, 2026a. https://openreview.net/forum?id=D1zjvdJN4.
  38. [39]Lei Wang, Chen Ma, Xueyang Feng, Zeyu Zhang, Hao Yang, Jingsen Zhang, Zhiyuan Chen, Jiakai Tang, Xu Chen, Yankai Lin, Wayne Xin Zhao, Zhewei Wei, and Jirong Wen. A survey on large language model based autonomous agents. Frontiers of Computer Science, 18(6):186345, 2024. doi: 10.1007/s11704-024-40231-1. https://doi.org/10.1007/s11704-024-40231-1.
  39. [40]Xiaoxuan Wang, Han Zhang, Haixin Wang, Yidan Shi, Ruoyan Li, Kaqiao Han, Chenyi Tong, Haoran Deng, Alexander K Taylor, Renliang Sun, Yanqiao Zhu, Jason Cong, Yizhou Sun, and Wei Wang. ARLArena: A unified framework for stable agentic reinforcement learning. In Forty-third International Conference on Machine Learning, 2026b. https://openreview.net/forum?id=90kxFi9VGP.
  40. [41]Yinjie Wang, Xuyang Chen, Xiaolong Jin, Mengdi Wang, and Ling Yang. OpenClaw-RL: Train any agent simply by talking. arXiv preprint arXiv:2603.10165, 2026c. https://arxiv.org/abs/2603.10165v2.
  41. [42]Yunan Wang, Minghui Song, Zihan Zhang, Shaohan Huang, Haizhen Huang, Furu Wei, Weiwei Deng, Feng Sun, and Qi Zhang. Group-graph policy optimization for long-horizon agentic reinforcement learning. arXiv preprint arXiv:2606.22995, 2026d. https://arxiv.org/abs/2606.22995v1.
  42. [43]Zihan Wang, Kangrui Wang, Qineng Wang, Pingyue Zhang, Linjie Li, Zhengyuan Yang, Xing Jin, Kefan Yu, Minh Nhat Nguyen, Licheng Liu, Eli Gottlieb, Yiping Lu, Kyunghyun Cho, Jiajun Wu, Li Fei-Fei, Lijuan Wang, Yejin Choi, and Manling Li. RAGEN: Understanding self-evolution in LLM agents via multi-turn reinforcement learning. arXiv preprint arXiv:2504.20073, 2025. https://arxiv.org/abs/2504.20073v2.
  43. [44]Zihan Wang, Chi Gui, Xing Jin, Qineng Wang, Licheng Liu, Kangrui Wang, Shiqi Chen, Linjie Li, Zhengyuan Yang, Pingyue Zhang, Yiping Lu, Jiajun Wu, Li Fei-Fei, Liljuan Wang, Yejin Choi, and Manling Li. RAGEN-2: Reasoning collapse in agentic RL. In Forty-third International Conference on Machine Learning, 2026e. https://openreview.net/forum?id=O1caH9oj7C.arxiv.org/abs/2604.06268
  44. [45]Shunyu Yao, Howard Chen, John Yang, and Karthik Narasimhan. WebShop: Towards scalable real-world web interaction with grounded language agents. In S. Koyejо, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh, editors, Advances in Neural Information Processing Systems, volume 35, pages 20744–20757. Curran Associates, Inc., 2022. doi: 10.52202/068431-1508. https://proceedings.neurips.cc/paper_files/paper/2022/file/82ad13e0f19fe44c01cb9814fd7b8c-Paper-Conference.pdf.DOI
  45. [46]Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. ReAct: Synergizing reasoning and acting in language models. In International Conference on Learning Representations, 2023. https://openreview.net/forum?id=WE_vluYUL-X.arxiv.org/abs/2210.03629
  46. [47]Weiran Yao, Shelby Heinecke, Juan Carlos Niebles, Zhiwei Liu, Yihao Feng, Le Xue, Rithesh Ramapura Narasimha Murthy, Zeyuan Chen, Jianguo Zhang, Devansh Arpit, Ran Xu, Phil Mui, Huan Wang, Caiming Xiong, and Silvio Savarese. Retroformer: Retrospective large language agents with policy gradient optimization. In B. Kim, Y. Yue, S. Chaudhuri, K. Fragkiadaki, M. Khan, and Y. Sun, editors, International Conference on Learning Representations, volume 2024, pages 10091–10111, 2024. https://proceedings.iclr.cc/paper_files/paper/2024/file/29f412fbdcc82aeb349d784d3aaccdb3-Paper-Conference.pdf.arxiv.org/abs/2308.02151
  47. [48]Deheng Ye, Zhao Liu, Mingfei Sun, Bei Shi, Peilin Zhao, Hao Wu, Hongsheng Yu, Shaojie Yang, Xipeng Wu, Qinwei Guo, Qiaobo Chen, Yinyuting Yin, Hao Zhang, Tengfei Shi, Liang Wang, Qiang Fu, Wei Yang, and Lanxiao Huang. Mastering complex control in MOBA games with deep reinforcement learning. Proceedings of the AAAI Conference on Artificial Intelligence, 34(04):6672–6679, 2020. doi: 10.1609/aaai.v34i04.6144. https://doi.org/10.1609/aaai.v34i04.6144.
  48. [49]Qijing Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaowei Zuo, Yu Yue, Weinan Dai, Tiantian Fan, Gaohong Liu, Juncai Liu, Lingjun Liu, Xin Liu, Haibin Lin, Zhiqi Lin, Bole Ma, Guangming Sheng, Yuxuan Tong, Chi Zhang, Mofan Zhang, Ru Zhang, Wang Zhang, Hang Zhu, Jinhua Zhu, Jiaze Chen, Jiangjie Chen, Chengyi Wang, Hongli Yu, Yuxuan Song, Xiangpeng Wei, Hao Zhou, Jingjing Liu, Wei-Ying Ma, Ya-Qin Zhang, Lin Yan, Yonghui Wu, and Mingxuan Wang. DAPO: An open-source LLM reinforcement learning system at scale. In D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen, editors, Advances in Neural Information Processing Systems, volume 38, pages 113222–113244. Curran Associates, Inc., 2025. doi: 10.52202/085713-3775. https://proceedings.neurips.cc/paper_files/paper/2025/file/a4277440d50f1f15d2cb4c14f7e0cd2-Paper-Conference.pdf.DOI
  49. [50]Jiazhen Yuan, Zhike Gong, Jinquan Hang, Zhengbiao Bai, and Wei Zhao. Graph-enhanced policy optimization in LLM agent training. arXiv preprint arXiv:2510.26270, 2026. https://arxiv.org/abs/2510.26270v2.
  50. [52]Guibin Zhang, Hejia Geng, Xiaohang Yu, Zhenfei Yin, Zaibin Zhang, Zelin Tan, Heng Zhou, Zhong-Zhi Li, Xiangyuan Xue, Yijiang Li, Yifan Zhou, Yang Chen, Chen Zhang, Yutao Fan, Zihu Wang, Songtao Huang, Francisco Piedrahita Velez, Yue Liao, Hongru Wang, Mengyue Yang, Heng Ji, Jun Wang, Shuicheng Yan, Philip Torr, and Lei Bai. The landscape of agentic reinforcement learning for LLMs: A survey. Transactions on Machine Learning Research, 2026. ISSN 2835-8856. https://openreview.net/forum?id=RY19y2RI1O. Survey Certification.arxiv.org/abs/2509.02547
  51. [53]Chujie Zheng, Shixuan Liu, Mingze Li, Xiong-Hui Chen, Bowen Yu, Chang Gao, Kai Dang, Yuqiong Liu, Rui Men, An Yang, Jingren Zhou, and Junyang Lin. Group sequence policy optimization. arXiv preprint arXiv:2507.18071, 2025a. https://arxiv.org/abs/2507.18071v2.
  52. [54]Yuxiang Zheng, Dayuan Fu, Xiangkun Hu, Xiaojie Cai, Lyumanshan Ye, Pengrui Lu, and Pengfei Liu. DeepResearcher: Scaling deep research via reinforcement learning in real-world environments. In Christos Chrоstidoulopoulos, Tanmoy Chakraborty, Carolyn Rose, and Violet Peng, editors, Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 414–431, Suzhou, China, November 2025b. Association for Computational Linguistics. ISBN 979-8-89176-332-6. doi: 10.18653/v1/2025.emnlp-main.22. https://aclanthology.org/2025.emnlp-main.22/.
  53. [55]Shuyan Zhou, Frank F Xu, Hao Zhu, Xuhui Zhou, Robert Lo, Abhishek Sridhar, Xianyi Cheng, Tianyue Ou, Yonatan Bisk, Daniel Fried, Uri Alon, and Graham Neubig. WebArena: A realistic web environment for building autonomous agents. In B. Kim, Y. Yue, S. Chaudhuri, K. Fragkiadaki, M. Khan, and Y. Sun, editors, International Conference on Learning Representations, volume 2024, pages 15585–15606, 2024a. https://proceedings.iclr.cc/paper_files/paper/2024/file/4410c0711e9154a7a2d26f9b3816d1ef-Paper-Conference.pdf.
  54. [56]Yifei Zhou, Andrea Zanette, Jiayi Pan, Sergey Levine, and Aviral Kumar. ArCHer: Training language model agents via hierarchical multi-turn RL. In Ruslan Salakhutdinov, Zico Kolter, Kathrine Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp, editors, Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 62178–62209. PMLR, 21–27 Jul 2024b. https://proceedings.mlr.press/v235/zhou24t.html.arxiv.org/abs/2402.19446
  55. [57]Yifei Zhou, Song Jiang, Yuandong Tian, Jason Weston, Sergey Levine, Sainbayar Sukhbaatar, and Xian Li. SWEET-RL: Training multi-turn LLM agents on collaborative reasoning tasks. arXiv preprint arXiv:2503.15478, 2025. https://arxiv.org/abs/2503.15478v1.

Paper details

vlnc:W_td4sjz3t
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 7

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents