TL;DR
This paper introduces Reinforcement World Model Learning (RWML), a self-supervised method that trains LLM-based agents to anticipate the consequences of their actions by aligning internal simulations with real environment dynamics. By optimizing for semantic similarity in an embedding space rather than exact token matching, RWML serves as an effective "mid-training" phase that significantly boosts agent success rates and prevents catastrophic forgetting without requiring any expert data.
What Problem Does This Paper Address?
While Large Language Models (LLMs) excel at static language tasks, they often stumble when deployed as autonomous agents in dynamic, long-horizon environments. A core reason for this is their lack of an internal "world model"—the ability to predict how the environment will change in response to their actions.
Traditional methods attempt to teach LLMs world modeling via Supervised Fine-Tuning (SFT) on next-state token prediction. However, SFT suffers from two major flaws:
- It prioritizes token-level fidelity (matching exact wording) over semantic equivalence, which can lead to model collapse.
- It relies heavily on expensive, hard-to-scale expert trajectories or outputs from much larger teacher models.
Alternative approaches like using an "LLM-as-a-judge" to score predictions are notoriously vulnerable to reward hacking. The authors tackle this bottleneck by asking: Can we train an LLM to learn a robust, action-conditioned world model entirely through self-supervised interaction?
Methods
The authors propose Reinforcement World Model Learning (RWML), a two-stage framework that decouples world-model learning from downstream task-success learning.
- Data Collection & Filtering: The target LLM interacts with the environment to collect rollouts, which are broken down into
(history, action, next_state)triplets. To ensure the model focuses on non-trivial dynamics, "too easy" transitions are filtered out using a lightweight scoring model. - Reinforcement Learning via GRPO: The agent is trained using Group Relative Policy Optimization (GRPO). Given a history and a potential action, the model is prompted to generate reasoning tokens (
<think>) followed by a prediction of the next state ($\hat{s}_{t+1}$). - Sim-to-Real Gap Reward: Instead of checking if the text matches word-for-word, RWML passes both the predicted next state and the actual environment next state through an off-the-shelf embedding model. The reward is binary, based on whether the cosine distance falls below a specific threshold ($\tau_d$). For structured environment responses (like JSON tool outputs), a ROUGE-score variant is used to ensure structural integrity.
Datasets
The method was evaluated on two demanding, long-horizon benchmarks:
- ALFWorld: A text-based embodied environment where an agent must navigate household rooms and manipulate objects to complete multi-step tasks.
- $\tau^2$ Bench: A complex, interleaved tool-use benchmark simulating a customer service agent handling real-world retail, telecom, and airline support tickets.
Key Insights and Ideas
- Semantic Alignment > Token Fidelity: Shifting the optimization target from exact token reproduction to embedding-space similarity provides a much cleaner, more robust training signal. It prevents the model from wasting capacity on memorizing exact phrasing and focuses it on the underlying environment mechanics.
- Online RL Mitigates Catastrophic Forgetting: A common pitfall of SFT is that the model loses its general reasoning, coding, and mathematical capabilities while adapting to a specific agent environment. Because RWML uses on-policy RL, it preserves prior knowledge significantly better than SFT baselines.
- Surgical Parameter Updates: Weight change analysis revealed that RWML alters a much smaller, more targeted set of model parameters across layers compared to SFT. This compact update behavior leaves the model's underlying representation space intact and highly receptive to subsequent policy optimization.
Key Results
- Standalone Improvements: Without using any expert data or task-success rewards, purely training a model with RWML improved baseline agent performance by 19.6 points on ALFWorld and 7.9 points on $\tau^2$ Bench.
- Synergy with Policy RL: When RWML-trained models were subsequently fine-tuned using standard task-success reward RL (Policy RL), they outperformed direct Policy RL by 6.9 points on ALFWorld and 5.7 points on $\tau^2$ Bench, effectively matching the performance of models trained on expensive expert data.
- Reduced Action Errors: Quantitatively, RWML drastically reduced the generation of invalid or inefficient actions. On $\tau^2$ Bench, the proportion of invalid tool calls (hallucinated tools or bad arguments) plummeted from 24.90% down to 8.84%.
Limitations and Future Work
The primary limitation identified is base model dependency. The authors observed that weaker base models (like Qwen2.5-7B) struggle to transfer the world knowledge gained during RWML into better downstream decision-making on highly complex tasks like $\tau^2$ Bench, whereas larger models (Qwen3-8B and 30B) show substantial gains.
Future research directions include finding ways to improve this knowledge-transfer capability in smaller models and conducting deeper mechanistic interpretability studies to understand exactly how RL shapes internal world representations.
Summary updated