Agentic Reinforcement Learning with Observation-Calibrated Self-Distillation
OCSD compares matched replay views to calibrate environment feedback, significantly improving multi-task reinforcement learning performance.
Key Findings
Methodology
OCSD constructs two structurally matched replay views—Full (with future observation) and Observation-Ablated (without it)—and computes their score differences to extract an observation residual. This residual adjusts token-level updates during high-uncertainty steps, preserving trajectory direction. The approach involves: • Designing paired views differing only in future observation presence; • Calculating token score differences to derive residuals; • Mapping residuals to [-1,1] range for calibration; • Applying residuals selectively to steps with high model uncertainty; • Using sign-preserving mechanisms to maintain trajectory integrity. This method effectively reduces bias introduced by future observations, enhancing environmental feedback sensitivity.
Key Results
- On ALFWorld, WebShop, and Search-QA, OCSD with Qwen3-4B achieves success rates of 82.8%, 73.7%, and EM scores of 43.1%, surpassing baselines by over 12%. The improvements are consistent across model scales, with success rate gains of 8-14%.
- Calibrated residuals show stronger correlation with environment feedback, with AUROC increasing from 0.654 to 0.707, confirming bias reduction effectiveness.
Significance
This work addresses the critical challenge of bias from future environment observations in reinforcement learning, enabling models to leverage environment feedback more accurately. The proposed calibration mechanism improves task success and generalization, paving the way for more robust autonomous agents in complex, real-world scenarios. It offers a new paradigm for bias control, with broad implications for robotics, dialogue systems, and interactive AI.
Technical Contribution
The key innovation is the dual-view contrast mechanism that isolates observation-specific support signals, combined with a residual-based calibration strategy. This approach allows token-level support adjustments without disrupting trajectory-level optimization, providing theoretical bias mitigation guarantees. It bridges the gap between environment feedback and model updates, enabling finer control over learning signals.
Novelty
This is the first work to systematically compare structurally matched replay views to extract observation residuals, directly addressing bias attribution issues in privileged replay. Unlike prior methods relying on single-view support, OCSD’s dual-view contrast offers a principled way to calibrate environment feedback, representing a significant advancement in reinforcement learning supervision.
Limitations
- The method depends on accurate view matching and environment feedback quality; in noisy or highly dynamic environments, performance may degrade. Additionally, the computational overhead, while minimal, could increase in very large models or long sequences. Further research is needed to improve robustness and efficiency in such scenarios.
- The current approach assumes availability of structured environment feedback and may not extend straightforwardly to unstructured or multimodal data. Future work should explore adaptive view construction and feedback integration in more complex settings.
Future Work
Future directions include extending OCSD to multi-modal environments, integrating visual and auditory feedback, and developing adaptive view-matching algorithms. Additionally, exploring real-world robotic applications and online learning scenarios will be crucial for deploying these techniques in practical systems. Further theoretical analysis on bias mitigation guarantees and scalability remains an open avenue.
AI Executive Summary
In recent years, large language models (LLMs) have been increasingly employed as autonomous agents in complex tasks such as web navigation, embodied control, and information retrieval. Reinforcement learning (RL) methods like Group Relative Policy Optimization (GRPO) have driven progress but face persistent challenges. One major issue is the reliance on sparse, trajectory-level rewards, which provide limited guidance on how individual tokens should be updated. Moreover, when environment observations are used as privileged information—particularly future observations—support signals derived from replay views can be confounded by scaffold-induced score shifts, leading to biased learning signals.
This paper introduces Observation-Calibrated Self-Distillation (OCSD), a novel approach designed to address these biases. OCSD constructs two structurally matched replay views—Full, containing the actual future observation, and Observation-Ablated, where the observation is replaced with a neutral phrase. By comparing token scores from these views, OCSD extracts an observation residual that isolates the true environment feedback signal. This residual is then used to modulate token-level updates during high-uncertainty steps, ensuring that the model’s learning remains aligned with actual environment feedback while preserving the overall trajectory direction.
Extensive experiments across three benchmark datasets—ALFWorld, WebShop, and Search-QA—demonstrate that OCSD consistently outperforms strong baselines, including GRPO, OPSD, and SDAR. For instance, on ALFWorld with a 4B parameter model, success rates improved by over 12%, reaching 82.8%. The residuals derived through OCSD show a stronger correlation with environment feedback, validated by AUROC metrics. Ablation studies confirm the importance of the dual-view contrast and step-level selection, highlighting the robustness of the approach.
Overall, OCSD advances the state-of-the-art in agentic reinforcement learning by effectively mitigating bias from privileged future observations. Its ability to calibrate supervision signals enhances task success and generalization, offering a promising pathway for deploying autonomous agents in real-world, dynamic environments. Future work will focus on multi-modal extensions, efficiency improvements, and real-world robotic applications, further broadening its impact.
Deep Analysis
Background
Recent advancements in large-scale pre-trained models have enabled autonomous agents to perform complex tasks through reinforcement learning. Early methods like RLHF and GRPO provided significant progress but struggled with sparse rewards and bias issues, especially when future environment observations were used as privileged information. Self-distillation techniques emerged to refine token-level supervision, yet they often conflated environment feedback with scaffold-induced biases. Addressing these biases is crucial for improving model robustness and generalization, particularly in multi-turn, multi-modal scenarios where environment signals are noisy or incomplete.
Core Problem
The core challenge lies in accurately attributing support signals in privileged replay views, especially when future observations influence token scores. Traditional methods like OPSD re-score tokens under privileged views but cannot disentangle environment feedback from scaffold effects, leading to biased support that hampers learning. This bias becomes more pronounced in high-uncertainty steps, where the model's confidence is low, and the support signals are more susceptible to scaffold-induced shifts. Consequently, models may learn misleading cues, reducing task success and robustness.
Innovation
The main innovation is the dual-view contrast mechanism that compares a full replay view with an observation-ablated view, isolating the true environment feedback signal. This residual is then used to calibrate token-level updates selectively during uncertain steps, maintaining the overall trajectory direction. Unlike prior work that treats support signals as monolithic, OCSD explicitly separates scaffold effects from environment feedback, providing a more precise supervision signal. The approach integrates step-level selection, sign-preserving mechanisms, and residual modulation, forming a comprehensive bias mitigation framework.
Methodology
- �� Construct two structurally matched replay views: Full (with future observation) and Observation-Ablated (replacing observation with 'Observation: not provided'); • Compute token support scores in both views, then derive their difference as the observation residual; • Map residuals to [-1,1] range using tanh for calibration; • Select top 20% high-uncertainty steps based on token NLL scores; • Apply residuals to modulate token support in these steps, preserving the sign of the trajectory advantage; • Combine the calibrated token support with the trajectory advantage in the policy update, ensuring stable and bias-reduced learning.
Experiments
The experimental setup involves training Qwen3 models (1.7B, 4B, 8B) on ALFWorld, WebShop, and Search-QA datasets. The evaluation metrics include success rate, Exact Match (EM), and AUROC for bias detection. The step selection ratio (ρ=0.2) prioritizes uncertain steps for calibration. Baselines include GRPO, OPSD, and SDAR. Multiple ablation studies test the impact of view matching, step selection, and sign alignment. Results show that OCSD consistently outperforms baselines, with success rate improvements of 8-14%, and AUROC increases indicating better bias control.
Results
OCSD achieves success rates of 82.8% on ALFWorld, 73.7% on WebShop, and EM scores of 43.1% on Search-QA, surpassing GRPO by significant margins. The AUROC for bias detection improves from 0.654 to 0.707, confirming better environmental feedback alignment. Ablation results highlight the importance of view matching and step-level calibration, with performance dropping when these components are removed. The residuals show stronger correlation with environment signals, validating the core hypothesis.
Applications
This approach is applicable in training autonomous agents for robotics, dialogue, and interactive systems where environment feedback is crucial. It enhances the reliability and robustness of models in dynamic and noisy environments by reducing bias from privileged future observations. The method can be integrated into existing RL frameworks, improving task success and generalization in real-world applications such as service robots, virtual assistants, and adaptive control systems.
Limitations & Outlook
The effectiveness depends on accurate environment feedback and view matching, which may be challenging in unstructured or highly noisy settings. Computational overhead, though minimal, could increase with larger models or longer sequences. The current design assumes structured feedback and may require adaptation for multimodal or less predictable environments. Future research should focus on robustness, scalability, and extending applicability to broader scenarios.
Plain Language Accessible to non-experts
想象你在厨房里做一道复杂的菜。你有两个食谱:一个完整的(包括所有调料和步骤),另一个省略了关键调料。你会比较两个食谱,看看哪些步骤真正依赖调料,哪些可能是误导。通过这种比较,你可以更准确地知道下一步该怎么做,而不会被虚假的信息迷惑。OCSD就像这个厨师,它用两个版本的食谱对比,找出真正重要的线索,帮助你做出更好、更可靠的菜。这种方法让你在做菜时更聪明,避免被虚假信息误导,最终做出美味的菜肴。
ELI14 Explained like you're 14
你在玩一款游戏,目标是完成任务,但游戏中会突然出现一些虚假的线索,比如假的障碍或虚假的奖励。为了不被误导,你可以同时看两个录像:一个完整的录像,里面有所有信息;另一个是去掉虚假信息的录像。你会比较两个录像,找出哪些线索是真的,哪些是虚假的。这样,你在下一次行动时,就能更聪明地判断环境,避免被虚假信息骗到。OCSD就像这个聪明的玩家,它用两个录像对比,找到真正有用的线索,让自己变得更厉害,任务也更容易完成。这种方法让游戏变得更公平、更有趣,也让AI学得更聪明。
Glossary
Self-Distillation (自我蒸馏)
一种让模型用自己的输出作为监督,提升表达能力的技术;在论文中用来细粒度调整支持信号。
用于模型支持的微调机制。
Privileged Replay (特权回放)
利用未来环境观察作为额外信息,重评分生成内容以提供更密集的监督信号;增强学习效果。
基础支持信号的来源。
Observation-Calibrated Residual (观察校正残差)
通过对比匹配视图的分数差异,提取偏差校正信号,改善模型支持的准确性;核心创新。
调节高不确定性步骤的支持。
GRPO (Group Relative Policy Optimization)
一种基于群体相对优势的策略优化方法,用于多轨迹强化学习,提升任务完成率;算法名。
作为基线方法。
AUROC (Area Under ROC Curve)
衡量模型区分正负样本能力的指标,值越接近1越好;性能评价指标。
评估支持信号与环境反馈的相关性。
Open Questions Unanswered questions from this research
- 1 未来观察信息偏差校正机制在极端复杂环境中的表现仍待验证,尤其在多模态和高噪声场景下的适应性问题尚未解决。
- 2 当前方法依赖结构匹配的回放视图,如何在动态变化环境中实现更鲁棒的视图匹配,是未来研究的重要方向。
Abstract
Large language model agents are commonly trained through reinforcement learning with sparse trajectory-level rewards, which offer limited guidance on how strongly individual tokens should be updated. On-Policy Self-Distillation (OPSD) addresses this by re-scoring generated tokens under a privileged replay view to obtain dense, token-level supervision. However, we identify a confounding issue: the resulting support may reflect both the privileged information contained in the replay view and score shifts induced by the replay scaffold, making it difficult to attribute the support specifically to that information. This issue is especially pronounced when future environment observations serve as privileged information, since replaying them requires reconstructing an extended scaffold that itself perturbs token scores. To resolve this confounding, we propose Observation-Calibrated Self-Distillation (OCSD), which contrasts two structurally matched replay views, Full and Observation-Ablated, differing only in whether the actual future observation is present, to derive an observation residual that discounts score changes shared by the replay scaffold. OCSD then applies this residual to modulate token-level GRPO updates at high-uncertainty steps, while preserving the trajectory-level update direction. Experiments on ALFWorld, WebShop, and Search-QA across three Qwen3 model scales show that OCSD consistently outperforms strong baselines. Diagnostic analyses further confirm that the calibrated residual aligns better with local environment feedback. Our code is publicly available at https://github.com/yiy1x/OCSD.