# ECOS: Environment-Calibrated On-Policy Self-Distillation for Language Agents

DevFeed: [ECOS: Environment-Calibrated On-Policy Self-Distillation for Language Agents](<https://devfeed.tech/articles/ecos-environment-calibrated-on-policy-self-distillation-for-language-agents-126252.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.12232>)

Author: Chenhao Zhang, Zhongan Wang, Mingxuan Li, Hehe Fan, Zheng Zhu, Ming Li

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [Reinforcement learning](<https://devfeed.tech/topics/reinforcement-learning.md>), [post-training](<https://devfeed.tech/topics/post-training.md>), [grpo](<https://devfeed.tech/topics/grpo.md>)

Tags: [ablation](<https://devfeed.tech/tags/ablation.md>), [actor](<https://devfeed.tech/tags/actor.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [command](<https://devfeed.tech/tags/command.md>), [commands](<https://devfeed.tech/tags/commands.md>), [context](<https://devfeed.tech/tags/context.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [distillation](<https://devfeed.tech/tags/distillation.md>), [environment](<https://devfeed.tech/tags/environment.md>), [grpo](<https://devfeed.tech/tags/grpo.md>), [guidance](<https://devfeed.tech/tags/guidance.md>), [inference](<https://devfeed.tech/tags/inference.md>), [language](<https://devfeed.tech/tags/language.md>), [points](<https://devfeed.tech/tags/points.md>), [policy](<https://devfeed.tech/tags/policy.md>), [protocol](<https://devfeed.tech/tags/protocol.md>), [raises](<https://devfeed.tech/tags/raises.md>), [reflections](<https://devfeed.tech/tags/reflections.md>), [reward](<https://devfeed.tech/tags/reward.md>)

## AI overview

ECOS calibrates on-policy self-distillation using environmental outcomes: it estimates command-level advantages by comparing commands taken at similar observations, scales Teacher preferences accordingly, and reinforces reflections and self-written skills that favor higher-advantage commands. At inference, agents do not use skills. The abstract reports 90.5% and 93.3% macro success for 3B and 7B agents on seen ALFWorld tasks, and 75.5% and 80.5% success on WebShop. On unseen ALFWorld tasks, they exceed GRPO under the same protocol by 11.0 and 7.6 percentage points. An ablation reports that supervising executable commands instead of the Actor's full response increases 3B WebShop success from 52.3% to 75.0%.

## Source excerpt

arXiv:2611.12232v1 Announce Type: new 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%.