betaFeedback

WorksComputer Science

C3: Rethinking Process Supervision via Confidence-Guided Credit Correction in Multi-Turn Reinforcement Learning

Abstract

Large language models are increasingly trained as multi-turn agents that interact with external tools. However, outcome-only reinforcement learning can produce a form of misguided reinforcement: even on successful trajectories, undesirable local behaviors may receive positive token-level advantages and be favored by the policy update. To address this issue, we propose Confidence-Guided Credit Correction (C3^3), a plug-in method for local credit correction. C3^3 identifies spans corresponding to undesirable behaviors and selectively corrects positive credit after advantage estimation, with the correction strength adaptively controlled by the behavior policy's confidence in the corresponding behavior, while leaving the task reward and original credit estimation unchanged. Across multiple multi-turn benchmarks, C3^3 improves performance under both {critic-based and critic-free reinforcement learning methods}. Injecting the same behavioral signals as turn-level or outcome rewards does not consistently improve performance. Our results show that local credit correction provides an effective form of process supervision for outcome-driven RL.

Introduction

Multi-turn agentic reinforcement learning has emerged as an effective paradigm for training language agents on complex tasks that require long-horizon reasoning and iterative tool interaction [33, 35, 7]. A common approach optimizes agents with outcome-level rewards that evaluate the success of an entire interaction trajectory [8]. However, outcome-level supervision provides only sparse and coarse-grained feedback for intermediate behaviors, making it difficult to assign appropriate credit across long-horizon interactions (Wang et al., 2025b;a; Lu et al., 2026). To provide denser supervision for intermediate behaviors, recent work introduces process-level rewards and other process-level signals [23, 36, 16].

Our Key Observation. We inspect representative training trajectories under outcome-only training and find that undesirable local behaviors can still receive positive token-level advantages. We identify this phenomenon as a form of misguided reinforcement. More precisely, it is a form of local credit misalignment, where the token-level advantage assigned to an undesirable behavior is inconsistent with its process-level quality. This creates a fundamental mismatch between what behavior should be discouraged and what the policy update favors. Figure 1(a) shows two representative undesirable behaviors observed. In the invalid tool call, a missing closing tag for <search> causes the call to be malformed, yet the preceding unclosed tokens receive positive advantages while the subsequently closed tokens receive negative advantages. In the redundant search, the same query is issued in consecutive turns, but its tokens also receive mixed advantages. Such misalignment reflects the challenge of assigning localized credit from trajectory-level outcomes.

Mixed credit in undesirable behaviors and credit construction across optimization paradigms

Figure 1. Misguided reinforcement under outcome-only training. (a) Incorrect tool use and redundant search receive mixed token-level credit, with positive and negative advantages shown in rose and blue-grey. (b) Token-level credit construction in critic-based and critic-free optimization.

Why Existing Credit Construction Falls Short. Figure 1(b) illustrates how token-level credit is constructed under two common optimization paradigms. In critic-based reinforcement learning, token-level advantages are estimated through returns and value functions, so a process-level penalty can propagate to tokens beyond the behavior that triggered it. In critic-free methods, relative advantages are derived directly from trajectory-level outcomes, causing local behaviors to inherit credit from the overall trajectory. Thus, the two paradigms differ in how credit is constructed, but share a more fundamental challenge:

How can process-level supervision correct a localized undesirable behavior without altering the credit assigned to unrelated behaviors, thereby avoiding credit misalignment?

To address this challenge, we propose C3^{3} (Confidence-Guided Credit Correction), a lightweight process-level credit correction module that directly operates on token-level advantages. Given undesirable behaviors localized by external process-level supervision, C3^{3} selectively corrects positive advantages within the corresponding spans, with the correction magnitude adapting to the model’s confidence in the corresponding actions. C3^{3} introduces no additional process rewards and does not modify the underlying policy optimization objective, making it a plug-in module applicable to both critic-based and critic-free reinforcement learning paradigms.

Our contributions are summarized as follows:

  • We identify and characterize misguided reinforcement, where undesirable local behaviors can receive positive policy advantages under outcome-level training, creating a mismatch between behavioral quality and the direction of policy updates.

  • We propose C3^{3}, a plug-and-play confidence-guided credit correction framework that rectifies misaligned positive credit within detector-localized undesirable behavior spans without altering task rewards or the underlying RL objective.

  • We evaluate C3^{3} across different policy optimization paradigms and multi-turn agent benchmarks. Results show that C3^{3} reduces positive advantages on detected undesirable-behavior spans, decreases their occurrence, and improves overall agent performance.

Related Work

Reinforcement Learning for LLM Agents. Language agents are commonly optimized with critic-based methods such as Proximal Policy Optimization (PPO) [21, 18] or group-relative objectives such as Group Relative Policy Optimization (GRPO) [1]. They support retrieval [8] and long-horizon research or collaboration [33, 35], but typically learn from trajectory-level outcomes. Consequently, an otherwise successful trajectory may still reinforce undesirable intermediate behaviors. Unlike approaches that modify the overall policy optimization process, C3C^3 preserves the underlying objective and instead performs localized credit correction on undesirable behavior spans.

Credit Assignment for Multi-Turn Agents. Credit assignment asks how trajectory-level outcome credit should be attributed to intermediate actions. Hierarchical methods allocate credit across turns [34, 19], while turn- or step-level estimators align advantages with action boundaries [11, 23]. Action-to-token allocation further refines the mapping from outcomes to local advantages [16], and retrospective methods estimate each turn’s contribution [2, 6, 3, 25]. C3C^3 leaves this outcome-to-advantage mapping intact and operates on the resulting token-level advantages. While these approaches refine how outcome credit is distributed, C3C^3 instead focuses on whether the resulting local credit is consistent with the underlying behavior.

Process Supervision for LLM Agents. Process supervision instead asks whether an intermediate behavior is desirable. Process reward models score individual steps [13]; search agents use step-wise rewards [27], information gain [24], or hindsight signals [15]. Judges and self-distillation provide local assessments [26, 12], while counterfactual attribution derives feedback from alternative rollouts [36]. These signals are typically introduced as rewards or advantage shaping. Rather than introducing additional process rewards, C3C^3 uses localized process feedback to correct positive advantages assigned to undesirable-behavior spans within the existing token-level advantage.

Preliminary

We consider a multi-turn reinforcement learning setting where an LLM agent interacts with an environment to solve a task. Given an input xx, the agent follows a policy πθ\pi_\theta to generate an action ata_t at interaction turn tt, receives an environment observation oto_t, and eventually produces a final answer yy. Over TT interaction turns, a complete interaction is represented as

τ=(x,a1,o1,…,aT,oT,y).(1)\tau= (x, a_1, o_1, \ldots, a_T, o_T, y). \tag*{(1)}

Each action at turn tt is represented by an ordered token sequence:

at=(zi)i∈It.(2)a_t = (z_i)_{i \in I_t}. \tag*{(2)}

Here, ItI_t denotes the contiguous token span of action ata_t. We index all generated tokens globally by ii and denote the decoding context of token ziz_i by sis_i.

During optimization, trajectories are collected under the behavior policy πθk\pi_{\theta_k} at update kk, while πθk\pi_{\theta_k} denotes the current policy being optimized. A base reinforcement learning algorithm assigns each generated token a token-level advantage A^i\hat{A}_i, obtained from either critic-based or group-relative credit estimation. The policy update is therefore driven by

∇θJ(θ)∝Eτ∼πθk[∑iA^i∇θlog⁡πθ(zi∣si)].(3)\nabla_\theta J(\theta) \propto\mathbb{E}_{\tau\sim\pi_{\theta_k}}\left[\sum_i \hat{A}_i \nabla_\theta\log\pi_\theta(z_i \mid s_i)\right]. \tag*{(3)}

Accordingly, tokens with A^i>0\hat{A}_i > 0 are reinforced by the policy update, whereas those with A^i<0\hat{A}_i < 0 are suppressed.

Our goal. Generally, most positive-advantage tokens correspond to behaviors that are consistent with successful task completion. However, a small subset of tokens may exhibit undesirable behaviors yet receive positive advantages, causing them to be reinforced by the base RL objective. C3C^3 targets these sparse misassignments by selectively calibrating their advantages, while leaving the remaining tokens, the reward function, and the base advantage estimator unchanged.

Methodology

We define C3C^3 as a post-estimation operator for multi-turn agent reinforcement learning. An external transcript detector localizes an undesirable behavior, the base RL pipeline provides token-level advantages, and C3C^{3} corrects these advantages before the actor update. We first motivate this design through an empirical behavioral and credit audit, and then define the inputs, localization rule, and correction operator. Figure 2 summarizes the resulting workflow.

Overview of confidence-guided advantage correction workflow

Figure 2. Overview of confidence-guided advantage correction for multi-turn agent reinforcement learning. A detector localizes an undesirable-behavior span, the actor-side correction is applied only within that span, and its strength follows the policy confidence.

Motivation: Misguided Reinforcement and Local Credit

We investigate local credit dynamics through two representative undesirable behaviors, invalid actions and query loops, whose operational definitions and detection rules are provided in Appendix § 12.§ 1. Figure 1(a) illustrates representative event-level examples, while Figure 3 traces how undesirable-behavior occurrence and token-level advantages evolve during RL training.

Misguided reinforcement during RL training

Figure 3. Misguided reinforcement during RL training.

Observation 1: Undesirable behaviors reveal complex credit dynamics. As shown in Figure 3(a,Figure 3b), undesirable-behavior occurrence generally decreases during training for critic-based PPO, whereas critic-free GDPO shows no consistent decline and even rebounds at the later stage. PPO derives token-level advantages through a learned critic and GAE, while GDPO constructs relative advantages from group-level trajectory signals that combine task outcomes with undesirable-behavior penalties. These contrasting dynamics suggest that the same undesirable behaviors can evolve differently under different credit construction mechanisms, making local credit assignment inherently nontrivial.

Observation 2. Behavior suppression does not imply local credit alignment. Figure 3(c) shows that, among 63,511 valid tokens within detector-identified undesirable-behavior spans in an instrumented PPO run, 18,460 receive positive base advantage before correction, corresponding to 29.07%. Notably, this positive credit persists even as the number of undesirable-behavior tokens decreases during training. This indicates that reducing undesirable-behavior occurrence does not eliminate incorrect local credit, suggesting that trajectory-level supervision can still assign positive local credit to undesirable behaviors.

Together, these observations expose a failure mode in multi-turn RL: undesirable behaviors can remain positively reinforced at the token level even as they are suppressed at the trajectory level. The contrasting dynamics under PPO and GDPO further suggest that this issue is not specific to a particular credit construction mechanism, but can arise whenever trajectory-level signals are translated into local credit. This motivates a targeted intervention:

Instead of redesigning rewards or advantage estimation, can correcting positive credit for a small number of localized undesirable behaviors be sufficient to improve RL?

Local Credit Correction

Motivated by the local credit misalignment identified above, we aim to correct policy credit only where its direction is inconsistent with the detected local behavior, while preserving the credit assigned to the remaining parts of the trajectory. To this end, C3C^3 operates on the token-level advantages A^i\hat{A}_i produced by the base RL optimizer and the localized failure-token set B\mathcal{B}.

Formally, for a detected token i∈Bi \in\mathcal{B} with A^i>0\hat{A}_i > 0, we reverse the direction of its advantage and scale the correction by a token-specific gain:

A^i=−αiA^i,i∈B, A^i>0,(4)\hat{A}_i = -\alpha_i \hat{A}_i,\qquad i \in\mathcal{B},\ \hat{A}_i > 0, \tag*{(4)}

where αi\alpha_i controls the strength of the correction. Tokens whose advantages are already negative require no directional correction and are left unchanged.

Confidence-Guided Correction Strength. Localization determines where credit should be corrected, while the correction gain determines how strongly the intervention should be applied. We parameterize this gain using both the severity of the detected failure and the behavior policy’s confidence in the corresponding action.

For each detected token ii, let Je(i)J_{e(i)} denote the action span associated with the failure event covering that token. We measure the confidence of the behavior-policy snapshot πθk\pi_{\theta_k} using one of three aggregation strategies:

citoken(θk)=πθk(zi∣si),ciarith(θk)=1∣Je(i)∣∑j∈Je(i)πθk(zj∣sj),cigeo(θk)=exp⁡(1∣Je(i)∣∑j∈Je(i)log⁡πθk(zj∣sj)).(5)\begin{aligned} c_i^{\mathrm{token}}(\theta_k) &= \pi_{\theta_k}(z_i \mid s_i),\\ c_i^{\mathrm{arith}}(\theta_k) &= \frac{1}{\lvert J_{e(i)}\rvert}\sum_{j\in J_{e(i)}}\pi_{\theta_k}(z_j \mid s_j),\\ c_i^{\mathrm{geo}}(\theta_k) &= \exp\left(\frac{1}{\lvert J_{e(i)}\rvert}\sum_{j\in J_{e(i)}}\log\pi_{\theta_k}(z_j \mid s_j)\right). \tag*{(5)} \end{aligned}

We use the arithmetic span mean as the default confidence measure. For span-level aggregation, all tokens associated with the same failure event share the same confidence value, whereas token probability provides token-specific confidence. Since πθk\pi_{\theta_k} is the behavior-policy snapshot used to generate the trajectory, the confidence adapts as the policy evolves during training. During actor optimization, the confidence is detached from the computation graph and acts only as an adaptive correction coefficient.

For the main method, the correction gain is the selected policy confidence:

κi=ci(θk).(6)\kappa_i = c_i(\theta_k). \tag*{(6)}

Combining policy confidence with the event severity qiq_i, the final correction strength is

αi=κiqi.(7)\alpha_i = \kappa_i q_i. \tag*{(7)}

Complete Correction Operator. The resulting corrected advantage is

A~i={−κiqiA^i,i∈B, A^i>0,−βκiqi,i∈B, A^i=0,A^i,otherwise.(8)\widetilde{A}_i = \begin{cases} -\kappa_i q_i \hat{A}_i, & i \in\mathcal{B},\ \hat{A}_i > 0, \\ -\beta\kappa_i q_i, & i \in\mathcal{B},\ \hat{A}_i = 0, \\ \hat{A}_i, & \text{otherwise.} \end{cases} \tag*{(8)}

Thus, C3C^3 selectively reverses positive credit assigned to detected failure behaviors, while preserving credit that is already negative or unrelated to the detected failure. The optional coefficient β≥0\beta\ge0 handles exact zero-advantage cases. We set β=0\beta= 0 in all main experiments, such that zero-advantage tokens are also left unchanged.

Integration with Policy Optimization

Building on the simple advantage correction rule above, we next integrate it into the RL optimization process. By applying the correction directly to the actor-side learning signal, C3C^3 preserves the original reward and credit-construction procedure while allowing the same mechanism to be used across different optimization paradigms. We next describe how this correction affects the actor update and how it is instantiated in critic-based and critic-free RL.

Effect on the Actor Update. Ignoring clipping and regularization terms, the actor objective using the corrected advantages is

LactorC3=−∑iA~ilog⁡πθ(zi∣si).(9)\mathcal{L}^{C^3}_{\mathrm{actor}} = -\sum_i \widetilde{A}_i \log\pi_\theta(z_i \mid s_i). \tag*{(9)}

For a detected token with A^i>0\hat{A}_i > 0, C3C^3 changes its contribution from

−A^ilog⁡πθ(zi∣si)(10)-\hat{A}_i \log\pi_\theta(z_i \mid s_i) \tag*{(10)}

to

κiqiA^ilog⁡πθ(zi∣si),(11)\kappa_i q_i \hat{A}_i \log\pi_\theta(z_i \mid s_i), \tag*{(11)}

thereby reversing the direction of its policy-gradient contribution. Tokens outside the detected failure spans, as well as detected tokens with negative advantages, retain their original actor-side credit.

Critic-Based and Critic-Free Integration. For critic-based optimization, C3C^3 is applied after the original advantage estimation and actor-side normalization. In our PPO implementation, this corresponds to applying Eq. (8) after advantage whitening. The critic continues to be trained using the original return targets, so C3C^3 affects only the actor update.

For critic-free group-relative optimization, C3C^3 is applied after group-relative advantage construction, leaving the underlying credit construction unchanged. It corrects only the resulting actor-side advantages before the policy update, making the same operator applicable across different credit-construction paradigms.

Experiments

Experimental Setup

Implementation Details. For multi-turn search question answering, we use Qwen3-8B [28] with the SLIME framework [37]. The agent interacts with a retrieval environment built on the Wiki-Fixed corpus introduced in [32], using Qwen3-Embedding-8B [31] with 4096-dimensional embeddings and FAISS for retrieval. For WebShop [30], we use Qwen3-4B with full-parameter updates in the standard WebShop environment. All models are trained under their corresponding task protocols.

Baselines. We evaluate C3C^3 under two optimization families: critic-based optimization and critic-free group-relative optimization. For critic-based optimization, we compare standard PPO, PPO with a turn-level process reward, and PPO with C3C^3. The process-reward baseline incorporates detector events into return and advantage estimation, whereas C3C^3 directly corrects token-level advantages on detected spans. For critic-free group-relative optimization, we compare GDPO [14]

Algorithm 1 RL Optimization with Confidence-Guided Credit Correction (C3\mathrm{C}^{3})

Require: Actor policy πθ\pi_{\theta}, base RL optimizer O\mathcal{O}, detector D\mathcal{D} Ensure: Updated policy πθ\pi_{\theta}

  1. Roll out trajectories under πθk\pi_{\theta_k} and compute base advantages {A^i}\{\hat{A}_i\} using O\mathcal{O}

  2. Detect events E←D(τ)\mathcal{E} \leftarrow\mathcal{D}(\tau) and localize (Ie,Je,qe)(I_e, J_e, q_e)

  3. Initialize corrected advantages Ai←A^iA_i \leftarrow\hat{A}_i for all tokens

  4. for each event e∈Ee \in\mathcal{E} do

  5. ℓj=log⁡πθk(zj∣sj)\ell_j = \log\pi_{\theta_k}(z_j \mid s_j) for j∈Jej \in J_e

  6. ce←1∣Je∣∑j∈Jeexp⁡(ℓj)c_e \leftarrow\frac{1}{\lvert J_e\rvert}\sum_{j\in J_e}\exp(\ell_j)

  7. for each token i∈Iei \in I_e do

  8. qi←max⁡(qi,qe)q_i \leftarrow\max(q_i, q_e)

  9. if A^i>0\hat{A}_i > 0 then

  10. Ai←−qiceA^iA_i \leftarrow-q_i c_e \hat{A}_i

  11. end if

  12. end for

  13. end for

  14. Update πθ\pi_{\theta} using corrected advantages {Ai}\{A_i\}

with and without C3\mathrm{C}^{3}. GDPO follows the group-relative paradigm of GRPO but decouples the normalization of individual reward components. Configurations are provided in Appendix § 12.§ 2.

Evaluation Benchmarks and Metrics. For search question answering, we evaluate on seven multi-turn benchmarks: NQ [10], TriviaQA [9], PopQA [17], HotpotQA [29], 2WikiMultiHopQA [5], MuSiQue [22], and Bamboogle [20]. We report strict exact match (EM), with the overall score computed as the unweighted mean across the seven benchmarks. For WebShop, we report the task score and success rate on the fixed 500-instance benchmark split.

Main Results

We evaluate C3\mathrm{C}^{3} on two multi-turn agent environments, Search QA and WebShop, under both critic-based PPO and critic-free GDPO, reporting both final task performance and training dynamics.

Search Question Answering. Table 1 reports strict EM on seven multi-turn question-answering benchmarks. The complete benchmark-level evaluation dynamics are provided in Appendix § 13.§ 2. Under PPO, C3\mathrm{C}^{3} improves the average score from 47.79% to 50.20%, yielding an absolute gain of 2.41 points, with improvements on six of the seven benchmarks. The largest gain is observed on 2Wiki, where C3\mathrm{C}^{3} improves strict EM by 11.5 points, followed by a 2.6-point gain on Bamboogle. Under GDPO, C3\mathrm{C}^{3} improves the average score from 48.37% to 49.23%, an absolute gain of 0.86 points, with improvements on six of the seven benchmarks.

MethodSingle-Hop QAMulti-Hop QAAvg.
NQTriviaQAPopQAHotpotQA2WikiMusiqueBamb.
SFT35.2±0.235.2\pm0.259.2±0.259.2\pm0.237.8±0.037.8\pm0.048.9±0.248.9\pm0.264.1±0.364.1\pm0.322.6±0.222.6\pm0.246.2±1.246.2\pm1.244.87±0.1744.87\pm0.17
Critic-Based Optimization
PPO40.7±0.540.7\pm0.562.1±0.262.1\pm0.243.4±0.143.4\pm0.155.2±0.255.2\pm0.256.4±0.356.4\pm0.328.8±0.528.8\pm0.547.8±2.847.8\pm2.847.79±0.5047.79\pm0.50
+ process reward42.0±0.442.0\pm0.462.3±0.362.3\pm0.343.5±0.243.5\pm0.255.0±0.155.0\pm0.160.8±0.360.8\pm0.323.9±0.623.9\pm0.642.2±2.442.2\pm2.447.10±0.4347.10\pm0.43
+ C3C^339.5±0.339.5\pm0.363.5±0.163.5\pm0.145.0±0.345.0\pm0.355.6±0.155.6\pm0.167.9±0.367.9\pm0.329.7±0.129.7\pm0.150.4±0.050.4\pm0.050.20±0.1050.20\pm0.10
Group-Relative Optimization
GDPO40.0±0.440.0\pm0.461.0±0.261.0\pm0.243.2±0.243.2\pm0.255.5±0.155.5\pm0.163.1±0.263.1\pm0.229.1±0.529.1\pm0.546.8±1.446.8\pm1.448.37±0.1948.37\pm0.19
+ C3C^341.6±0.341.6\pm0.362.8±0.262.8\pm0.245.7±0.345.7\pm0.355.7±0.355.7\pm0.360.9±0.160.9\pm0.129.5±0.629.5\pm0.648.4±2.548.4\pm2.549.23±0.3549.23\pm0.35

Table 1. Strict EM (%) on seven QA benchmarks with Qwen3-8B. All entries report mean ±\pm standard deviation over four independent samples at temperature 0.8 with top-pp = 0.95. Bold marks the best mean within each optimization family.

Figure 4 shows the corresponding training and evaluation dynamics across the seven benchmarks. During training, C3\mathrm{C}^{3} generally reaches higher benchmark-level performance than the corresponding baselines, although the magnitude and timing of the gains vary across tasks. The periodic evaluation curves show a similar pattern at the aggregate level, with C3\mathrm{C}^{3} achieving higher evaluation performance at multiple stages of training rather than only at the final checkpoint.

Training and evaluation strict EM curves for PPO and GDPO

Figure 4. Panels (a,c) show smoothed training EM, and panels (b,d) show evaluation strict EM.

WebShop. We further evaluate C3C^3 on WebShop, a second multi-turn agent environment with a different task structure. Table 2 includes the common SFT initialization at step 0 and reports task score and success rate at each trained run’s best-success checkpoint. Under PPO, C3C^3 improves the peak success rate from 67.4% to 70.8%, with the task score increasing from 80.59 to 83.71.

MethodScoreSuccess
SFT67.7759.2
PPO80.5967.4
+ process77.8169.0
+ C3C^383.7170.8
GDPO84.8768.8
+ C3C^386.2971.4

Table 2. Best benchmark performance.

Under GDPO, C3C^3 improves success from 68.8% to 71.4% and the task score from 84.87 to 86.29. Figure 5 shows the corresponding training trajectories. Notably, PPO with process reward and GDPO both exhibit substantial performance degradation in the later stages of training, whereas neither PPO+C3C^3 nor GDPO+C3C^3 shows a comparable collapse within the evaluated training windows.

WebShop validation trajectories during training

Figure 5. WebShop validation trajectories during training.

Taken together, these results show that C3C^3 improves performance under both critic-based and critic-free optimization across the two multi-turn agent environments. The gains are reflected not only in final benchmark performance, but also in the training dynamics, where C3C^3 maintains stronger performance for longer before the late-stage degradation observed in the corresponding baselines.

Analysis

We further analyze how C3C^3 changes agent behavior and evaluate its key design choices through undesirable-behavior analysis and confidence aggregation ablations. Additional experiments and case studies are provided in Appendices § 13 and § 14.

Does C3 Change Agent Behavior?

We examine SFT, PPO, PPO with process reward, and PPO+C3C^3 on the same 51,713 Search QA questions under greedy decoding. Figure 6 separates invalid actions from query loops to examine how different types of undesirable behaviors respond to outcome-level training. PPO substantially reduces invalid actions relative to SFT, suggesting that straightforward tool-call failures can be effectively suppressed by trajectory-level training. Query loops, however, show a different pattern: the process-reward variant reaches a query-loop rate of 0.474%, nearly 3×3\times that of PPO (0.159%), and 245 of its 247 flagged trajectories contain query loops. In contrast, PPO+C3^{3} reduces the query-loop rate to 0.064%, a 2.5×2.5\times reduction relative to PPO and a 7.4×7.4\times reduction relative to the process-reward variant. These results suggest that trajectory-level training is effective for explicit action failures but less effective for redundant cross-turn behavior. C3^{3} complements this by correcting positive local credit on detected behavior spans, providing a more direct signal for behaviors that are not reliably suppressed by trajectory-level supervision.

Greedy evaluation plots showing undesirable-behavior rate, query-loop share, and rate versus accuracy

Figure 6. Greedy evaluation on 51,713 questions per arm.

Ablation of C3^{3} Design Choices

C3^{3} uses policy confidence to determine the strength of local credit correction. We compare token-level confidence with two span-level aggregation strategies. Table 3 reports the final macro strict EM, and Figure 7 shows the training trajectories.

Confidence ruleMacro strict EM (%)
Outcome-only reference47.61
Token probability45.21
Arithmetic span mean50.57
Geometric span mean48.94

Table 3. Final-checkpoint macro strict EM (%) for PPO confidence aggregation.

Smoothed training strict EM for different confidence aggregation strategies under PPO

Figure 7. Smoothed training strict EM for different confidence aggregation strategies under PPO.

Arithmetic span averaging achieves the highest final macro strict EM at 50.57%, outperforming geometric span averaging (48.94%), token-level probability (45.21%), and the outcome-only reference (47.61%), indicating that aggregating confidence over the entire undesirable-behavior span provides a more effective correction signal than token-level confidence. Figure 7 shows the same pattern throughout training: token-level confidence consistently underperforms both span-level variants, whereas arithmetic and geometric averaging remain nearly overlapping. Since token probability often reflects local generation uncertainty rather than event reliability, token-level correction can overweight formatting tokens, transition words, punctuation, or closing tags within a detected span. Thus, the key design choice is span-level rather than token-level confidence aggregation, while the difference between arithmetic and geometric averaging remains minor.

Conclusion

Trajectory-level supervision can assign positive advantages to spans corresponding to undesirable local behaviors, creating a mismatch between behavioral quality and policy credit. C3^{3} addresses this through confidence-guided local credit correction, reversing positive advantages on detected undesirable-behavior spans while leaving the task reward, returns, and critic targets unchanged. Across experiments, C3^{3} improves average exact match and reduces detected undesirable behaviors, highlighting that effective process supervision is not only about providing denser behavioral feedback, but also about translating that feedback into appropriate local policy credit.

AI Use Statement

During this work, we used LLM for dataset construction to generate candidate SFT trajectories for Search QA and WebShop under predefined prompting protocols. All generated trajectories were subsequently filtered using task-specific quality constraints before being included in the final training corpus. During manuscript preparation, we also used an LLM-based assistant for language editing, LaTeX troubleshooting, and local organization of supplementary material. All technical content, experimental design, analysis, and final manuscript revisions were reviewed and verified by the authors.

Ethics Statement

C3^{3} is designed to improve the reliability of tool-integrated LLM agents by discouraging invalid, unsupported, and redundant actions. Since these agents may interact with external environments, deployment should retain appropriate sandboxing, tool-permission controls, audit logs, and task-specific safety checks. Our experiments use agent-generated trajectory transcripts and do not involve human subject data. Any automated assistance used in preparing this manuscript was reviewed by the authors for factual accuracy and compliance with venue policies.

Reproducibility Statement

C3^{3} is implemented as a post-estimation operation on token-level advantages and does not require changes to the reward function, rollout collection, or critic. It can therefore be integrated into a policy-gradient implementation by applying the correction after advantage normalization and before the actor update. Across experiments, the compared arms share the same task data, SFT initialization within each setting, terminal task reward, prompt protocol, turn budget, detectors, and evaluation procedure. An anonymous code repository containing the implementation and training configuration is available at https://anonymous.4open.science/r/C3-CC78; the full repository will be released with the camera-ready version.

Data Construction

Search QA: 7-BMK

Evaluation Benchmark. We evaluate Search QA on seven multi-turn question-answering benchmarks: NQ [10], TriviaQA [9], PopQA, HotpotQA [29], 2WikiMultiHopQA [5], MuSiQue [22], and Bamboogle [20]. The fixed evaluation suite contains 51,713 questions in total. We use the Wiki-Fixed corpus [32] for passage retrieval and report strict exact match (EM) for each benchmark, with the aggregate score computed as the unweighted mean across the seven benchmarks. All compared methods are evaluated on the same benchmark suite under the same evaluation protocol.

WebShop

Evaluation Benchmark. We use WebShop [30] as a second multi-turn environment. Following the official WebShop protocol, training and evaluation use disjoint task splits. All reported main results are evaluated on the fixed 500-task benchmark, with task IDs held constant across all runs. A task is considered successful only when the environment accepts the final purchase; we additionally report the environment-provided task score.

SFT Initialization and RL Rollouts

StageDatasetSize
EvaluationNQ3,610
TriviaQA11,313
PopQA14,267
HotpotQA7,405
2WikiMultiHopQA12,576
MuSiQue2,417
Bamboogle125
7-BMK Total51,713
WebShop Benchmark500
SFTSearch QA3,000 → 9,329 rows
WebShop200 → 1,713 rows
RLSearch QA66,309 → 265,236 → ≈50,157
WebShopOfficial training split

Table 4. Summary of data scales used for SFT, RL training, and evaluation.

Search QA SFT. We construct the Search QA cold-start SFT corpus using GLM-5.2 [4]. Starting from 3,000 deduplicated source questions, GLM-5.2 generates executable search-and-answer traces under a strict-multihop contract, emphasizing evidence decomposition, one action per turn, and answer granularity. We retain traces that are strict-exact-match, format-valid, search-first, non-repeating, and free of invalid actions. The retained trajectories are deduplicated by source trajectory and normalized question, then converted into 9,329 action-level continuation rows, corresponding to an average of 3.11 supervised actions per source question.

WebShop SFT. We construct a separate WebShop append-SFT corpus using GLM-5.2 [4]. It contains 200 unique strict-success trajectories. We retain only trajectories for which the environment accepts the purchase and the trace contains no invalid or non-clickable action, server error, or missing task key. Each retained trajectory is expanded into one action-level row with the complete preceding history, current observation, admissible actions, and teacher action as the target, yielding 1,713 training rows.

Search QA RL Rollouts. The Search QA RL pool begins with 66,309 prompt-fixed residual questions. Four responses are sampled for each prompt, yielding 265,236 sampled responses. After filtering all-correct groups, approximately 50,157 prompt-response records remain for RL training. Each record contains the prompt, response, task reward, and process metadata. The rollout prompt set, task IDs, and evaluation benchmark are held fixed across optimizer arms.

RL Initialization. Search QA RL runs start from the Qwen3-8B Search QA SFT checkpoint, while WebShop RL runs start from the Qwen3-4B WebShop append-SFT checkpoint. These SFT checkpoints provide the common initialization for the corresponding RL runs.

Table 4 summarizes the data scales used for SFT, RL training, and evaluation.

Implementation Details

Event Detection

Action Parsing. The search agent emits one action per turn. A valid turn contains either a search action,

<think>...</think>
<search>...</search>,

or a final answer action,

<think>...</think>
<answer>...</answer>.

No text is allowed outside the corresponding tags. The parser performs strict validation together with a single-action recovery pass, so that recoverable formatting errors remain executable actions. Errors that affect only strict-format evaluation are retained in the evaluation logs but are not treated as undesirable-behavior events.

Behavior Categories. We consider two types of undesirable behaviors: invalid actions and query loops. Invalid actions include malformed or impermissible tool interactions, such as unclosed tool-call tags, unavailable tools, invalid tool arguments, or actions issued after a completed answer. Query loops refer to redundant tool interactions in which the same or nearly identical query is repeated across turns. The first occurrence is retained, while each subsequent occurrence is treated as an undesirable-behavior event.

Query-Loop Rules. We distinguish exact and near query loops. An exact query loop occurs when the normalized query exactly matches an earlier query in the same trajectory. A near query loop occurs when a non-identical query has normalized character-trigram Jaccard similarity of at least 0.9 and length of at least eight characters. Exact matches take precedence over near matches. Invalid actions and exact query loops are assigned severity 1.0, while near query loops are assigned severity 0.5. Before query comparison, we apply Unicode-NFKC normalization, case folding, zero-width character removal, punctuation-to-space conversion, and whitespace collapsing.

Undesirable behaviorDetection ruleSeverity
Invalid actionMalformed or impermissible action1.0
Query loopExact repetition of an earlier normalized query1.0
Query loopNear repetition: trigram Jaccard ≥0.9\ge0.9, length ≥8\ge80.5

Table 5. Rule-based detector for undesirable behaviors.

Event Representation. The detector is implemented as a set of rule-based checks over generated actions and tool interactions. Each detected event is represented as

e=(Ie,de,qe,Je),(12)e = (I_e, d_e, q_e, J_e), \tag*{(12)}

where IeI_e is the localized event span, ded_e is the behavior category, qe∈(0,1]q_e \in(0,1] is its severity, and Je⊆IeJ_e \subseteq I_e is the corresponding action span. The event span IeI_e denotes where C³ corrects credit, whereas JeJ_e is used to estimate the policy confidence that controls how strongly the correction is applied.

Span Localization. For each detected event ee, we use the complete turn responsible for the event as its event span IeI_e, and the parsed tool or answer action within that turn as its action span JeJ_e. If the action cannot be parsed, we set Je=IeJ_e = I_e. No-answer cases, truncation, search-only termination, and strict-format-only failures are tracked separately and do not generate detector events. When multiple events overlap, each token receives the maximum severity among the events covering it:

qi=max⁡e:i∈Ieqe,B={i:qi>0}.(13)q_i = \max_{e:i\in I_e} q_e,\qquad\mathcal{B} = \{i:q_i>0\}. \tag*{(13)}

Tokens outside B\mathcal{B} are unaffected by C3\mathrm{C}^{3}.

Reward and Credit Construction

Outcome and Process Reward. Let AA indicate that a final answer is present, SS that a search preceded it, YY a relaxed exact match, and TT truncation:

Routcome={0,T=1,0.2AS+1.0YS,T=0.(14)R_{\mathrm{outcome}} = \begin{cases} 0, & T=1,\\ 0.2AS + 1.0YS, & T=0. \end{cases} \tag*{(14)}

Thus, a searched incorrect answer receives a small answer-presence reward, while a searched correct answer receives the larger correctness reward. The terminal-PPO arm adds the process penalty to this outcome reward at the terminal position. The process-PPO arm instead places the same type of penalty at the turn boundary where the undesirable behavior occurs.

Credit Construction. The five training arms differ in both the signals used to construct credit and the point at which detector information enters the optimization. Terminal PPO adds the process penalty directly to the terminal outcome, after which PPO computes GAE. Process-reward PPO instead assigns the penalty to the turn where the undesirable behavior occurs and includes it in the return before GAE. PPO+C3\mathrm{C}^{3} uses the outcome reward and leaves the base advantage construction unchanged, applying a localized actor-side correction only after the base advantages have been computed. GDPO constructs group-relative credit from outcome, format, and process signals; GDPO+C3\mathrm{C}^{3} applies the same localized post-estimation correction to that group-relative credit.

Process-Reward PPO. For the process-reward PPO baseline, detected events are converted into turn-level penalties. Invalid actions and exact query loops receive the full penalty, while near query loops receive half strength. These penalties are accumulated at the corresponding turn boundaries and incorporated into the return before advantage estimation. In contrast, C3\mathrm{C}^{3} uses the same behavioral localization but does not modify the task reward or return.

GDPO Credit Construction. For GDPO, each four-response prompt group provides three sample-level axes: outcome, format, and negative process cost. Each axis is normalized within the group, the normalized axes are summed, and the resulting score is normalized over the rollout batch:

zma=xma−μgaσga+10−6,AmGDPO=∑azma−μBσB+10−6.(15)z^{a}_{m}=\frac{x^{a}_{m}-\mu^{a}_{g}}{\sigma^{a}_{g}+10^{-6}},\qquad A^{\mathrm{GDPO}}_{m}=\frac{\sum_{a} z^{a}_{m}-\mu_{\mathcal{B}}}{\sigma_{\mathcal{B}}+10^{-6}}. \tag*{(15)}

For GDPO+C3\mathrm{C}^{3}, this advantage is passed to C3\mathrm{C}^{3} without changing the original GDPO normalization.

Training and Evaluation Setup

Models and Environments. For Search QA, we use Qwen3-8B with full-parameter updates and a fixed Wiki-Fixed retrieval corpus [32]. Retrieval uses Qwen3-Embedding-8B representations with 4096 dimensions and exact inner-product search with a top-3 cutoff. PPO and GDPO use the same corpus, encoder, index type, and retrieval cutoff. WebShop uses Qwen3-4B with full-parameter updates in the standard WebShop environment.

Initialization and Training. Search QA RL runs are initialized from the corresponding Qwen3-8B SFT checkpoint, while WebShop RL runs use the Qwen3-4B WebShop SFT checkpoint. Within each comparison family, the initialization, task prompts, rollout budgets, and evaluation definitions are kept fixed. For Search QA, PPO uses GAE with batch whitening and a learned critic, while GDPO uses group-relative credit without a learned critic. Each rollout group contains 64 prompts with four responses per prompt. Generation uses temperature 1, top-pp = 1, and at most five turns. Models are trained with full-parameter bf16 updates using Adam and gradient clipping. All paired baseline and C3C^{3}arms use the same configured RL training seed(s), with baseline and C3C^{3} runs matched seed-by-seed within each comparison family. This controls the paired training randomness; evaluation-seed variation from auxiliary WebShop runs is reported separately and should not be interpreted as additional RL training runs.

Evaluation. Search QA evaluation uses greedy decoding with the common strict multi-hop prompt. The evaluation suite contains seven benchmarks and 51,713 questions. The evaluator extracts the final answer and computes normalized exact match, with macro scores averaging equally across benchmarks. The multi-sample results reported in the main text use temperature 0.8 and top-pp = 0.95. For WebShop, success is determined by the environment’s final purchase outcome, while task score is reported as the environment score.

Additional Experiments

Official T2PO WebShop Reproduction with C3

To further verify that C3C^{3} functions as a plug-in credit correction, we integrate it into the official T2T^{2}PO WebShop recipe. T2T^{2}PO ([25]) is an uncertainty-aware exploration-control method for multi-turn agent reinforcement learning that combines token-level and turn-level mechanisms to improve exploration efficiency while preserving the underlying task reward and policy optimization objective. Our reproduction follows the official T2T^{2}PO training recipe and hyperparameter configuration, with C3C^{3} inserted only after the base T2T^{2}PO actor-side advantages are constructed.

MethodSuccess (%)Iter.Task score (%)Iter.
T2PO81.27083.970
T2PO+C3C^{3}82.212086.0130

Table 6. Best validation performance.

The T2T^{2}PO and T2T^{2}PO+C3C^{3} runs share the same SFT initialization, training protocol, and rollout configuration. The only modification is that C3C^{3} is applied after the base T2T^{2}PO actor-side advantages are constructed, leaving the underlying optimization pipeline unchanged.

Figure 8 compares the validation trajectories through iteration 130. T2T^{2}PO+C3C^{3} reaches a best success rate of 82.2%, compared with 81.2% for T2T^{2}PO, and improves the best task score from 83.9% to 86.0%.

Figure 8. Validation trajectories for official T2PO and T2PO+C3C^{3}. The two panels show success rate and task score; gray diamonds mark the shared SFT initialization.

Periodic strict-EM evaluation curves for NQ, TriviaQA, PopQA, HotpotQA, 2Wiki, MuSiQue, Bamboogle, and the 7-BMK macro mean under the PPO family

Figure 9. Periodic strict-EM evaluation curves for the seven Search QA benchmarks under the PPO family. The bottom-right panel shows the unweighted 7-BMK macro mean.

Seven-Benchmark Evaluation Dynamics

Figures 9 and 10 decompose the macro evaluation curve into the seven Search QA benchmarks, showing how each task contributes to the overall trend under PPO and GDPO. Each point corresponds to the same periodic evaluation checkpoint used in the main training dynamics.

The decomposition shows that the macro improvement arises from a distributed effect across benchmarks rather than a single dominant task. Under PPO, C3^{3} provides its clearest and most persistent gains on 2Wiki, with additional improvements on PopQA and Bamboogle, while NQ remains broadly stable. Under GDPO, C3^{3} improves NQ, TriviaQA, PopQA, HotpotQA, and MuSiQue at the final checkpoint, whereas 2Wiki shows no corresponding gain in this run. The benchmark-level curves also reveal that different tasks peak at different stages of training, indicating that aggregate curves can obscure meaningful intermediate behavior.

Figure 10. Periodic strict-EM evaluation curves for the seven Search QA benchmarks under the GDPO family. The bottom-right panel shows the unweighted 7-BMK macro mean.

Diagnosing Late WebShop Collapse

The WebShop training curves reveal a pronounced late-stage collapse for reward-side process PPO, while outcome-only GDPO exhibits a smaller late degradation. To characterize this behavior, we analyze the same 500-task WebShop benchmark used for periodic validation during training.

MethodSuccessLate-stage signature
Process PPO69.0%→11.2%69.0\% \to11.2\%Runaway reasoning, repetition, and severe truncation.
GDPO68.8%→40.2%68.8\% \to40.2\%Shortened trajectories that terminate before purchase.
PPO+C3^{3}66.2%→60.8%66.2\% \to60.8\%No comparable collapse in the same window.
GDPO+C3^{3}71.4%→70.0%71.4\% \to70.0\%Stable performance through late training.

Table 7. Late-stage WebShop behavior on the 500-task validation benchmark.

To further diagnose the process-PPO collapse, Table 8 summarizes turn-level statistics at three representative checkpoints.

Statistic259319399Change (259→399259 \to399)
Success rate (%)69.026.611.2−57.8-57.8 pt
Truncated responses (%)0.266.686.2+86.0+86.0 pt
Trailing <think> median (chars)3287,9628,432≈26×\approx26\times
Generated tokens / trajectory1,0432,5362,667+155%+155\%
Completed turns / trajectory18.911.27.7−59%-59\%
Mean assistant chars / turn9511,2451,354+42%+42\%
Total trajectory chars17,96518,73916,648−7%-7\%

Table 8. Turn-level signature of the process-PPO collapse.

The collapse is characterized by a runaway final reasoning block rather than a uniformly longer interaction. The median trailing <think> segment expands from 328 to 8,432 characters, while the number of completed turns falls from 18.9 to 7.7. Generated length increases because the unfinished reasoning block consumes the response budget, whereas the overall trajectory becomes shorter because later turns never occur. Search frequency and detector-targeted invalid actions remain comparatively stable, indicating that the collapse reflects a termination failure in the final reasoning stage rather than an increase in the targeted undesirable behaviors.

By contrast, both C3^{3} variants avoid a comparable late-stage collapse over the same training window. Since C3^{3} modifies only localized actor-side credit after advantage construction while leaving reward and return estimation unchanged, the observed stability is consistent with its localized intervention mechanism.

How Does C3 Affect Interaction Behavior?

C3^{3} operates by correcting local credit assigned to detected undesirable behaviors rather than directly controlling the number of tool interactions. Its effect on interaction behavior may therefore depend on both the underlying optimization paradigm and the requirements of the task. We examine this effect by comparing the mean number of searches per question across the PPO and GDPO families. Figure 11 reports the absolute search counts for all seven benchmarks, with single-hop and multi-hop tasks shown separately.

Figure 11. Mean searches across seven benchmarks. Shaded columns denotes single-hop tasks.

Under PPO, C3C^3 changes retrieval behavior differently across task types. On the three single-hop benchmarks, C3C^3 reduces the mean number of searches by 0.09–0.17 per question relative to outcome-only PPO. In contrast, C3C^3 increases the number of searches on the multi-hop benchmarks. This pattern suggests that C3C^3 does not simply push the agent toward shorter or longer interaction trajectories. Rather, after correcting credit on detected undesirable behaviors, the resulting policy can allocate retrieval differently depending on the information requirements of the task. In particular, reducing unnecessary interactions on simpler tasks does not preclude retaining additional retrieval on tasks that require multi-hop information gathering.

The behavior under GDPO is different. Compared with outcome-only GDPO, GDPO+C3C^3 generally increases the number of searches across the benchmarks. This difference from PPO highlights that the behavioral effect of the same local credit correction is not invariant to the underlying optimization paradigm. PPO and GDPO construct token-level credit differently, so correcting the same type of local positive credit can lead to different changes in the resulting interaction policy. Importantly, the increase in search frequency under GDPO should not be interpreted as C3C^3 directly encouraging more retrieval, since retrieval frequency is not an explicit optimization target of the method.

Taken together, these results show that C3C^3 does not impose a fixed preference for shorter or longer interaction trajectories. Instead, its behavioral effect emerges indirectly through local credit correction and varies with both the optimization paradigm and the task. This distinction is important because it suggests that the performance gains from C3C^3 should not be understood simply in terms of performing more or fewer tool interactions. C3C^3 changes which local behaviors receive policy credit, while the resulting interaction allocation is determined by the broader optimization process and task requirements.

Case Studies

Prompt Interfaces

The panels below reproduce the complete prompt interfaces used in the experiments. Braced fields are filled by the task runner; the concrete values used by the saved trajectories are shown separately in the case studies. Panel boundaries are typographic only and do not indicate omitted prompt content.

Initial Search QA prompt. At the initial turn, the runner sends one system instruction followed by the user question. The system instruction is split into the panels below solely to make the appendix readable; the panels preserve the original order and wording.

Role and objective

You are solving a retrieval-based question answering task. Some questions can be answered directly, while others require one or more searches to gather evidence. Your goal is to answer correctly, not to minimize the number of searches. Search whenever the available evidence is insufficient to directly support the answer.

Decision process

## Decision Process

For every turn:

### Step 1. Understand the question.

Determine what information is required to answer the original question.

The question may be:

- Direct: the answer is already known from the retrieved evidence.
- Single-hop: one search is sufficient.
- Multi-hop: multiple searches are required because the first search only reveals an intermediate entity, title, date, location, or relation.

### Step 2. Examine the available evidence.

Ask yourself:

Does the available evidence directly answer the original question?

If yes, output <answer>...</answer>.

If no, identify the most important missing fact and search for it. Output <search>...</search>.

Do not answer from memory when a targeted search can verify the claim.

Search strategy

## Search Strategy

Each search should retrieve one missing fact.

Good search queries usually consist of:
- entity + property
- entity + relation
- title + attribute

Examples:

Titanic director
Alan Turing birthplace
The Beatles members
Mount Everest elevation

For multi-hop questions:
- The first search may only identify an intermediate entity.
- Use the newly discovered entity to construct the next search.
- Continue until the retrieved evidence directly supports the final answer.

Do not repeat the same search query. If a result is ambiguous, incomplete, or off-topic, issue a more specific search instead of guessing.

Evidence sufficiency

## Evidence Sufficiency

Evidence is sufficient only if it directly supports the final answer to the original question.

The following alone are not sufficient:
- an intermediate entity
- a related title
- a date
- a location
- a relationship
- a weak or indirect match

If only intermediate information has been retrieved, search again.

Output format

## Output Format

Every assistant turn must contain exactly one action.

Either
<think>...</think>
<search>...</search>

or
<think>...</think>
<answer>...</answer>

Never output both <search> and <answer> in the same turn.
Never output text outside these tags.
Always begin with <think>.

Few-shot examples

## Examples

### Example 1 (single-hop)
Question: What is the capital of France?
<think>I need to verify the capital of France.</think>
<search>France capital</search>

Later:
<think>The retrieved evidence directly states the capital.</think>
<answer>Paris</answer>

### Example 2 (multi-hop)
Question: Who directed the movie starring the actor who played Jack Dawson?
<think>I first need to identify the movie associated with Jack Dawson.</think>
<search>Jack Dawson movie</search>

Later:
<think>The movie has been identified, but the director is still unknown.</think>
<search>Titanic director</search>

Later:
<think>The retrieved evidence directly answers the question.</think>
<answer>James Cameron</answer>

### Example 3 (ambiguous search)
<think>The previous search returned multiple unrelated entities. I should make the query more specific.</think>
<search>Mercury planet orbital period</search>

Rules and user message

## Rules
1. Answer only when the retrieved evidence directly supports the original question.
2. Search whenever an important fact is still missing.
3. Do not infer missing facts without supporting evidence.
4. Do not repeat previous search queries.
5. If uncertain, search rather than guess.
6. Produce exactly one action per turn.
7. Invalid output format may be rejected.

--- user message ---
Question: {question}

After each search, the runner appends the retrieved passages and applies the following compact check before the next assistant turn:

Search observation guidance

EVIDENCE_CHECK: If the evidence answers the question, output one <think>...</think> followed by <answer>short final answer</answer>; otherwise output one <think>...</think> followed by <search>one targeted query</search>. Do not repeat queries or write outside the tags.

Initial WebShop prompt. At the initial turn, the runner instantiates the task description, current observation, and admissible actions in the instruction below. The complete interface is split into ordered panels for readability; at runtime the panels are concatenated without changing their content or order.

Task and checklist

You are an expert autonomous agent operating in the WebShop e-commerce environment.

Your task is to complete this shopping request: {task_description}

Maintain a concise checklist of the explicit requirements: product category, required attributes or features, price limit, and required options such as color, size, flavor, quantity, or capacity.

Choose the admissible action that makes the most direct progress toward a valid purchase.

Decision strategy: search and filter

Decision strategy:

  1. SEARCH If no suitable candidate is visible, use a concise query containing the most distinctive product requirements.

  1. FILTER On a results page, inspect visible titles, attributes, and prices. Open only a plausible candidate. Do not click an irrelevant product merely because it is visible.

Decision strategy: verify and select

  1. VERIFY On a product page, verify the explicit requirements using the visible title, price, and page information. Use Description or Features only when necessary to resolve a missing requirement.

  1. SELECT OPTIONS If a required option is visible and unselected, select it before buying.

Decision strategy: purchase and recover

  1. PURCHASE When all explicit requirements are satisfied or sufficiently verified, all required options are selected, and Buy Now is admissible, click Buy Now.

  1. RECOVER If the candidate fails an explicit requirement, return to search results and use a refined query, another visible candidate, or the next page. Do not repeat the same failed query or candidate.

  1. AVOID LOOPS Do not repeatedly inspect the same information or navigate without gaining evidence relevant to the shopping request.

Action rules

Action rules:

  • search[<your query>] is a template; replace it with a concrete query.

  • Never output a literal placeholder such as <your query> or concise keywords.

  • For click actions, copy the exact admissible action.

  • Prefer search[...] over click[search] when a search action is available.

  • Choose exactly one admissible action.

  • Keep the reasoning concise: one to three sentences.

Your reasoning MUST be enclosed within <think> </think> tags. Your selected action MUST be enclosed within <action> </action> tags. Do not output any text outside these two tags.

Initial observation and output

Current observation:

{current_observation}

Admissible actions:
[
{available_actions}
]

Return exactly:
<think>One to three concise sentences of reasoning.</think>
<action>Exactly one admissible action.</action>

For later WebShop turns, the runner appends only the new observation and admissible-action block; the task description and decision strategy are not repeated:

Later-turn append block

Current observation:
{current_observation}
Admissible actions:
[
{available_actions}
]
Return exactly:
<think>One to three concise sentences of reasoning.</think>
<action>Exactly one admissible action.</action>

Search QA: Complete Multi-hop Trajectory

Task and expected answer

Question. “Who said one of the greatest thinkers was the person who proposed explanations for the origins of earthquakes and the formation of mountains?” The expected answer is George Sarton. Each column below shows the complete recorded interaction for one policy, turn by turn.

Complete Search QA case presentation showing the outcome-only policy and the $C^3$-corrected policy

Figure 12. Complete Search QA case presentation. The outcome-only policy repeats the original relation, while the C3C^3-corrected policy separates entity identification from attribution and returns the requested person.

Outcome-only policy

Turn 1: initial search

Input question: the question in the header above.

Action: <search>who said one of the greatest thinkers was the person who proposed explanations for the origins of earthquakes and the formation of mountains</search>

Turn 2: repeated attribution search

Retrieved intermediate entity: Ibn Sina.

Action: <search>who attributed the statement ‘‘one of the greatest thinkers was the person who proposed explanations for the origins of earthquakes and the formation of mountains’’</search>

Final response: incorrect

<answer>Ibn Sina</answer>

C3C^3-corrected policy

Turn 1: entity search

Input question: the question in the header above.

Action: <search>who proposed explanations for origins of earthquakes and formation of mountains</search>

Turn 2: attribution search

Retrieved intermediate entity: Ibn Sina.

Action: <search>who called Ibn Sina one of the greatest thinkers</search>

Final response: correct

<answer>George Sarton</answer>

Interpretation. The useful second turn is a new evidence bridge rather than a longer trajectory. The side-by-side presentation makes the local fork visible: the baseline repeats the relation and answers with the intermediate entity, while the corrected policy verifies the attribution before answering.

WebShop: Complete Recovery Before Purchase

Task and environment

Task. “Find me loose fit women’s tops, tees & blouses with short sleeve, long sleeve with color a01#black, and size large, and price lower than 40.00 dollars.” The two columns show the complete before/after interaction for this same task, including every recorded environment action.

Complete WebShop case presentation showing before-correction incomplete purchase and after-correction successful recovery interaction panels

Figure 13. Complete WebShop case presentation. The later policy returns to search after the first candidate fails an explicit requirement, refines the query, and verifies the replacement before purchase.

Before correction: incomplete purchase

Turn 1: search

search[women’s tops tees blouses slim fit loose fit long sleeve short sleeve black large]

Turn 2: open candidate

click[b09npml43m]

Turn 3: invalid option

click[a01#black]

Recorded environment flag: non-clickable option.

Turn 4: select size

click[large]

Turn 5: final environment result

click[buy now]

Purchase accepted with score 0.5714; task outcome is unsuccessful.

After correction: successful recovery

Turn 1: initial search

search[women’s tops tees blouses long sleeve short sleeve black large]

Turn 2: open first candidate

click[b09npml43m]

Turn 3: return to results

click[back to search]

Turn 4: refined search

search[women’s tops blouses tees long sleeve short sleeve a01 black large]

Turns 5–8: select and inspect replacement

click[b094q7b3ss]

click[a01#black]

click[large]

click[description]

Turns 9–11: inspect and return

click[< prev]

click[features]

click[< prev]

Turn 12: final environment result

click[buy now]

Purchase accepted with score 1.0; task outcome is successful.

Interpretation. The important behavioral change is recovery from a bad candidate, not merely the number of actions. The full turn layout exposes the invalid option, the return-to-search decision, and the final purchase.

WebShop: Complete Failure and Recovery Contrast

One task and two complete trajectories

The same shopping request is evaluated under an outcome-only policy and a C3C^3-corrected policy. The full turn sequence makes the local decision fork visible: one policy purchases after repeatedly selecting the wrong option, whereas the other changes candidate before purchase.

Complete WebShop failure and recovery trajectories comparing an outcome-only policy with a C3-corrected policy

Figure 14. Complete WebShop failure/recovery case. The outcome-only trajectory keeps the first candidate and repeats an invalid option; the C3C^3 trajectory returns to search, changes candidate, and completes the requested purchase.

Interpretation. The contrast is about which local action receives credit, not about making the trajectory uniformly longer or shorter. The corrected policy changes candidate after the first result and reaches the required option set before buying.

References

  1. [1]DeepSeek-AI. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948, 2025.DOI
  2. [2]Chanakya Ekbote, Vijay Lingam, Sujay Sanghavi, Jun Huan, Behrooz Omidvar-Tehrani, Anoop Deoras, and Stefano Soatto. Murphy: Feedback-aware grpo with retrospective credit assignment for multi-turn code generation. arXiv preprint arXiv:2511.07833, 2025.arxiv.org/abs/2511.07833
  3. [3]Lang Feng, Zhenghai Xue, Tingcong Liu, and Bo An. Group-in-group policy optimization for llm agent training, 2025. URL https://arxiv.org/abs/2505.10978.
  4. [4]GLM-5 Team. Glm-5: From vibe coding to agentic engineering, 2026. URL https://arxiv.org/abs/2602.15763.
  5. [5]Xanh Ho, Anh-Khoa Duong Nguyen, Saku Sugawara, and Akiko Aizawa. Constructing a multi-hop qa dataset for comprehensive evaluation of reasoning steps. In Proceedings of the 28th International Conference on Computational Linguistics, 2020.
  6. [6]Senkang Hu, Yong Dai, Xudong Han, Zhengru Fang, Yuzhi Zhao, Sam Tak Wu Kwong, and Yuguang Fang. Self-induced outcome potential: Turn-level credit assignment for agents without verifiers. arXiv preprint arXiv:2605.04984, 2026.arxiv.org/abs/2605.04984
  7. [7]Ai Jian, Xiaoyun Zhang, Wanrou Du, Jingqing Ruan, Jiangbo Pei, Weipeng Zhang, Ke Zeng, and Xunliang Cai. Trust-sql: Tool-integrated multi-turn reinforcement learning for text-to-sql over unknown schemas, 2026. URL https://arxiv.org/abs/2603.16448.
  8. [8]Bowen Jin, Hansi Zeng, Zhenrui Yue, Jinsung Yoon, Sercan Arik, Dong Wang, Hamed Zamani, and Jiawei Han. Search-rl: Training llms to reason and leverage search engines with reinforcement learning. arXiv preprint arXiv:2503.09516, 2025.
  9. [9]Mandar Joshi, Eunsol Choi, Daniel S. Weld, and Luke Zettlemoyer. Triviaqa: A large scale distantly supervised challenge dataset for reading comprehension. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, 2017.arxiv.org/abs/1705.03551
  10. [10]Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, Kristina Toutanova, Llion Jones, Matthew Kelcey, Ming-Wei Chang, Andrew M. Dai, Jakob Uszkoreit, Quoc Le, and Slav Petrov. Natural questions: A benchmark for question answering research. Transactions of the Association for Computational Linguistics, 7:452–466, 2019.DOI
  11. [11]Junbo Li, Peng Zhou, Rui Meng, Meet P. Vadera, Lihong Li, and Yang Li. Turn-ppo: Turn-level advantage estimation with ppo for improved multi-turn rl in agentic llms. arXiv preprint arXiv:2502.17008, 2025.
  12. [12]Sijia Li, Yuchen Huang, Zifan Liu, Yanping Li, Jingjing Fu, Li Zhao, Jiang Bian, Ling Zhang, Jun Zhang, and Rui Wang. Gear: Granularity-adaptive advantage reweighting for llm agents via self-distillation. arXiv preprint arXiv:2605.11853, 2026.arxiv.org/abs/2605.11853
  13. [13]Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let’s verify step by step. arXiv preprint arXiv:2305.20050, 2023.arxiv.org/abs/2305.20050
  14. [14]Shih-Yang Liu, Xin Dong, Ximing Lu, Shizhe Diao, Peter Belcak, Mingjie Liu, Min-Hung Chen, Hongyu Yin, Yu-Chiang Frank Wang, Kwang-Ting Cheng, Yejin Choi, Jan Kautz, and Pavlo Molchanov. Gdpo: Group reward-decoupled normalization policy optimization for multi-reward rl optimization, 2026. URL https://arxiv.org/abs/2601.05242.
  15. [15]Zhicong Lu, Zichuan Lin, Wei Jia, Changyuan Tian, Deheng Ye, Peiguang Li, Li Jin, Nayu Liu, Guangluan Xu, and Wei Feng. Hisr: Hindsight information modulated segmental process rewards for multi-turn agentic reinforcement learning. arXiv preprint arXiv:2603.18683, 2026.arxiv.org/abs/2603.18683
  16. [16]Lichao Ma, Yang Sun, Shuaitao Zhao, Yangyi Fang, Cong Qin, Xiaoliang Fu, Yuhang Tian, Yuchen Wei, Junbo Zhu, Yang Wei, Lu Pan, and Jiaye Lin. How much, then, where: Credit-conserving action-to-token allocation for multi-turn agent reinforcement learning. arXiv preprint arXiv:2608.07118, 2026.arxiv.org/abs/2608.07118
  17. [17]Alex Mallen, Akari Asai, Victor Zhong, Rajarshi Das, Daniel Khashabi, and Hannaneh Hajishirzi. When not to trust language models: Investigating effectiveness of parametric and non-parametric memories. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics, 2023.
  18. [18]Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems, 35:27730–27744, 2022.arxiv.org/abs/2203.02155
  19. [19]Jiangweizhi Peng, Yuanxin Liu, Ruida Zhou, Charles Fleming, Zhaoran Wang, Alfredo Garcia, and Mingyi Hong. Hierarchical reinforcement learning with explicit credit assignment for large language model agents. arXiv preprint arXiv:2602.16165, 2026.arxiv.org/abs/2602.16165
  20. [20]Ofir Press, Muru Zhang, Sewon Min, Ludwig Schmidt, Noah A. Smith, and Mike Lewis. Measuring and narrowing the compositionality gap in language models. In Findings of the Association for Computational Linguistics: EMNLP 2023, 2023.arxiv.org/abs/2210.03350
  21. [21]John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms, 2017. URL https://arxiv.org/abs/1707.06347.
  22. [22]Harsh Trivedi, Niranjan Balasubramanian, Tushar Khot, and Ashish Sabharwal. Musique: Multihop questions via single-hop question composition. Transactions of the Association for Computational Linguistics, 10:539–554, 2022.arxiv.org/abs/2108.00573
  23. [23]Daoyu Wang, Qingchuan Li, Mingyue Cheng, Jie Ouyang, Shuo Yu, Qi Liu, and Enhong Chen. Steppo: Step-aligned policy optimization for agentic reinforcement learning. arXiv preprint arXiv:2604.18401, 2026a.
  24. [24]Guoqing Wang, Sunhao Dai, Guangze Ye, Zeyu Gan, Wei Yao, Yong Deng, Xiaofeng Wu, and Zhenzhe Ying. Information gain-based policy optimization: A simple and effective approach for multi-turn search agents. arXiv preprint arXiv:2510.14967, 2025a.arxiv.org/abs/2510.14967
  25. [25]Haixin Wang, Hejie Cui, Chenwei Zhang, Xin Liu, Shuowei Jin, Shijie Geng, Xinyang Zhang, Nasser Zalmout, Zhenyu Shi, and Yizhou Sun. T2PO: Uncertainty-guided exploration control for stable multi-turn agentic reinforcement learning. arXiv preprint arXiv:2605.02178, 2026b.arxiv.org/abs/2605.02178
  26. [26]Junzhe Wang, Zhiheng Xi, Yajie Yang, Hao Luo, Shihan Dou, Tao Gui, and Qi Zhang. Enhancing llm-based search agents via contribution weighted group relative policy optimization. arXiv preprint arXiv:2604.14267, 2026c.arxiv.org/abs/2604.14267
  27. [27]Ziliang Wang, Xuhui Zheng, Kang An, Cijun Ouyang, Jialu Cai, Yuhang Wang, and Yichao Wu. Stepsearch: Igniting llms search ability via step-wise proximal policy optimization. arXiv preprint arXiv:2505.15107, 2025b.arxiv.org/abs/2505.15107
  28. [28]An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengchen Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.arxiv.org/abs/2505.09388
  29. [29]Zhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William W. Cohen, Ruslan Salakhutdinov, and Christopher D. Manning. Hotpotqa: A dataset for diverse, explainable multi-hop question answering. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, 2018.arxiv.org/abs/1809.09600
  30. [30]Shunyu Yao, Howard Chen, John Yang, and Karthik Narasimhan. Webshop: Towards scalable real-world web interaction with grounded language agents. In Advances in Neural Information Processing Systems, 2022.arxiv.org/abs/2207.01206
  31. [31]Yanzhao Zhang, Mingxin Li, Dingkun Long, Xin Zhang, Huan Lin, Baosong Yang, Pengjun Xie, An Yang, Dayiheng Liu, Junyang Lin, Fei Huang, and Jingren Zhou. Qwen3 embedding: Advancing text embedding and reranking through foundation models. arXiv preprint arXiv:2506.05176, 2025.arxiv.org/abs/2506.05176
  32. [32]Yibo Zhao, Zichen Ding, Jiayi Wu, Zun Wang, and Xiang Li. Retrieval, reward, and training protocols: What matters in training search agents?, 2026. URL https://arxiv.org/abs/2605.27881.
  33. [33]Yuxiang Zheng, Dayuan Fu, Xiangkun Hu, Xiaojie Cai, Lyumanshan Ye, Pengrui Lu, and Pengfei Liu. Deepresearch: Scaling deep research via reinforcement learning in real-world environments. arXiv preprint arXiv:2504.03160, 2025.arxiv.org/abs/2504.03160
  34. [34]Yifei Zhou, Andrea Zanette, Jiayi Pan, Sergey Levine, and Aviral Kumar. Archer: Training language model agents via hierarchical multi-turn rl. arXiv preprint arXiv:2402.19446, 2024.arxiv.org/abs/2402.19446
  35. [35]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.arxiv.org/abs/2503.15478
  36. [36]Qiang Zhu, Jiajun Wu, and Longyi Wang. Lotapo: Leave-one-turn attribution for self-generated process rewards in multi-turn search reasoning. arXiv preprint arXiv:2607.13501, 2026.arxiv.org/abs/2607.13501
  37. [37]Zilin Zhu, Chengxing Xie, Xin Lv, and slime Contributors. slime: An llm post-training framework for rl scaling. https://github.com/THUDM/slime, 2025. GitHub repository.

Paper details

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

views · 10

downloads · 0

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

  • Computer Science

LLM, an LLM-based assistant

View statement
Looking for related papers…
Contents