TL;DR
The SELF (agentic SElf-distilLation with environmental Feedback modeling) framework significantly boosts the performance of language agents by teaching them to predict environmental responses while simultaneously distilling guidance from a feedback-informed "self-teacher." This joint optimization creates a mutually reinforcing cycle that allows agents to learn effectively from raw interactions (like tool outputs and error messages) even when explicit success rewards are unavailable.
What Problem Does This Paper Address?
Training Large Language Model (LLM) agents to handle complex, multi-step tasks—such as using retail tools or writing code—typically relies on Reinforcement Learning with Verifiable Rewards (RLVR). However, in many real-world scenarios, reliable rewards are hard to come by. Instead, agents only receive environmental feedback: the raw output of a tool, a compiler error, or a change in a database state.
Existing methods like Hindsight Self-Distillation try to use this feedback as "privileged information." They show the feedback to a "teacher" version of the model, which then shows a "student" version (who doesn't see the feedback) what the correct action should have been. The authors of this paper argue that this is insufficient. Simply conditioning on feedback doesn't force the model to truly understand the underlying dynamics of the environment. There is a missing link: the model isn't explicitly learning how the environment responds to its actions.
Methods
The authors introduce SELF, a framework that treats environmental feedback not just as context, but as a primary learning target. The core idea is to jointly optimize two complementary objectives within a single shared model:
- Environmental Feedback Modeling ($\ell_{env}$): The model is trained to predict the actual feedback ($f_i$) it received, given the interaction history and the action it just took. This is essentially "world modeling"—learning the consequences of actions.
- Hindsight Self-Distillation ($\ell_{sd}$): This is the policy-learning side. A "student" policy (which must act without seeing future feedback) tries to match the action distribution of a "hindsight teacher." This teacher is an Exponential Moving Average (EMA) version of the model that does have access to the realized feedback.
By sharing parameters between these two tasks, the model develops a representation that is useful for both understanding the environment and acting within it.
Datasets
The researchers evaluated SELF on two challenging interactive benchmarks:
- $\tau$-bench Retail: A benchmark for multi-turn customer service interactions where agents must use domain-specific tools to help users while following complex store policies.
- AppWorld: A high-fidelity environment for code-based task completion across multiple simulated applications (e.g., email, calendar, banking).
To ensure the agents didn't lose their general intelligence during this specialized training, they also tested on standard LLM benchmarks: MMLU, MMLU-Pro, and IFEval.
Key Insights and Ideas
- The Virtuous Cycle: The paper's most significant finding is a "mutually reinforcing mechanism." Explicitly modeling the environment's response makes the hindsight teacher much more effective at providing supervision. Conversely, the distillation process helps the model build better internal representations that improve its feedback predictions.
- Feedback as Direct Supervision: Instead of just using feedback to "tweak" a policy, SELF treats the feedback sequence itself as a supervised target. This allows the model to learn from every single interaction, even failed ones, because an execution error is still a valid environmental response to be predicted.
- Observation > Reward? Surprisingly, SELF (which only uses observations) often outperformed GRPO (a popular RL algorithm) even when GRPO was given access to ground-truth success rewards. This suggests that the dense signal from raw environmental feedback is more informative for learning than a sparse "success/failure" label.
Key Results
SELF demonstrated substantial improvements over state-of-the-art baselines like SDPO and GRPO:
- Performance Gains: Using the Qwen3-8B backbone, SELF improved the success rate on $\tau$-bench Retail by 6.4 percentage points over SDPO and 4.1 points over reward-trained GRPO.
- AppWorld Success: On AppWorld, SELF increased Task Goal Completion (TGC) by 10.71 percentage points over SDPO.
- Efficiency: SELF achieved these results with fewer interaction turns, indicating more decisive and accurate agent behavior.
- Capability Retention: Unlike some fine-tuning methods that cause "catastrophic forgetting," SELF maintained nearly identical scores on general benchmarks like MMLU, proving that agent-specific training doesn't have to come at the cost of general reasoning.
Limitations and Future Work
While SELF is highly effective, the authors note a few areas for further exploration:
- Computational Overhead: Jointly training two objectives is slightly more expensive than simple distillation (though still cheaper than many RL methods).
- Feedback Quality: The method relies on the environment providing meaningful feedback. In "black box" environments where actions produce no observable change, the feedback modeling objective would likely fail.
- Scaling: The study focused on models up to 8B parameters. Testing how this mutually reinforcing mechanism scales to "frontier" models (70B+) remains an open question.
Summary updated