Manuscript Offprint

arXiv:2610.23048

Distill Until Divergence: Error-Truncated Hindsight Distillation for Agentic RL

Yibin Huang, Conghui Zhu

Abstract

Long-horizon interaction requires agents to make multiple decisions in a changing environment. Outcome-based GRPO lacks fine-grained guidance for intermediate decisions. Recent methods distill completed trajectories into reusable skills and use hindsight-conditioned OPD to provide dense token-level credit. However, skill-induced probability shifts do not necessarily represent reward-aligned credit; especially after an erroneous action changes subsequent interaction states, skill-conditioned supervision may become mismatched with the current state. To address this mismatch, we propose ETRO, which routes two complementary hindsight skills according to trajectory outcomes and error boundaries: Positive skills capture successful workflows to reinforce successful trajectories and pre-error decisions, while Negative skills capture failure-specific corrections to target decisive errors. The post-error suffix is optimized exclusively by GRPO, retaining outcome-based learning without extending potentially mismatched hindsight supervision. Extensive experiments demonstrate competitive task performance and support effective fine-grained credit allocation.

1 Introduction

Large language model agents are increasingly used for tasks that require sustained interaction with external tools and environments, including web navigation (Wei et al., 2025), household tasks (Shridhar et al., 2020), and search-augmented reasoning (Huang et al., 2026). These applications extend language models beyond single-response generation toward long-horizon task execution, where each action can alter the observations and choices available in subsequent turns.

Reinforcement learning provides a natural way to learn these strategies from interaction outcomes, but outcome-based GRPO lacks explicit guidance for intermediate decisions (Shao et al., 2024). Recent methods supplement it with trajectory-derived skills, using on-policy distillation (OPD) to provide token-level credit (Yang et al., 2026b; Wu et al., 2026). Yet denser credit is not necessarily better-aligned credit: after an error changes the interaction state, the same skill may no longer guide subsequent decisions appropriately. Extending its supervision over the suffix can therefore introduce state-mismatched updates (Tan et al., 2026; Qu et al., 2026).

Our view is that hindsight should inform selective credit allocation. We refer to guidance extending beyond the states and decisions it meaningfully describes as hindsight applicability mismatch. A skill that explains a completed trajectory need not be equally applicable to every decision along it. An unrecovered decisive error can separate workflow consolidation, local correction, and outcome-based learning.

We propose ETRO to route two functionally distinct hindsight skills. A Positive skill summarizes a successful workflow and guides OPD throughout successful trajectories and over the pre-error prefix of failed trajectories. A Negative skill summarizes failure-specific corrections and guides OPD only at the writer-estimated first unrecovered decisive error. The post-error suffix remains optimized exclusively by GRPO, removing potentially mismatched auxiliary credit without discarding outcome-based learning. By integrating skill-conditioned OPD into the GRPO objective, ETRO combines targeted hindsight guidance with outcome-based learning without requiring skills during task execution.

We evaluate ETRO on WebShop, ALFWorld, and Search QA using Qwen2.5 actors from 1.5B to 7B parameters. At 7B, ETRO achieves 85.8% WebShop success, 97.0% ALFWorld success, and 51.8% Search QA macro-average accuracy. Ablation studies further support the effectiveness of its

∗^{*}Corresponding author.

selective credit allocation.

Our contributions are threefold:

• We formulate hindsight applicability mismatch: skill-induced probability shifts need not provide reward-aligned credit after an error changes the interaction state.

• We introduce ETRO, which separates workflow guidance from failure-specific correction and routes their OPD credit by trajectory region, while retaining outcome-based GRPO over the complete rollout.

• Extensive experiments across three agentic domains demonstrate ETRO’s effectiveness, with ablation studies validating its selective credit allocation.

References (36)