alphaFeedback

WorksComputer Science

ToolOPD: Credit-Aware On-Policy Distillation for Tool-Use Agents

AI contributions
Not recorded for this paper
View details
Ancillary data
1 code link
View

Abstract

On-policy distillation (OPD) enhances the capabilities of small language agents by providing dense, token-level supervision from a teacher model on student-generated trajectories. However, standard OPD implicitly assumes that credit is uniformly distributed across long-horizon trajectories, assigning the same strength of teacher supervision to different actions. Through credit-distribution analysis and outcome-reversal counterfactual experiments, we find that trajectory credit is concentrated on a small number of critical actions. Moreover, even when the trajectory is held fixed, reversing only the final outcome substantially changes the credit assigned to multiple interaction turns. These findings show that the uniform-credit assumption fails to identify critical decisions and ultimately degrades the model's reasoning accuracy. To address these challenges, we propose ToolOPD, an outcome-aware on-policy distillation framework designed for long-horizon tool use. ToolOPD first summarizes each completed trajectory and its outcome into a reusable hindsight skill. It then measures how this skill changes the teacher's probability of each student action token and converts the change into outcome-aware credit. The resulting credit preserves supervision that supports successful decisions or discourages failed ones, while suppressing irrelevant and conflicting signals. ToolOPD uses these credits to reweight the action-level distillation loss and jointly optimizes it with reinforcement learning. Extensive experiments across multiple long-horizon tool interaction benchmarks demonstrate that ToolOPD significantly outperforms existing reinforcement learning and self-distillation baselines.

Introduction

Large language models (LLMs) [15, 14, 3, 41] (Thirunavukkarasu et al. 2023) have demonstrated strong capabilities in complex interactive tasks by invoking external tools [19, 33, 18] and adapting their decisions to environmental feedback. However, long-horizon tool-use tasks [12, 10] often require tens or hundreds of interaction turns while providing only a sparse success-or-failure reward at the end of the trajectory. This makes it difficult to determine which intermediate actions contribute to the final outcome. On-policy distillation (OPD) [1, 10, 23, 34] addresses sparse supervision by matching a compact student policy to a teacher distribution on trajectories generated by the student itself. Standard OPD implicitly assumes that credit is uniformly distributed across long-horizon trajectories, such that different actions receive equal credit and the same strength of teacher supervision. This uniform credit assignment fails to distinguish critical tool decisions from routine transitional actions, thereby weakening effective supervision for critical decisions.

To systematically characterize this issue, we conduct a series of empirical studies. As shown in Figure 1(a), on the ALFWorld diagnostic trajectories, the top 20% of interaction turns account for 74.2% of the total credit, demonstrating that trajectory credit is highly concentrated rather than uniformly distributed. We further construct an outcome-reversal counterfactual experiment by fixing the complete task and state–action sequence while reversing only the outcome label provided to the teacher. Figure 1(b) shows that this intervention substantially changes the credit assigned to 55.2%, 25.0%, and 50.0% of interaction turns in ALFWorld, WebShop, and SearchQA, respectively. Thus, the credit of an action depends not only on its local context but also on its relationship with the final outcome. Figure 1(c) further shows that outcome-conflicting signals account for 53.5% of the total teacher evidence under uniform distillation. Together, these findings establish that effective long-horizon distillation must identify critical actions and determine whether the corresponding teacher signals are consistent with the trajectory outcome. Detailed settings are provided in Appendix § 14. Recent studies have begun to explore fine-grained credit assignment for long-horizon tasks. ATOD [25] adaptively adjusts the distillation strength of different actions according to the discrepancy between the teacher and student policies, while TurnSight [21] constructs multi-view hindsight information from actual tool executions and selects reliable turn-level supervision through cross-view consistency.

Empirical study results

Figure 1. Empirical Study Results.

Unlike existing methods that determine distillation weights from local teacher–student divergence, training progress, or interaction difficulty, in this work, we propose ToolOPD, an outcome-aware on-policy distillation framework for long-horizon tool use. ToolOPD uses the terminal outcome to determine both the direction and strength of action credit. For each student-generated trajectory, ToolOPD conditions the teacher on the complete interaction process and its outcome to induce a concise hindsight skill that summarizes the effective workflow or failure pattern. It then compares the teacher’s action probabilities with and without the hindsight skill to estimate the outcome-relevant credit of each action token. For successful trajectories, ToolOPD retains skill-induced probability increases that reinforce effective actions; for failed trajectories, it retains probability decreases that suppress erroneous actions. The resulting relevance is further calibrated by teacher confidence and experience-based reliability to prevent uncertain or historically inconsistent teacher signals from dominating the update. ToolOPD uses the calibrated credit to dynamically reweight the distillation loss over <action> tokens and jointly optimizes it with Group Relative Policy Optimization (GRPO) [6]. This design concentrates supervision on outcome-relevant decisions while filtering redundant and conflicting signals.

Our main contributions are summarized as follows:

  • Empirical findings. We show that credit in long-horizon OPD is concentrated on critical actions and depends on trajectory outcomes, while uniform distillation transfers outcome-conflicting supervision.

  • Method. We propose ToolOPD, which induces outcome-conditioned hindsight skills and converts their effects on teacher predictions into fine-grained, outcome-asymmetric action credits.

  • Experiments. Across multiple tool-use benchmarks and model scales, ToolOPD consistently outperforms representative reinforcement learning and OPD baselines in task performance, long-context robustness, and optimization stability.

Method

Problem Formulation

We consider multi-turn tool use tasks with a discrete set of executable actions. For a given task instance xix_i, the student policy πθ\pi_{\theta} interacts with the external environment and generates a trajectory:

τi={(si,t,ai,t,oi,t+1)}t=0Ti−1,(1)\tau_i = \left\{(s_{i,t}, a_{i,t}, o_{i,t+1})\right\}_{t=0}^{T_i-1}, \tag*{(1)}

where si,ts_{i,t} denotes the interaction history and the current environmental state at step tt, ai,t∈A(si,t)a_{i,t} \in\mathcal{A}(s_{i,t}) is the action selected by the student policy, and oi,t+1o_{i,t+1} is the observation feedback returned by the environment. Upon the termination of the trajectory, the environment returns a scalar task reward RiR_i and a binary outcome indicator yi=I(Ri>0)∈{0,1}y_i = \mathbb{I}(R_i > 0) \in\{0,1\}. In long-horizon tool use scenarios, this setting introduces severe credit assignment challenges: due to the extremely long interaction horizon and highly sparse rewards, the success or failure of a task is typically determined by only a few critical tool decisions (e.g., specific API selections or parameter settings), while the vast majority of the remaining turns consist of routine state queries and transitional actions. How to accurately attribute and assign the terminal global reward to the intermediate specific actions is the core difficulty in optimizing such policies.

We are given a teacher model πϕ\pi_{\phi} with frozen parameters. Our objective is to distill the transferable strategy summarized by the teacher based on the complete trajectory and the final outcome into the student, while preserving the exploration capability of on-policy reinforcement learning. The trajectories during training are generated entirely by the current student policy, i.e., τi∼πθ\tau_i \sim\pi_{\theta}. Therefore, our method falls under the category of On-Policy Distillation, rather than simple behavior cloning on offline teacher trajectories.

Overview of ToolOPD

To address the credit assignment dilemma caused by sparse rewards in long-horizon interactions, ToolOPD organically integrates GRPO with outcome-aware on-policy distillation. Its core idea is to transform sparse trajectory-level credit into dense action-level credit. The specific data flow is as follows: First, the student policy interacts with the environment to generate a set of on-policy trajectories, and the intra-group relative advantages for GRPO are computed. Subsequently, the teacher reads the complete trajectory and the final success/failure outcome to induce a concise, reusable hindsight skill. Next, by comparing the probability distributions of the teacher with and without this skill on the student’s actions, the outcome relevance of the skill to the current action is calculated, thereby achieving fine-grained credit assignment. Finally, a weighted teacher-to-student OPD is performed exclusively on the action (<action>) tokens. Throughout the training process, the teacher model parameters remain frozen, and all gradients are used solely to update the student model. The framework of ToolOPD is illustrated in Figure 2.

ToolOPD framework overview

Figure 2. ToolOPD framework overview.

Outcome-Conditioned Hindsight Skill Induction

Standard distillation typically directly imitates the local action distribution of the teacher, but the teacher lacks global perception of the final success or failure of the current trajectory in this process. To address this issue, ToolOPD first introduces a hindsight skill induction mechanism, allowing the teacher to distill experience using the complete trajectory and the final outcome:

zi=Gϕ(τi,yi),(2)z_i = G_{\phi}(\tau_i, y_i), \tag*{(2)}

where GϕG_{\phi} denotes the skill induction process of the teacher. For successful trajectories (yi=1y_i = 1), the teacher summarizes effective operational procedures or key decisions; for failed trajectories (yi=0y_i = 0), the teacher identifies the root cause of the error and provides a general rule to avoid it. To facilitate context injection, the skill is constrained to a single concise rule, formatted as: Rule Name: imperative guidance.

This design serves a dual purpose: first, it compresses lengthy interaction trajectories into reusable strategy priors, essentially distilling the macroscopic outcome credit at the trajectory level into microscopic strategy signals that can guide specific decisions; second, it prevents the teacher from directly rewriting the complete trajectory, thereby focusing the distillation signal on high-level decision-making patterns. All states within the same trajectory share the corresponding skill ziz_i for that trajectory. During the inference phase, the student can be deployed independently without the teacher or explicit skill generation, thus incurring no additional inference cost.

Outcome-Asymmetric Skill Relevance

Hindsight skills do not possess equal explanatory power for every decision within a trajectory, which precisely reflects the highly uneven credit distribution in long-horizon interactions. To measure the guiding value of a skill for the current action (i.e., to perform fine-grained credit assignment), we compare the probability distributions of the teacher on the student’s actual sampled actions, both with and without the skill. We define the base teacher distribution and the skill-conditioned teacher distribution as:

qϕ0(⋅∣si,t)=πϕ(⋅∣si,t),qϕzi(⋅∣si,t)=πϕ(⋅∣si,t,zi).(3)q_{\phi}^{0}(\cdot\mid s_{i,t}) = \pi_{\phi}(\cdot\mid s_{i,t}), \quad q_{\phi}^{z_i}(\cdot\mid s_{i,t}) = \pi_{\phi}(\cdot\mid s_{i,t}, z_i). \tag*{(3)}

For the k-th token ai,t,ka_{i,t,k} in the student’s action, we define its skill-induced log-probability shift as:

Δi,t,k=log⁡qϕzi(ai,t,k∣si,t)−log⁡qϕ0(ai,t,k∣si,t).(4)\Delta_{i,t,k} = \log q_{\phi}^{z_i}(a_{i,t,k} \mid s_{i,t}) - \log q_{\phi}^{0}(a_{i,t,k} \mid s_{i,t}). \tag*{(4)}

We interpret this change asymmetrically based on the final outcome of the trajectory. Let the direction factor be di=2yi−1∈{−1,1}d_i = 2y_i - 1 \in\{-1, 1\}, then the token-level outcome relevance is computed as:

ci,t,k=mi,t,k[2σ(βhdiΔi,t,k)−1]+,(5)c_{i,t,k} = m_{i,t,k}\left[2\sigma\left(\beta_h d_i \Delta_{i,t,k}\right) - 1\right]_{+}, \tag*{(5)}

where σ(⋅)\sigma(\cdot) is the sigmoid function, [⋅]+=max⁡(⋅,0)[\cdot]_{+} = \max(\cdot, 0), βh\beta_h controls the mapping sensitivity, and mi,t,k∈{0,1}m_{i,t,k} \in\{0, 1\} is the <action> token mask.

This definition embodies outcome asymmetry and achieves dynamic credit assignment: when the trajectory is successful (yi=1y_i = 1), positive relevance is obtained only when the skill increases the probability of the successful action (Δ>0\Delta> 0); when the trajectory fails (yi=0y_i = 0), positive relevance is obtained only when the skill decreases the probability of the failed action (Δ<0\Delta< 0); skill influences inconsistent with the direction of the final outcome are truncated to zero. Averaging the token relevance over the current action yields the decision-level weight:

Hi,t=∑kci,t,kmax⁡(1,∑kmi,t,k).(6)H_{i,t} = \frac{\sum_k c_{i,t,k}}{\max\left(1, \sum_k m_{i,t,k}\right)}. \tag*{(6)}

This weight essentially quantifies the credit contribution of the current action to the final outcome. In the subsequent distillation, we directly adopt wi,t=Hi,tw_{i,t} = H_{i,t} as the distillation weight for OPD.

Action-Level On-Policy Distillation

The standard OPD objective is to minimize the KL divergence from the teacher distribution to the student distribution over the state distribution generated by the student. Leveraging the dynamically assigned credit weights, ToolOPD can precisely pinpoint critical decisions in long-horizon trajectories and dynamically adjust the distillation intensity for different decisions:

LToolOPD(θ)=Eτi∼πθ[∑t=0Ti−1Hi,tDKL(qϕzi(⋅∣si,t) ∥ πθ(⋅∣si,t))].(7)\mathcal{L}_{\mathrm{ToolOPD}}(\theta) = \mathbb{E}_{\tau_i \sim\pi_\theta}\left[\sum_{t=0}^{T_i-1} H_{i,t} D_{\mathrm{KL}}\left(q_{\phi}^{z_i}(\cdot\mid s_{i,t}) \,\|\, \pi_\theta(\cdot\mid s_{i,t})\right)\right]. \tag*{(7)}

Since the training samples are drawn from the student policy πθ\pi_\theta, we employ importance sampling to estimate the aforementioned KL divergence. For the action tokens sampled by the student, we define the log-ratio ℓi,t,k=log⁡qϕzi(ai,t,k∣si,t)−log⁡πθ(ai,t,k∣si,t)\ell_{i,t,k} = \log q_{\phi}^{z_i}(a_{i,t,k} \mid s_{i,t}) - \log\pi_\theta(a_{i,t,k} \mid s_{i,t}), and compute the clipped importance weight:

ri,t,k=exp⁡(clip⁡(ℓi,t,k,−c,c)),(8)r_{i,t,k} = \exp\left(\operatorname{clip}(\ell_{i,t,k}, -c, c)\right), \tag*{(8)}

where cc is the maximum log-ratio clipping value (set to c=5c = 5 in this study). The unbiased estimation form of the KL divergence for a single token is ri,t,klog⁡ri,t,k−ri,t,k+1r_{i,t,k} \log r_{i,t,k} - r_{i,t,k} + 1. Therefore, the practically optimized ToolOPD loss is:

L^ToolOPD=1NA∑i,t,kmi,t,kHi,t(ri,t,klog⁡ri,t,k−ri,t,k+1),(9)\widehat{\mathcal{L}}_{\mathrm{ToolOPD}} = \frac{1}{N_A}\sum_{i,t,k} m_{i,t,k} H_{i,t}\left(r_{i,t,k}\log r_{i,t,k} - r_{i,t,k} + 1\right), \tag*{(9)}

where NA=∑i,t,kmi,t,kN_A = \sum_{i,t,k} m_{i,t,k} denotes the total number of action tokens in the batch. This design ensures that distillation is applied exclusively to the executable decision tokens within <action>, without interfering with natural language reasoning processes such as <think>, thereby allowing the student to retain its own reasoning expression paradigm.

Joint Optimization with GRPO

To preserve the exploration and policy improvement capabilities driven by environmental rewards, we adopt GRPO as the foundational reinforcement learning objective. For GG trajectories sampled for the same task, the group-relative advantage is computed as:

Ai=Ri−mean⁡({Rj}j=1G)std⁡({Rj}j=1G)+ϵ.(10)A_i = \frac{R_i - \operatorname{mean}\left(\{R_j\}_{j=1}^{G}\right)}{\operatorname{std}\left(\{R_j\}_{j=1}^{G}\right) + \epsilon}. \tag*{(10)}

Defining the token-level probability ratio between the current policy and the sampling policy as ρi,t,k(θ)=πθ(ai,t,k∣si,t)πθold(ai,t,k∣si,t)\rho_{i,t,k}(\theta) = \frac{\pi_\theta(a_{i,t,k}\mid s_{i,t})}{\pi_{\theta_{\mathrm{old}}}(a_{i,t,k}\mid s_{i,t})}, the clipped policy loss for GRPO is:

LGRPO=−Ei,t,k[min⁡(ρi,t,kAi,clip⁡(ρi,t,k,1−ϵl,1+ϵh)Ai)].(11)\mathcal{L}_{\mathrm{GRPO}} = -\mathbb{E}_{i,t,k}\left[\min\left(\rho_{i,t,k}A_i,\operatorname{clip}\left(\rho_{i,t,k},1-\epsilon_l,1+\epsilon_h\right)A_i\right)\right]. \tag*{(11)}

Ultimately, we combine the reinforcement learning signal from GRPO with the distillation signal from ToolOPD, defining the overall training objective as:

Ltotal(θ)=LGRPO(θ)+λOPDL^ToolOPD(θ),(12)\mathcal{L}_{\mathrm{total}}(\theta) = \mathcal{L}_{\mathrm{GRPO}}(\theta) + \lambda_{\mathrm{OPD}}\widehat{\mathcal{L}}_{\mathrm{ToolOPD}}(\theta), \tag*{(12)}

where λOPD\lambda_{\mathrm{OPD}} is the distillation loss weight. Under this configuration, GRPO is responsible for learning the foundational task policy from environmental rewards and maintaining exploration, while ToolOPD precisely addresses the fine-grained credit assignment problem in long-horizon tool use through outcome-conditioned teacher supervision. The smaller distillation coefficient ensures that the teacher signal serves as an auxiliary regularizer, guiding the direction of policy optimization without overriding the primary gradients of reinforcement learning. The pseudocode of ToolOPD is provided in Appendix § 11, and the prompt templates used are presented in Appendix § 13

Experiments

Experimental Setup

Benchmarks. We evaluate our method on two major categories of benchmarks to comprehensively assess the model’s performance across tool-use scenarios of varying complexity. The first category consists of classic agent interaction benchmarks, including the text-embodied environment ALFWorld [22], SearchQA [9] covering single-hop and multi-hop question answering, and the interactive online shopping environment WebShop [36]. The second category comprises benchmarks specifically designed for complex tool invocation, including the FTRL Ye et al. [38] dataset, which covers single-step, sequential, and parallel tool-calling scenarios, and the BFCL Patil et al. [16] and ToolHop Ye et al. [37] dataset, which focus on evaluating long-horizon reasoning and execution capabilities with multi-step tool dependencies. Detailed descriptions are provided in the Appendix § 7.

Baselines. We compare ToolOPD against three categories of methods: (1) Training-free: Vanilla (the instruction-tuned model without task-specific training). (2) Outcome RL and General (Self-) Distillation: including GRPO (Guo et al., [6]), ToolRL (Qian et al., [17]), and MatchTIR (Qu et al., [20]) which optimize outcome rewards, as well as OPD, TCOD (Wang et al., [30]), OPSD (Zhao et al., [40]), ATOD (Tan et al., [25]), and TurnSight (Qu et al., [21]) which employ general distillation without explicit skill construction. (3) Skill-Conditioned Self-Distillation: Skill-SD (Wang et al., [29]), SDAR (Lu et al., [13]), and AgentOPSD (Wang et al., [31]), which incorporate skill guidance or trajectory reflection mechanisms. Details of each baseline are provided in the Appendix § 8.

Training Details. All experiments are conducted on 8 A800 GPUs. We adopt Qwen3-0.6B and Qwen3-1.7B as student models, and a Qwen3-4B model trained with GRPO (150-step checkpoint) as the teacher model. In Table 1, the training and optimization setups for ALFWorld, SearchQA, and WebShop are kept consistent with the AgentOPSD baseline. In Table 2, the models are trained exclusively on the FTRL dataset, with the remaining datasets used for out-of-distribution (OOD) generalization evaluation, and their base parameter settings aligned with TurnSight. Detailed hyperparameter configurations are provided in the Appendix § 9. The evaluation metrics used in this paper are presented in the Appendix I.

MethodALFWorldSearch QAWebShop
PickLookCleanHeatCoolPick2Avg.NQTrivPopHotp2WkMuSBamAvg.ScoreSucc.
Teacher Model: Qwen3-4B-Instruct
GRPO79.350.016.163.221.730.043.445.464.148.241.646.117.719.840.471.446.1
Distilled Student Model: Qwen3-0.6B
Vanilla0.00.00.00.00.05.00.811.916.413.310.520.71.31.610.834.82.3
OPD71.438.514.850.04.00.029.87.29.312.46.24.10.82.06.03.70.8
GRPO17.115.429.618.816.08.317.539.654.144.232.829.59.611.731.654.910.9
OPSD4.15.56.44.30.00.03.40.00.20.10.10.30.00.00.136.70.7
TCOD11.423.17.40.04.04.28.317.919.019.614.412.55.30.012.79.05.5
SDAR50.033.340.630.828.629.235.436.649.440.428.528.36.620.630.144.310.9
Skill-SD44.433.328.123.114.312.526.038.853.543.329.427.87.812.130.470.649.4
AgentOPSD58.650.054.836.813.020.038.932.848.141.521.121.44.13.224.663.324.2
ATOD91.253.317.442.925.06.739.432.850.338.127.325.46.78.927.134.823.4
Ours65.175.066.733.379.022.256.939.254.643.131.826.28.623.332.480.158.6
Distilled Student Model: Qwen3-1.7B
Vanilla24.133.33.20.00.05.010.929.446.937.023.519.66.410.524.871.446.1
OPD65.738.518.550.020.08.333.58.118.713.26.24.61.45.68.326.52.3
GRPO70.044.442.847.426.317.441.440.058.943.535.430.312.065.740.872.140.6
OPSD22.222.23.10.014.34.211.04.28.34.66.615.30.71.25.842.13.9
TCOD42.938.53.712.50.012.518.323.935.725.019.118.81.40.017.744.15.5
SDAR73.525.076.933.340.036.847.639.758.945.335.935.312.665.341.974.754.4
Skill-SD52.937.569.242.960.036.849.939.157.545.434.834.110.764.140.881.853.9
AgentOPSD44.866.729.063.230.435.044.841.155.943.233.428.710.762.139.365.436.7
ATOD86.266.735.568.48.710.045.932.646.632.023.019.37.118.125.543.035.1
Ours82.445.072.757.170.647.662.642.159.345.435.933.913.168.642.677.655.7

Table 1. Performance comparison across ALFWorld, Search QA, and WebShop benchmarks.

MethodFTRL Solve-F1FTRL Solve-RFTRL Solve-PFTRL Avg.BFCL BaseBFCL MFBFCL MPBFCL LCBFCL MT.OABFCL MemoryBFCL Avg.ToolHop Acc.Avg.
Teacher: Qwen3-4B-Instruct
GRPO33.933.336.734.639.529.532.527.532.317.925.130.029.9
Student: Qwen3-0.6B
Vanilla9.38.540.019.34.02.03.02.52.99.36.113.012.8
GRPO13.313.725.417.53.52.02.02.52.55.84.217.913.2
ToolRL16.215.820.417.52.50.01.51.51.48.44.916.913.1
MatchTIR14.014.918.915.94.01.53.03.53.06.54.717.812.8
TurnSight12.312.818.714.61.50.51.00.50.95.43.117.511.7
SDAR16.016.736.823.24.53.01.51.52.68.45.517.715.5
Ours16.215.842.724.95.04.04.53.53.310.07.018.516.8
Student: Qwen3-1.7B
Vanilla19.922.521.121.215.511.012.07.511.89.310.420.417.3
GRPO22.623.625.323.818.015.512.011.514.39.912.123.819.9
ToolRL20.422.321.021.216.011.07.08.011.111.811.019.917.5
MatchTIR21.624.522.723.013.014.515.010.013.18.811.020.318.1
TurnSight21.725.621.322.924.016.020.013.018.38.213.223.019.7
SDAR22.425.622.823.618.017.014.010.014.95.810.323.119.0
Ours22.723.928.425.019.013.013.016.013.412.413.627.822.2

Table 2. Performance of the teacher and distilled student models on FTRL, BFCL, and ToolHop.

Main Results

Table 1 and Table 2 present the performance of ToolOPD across various tool-use benchmarks. Overall, ToolOPD significantly outperforms existing reinforcement learning and self-distillation baselines in all evaluated scenarios, validating its effectiveness in addressing the credit assignment problem in long-horizon tool use.

Credit Assignment Breakthrough in Long-Horizon Interactions (Table 1). In long-horizon interaction tasks such as ALFWorld, SearchQA, and WebShop, task success or failure is typically determined by only a few critical tool decisions. Compared to pure reinforcement learning methods (e.g., GRPO), ToolOPD achieves substantial improvements (e.g., the success rate of Qwen3-0.6B on WebShop jumps from 10.9% to 58.6%), demonstrating that dense and precise token-level supervision can effectively overcome the credit assignment failure caused by terminal sparse rewards. Furthermore, compared to standard OPD, which implicitly assumes uniform weights (tending to distribute gradients across redundant actions), and AgentOPSD, which lacks outcome filtering, ToolOPD precisely quantifies and amplifies the weights of critical actions that substantially contribute to the final outcome through the outcome-asymmetric mechanism (Hi,tH_{i,t}), fundamentally overcoming the dilution of core decision signals.

Complex Tool Dependencies and Generalization Capabilities (Table 2). Across the FTRL, BFCL, and ToolHop benchmarks, ToolOPD not only achieves the highest average performance on the FTRL training set but also demonstrates strong generalization capabilities on out-of-distribution (OOD) test sets such as ToolHop and BFCL. Particularly in the ToolHop task, which features extremely long interaction turns and a large number of ineffective retrievals, ToolOPD significantly outperforms the second-best baseline, SDAR (improving the accuracy of Qwen3-1.7B from 19.0% to 22.2%). This is attributed to ToolOPD’s hindsight skill induction mechanism, which compresses macroscopic trajectory outcomes into microscopic strategy priors, combined with asymmetric relevance to truncate gradients for ineffective actions. This ensures that the model can precisely pinpoint core API calls within long-horizon trajectories, effectively enhancing reasoning and execution capabilities under complex state transitions.

Ablation Study

To investigate the contribution of each component in ToolOPD to long-horizon credit assignment, we conduct a progressive ablation study on the ALFWorld benchmark, as reported in Table 3. GRPO, which relies solely on sparse trajectory-level rewards, achieves an average success rate of only 14.8%, highlighting the limitation of sequence-level supervision in identifying pivotal decisions during long-horizon tool interactions. Incorporating standard action-level distillation substantially improves the average success rate to 53.9%, demonstrating that dense teacher supervision over action tokens provides effective local learning signals. However, Vanilla OPD assigns relatively uniform distillation weights across interaction steps and therefore cannot adequately distinguish pivotal decisions from redundant actions. Further introducing hindsight skill conditioning yields only a marginal improvement to 54.7%, with performance degradation on several task categories. This result suggests that skill conditioning alone does not guarantee consistent gains, as the model must additionally determine whether the induced skill is aligned with the trajectory outcome and whether the corresponding teacher signal is reliable.

MethodPickLookCleanHeatCoolPick2Scc.
GRPO17.115.429.618.816.08.314.8
GRPO + Vanilla OPD55.666.762.530.792.925.053.9
GRPO + Skill-OPD82.450.046.219.160.052.654.7
ToolOPD (Ours)65.175.066.733.379.022.259.4

Table 3. Ablation study on the ALFWorld benchmark. We progressively add components to GRPO: standard action-level distillation (Vanilla OPD), hindsight skill conditioning (Skill-OPD), and the full ToolOPD. The best results in each column are highlighted in bold.

The complete ToolOPD combines outcome-asymmetric skill relevance Hi,tH_{i,t} with teacher confidence and experience-based reliability to emphasize actions that are more relevant to the final outcome. It achieves the best average success rate of 59.4%, outperforming Vanilla OPD and Skill-OPD by 5.5 and 4.7 percentage points, respectively. The largest gains over Skill-OPD occur on Look, Clean, and Heat, with improvements of 25.0, 20.5, and 14.3 points. These results show that outcome-aware relevance and reliability calibration are critical for robust credit assignment in long-horizon tool interactions.

Training Dynamics

Figure 3 presents the training dynamics of different methods across multiple tool-interaction benchmarks. ToolOPD achieves faster and more sustained performance improvements on ALFWorld and WebShop, establishing a clear advantage over the baselines in the later stages of training. Although the differences among methods are smaller on SearchQA, ToolOPD still attains the best final performance. These results suggest that its benefits are not specific to a particular environment, but generalize across tasks with different interaction horizons and reward structures. Meanwhile, the teacher–student gap in Figure 3(a) is not monotonically minimized toward zero, but instead changes dynamically throughout training. This behavior indicates that ToolOPD does not uniformly imitate all teacher signals; rather, it adaptively adjusts the strength of distillation according to the current policy state and trajectory outcome.

Training dynamics across different tasks

Figure 3. (a) Teacher-student gap. (b) ALFWorld success rate. (c) SearchQA success rate. (d) WebShop success rate. Training dynamics across different tasks.

Figure 4 further characterizes the optimization behavior underlying these performance gains. On FTRL, ToolOPD maintains a consistently small and stable teacher–student discrepancy, whereas the discrepancies of MatchTIR and TurnSight progressively increase during training. Correspondingly, ToolOPD improves its F1 score more rapidly and reaches a higher level in the middle and later stages. On ALFWorld, the policy entropy of ToolOPD decreases substantially while its success rate continues to improve, suggesting that the policy gradually shifts from broad exploration toward more concentrated tool decisions rather than merely suffering from performance degradation. The entropy dynamics on FTRL exhibit a similar pattern: ToolOPD shows a smoother increase in entropy and avoids the pronounced growth in uncertainty observed for TurnSight. Overall, these results indicate that outcome-aware dynamic distillation enables ToolOPD to control teacher–student discrepancy while progressively focusing optimization on critical actions, leading to a more stable and efficient policy learning process.

Training dynamics of the model across ALFWorld and FTRL

Figure 4. Training dynamics of the model across ALFWorld (c) and FTRL (a, b, and d).

Hyperparameter Analysis of ToolOPD

To assess the effect of the ToolOPD coefficient λOPD\lambda_{\mathrm{OPD}}, we conduct a sensitivity analysis on SearchQA using both Qwen3-0.6B and Qwen3-1.7B. As shown in Figure 5, both models exhibit a similar inverted-U-shaped trend: validation success first improves as λOPD\lambda_{\mathrm{OPD}} increases to 0.005, and then declines when the coefficient is further increased. Specifically, the 0.6B model achieves its best success rate of 38.58% at λOPD=0.005\lambda_{\mathrm{OPD}} = 0.005, outperforming the settings of 0.001 (38.11%) and 0.01 (37.24%). The 1.7B model follows the same pattern, reaching 42.94% at 0.005, while performance decreases to 41.66% and 39.20% at 0.01 and 0.02, respectively. These results suggest that a moderate action-level distillation weight provides effective dense supervision: a coefficient that is too small is insufficient to leverage ToolOPD for credit assignment, whereas an overly large coefficient can cause teacher supervision to dominate policy optimization. Based on this trend, we use λOPD=0.005\lambda_{\mathrm{OPD}} = 0.005 as the default setting for SearchQA.

Hyperparameter sensitivity analysis

Figure 5. Hyperparameter sensitivity analysis.

Further Analysis of Credit Assignment

To further examine the credit assignment capability of ToolOPD, we analyze both performance gains and supervision quality. As shown in Figure 6(a), ToolOPD achieves an average success rate of 59.38%, outperforming Vanilla OPD and Skill-OPD by 5.47 and 4.69 percentage points, respectively. This result indicates that dense distillation or hindsight skills alone are insufficient to achieve optimal performance. Figure 6(b) further explains the source of this improvement. When considering only the top 10%–20% highest-credit turns, the proportion of outcome-aligned signals reaches approximately 71.3%, substantially higher than random turns (approximately 50.0%) and bottom-credit turns (approximately 37.6%). As the retained proportion increases, the differences gradually diminish and eventually converge. These results demonstrate that ToolOPD effectively ranks turns according to supervision quality and prioritizes

Further analysis of Tool-OPD

Figure 6. Further analysis of Tool-OPD. (Left) Performance under different credit-assignment ablation settings. (Right) Quality of training signals with different top-kk selections.

distillation signals associated with tool decisions that are more likely to affect the final outcome. Taken together, Figure 6 (a) and (b) suggest that the performance gains of ToolOPD primarily arise from fine-grained, outcome-aware credit assignment, rather than merely introducing additional teacher supervision.

Related Work

On-policy Distillation

On-policy distillation (OPD) ([23]) aligns the student and teacher policies by matching the student policy to the teacher distribution over its self-generated trajectories. By utilizing objectives such as token-level KL divergence, OPD effectively mitigates the state distribution shift inherent in offline distillation. As OPD is extended to long-horizon agent tasks, research has transitioned from uniform token-level matching to step- or turn-level supervision. In Toolintegrated scenarios, existing approaches primarily operate along two dimensions. First, they leverage dynamic skills or hindsight information from completed trajectories to guide self-distillation (including Skill-SD ([29]), SEED ([32]), and TurnSight Qu et al. [21]). Second, they dynamically adjust the distillation weights across interaction turns based on factors including teacher-student divergence, training budgets, and interaction difficulty (including SOD ([42]), TurnOPD ([43]), AgentOPSD ([31]), and HIDIFFTIR ([7]). These studies demonstrate that online distillation for Toolusing agents must model multi-turn interaction structures, tool invocation difficulty, and hindsight information, rather than relying on uniform token-level supervision.

In contrast to existing methods, this paper focuses on the credit assignment problem for small models executing tool invocations in long-horizon tasks on resource-constrained terminal devices. We propose ToolOPD, which moves beyond the reliance on local training difficulty or teacher-student divergence by directly evaluating the true contribution of tool decisions based on final task outcomes. The core of ToolOPD lies in performing non-uniform credit assignment for distinct tool decisions and dynamically adjusting the distillation intensity of action tokens accordingly, thereby maximizing the distillation efficacy of small models under resource constraints.

Credit Assignment in Long-Horizon On-Policy Distillation

In long-horizon tool use tasks ([5, 8, 17]), standard OPD typically performs uniform token-level distribution matching across all visited states. However, because different interaction turns contribute unequally to task success, applying supervision with uniform intensity is highly prone to introducing noise. Recent studies have introduced fine-grained credit assignment into long-horizon interactions and policy distillation. Some methods evaluate intermediate action values by quantifying information gain, leveraging hindsight information, or decomposing trajectory-level outcomes (e.g., Δ\DeltaBelief-RL ([2]), HCAPO ([24]), and PBSD ([27]). Others identify critical action spans and adjust local advantages from the perspectives of supervision reliability, failure correlation, or policy comparison (e.g., Prune-OPD ([35]), HINT-SD ([39]), UCOB ([28]), and SGCD ([4]). Overall, existing research has transitioned from uniform token-level matching to credit-aware selective supervision.

In this work, ToolOPD locates critical tool decisions by quantifying the shift in the teacher’s action distribution conditioned on hindsight skills. It then performs multi-dimensional credit calibration by integrating the final outcome, trajectory consistency, and teacher confidence. Ultimately, the calibrated turn-level credit is directly mapped to the action tokens actually sampled by the student, achieving non-uniform on-policy distillation oriented towards long-horizon task outcomes.

Conclusion

We introduce ToolOPD, an outcome-aware on-policy distillation framework that addresses credit assignment in long-horizon tool-use tasks. Our empirical analysis shows that the uniform supervision of standard OPD fails to distinguish the contributions of different tool decisions and may introduce teacher signals that conflict with the final outcome. To address this limitation, ToolOPD induces hindsight skills from complete trajectories and their outcomes, and dynamically assigns credit to action tokens through outcome-asymmetric skill relevance. This preserves supervision consistent with the task outcome while suppressing irrelevant or conflicting signals. Experiments across multiple long-horizon tool-interaction benchmarks and model scales demonstrate that ToolOPD consistently outperforms reinforcement-learning and on-policy-distillation baselines while exhibiting more stable optimization over extended interactions.

Appendix

Benchmarks

  • ALFWorld is an interactive benchmark that aligns abstract textual reasoning with concrete embodied environments, requiring agents to translate high-level text policies into multi-step navigation and object manipulation actions in simulated household settings, thereby evaluating cross-modal grounding and long-horizon planning.

  • SearchQA is a large-scale open-domain question answering dataset comprising over 140,000 question-answer pairs augmented with real-world search engine contexts, designed to assess model robustness in precise machine reading comprehension and information extraction amidst highly redundant and noisy retrieved snippets.

  • WebShop provides a simulated e-commerce environment grounded in real-world web interactions, featuring over 1.18 million real products and 12,000+ crowdsourced natural language instructions. It requires agents to perform sequential decision-making to search, filter, and purchase target items, systematically evaluating compositional instruction understanding, dynamic query reformulation, and long-horizon multi-step interaction.

  • FTRL is a foundational evaluation dataset focused on tool-use capabilities, comprising over 2,000 automatically constructed tool interaction scenarios with verifiable execution environments. It typically serves as a basis for in-domain training and evaluation, aiming to systematically measure a model’s tool-calling accuracy and sequential decision-making efficacy within standardized environments.

  • BFCL (Berkeley Function Calling Leaderboard), proposed by Patil et al., is a comprehensive function-calling evaluation benchmark. Its core dataset encompasses thousands of question-function-answer pairs spanning multiple programming languages and interfaces (e.g., Python, Java, JavaScript, and REST APIs). Through iterative updates, BFCL has expanded to include complex test cases involving multi-turn dialogues, multi-step dependencies, parallel function calls, and real-time dynamic scenarios, primarily assessing a model’s instruction-following capability and dynamic decision-making robustness in real-world API interactions.

  • ToolHop is a query-driven benchmark specifically designed to evaluate the multi-hop tool use capabilities of large language models. The dataset consists of 995 complex user queries and 3,912 associated locally executable tools. By constructing toolchains with strong interdependencies, it rigorously examines a model’s comprehensive proficiency in long-horizon logical reasoning, dynamic query reformulation, and multi-step tool orchestration.

Baselines

Outcome RL and General (Self-) Distillation

  • GRPO ([6]) is a reinforcement learning method that eliminates the need for an explicit value model. It samples multiple responses for the same input and estimates advantages based on their relative rewards within the group. Its supervision mainly comes from the final task outcome, such that all decisions along a trajectory typically share the same outcome-level reward.

  • ToolRL ([17]) is a reinforcement learning framework designed for tool-use tasks. It trains tool-using agents with reward signals associated with task outcomes and tool execution, aiming to improve tool selection and invocation capabilities in complex and unseen tool-use scenarios.

  • MatchTIR ([20]) addresses the coarse-grained credit assignment problem of trajectory-level rewards in multi-turn tool-integrated reasoning. It matches generated tool-use trajectories with reference trajectories via bipartite matching to construct turn-level rewards, and combines trajectory-level and turn-level advantages for more fine-grained policy optimization.

  • OPD lets the student model generate trajectories under its current policy and queries a teacher model to provide token-level distribution supervision on states visited by the student. Compared with offline distillation, OPD reduces the train–test distribution mismatch by directly training on the student’s on-policy state distribution.

  • TCOD ([30]) focuses on trajectory-level KL instability caused by error accumulation in multi-turn on-policy distillation. It adopts a temporal curriculum that gradually increases the interaction horizon from short trajectories to full-length trajectories, enabling the student to progressively acquire long-horizon interaction capabilities while improving training stability.

  • OPSD ([40]) is an on-policy self-distillation approach that removes the dependence on a separate large teacher model. The same model acts as both student and teacher under different contextual conditions: the student generates on-policy trajectories, while a privileged teacher view with additional task information provides token-level supervision.

  • ATOD [25] is a turn-aware on-policy distillation method for long-horizon multi-turn agents. It combines OPD with GRPO through an annealed training scheme and dynamically adjusts the distillation strength at each turn according to teacher–student disagreement and uncertainty, thereby allocating stronger supervision to interaction steps that remain difficult for the student.

  • TurnSight [21] introduces turn-level hindsight self-distillation for tool-integrated reasoning. It constructs a hindsight teacher using tool execution outcomes and measures teacher–student distribution discrepancies at individual turns. Multi-step lookahead and group-wise normalization are further used to assign differentiated supervision weights across tool-interaction turns.

Skill-Conditioned Self-Distillation

  • Skill-SD [29] is a skill-conditioned self-distillation framework for multi-turn LLM agents. It summarizes completed agent trajectories into compact natural-language skills describing successful behaviors, common mistakes, and reusable workflows, and uses these skills as dynamic privileged information for the teacher branch. The student is then trained to internalize such skill guidance through on-policy distillation, together with an importance-weighted reverse-KL objective and dynamic teacher synchronization for stable training.

  • SDAR [13] integrates on-policy self-distillation into agentic reinforcement learning as a gated auxiliary objective, while retaining RL as the primary optimization signal. It derives token-level teacher–student discrepancy signals and maps them into adaptive gates, strengthening distillation on teacher-endorsed tokens while attenuating unreliable negative guidance, thereby improving training stability in long-horizon multi-turn tasks.

  • AgentOPSD [31] introduces recursive self-distillation for fine-grained credit assignment in long-horizon agentic reinforcement learning. It aggregates token-level teacher–student log-probability gaps into turn-level evidence and recursively updates a Bayesian belief state across interaction turns, using the resulting belief revisions to estimate the importance of individual decisions and reweight policy optimization without introducing an additional critic or extra rollouts.

Implementation Details

For the long-horizon tasks reported in Table 1, we use GRPO as the base policy optimization algorithm and jointly optimize it with the ToolOPD auxiliary objective. ToolOPD operates exclusively on tool-action tokens. For each completed trajectory, the teacher generates an outcome-conditioned hindsight skill, whose effect on the teacher’s action probabilities is converted into fine-grained credit for reweighting the distillation loss. We set the hindsight scaling factor to βh=5.0\beta_h = 5.0 and the replay calibration factor to α=1.0\alpha= 1.0, while linearly increasing the evidence weight λe\lambda_e from 0.20.2 to 0.50.5 during training. The ToolOPD loss coefficient λOPD\lambda_{\mathrm{OPD}} is selected from 0.0010.001 to 0.010.01 according to the task and student model size, and the log-probability ratio is clipped at 5.05.0 for training stability.

We use Qwen3-0.6B or Qwen3-1.7B as the student policy and a GRPO-trained Qwen3-4B as the frozen teacher. The same teacher performs both hindsight skill induction and action-level supervision, avoiding the need for an additional skill-generation model or external API. During training, four GPUs are allocated to the student policy and four to the independent teacher pool. The environment-specific training configurations are summarized in Table 4.

HyperparameterALFWorldWebShopSearchQA
Training steps150150150
Training batch size1616128
Rollout group size GG888
Maximum prompt length204840964096
Maximum response length512512512
Maximum interaction turns50154
Train/validation temperature1.0 / 0.41.0 / 0.41.0 / 0.4
GPUs (student / teacher)4 / 44 / 44 / 4
Rollout tensor-parallel size222

Table 4. Core ToolOPD training configurations across the three tool-use benchmarks.

For tool-use benchmark, we augment vanilla GRPO with a ToolOPD auxiliary loss applied only to tool-action tokens. We use Qwen3-0.6B as the student and a GRPO-trained Qwen3-4B as the frozen teacher. We set βh=10.0\beta_h = 10.0, α=1.0\alpha= 1.0, λOPD=0.03\lambda_{\mathrm{OPD}} = 0.03, and λe=0\lambda_e = 0, while clipping the teacher–student log-ratio at 3.03.0. Training uses eight rollouts per prompt, a batch size of 32, and a learning rate of 2×10−72 \times10^{-7}.

HyperparameterValue
Student modelQwen3-0.6B / Qwen3-1.7B
Teacher modelGRPO-trained Qwen3-4B
Policy optimization algorithmVanilla GRPO
Group size GG (rollouts per task)8
Training batch size32
PPO mini-batch size32
Optimization epochs per batch1
Learning rate2×10−72 \times10^{-7}
Training temperature1.0
Maximum prompt length10,000 tokens
Maximum response length13,000 tokens
Maximum tokens per GPU23,000
Tensor parallel size1
KL-loss coefficient0.0
Entropy coefficient0.0
Hindsight scaling factor βh\beta_h10.0
Replay calibration factor α\alpha1.0
Evidence weight λe\lambda_e0.0
ToolOPD loss coefficient λOPD\lambda_{\mathrm{OPD}}0.03
Maximum log-ratio threshold3.0
Hindsight generation length96 tokens
Teacher maximum prompt length14,000 tokens
Hindsight maximum prompt length14,000 tokens
ToolOPD supervision scopeTool-action tokens only

Table 5. Core training hyperparameters for ToolOPD on the tool-use benchmarks.

Computational Overhead Analysis

To quantify the additional computational cost of ToolOPD, we use a matched eight-GPU setup on FTRL and exclude evaluation and checkpointing time from all measurements. As shown in Figure 7(d), ToolOPD does not improve raw training throughput: it requires 643 seconds per million training tokens, compared with 151, 177, and 356 seconds for GRPO, MatchTIR, and TurnSight, respectively. The per-rollout cost breakdown in Figure 7(c) further shows that ToolOPD is dominated by rollout generation (22.5 GPU-s) and outcome-aware supervision construction (8.8 GPU-s), whereas policy updates account for only a small fraction of the total cost (2.1 GPU-s). These results indicate that the additional overhead primarily arises from teacher-driven hindsight skill inference and action-level supervision construction, rather than standard policy optimization.

Computational overhead analysis on FTRL

Figure 7. Computational overhead analysis on FTRL.

Despite this overhead, the performance–cost curve in Figure 7(b) reveals a favorable optimization trade-off in some regimes. In particular, Figure 7(a) shows that ToolOPD reaches an F1 score of 21% after 18.2 GPU-hours, requiring less computation than GRPO (19.5 GPU-hours) and substantially less than TurnSight (57.0 GPU-hours), although it remains more expensive than MatchTIR (12.5 GPU-hours). Therefore, ToolOPD should not be viewed as a method for improving raw computational efficiency; instead, it trades additional computation for more targeted credit assignment, allowing it to reach a comparable performance level with lower cost than TurnSight.

Algorithm

Algorithm 1 Outcome-Aware On-Policy Distillation for ToolOPD

Input: Student policy πθ\pi_\theta, old policy πθold\pi_{\theta_{\mathrm{old}}}, frozen teacher πϕ\pi_\phi, group size GG, sensitivity βh\beta_h, distillation coefficient λOPD\lambda_{\mathrm{OPD}}, log-ratio bound cc

Output: Optimized student policy πθ\pi_\theta

  1. for each training step do

  2. Sample GG trajectories {τi,Ri,yi}i=1G∼πθold\{\tau_i,R_i,y_i\}_{i=1}^{G}\sim\pi_{\theta_{\mathrm{old}}} for each task

  3. GRPO advantage: normalize rewards within each trajectory group,

  4. Ai←Ri−1G∑j=1GRjstd⁡({Rj}j=1G)+ϵA_i \leftarrow\frac{R_i-\frac{1}{G}\sum_{j=1}^{G}R_j}{\operatorname{std}(\{R_j\}_{j=1}^{G})+\epsilon}

  5. Hindsight skill induction: for each trajectory τi\tau_i,

  6. zi←Gϕ(τi,yi)z_i \leftarrow G_\phi(\tau_i,y_i)

  7. Outcome-asymmetric credit assignment: for each decision turn (i,t)(i,t),

  8. Compute teacher probabilities qϕzi(⋅∣si,t)q_\phi^{z_i}(\cdot\mid s_{i,t}) and qϕ0(⋅∣si,t)q_\phi^{0}(\cdot\mid s_{i,t})

  9. Δi,t,k←log⁡qϕzi(ai,t,k∣si,t)−log⁡qϕ0(ai,t,k∣si,t)\Delta_{i,t,k}\leftarrow\log q_\phi^{z_i}(a_{i,t,k}\mid s_{i,t})-\log q_\phi^{0}(a_{i,t,k}\mid s_{i,t})

  10. ci,t,k←mi,t,k[2σ(βh(2yi−1)Δi,t,k)−1]+c_{i,t,k}\leftarrow m_{i,t,k}[2\sigma(\beta_h(2y_i-1)\Delta_{i,t,k})-1]_+

  11. Hi,t←∑kci,t,kmax⁡(1,∑kmi,t,k)H_{i,t}\leftarrow\frac{\sum_k c_{i,t,k}}{\max(1,\sum_k m_{i,t,k})}

  12. Action-level on-policy distillation:

  13. ℓi,t,k←log⁡qϕzi(ai,t,k∣si,t)−log⁡πθ(ai,t,k∣si,t)\ell_{i,t,k}\leftarrow\log q_\phi^{z_i}(a_{i,t,k}\mid s_{i,t})-\log\pi_\theta(a_{i,t,k}\mid s_{i,t})

  14. ri,t,k←exp⁡(clip⁡(ℓi,t,k,−c,c))r_{i,t,k}\leftarrow\exp(\operatorname{clip}(\ell_{i,t,k},-c,c))

  15. L^ToolOPD←1NA∑i,t,kmi,t,kHi,t(ri,t,klog⁡ri,t,k−ri,t,k+1)\widehat{\mathcal{L}}_{\mathrm{ToolOPD}}\leftarrow\frac{1}{N_A}\sum_{i,t,k}m_{i,t,k}H_{i,t}(r_{i,t,k}\log r_{i,t,k}-r_{i,t,k}+1)

  16. GRPO policy loss:

  17. LGRPO←−Ei,t,k[min⁡(ρi,t,kAi,clip⁡(ρi,t,k,1−ϵl,1+ϵh)Ai)]\mathcal{L}_{\mathrm{GRPO}}\leftarrow-\mathbb{E}_{i,t,k}[\min(\rho_{i,t,k}A_i,\operatorname{clip}(\rho_{i,t,k},1-\epsilon_l,1+\epsilon_h)A_i)]

  18. where ρi,t,k=πθ(ai,t,k∣si,t)/πθold(ai,t,k∣si,t)\rho_{i,t,k}=\pi_\theta(a_{i,t,k}\mid s_{i,t})/\pi_{\theta_{\mathrm{old}}}(a_{i,t,k}\mid s_{i,t})

  19. Joint policy update:

  20. Ltotal←LGRPO+λOPDL^ToolOPD\mathcal{L}_{\mathrm{total}}\leftarrow\mathcal{L}_{\mathrm{GRPO}}+\lambda_{\mathrm{OPD}}\widehat{\mathcal{L}}_{\mathrm{ToolOPD}}

  21. θ←θ−η∇θLtotal\theta\leftarrow\theta-\eta\nabla_\theta\mathcal{L}_{\mathrm{total}}

  22. end for

  23. return πθ\pi_\theta

Trajectory Examples and Skill Generation

We present representative trajectories from ALFWorld and FTRL to illustrate how ToolOPD induces reusable hindsight skills from completed interactions. We retain all outcome-critical tool actions while omitting repetitive reasoning and redundant observations using [. . .].

Case 1: Long-Horizon Interaction in ALFWorld

Task. Put a clean cup in the microwave.

Trajectory.

Agent – Step 1: go to microwave 1

Environment – Step 1: The agent arrives at microwave 1, which is closed.

Agent – Step 2: open microwave 1

Environment – Step 2: The microwave is open and contains cup 1.

Agent and Environment – Steps 3–11: The agent repeatedly examines the microwave and checks its inventory, while the cup remains inside the microwave. [. . .]

Agent – Step 12: take cup 1 from microwave 1

Environment – Step 12: The agent successfully picks up cup 1.

Agent – Step 13: examine cup 1

Environment – Step 13: The cup is empty, but its required clean state has not yet been established.

Agent and Environment – Steps 14–18: The agent performs several redundant examinations and location transitions that do not change the task state. [. . .]

Agent – Steps 19–20:

go to sinkbasin 1

clean cup 1 with sinkbasin 1

Environment – Step 20: The cup is successfully cleaned.

Agent – Steps 21–24:

go to microwave 1

examine cup 1

examine microwave 1

move cup 1 to microwave 1

Environment – Step 24: The clean cup is placed in the microwave, completing the task.

Outcome. Success.

Generated Hindsight Skill. Verify and clean objects before placing them in appliances.

Although the trajectory contains numerous examinations and unnecessary transitions, its success is primarily determined by the pivotal action sequence take →\to clean →\to place. ToolOPD therefore extracts an outcome-grounded skill from the noisy trajectory and concentrates supervision on actions that causally change the task state.

Case 2: Multi-Step Tool Reasoning on FTRL

Task. What is the result of subtracting 8 from the reverse of the birth year of the star of Lady in a Cage?

Trajectory.

Agent – Step 1: The agent identifies the main star of the target film:

movie_star_finder(
    movie_title="Lady in a Cage",
    role_type="main_star")

Environment – Step 1: The tool returns Olivia de Havilland.

Agent – Step 2: The agent retrieves the birth year of the identified person:

biographical_info_retriever(
    name="Olivia de Havilland",
    information_type="birth_year")

Environment – Step 2: The tool returns 1916.

Agent – Step 3: The agent reverses 1916 to obtain 6191 and performs the required subtraction:

advanced_arithmetic_calculator(
    operation="subtract",
    operands=[6191, 8])

Environment – Step 3: The tool returns 6183.

Agent – Final Answer: <answer>6183</answer>

Outcome. Correct answer.

Generated Hindsight Skill. Resolve entities before computation: retrieve each dependent entity and numerical attribute with tools, and then apply the requested transformations in their specified order.

The FTRL trajectory forms a clear dependency chain: identifying the target person and retrieving the corresponding birth year are necessary prerequisites for the final numerical operation. Conditioned on the successful outcome, ToolOPD preserves supervision along this reasoning chain and emphasizes the tool calls that establish essential intermediate variables. Together, the two cases show that ToolOPD induces transferable skills and assigns credit to outcome-relevant decisions across embodied interaction and multi-step tool reasoning.

Prompts Used for Training

We report the prompts used to collect on-policy trajectories and construct ToolOPD supervision. For environment interaction, each prompt specifies the task, recent interaction history, current observation, admissible actions or tools, and the required response format. For ToolOPD, the completed trajectory and its outcome are additionally provided to the teacher for hindsight skill induction. The generated skill is subsequently inserted into the teacher context when computing action-level distillation targets. Placeholders enclosed in braces are instantiated online.

Environment Interaction Prompts

ALFWorld

ALFWorld Interaction Prompt

You are an expert agent operating in the ALFRED Embodied Environment.

Your task is to:
{TASK_DESCRIPTION}

Prior to this step, you have already taken {STEP_COUNT} step(s).
Below are the most recent {HISTORY_LENGTH} observations and
the corresponding actions you took:
{ACTION_HISTORY}

You are now at step {CURRENT_STEP}.
Your current observation is:
{CURRENT_OBSERVATION}

Your admissible actions in the current situation are:
[{ADMISSIBLE_ACTIONS}]

Now it is your turn to take one action. First reason step by step
about the current situation. The reasoning must be enclosed within
<think> and </think> tags and contain at most two sentences.

Then select exactly one admissible action and present it within
<action> and </action> tags. Output one action only and then stop.

For the first interaction step, the history block is omitted because no previous observation–action pair is available.

WebShop

WebShop Interaction Prompt

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

Your task is to:
{TASK_DESCRIPTION}

Prior to this step, you have already taken {STEP_COUNT} step(s).
Below are the most recent {HISTORY_LENGTH} observations and
the corresponding actions you took:
{ACTION_HISTORY}

You are now at step {CURRENT_STEP}.
Your current observation is:
{CURRENT_OBSERVATION}

Your admissible actions in the current situation are:
[
{AVAILABLE_ACTIONS}
]

Now it is your turn to take one action. First reason step by step
about the current situation and determine which admissible action
best advances the shopping goal. The reasoning must be enclosed
within <think> and </think> tags.

Then select one admissible action and present it within
<action> and </action> tags.

As in ALFWorld, the interaction-history block is omitted at the first step.

FTRL

For FTRL, the available tool schemas vary across instances and are dynamically inserted into the system prompt.

FTRL System Prompt

# Tools

You may call one or more functions to assist with the user query.

You are provided with function signatures within <tools></tools>
XML tags:

<tools>
{TOOL_SCHEMAS}
</tools>

For each function call, return a JSON object containing the
function name and arguments within <tool_call></tool_call> tags:

<tool_call>
{"name": <FUNCTION_NAME>, "arguments": <ARGUMENTS_JSON>}
</tool_call>

FTRL User Prompt

Please call the given tools to answer the question. All information
must be obtained by calling tools rather than answering the question
directly.

If a tool call fails, correct the call and continue until you arrive
at an answer. Output only the final answer, as a word, number, or
short phrase, inside the <answer></answer> tag, without explanations
or additional information.

Question:
{QUESTION}

Outcome-Conditioned Hindsight Skill Induction

ToolOPD applies an independent teacher to the complete trajectory after its outcome becomes available. The prompt explicitly distinguishes successful and failed trajectories so that the generated skill captures either an effective workflow or an error-avoidance principle.

ALFWorld and WebShop

Hindsight Skill Induction Prompt

You are an independent RL teacher analyzing a completed
long-horizon tool-use trajectory.

Task description:
{TASK_DESCRIPTION}

Complete trajectory:
{COMPLETE_TRAJECTORY}
Final outcome:
{SUCCESS_OR_FAILURE}

If the trajectory succeeds:
Describe the reusable workflow that made the trajectory succeed.

If the trajectory fails:
Identify the task-specific failed decision pattern and state one
reusable workflow or avoidance principle. Ground every detail in
the task and trajectory. Explicitly identify the target object,
the relevant receptacle or tool, the missing prerequisite operation
or subgoal, and any wrong object selection or repeated no-progress
action loop. For tasks requiring cleaning, cooling, or heating,
distinguish actively performing the operation from merely finding
an object that already has the desired state. Do not invent
unobserved objects or states.

Return ONLY one valid JSON object:
{"skill": "one concise policy-facing skill"}

Do not output turn numbers, importance scores, action corrections,
numeric ratings, or Yes/No judgments.

FTRL

FTRL Hindsight Skill Induction Prompt

You are an expert tool-use teacher.

Trajectory:
{COMPLETE_TRAJECTORY}

Outcome:
{SUCCESS_OR_FAILURE}

Induce exactly one short, reusable tool-use strategy.

For a successful trajectory, capture the effective workflow or
pivotal decision. For a failed trajectory, capture the root error
and explain how to avoid it.

Use exactly the following format:
<skill>
Rule Name: imperative guidance. Apply when the relevant condition holds.
</skill>

Use at most 50 words. Do not include analysis, scores, or a
replacement trajectory.

Skill-Conditioned Teacher Prompt

After hindsight skill induction, ToolOPD prepends the generated skill to the original user context of the teacher. The remaining environment prompt, tool schemas, and interaction history are kept unchanged.

Skill-Conditioned Teacher Context

[Hindsight Skill]
{GENERATED_SKILL}

{ORIGINAL_USER_PROMPT}

The student policy receives the original environment prompt, whereas the teacher is conditioned on the generated hindsight skill. ToolOPD compares their action-token distributions and uses the resulting outcome-asymmetric skill relevance to dynamically weight the distillation objective.

Empirical Study: Detailed Setup

To investigate the connection between performance degradation in long-horizon tool learning and outcome-dependent credit assignment, we design three complementary diagnostic experiments. These experiments examine long-context robustness, outcome sensitivity, and supervision conflicts (Figure 1(a)–(Figure 1c)). The first evaluates the impact of interaction length on model performance, while the latter two analyze the behavior of ToolOPD credit weights on fixed trajectories. We uniformly use Qwen3-1.7B for the long-context experiments. For the credit analysis, we use Qwen3-4B models trained up to step 150 on each dataset as the teacher and probability evaluator.

Credit concentration. Figure 1(a) examines how credit is distributed across interaction turns in long-horizon ALFWorld trajectories. For each trajectory, we rank all turns according to their estimated outcome-aware credit Hi,tH_{i,t} and compute the fraction of total credit assigned to the top 20% of turns:

CreditMass⁡20%=∑t∈T20%iHi,t∑t∈TiHi,t\operatorname{CreditMass}_{20\%} = \frac{\sum_{t \in\mathcal{T}_{20\%}^{i}} H_{i,t}}{\sum_{t \in\mathcal{T}^{i}} H_{i,t}}

where T20%i\mathcal{T}_{20\%}^{i} denotes the highest-credit 20% of turns in trajectory ii. As shown in Figure 1(a), these turns account for 74.2% of the total credit, whereas the remaining 80% account for only 25.8%. This highly concentrated distribution shows that different interaction turns contribute unequally to the final outcome. Consequently, uniform OPD spreads teacher supervision over many low-credit transitions and weakens the learning signal for pivotal tool decisions.

Outcome-sensitive credit assignment. Figure 1(b) employs a controlled outcome counterfactual experiment. We keep the task, state, and action sequence unchanged. We then flip the final outcome between success and failure, and regenerate the factual and counterfactual skills accordingly. Next, we compute the factual credit Hi,tH_{i,t} and the counterfactual credit Hi,tcfH_{i,t}^{\mathrm{cf}} on the same action tokens. The credit calculation follows the outcome-asymmetric definition of ToolOPD:

Hi,t,k=[2σ(βsi(log⁡πtea(ai,t,k∣zi)−log⁡πtea(ai,t,k)))−1]+H_{i,t,k} = \left[2\sigma\left(\beta s_i\left(\log\pi_{\mathrm{tea}}(a_{i,t,k} \mid z_i) - \log\pi_{\mathrm{tea}}(a_{i,t,k})\right)\right) - 1\right]_{+}

where si∈{1,−1}s_i \in\{1,-1\} denotes success and failure, respectively, and we set β=5\beta= 5. If a turn satisfies ∣Hi,t−Hi,tcf∣>0.01\left|H_{i,t} - H_{i,t}^{\mathrm{cf}}\right| > 0.01, we label it as an outcome-sensitive turn. This experiment covers sampled data from ALFWorld (6 trajectories, 29 turns), WebShop (4 trajectories, 12 turns), and SearchQA (4 trajectories, 8 turns). It directly quantifies the dependence of credit assignment on the final outcome.

Conflicting supervision analysis. Figure 1(c) analyzes the consistency between the evidence provided by the teacher skill for observed actions and the final outcome. For an action token ai,t,ka_{i,t,k}, we define the signed teacher evidence as:

ei,t,k=si[log⁡πtea(ai,t,k∣zi)−log⁡πtea(ai,t,k)].e_{i,t,k} = s_i \left[\log\pi_{\mathrm{tea}}(a_{i,t,k} \mid z_i) - \log\pi_{\mathrm{tea}}(a_{i,t,k})\right].

When ei,t,k>0e_{i,t,k} > 0, skill conditioning shifts the teacher distribution in a direction consistent with the outcome; otherwise, it conflicts. We compute the proportion of conflicting evidence in both uniform distillation and credit-weighted distillation:

Runiform=∑i,t,k[−ei,t,k]+∑i,t,k∣ei,t,k∣,RH=∑i,t,kHi,t[−ei,t,k]+∑i,t,kHi,t∣ei,t,k∣.R_{\mathrm{uniform}} = \frac{\sum_{i,t,k}[-e_{i,t,k}]_{+}}{\sum_{i,t,k}|e_{i,t,k}|}, \qquad R_H = \frac{\sum_{i,t,k}H_{i,t}[-e_{i,t,k}]_{+}}{\sum_{i,t,k}H_{i,t}|e_{i,t,k}|}.

Both settings share the same trajectories and teacher outputs. The only difference is whether ToolOPD credit weighting is applied. We conduct this analysis on ALFWorld diagnostic trajectories and report the conflict proportions for successful, failed, and all trajectories.

Additionally, Figure 1(d) shows the success rate of Qwen3-0.6B on ALFWorld over 150 continuous training steps. This verifies whether the differences in the aforementioned credit assignment mechanisms translate into actual optimization gains.

Evaluation metrics

Evaluation metrics

For ALFWorld, SearchQA, and WebShop in Table 1, we use task success rate as the primary metric, defined as the proportion of evaluation instances in which the agent successfully completes the environment objective or produces the correct final answer. WebShop additionally reports a normalized task score that measures partial progress in unsuccessful trajectories. The task abbreviations are summarized in Table 6. The column “Avg.” denotes the average performance across the corresponding task categories.

ALFWorldSearchQAWebShop
Abbr.Full nameAbbr.Full nameAbbr.Full name
PickPick and PlaceNQNatural QuestionsScoreAverage Score
LookLook at Object in LightTrivTriviaQASucc.Success Rate
CleanPick, Clean, and PlacePopPopQA
HeatPick, Heat, and PlaceHotpHotpotQA
CoolPick, Cool, and Place2Wk2WikiMultiHopQA
Pick2Pick Two Objects and PlaceMuSMuSiQue
BamBamboogle

Table 6. Task and metric abbreviations used in Table 1.

For Table 2, we follow the official evaluation protocol of each benchmark. FTRL reports Solve-P, Solve-R, and Solve-F1, which measure tool-use precision, task completion, and their harmonic mean, respectively. BFCL reports accuracy on multi-turn base, missing-function, missing-parameter, long-context, and memory tasks, with MTOA denoting Multi-Turn Overall Accuracy. ToolHop uses Accuracy (Acc.) to evaluate the correctness of the final answer after multi-hop tool reasoning. Unless otherwise specified, all metrics are reported as percentages, and higher values indicate better performance. The corresponding abbreviations are summarized in Table 7.

FTRLBFCLToolHop
Abbr.Full nameAbbr.Full nameAbbr.Full name
Solve-F1Solve F1 ScoreBaseMulti-Turn BaseAcc.Accuracy
Solve-RSolve RecallMFMulti-Turn Missing Function
Solve-PSolve PrecisionMPMulti-Turn Missing Parameter
LCMulti-Turn Long Context
MTOAMulti-Turn Overall Accuracy
MemoryAgent Memory Accuracy

Table 7. Metric abbreviations used in the FTRL, BFCL, and ToolHop evaluation.

References

  1. [1]Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem. On-policy distillation of language models: Learning from self-generated mistakes. In International Conference on Learning Representations, volume 2024, pp. 21246–21263, 2024.arxiv.org/abs/2306.13649
  2. [2]Ilze Amanda Auzina, Joschka Strüber, Sergio Hernández-Gutiérrez, Shashwat Goel, Ameya Prabhu, and Matthias Bethge. Intrinsic credit assignment for long horizon interaction. arXiv preprint arXiv:2602.12342, 2026.arxiv.org/abs/2602.12342
  3. [3]Yupeng Chang, Xu Wang, Jindong Wang, Yuan Wu, Linyi Yang, Kaijie Zhu, Hao Chen, Xiaoyuan Yi, Cunxiang Wang, Yidong Wang, et al. A survey on evaluation of large language models. ACM transactions on intelligent systems and technology, 15(3):1–45, 2024.arxiv.org/abs/2307.03109
  4. [4]Tianyu Ding, Jianhong Xin, and Juan Pablo De la Cruz Weinstein. Keep policy gradient in charge: Sibling-guided credit distillation for long-horizon tool-use agents. arXiv preprint arXiv:2606.12634, 2026.arxiv.org/abs/2606.12634
  5. [5]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 International Conference on Learning Representations, volume 2026, pp. 37909–37926, 2026.arxiv.org/abs/2504.11536
  6. [6]Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, et al. Deepseek-rl: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948, 2025.
  7. [7]Yucan Guo, Xiaohan Wang, Miao Su, Saiping Guan, Zhongni Hou, Jiajun Chai, Wei Lin, Guojun Yin, Xiaolong Jin, Jiafeng Guo, et al. Hiddiffit: Hierarchical difficulty-aware policy optimization for multi-turn tool-integrated reasoning. arXiv preprint arXiv:2608.21863, 2026.arxiv.org/abs/2608.21863
  8. [8]Dongfu Jiang, Yi Lu, Zhuofeng Li, Zhiheng Lyu, Ping Nie, Haozhe Wang, Alex Su, Hui Chen, Kai Zou, Chao Du, et al. Verltool: Towards holistic agentic reinforcement learning with tool use. arXiv preprint arXiv:2509.01055, 2025.arxiv.org/abs/2509.01055
  9. [9]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.
  10. [10]Yaxuan Li, Yuxin Zuo, Bingxiang He, Jinqian Zhang, Chaojun Xiao, Cheng Qian, Tianyu Yu, Huan-ang Gao, Wenkai Yang, Zhiyuan Liu, et al. Rethinking on-policy distillation of large language models: Phenomenology, mechanism, and recipe. arXiv preprint arXiv:2604.13016, 2026a.arxiv.org/abs/2604.13016
  11. [12]Jiayu Liu, Qihan Lin, Cheng Qian, Rui Wang, Emre Can Acikgoz, Xiaocheng Yang, Jiateng Liu, Zhenhai-long Wang, Xiusi Chen, Heng Ji, et al. Planbench-xl: Evaluating long-horizon planning of llm tool-use agents in large-scale tool ecosystems. arXiv preprint arXiv:2606.22388, 2026.arxiv.org/abs/2606.22388
  12. [13]Zhengxi Lu, Zhiyuan Yao, Zhuowen Han, Zi-Han Wang, Jinyang Wu, Qi Gu, Xunliang Cai, Weiming Lu, Jun Xiao, Yueting Zhuang, et al. Self-distilled agentic reinforcement learning. arXiv preprint arXiv:2605.15155, 2026.arxiv.org/abs/2605.15155
  13. [14]Shervin Minaee, Tomas Mikolov, Narjes Nikzad, Meysam Chenaghlu, Richard Socher, Xavier Amatriain, and Jianfeng Gao. Large language models: A survey. arXiv preprint arXiv:2402.06196, 2024.
  14. [15]Humza Naveed, Asad Ullah Khan, Shi Qiu, Muhammad Saqib, Saeed Anwar, Muhammad Usman, Naveed Akhtar, Nick Barnes, and Ajmal Mian. A comprehensive overview of large language models. ACM Transactions on Intelligent Systems and Technology, 16(5):1–72, 2025.arxiv.org/abs/2307.06435
  15. [16]Shishir G Patil, Huanzhi Mao, Fanjia Yan, Charlie Cheng-Jie Ji, Vishnu Suresh, Jon Stoica, and Joseph E Gonzalez. The berkeley function calling leaderboard (bfcl): From tool use to agentic evaluation of large language models. In Forty-second International Conference on Machine Learning, 2025.
  16. [17]Cheng Qian, Emre Can Acikgoz, Qi He, Hongru Wang, Xiusi Chen, Dilek Hakkani-Tur, Gokhan Tur, and Heng Ji. Toolrl: Reward is all tool learning needs. Advances in Neural Information Processing Systems, 38: 105523–105553, 2026.arxiv.org/abs/2504.13958
  17. [18]Yujia Qin, Shengding Hu, Yankai Lin, Weize Chen, Ning Ding, Ganqu Cui, Zheni Zeng, Xuanhe Zhou, Yufei Huang, Chaojun Xiao, et al. Tool learning with foundation models. ACM Computing Surveys, 57(4):1–40, 2024.arxiv.org/abs/2304.08354
  18. [19]Changle Qu, Sunhao Dai, Xiaochi Wei, Hengyi Cai, Shuaiqiang Wang, Dawei Yin, Jun Xu, and Ji-Rong Wen. Tool learning with large language models: A survey. Frontiers of Computer Science, 19(8):198343, 2025.
  19. [20]Changle Qu, Sunhao Dai, Hengyi Cai, Jun Xu, Shuaiqiang Wang, and Dawei Yin. Matchtir: Fine-grained supervision for tool-integrated reasoning via bipartite matching. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 11953–11968, 2026a.
  20. [21]Changle Qu, Sunhao Dai, Hengyi Cai, Yuqi Zhou, Xinran Chen, Jun Xu, et al. Turnsight: Turn-level hindsight self-distillation for tool-integrated reasoning. arXiv preprint arXiv:2608.04007, 2026b.arxiv.org/abs/2608.04007
  21. [22]Mohit Shridhar, Xingdi Yuan, Marc-Alexandre Côté, Yonatan Bisk, Adam Trischler, and Matthew Hausknecht. Alfworld: Aligning text and embodied environments for interactive learning. arXiv preprint arXiv:2010.03768, 2020.arxiv.org/abs/2010.03768
  22. [23]Mingyang Song and Mao Zheng. A survey of on-policy distillation for large language models. arXiv preprint arXiv:2604.00626, 2026.arxiv.org/abs/2604.00626
  23. [24]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, 2026a.arxiv.org/abs/2603.08754
  24. [25]Qitai Tan, Zefang Zong, Yang Li, and Peng Chen. Atod: Annealed turn-aware on-policy distillation for multi-turn autonomous agents. arXiv preprint arXiv:2606.27814, 2026b.arxiv.org/abs/2606.27814
  25. [27]Yang Tian, Rui Wang, Xumeng Wen, Junjie Li, Shizhao Sun, Lei Song, Jiang Bian, and Bo Zhao. Pbsd: Privileged bayesian self-distillation for long-horizon credit assignment. arXiv preprint arXiv:2606.09348, 2026.arxiv.org/abs/2606.09348
  26. [28]Songjin Tu, Chengdong Xu, Qichao Zhang, Yiwen Ma, Yaocheng Zhang, Linjing Li, Dong Li, Xiangyuan Lan, and Dongbin Zhao. Ucb: Learning to utilize and evolve agentic skills via credit-aware on-policy bidirectional self-distillation. arXiv preprint arXiv:2606.29502, 2026.arxiv.org/abs/2606.29502
  27. [29]Hao Wang, Guozhi Wang, Han Xiao, Yufeng Zhou, Yue Pan, Jichao Wang, Ke Xu, Yafei Wen, Xiaohu Ruan, Xiaoxin Chen, et al. Skill-sd: Skill-conditioned self-distillation for multi-turn llm agents. arXiv preprint arXiv:2604.10674, 2026a.arxiv.org/abs/2604.10674
  28. [30]Jiaqi Wang, Wenhao Zhang, Weijie Shi, Yaliang Li, and James Cheng. Tcod: Exploring temporal curriculum in on-policy distillation for multi-turn autonomous agents. arXiv preprint arXiv:2604.24005, 2026b.arxiv.org/abs/2604.24005
  29. [31]Zi-Han Wang, Zhengxi Lu, Zhiyuan Yao, Jinyang Wu, Jie Wu, Zhengzhou Cai, Yueqing Sun, Xiang Ye, Linji Hao, Qi Gu, et al. Agentopsd: Recursive self-distillation for agentic reinforcement learning. arXiv preprint arXiv:2608.05987, 2026c.arxiv.org/abs/2608.05987
  30. [32]Jinyang Wu, Shuo Yang, Zhengxi Lu, Fan Zhang, Yuhao Shen, Lang Feng, Haoran Luo, Zheng Lian, Shuai Zhang, Zhengqi Wen, et al. Seed: Self-evolving on-policy distillation for agentic reinforcement learning. arXiv preprint arXiv:2607.14777, 2026.arxiv.org/abs/2607.14777
  31. [33]Weikai Xu, Chengrui Huang, Shen Gao, and Shuo Shang. Llm-based agents for tool learning: A survey. W. xu et al. Data Science and Engineering, 10(4):533–563, 2025.DOI
  32. [34]Wenkai Yang, Weijie Liu, Ruobing Xie, Kai Yang, Saiyong Yang, and Yankai Lin. Learning beyond teacher: Generalized on-policy distillation with reward extrapolation. arXiv preprint arXiv:2602.12125, 2026a.arxiv.org/abs/2602.12125
  33. [35]Zhicheng Yang, Zhijiang Guo, Yifan Song, Minrui Xu, Yongxin Wang, Yiwei Wang, Xiaodan Liang, and Jing Tang. Prune-opd: Efficient and reliable on-policy distillation for long-horizon reasoning. arXiv preprint arXiv:2605.07804, 2026b.arxiv.org/abs/2605.07804
  34. [36]Shunyu Yao, Howard Chen, John Yang, and Karthik Narasimhan. Webshop: Towards scalable real-world web interaction with grounded language agents. Advances in Neural Information Processing Systems, 35:20744–20757, 2022.arxiv.org/abs/2207.01206
  35. [37]Junjie Ye, Zhengyin Du, Xuesong Yao, Weijian Lin, Yufei Xu, Zhuhui Chen, Zaiyuan Wang, Sining Zhu, Ziheng Xi, Siyuan Yuan, et al. Toolhop: A query-driven benchmark for evaluating large language models in multi-hop tool use. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 2995–3021, 2025.arxiv.org/abs/2501.02506
  36. [38]Junjie Ye, Changhao Jiang, Zhengyin Du, Yufei Xu, Xuesong Yao, Zhiheng Xi, Xiaoran Fan, Qi Zhang, Tao Gui, Xuan-Jing Huang, et al. Feedback-driven tool-use improvements in large language models via automated build environments. In Findings of the Association for Computational Linguistics: ACL 2026, pp. 2293–2323, 2026.arxiv.org/abs/2508.08791
  37. [39]Woongyeong Yeo, Yumin Choi, Taekyung Ki, and Sung Ju Hwang. Hint-sd: Targeted hindsight self-distillation for long-horizon agents. arXiv preprint arXiv:2605.17873, 2026.arxiv.org/abs/2605.17873
  38. [40]Siyan Zhao, Zhihui Xie, Mengchen Liu, Jing Huang, Guan Pang, Feiyu Chen, and Aditya Grover. Self-distilled reasoner: On-policy self-distillation for large language models. arXiv preprint arXiv:2601.18734, 2026a.arxiv.org/abs/2601.18734
  39. [41]Wayne Xin Zhao, Kun Zhou, Junyi Li, Tianyi Tang, Zican Dong, Yupeng Hou, Beichen Zhang, Yingqian Min, Junjie Zhang, Peiyu Liu, et al. A survey of large language models. Frontiers of Computer Science, 20 (12):2012627, 2026b.DOI
  40. [42]Qiyong Zhong, Mao Zheng, Mingyang Song, Xin Lin, Jie Sun, Houcheng Jiang, Xiang Wang, and Junfeng Fang. Sod: Step-wise on-policy distillation for small language model agents. arXiv preprint arXiv:2605.07725, 2026.arxiv.org/abs/2605.07725
  41. [43]Yuhang Zhou, Kai Zheng, Haoling Li, Dengyun Peng, Can Xu, and Jingjing Chen. Turnopd: Making on-policy distillation turn-aware for efficient long-horizon agent training. arXiv preprint arXiv:2607.05804, 2026.arxiv.org/abs/2607.05804

Paper details

vlnc:W_42w4ptk7
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

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

CC BY 4.0

Original source

  • Computer Science

Not recorded for this paper · View statement →

Looking for related papers…
Contents