[Microsoft Research] Online Experiential Learning: Turning Deployment into a Continuous Training Loop

Online Experiential Learning for Language Models

Tianzhu Ye, Li Dong, Qingxiu Dong, Xun Wu, Shaohan Huang, Furu Wei
Summary
Problem
Method
Results
Takeaways

The paper introduces Online Experiential Learning (OEL), a reward-free framework that allows Language Models (LLMs) to continuously improve by interacting with environments. Using a two-stage process of "Extraction" and "Consolidation" via on-policy context distillation, it achieves state-of-the-art autonomous improvement in text-based games without human labels or environment access during training.

TL;DR

Most Large Language Models (LLMs) are "frozen" once they leave the training lab. Online Experiential Learning (OEL) breaks this ceiling by allowing models to learn from their own real-world interactions. By extracting structured "knowledge" from textual environment feedback and distilling it into its own parameters, OEL enables a virtuous cycle of improvement in task accuracy and reasoning efficiency—all without human labels or scalar rewards.

Problem & Motivation: The Deployment Paradox

In the current AI lifecycle, deployment is the end of learning. However, the real world is an infinite stream of diverse tasks that no offline dataset can fully cover.

Existing approaches face two major hurdles:

  1. Unstructured Feedback: Real-world environments don't provide a "+1 reward" signal; they provide text like "You hit a wall" or "Error: syntax invalid." Standard Reinforcement Learning (RL) cannot handle this.
  2. Environment Isolation: Servers where models are trained often cannot access the live user-side environments due to privacy or technical constraints.

OEL solves this by treating the model's own interaction history as a goldmine for autonomous refinement.

Methodology: The Virtuous Cycle of OEL

OEL operates in a recursive loop consisting of two primary stages:

1. Knowledge Extraction (User Side)

The model acts in the environment, collecting trajectories (). Instead of just "remembering" these paths, an extraction model () summarizes them into Experiential Knowledge. This converts a messy sequence of moves into transferable rules (e.g., "Moving into 'H' tiles causes a reset").

2. Knowledge Consolidation (Server Side)

To move this knowledge from the "prompt" (In-Context Learning) into the "brain" (Model Weights), OEL uses On-Policy Context Distillation.

  • The student model generates responses.
  • A "teacher" (the same model but given the extra Experiential Knowledge in its prompt) guides the student.
  • The student is optimized via Reverse KL Divergence, which encourages the model to seek the "modes" of successful behavior.

OEL Framework Overview

Experiments: Accuracy Up, Latency Down

The researchers tested OEL on complex text-based games (Frozen Lake, Sokoban) using the Qwen3 family. The results reveal three critical insights:

1. Progressive Improvement

Unlike offline training, OEL's performance doesn't plateau quickly. Each iteration provides higher-quality trajectories, which lead to even better "Knowledge," triggering a fresh wave of improvement.

Successive Iteration Results

2. Efficiency Gains (Thinking Faster)

One of the most striking findings is that as the model internalizes experience, its Response Length decreases. It effectively learns to skip "unnecessary thinking" because the rules of the environment are now part of its internal parameters rather than something it has to puzzle out in every prompt.

3. Avoiding Brain Drain (OOD Preservation)

Standard fine-tuning often causes "Catastrophic Forgetting." OEL’s choice of On-Policy training is the secret sauce here. By training on the model's own distribution, it retains its general intelligence (measured by IF-Eval) while mastering the specific environment.

In-distribution vs OOD Performance

Critical Analysis & Conclusion

The value of OEL lies in its reward-free nature. It bypasses the need for complex Reinforcement Learning from Human Feedback (RLHF) by using the LLM's own summarization capabilities as a "proxy reward."

Key Takeaways:

  • Knowledge beats Raw Data: The study proved that distilling extracted knowledge is significantly more effective than distilling raw trajectories.
  • Self-Consistency is Key: Knowledge extracted from its own "self" is more useful for a model than knowledge from a larger, smarter model that it cannot emulate.

Limitations: Currently, OEL is validated on text-based environments. Extending this to high-stakes real-world software engineering or physical robotics remains the next frontier.

OEL proves that for LLMs, experience is the best teacher, and deployment is just the beginning of the journey.

Find Similar Papers

Try Our Examples

  • Find recent papers on "On-Policy Context Distillation" or "Reverse KL Divergence" for improving LLM reasoning efficiency.
  • Which research first introduced the concept of "Verbal Reinforcement Learning" or "Reflexion," and how does OEL's parameter update differ from those prompt-based methods?
  • Explore studies that apply "Online Experiential Learning" or autonomous feedback loops to Multi-modal Large Language Models (MLLMs) in robotics or GUI navigation.
Contents
[Microsoft Research] Online Experiential Learning: Turning Deployment into a Continuous Training Loop
1. TL;DR
2. Problem & Motivation: The Deployment Paradox
3. Methodology: The Virtuous Cycle of OEL
3.1. 1. Knowledge Extraction (User Side)
3.2. 2. Knowledge Consolidation (Server Side)
4. Experiments: Accuracy Up, Latency Down
4.1. 1. Progressive Improvement
4.2. 2. Efficiency Gains (Thinking Faster)
4.3. 3. Avoiding Brain Drain (OOD Preservation)
5. Critical Analysis & Conclusion