ECOS: Environment-Calibrated On-Policy Self-Distillation for Language Agents
Chenhao Zhang, Zhongan Wang, Mingxuan Li, Hehe Fan, Zheng Zhu, Ming Li
Abstract
On-policy self-distillation lets a language agent act as its own Teacher by conditioning on privileged context such as skills written from its own trajectories. Its guidance, however, is weighted by how much this context shifts token likelihoods rather than by whether it improves behavior, so errors in self-written skills return through later updates. We propose environment-calibrated on-policy self-distillation, which uses environmental outcomes to decide how much to trust the Teacher's current guidance and which self-written skills to reinforce. Command-level advantages, estimated by comparing commands executed at similar observations, scale each Teacher preference and reward reflections and skills whose induced preferences favor higher-advantage commands. Without skills at inference, 3B and 7B agents reach 90.5% and 93.3% macro success on seen ALFWorld tasks and 75.5% and 80.5% success on WebShop. On unseen ALFWorld tasks, they outperform GRPO under the same protocol by 11.0 and 7.6 percentage points, respectively. In an ablation study, supervising only executable commands rather than the Actor's full response raises 3B WebShop success from 52.3% to 75.0%.
Create a lesson
Related papers
Turning Multi-Agent Communication into Token-Level Credit with On Policy Self Distillation
Shared title terminology · Zixu Wang, Yu Zhao, Xing Zheng et al.
When Students Fail to Learn from Teachers: Learning Dynamics of On-Policy Distillation
Shared title terminology · Xinnan Zhang, Zeyi Liao, Siliang Zeng et al.
Fin-RSI: A Unified Library of Financial Skills, Checks, and Self-Improvement for LLM Agents
Shared title terminology · Wanghao Ye, Shwai He, Sihan Chen et al.
Wactorz: Self-Writing LLM Agents That Discover, Repair, and Migrate at the Edge
Shared title terminology · Panagiotis Kasnesis, Lazaros Toumanidis, Amalia Contiero Syropoulou et al.
Layer-Level Control of Language Model Execution in Agent Frameworks
Shared title terminology · Ran Guan, Yiqi Lin, Xiangxi Tian et al.
DoppelVet: Comparative Safety Verification for Self-Evolving Agents
Shared title terminology · Yifan Duan, Du Yin, Siyuan Zheng et al.