TL;DR
Online Experiential Learning (OEL) is a reward-free framework that allows large language models (LLMs) to continuously learn and improve directly from their deployment logs. By extracting structured insights from user interaction trajectories and internalizing them via on-policy context distillation, OEL creates an autonomous learning loop that boosts both task accuracy and token efficiency without requiring human annotations or server-side environment access.
What Problem Does This Paper Address?
The dominant paradigm for improving LLMs relies heavily on offline training, such as Supervised Fine-Tuning (SFT) with human annotations or Reinforcement Learning (RL) within simulated environments. Once deployed, these models become static artifacts; they completely discard the rich stream of real-world interaction data they generate with users.
Setting up true online learning in production is notoriously difficult for two reasons:
- Environment Isolation: Server-side training clusters typically cannot access live, user-side environments due to privacy, latency, or infrastructure constraints.
- Unstructured Feedback: Real-world interactions rarely provide neat scalar rewards. Instead, environments return unstructured text feedback (e.g., error messages, system logs, or state changes), which standard RL algorithms cannot directly digest.
OEL bridges this gap by enabling reward-free, environment-free online learning from text feedback alone.
Methods
OEL splits the online learning process into two main server-side stages that run iteratively:
- Knowledge Extraction: The deployed model acts as its own "extractor." It reviews multi-turn interaction trajectories collected from users and sequentially distills them into high-level, transferable "experiential knowledge" (such as discovered rules, successful strategies, or critical failure modes).
- Knowledge Consolidation: To avoid needing this long text history in the prompt at inference time, the model internalizes this knowledge into its weights using on-policy context distillation. The student model is trained to generate single-turn responses from partial interaction prefixes without the knowledge context. It is optimized via token-level reverse Kullback-Leibler (KL) divergence to match a teacher model that does have access to the extracted knowledge.
This loop naturally repeats: the updated model is redeployed, collects higher-quality trajectories, and yields even richer experiential knowledge for the next round.
Datasets
The authors evaluated OEL on text-based game environments implemented within the TextArena benchmark:
- Frozen Lake: A navigation task on a grid where the agent must reach a goal while avoiding holes.
- Sokoban: A spatial reasoning puzzle requiring the model to push boxes onto target positions.
Crucially, explicit rules were stripped from the initial prompts, forcing the models to discover game mechanics purely through exploration and text feedback. For out-of-distribution (OOD) evaluation, the authors used IF-Eval (Instruction-Following Evaluation).
Key Insights and Ideas
- Raw Trajectories are Noisy: Directly fine-tuning a model on raw interaction logs yields minimal improvement. Extracting structured, high-level experiential knowledge first is essential because it filters out the trial-and-error noise of raw exploration.
- In-Context Learning Saturates: Simply stuffing past experiences into an LLM's prompt context window quickly hits a performance ceiling as the window gets crowded. Distilling this knowledge directly into model weights bypasses this bottleneck and allows the student to eventually surpass the teacher's in-context capabilities.
- On-Policy Self-Consistency is Critical: Surprisingly, a smaller model (Qwen3-1.7B) learns better from experiential knowledge extracted from its own trajectories than from knowledge generated by a larger, stronger model (Qwen3-4B). External teacher knowledge can encode strategies that exceed the student's intrinsic capabilities, making self-derived experience more effective.
- Mitigating Catastrophic Forgetting: By utilizing on-policy data (generated from the student model's own distribution) during the consolidation stage, OEL preserves general capabilities on OOD tasks (like IF-Eval), whereas traditional off-policy distillation causes clear performance degradation.
Key Results
- Continuous Performance Gains: Across successive iterations, OEL consistently improved task pass rates. On Frozen Lake, the pass rate for Qwen3-1.7B jumped from an initial ~7% to nearly 50% by the third iteration loop.
- Improved Token Efficiency: As experiential knowledge was internalized into the weights, the models solved problems faster and with less reasoning effort. The average per-turn response length dropped to roughly 70% of the initial length by the third iteration.
- Robust Scaling: OEL successfully scaled across multiple model sizes (Qwen3-1.7B, 4B, and 8B) and proved effective for both thinking (reasoning-focused) and non-thinking model variants.
Limitations and Future Work
While OEL provides a powerful blueprint for autonomous online learning, the authors note that it was primarily evaluated on closed, text-based game environments (Frozen Lake and Sokoban). Extending this framework to open-ended, highly dynamic real-world deployment scenarios where text feedback is highly ambiguous remains an open challenge. Additionally, the extraction stage heavily relies on the model's baseline ability to accurately summarize its own failures and successes, which might be less effective for very small or poorly aligned base models.
Summary updated