# Masked Diffusion Language Models are Strong and Steerable Text-Based World Models for Agentic RL

*Darshan Deshpande*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/148970) · [Open on the map](../papers.html#p148970)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [Agentic Reinforcement Learning with World Models](../pgroup/74.md) · Type: new method · Keywords: text-based world models, diffusion language models, reinforcement learning, zero-shot transfer, agentic RL

Areas: [AI Agents](../areas/agents.md) › Agent Optimization and Evaluation › Agentic Reinforcement Learning; [Evaluation & Benchmarks](../areas/evaluation.md) › Agent Capabilities and Memory › Agent and Policy Evaluation; [RL for LLMs & Agents](../areas/llm-rl.md) › Language Model Agents › Agentic Reinforcement Learning

## Summary
Masked diffusion language models (MDLMs) are shown to outperform autoregressive language models as text-based world models for agentic RL, achieving up to 47% gains on out-of-distribution environments.

## Explained to a 5-year-old
We want robots to learn how to play many different games. Usually the games are fixed, so the robot gets bored after a while. The researchers made a new way to imagine lots of possible game situations using a special kind of language model that can see the whole picture at once. They collected many examples of how people played different games and used that to teach the model. The model can then help robots try many new actions without having to retrain each time.

## Explained to a 5-year-old, longer
Imagine a robot that wants to learn how to solve puzzles, play games, and navigate new worlds. Right now, the puzzles and games are fixed, so the robot only learns one way to do things and gets stuck when something changes. The researchers noticed that existing robot learning methods often use a language model that predicts the next word one after another, which can only look forward and misses important clues. They created a new kind of language model that works like a diffusion process, meaning it can look at the whole situation at the same time and fill in missing pieces. To train this model, they gathered a huge collection of examples from many different games and environments, recording how characters moved, what tools they used, and what happened next. They then compared this new model with the old style of language models and found that the new one could imagine many more varied and realistic scenarios, helping the robot explore a richer set of actions. They also built a simple training system that checks the robot’s imagined steps to make sure they make sense, and they tested the robot on three brand-new games it had never seen before. The robot performed much better than before, solving puzzles and making progress in the new games without any extra training. Finally, the researchers shared all their data and code so other scientists can build on their work and keep improving robot learning.

## For a technical reader
The paper addresses the limitation of autoregressive world models in RL by introducing a diffusion-based language model that can condition on global state anchors. A large multi-environment trajectory dataset is curated to support training. A plug-and-play GRPO framework with deterministic checks enables zero-shot evaluation on out-of-distribution environments, showing up to 47% absolute gains over baselines. The approach maintains comparable inference latency while providing greater rollout diversity and coherence.

## Problem
Existing RL training environments are static and hand-curated, leading to sparse rewards and mode collapse as agents overfit to fixed workflows. Autoregressive world models suffer from a left-to-right bias that limits their ability to condition on globally interdependent state information.

## Method
The authors formalize text-based world modeling as a steerable transition-dynamics problem, decompose it into environment state, task context, tool schemas, domain rules, and steering directives, and construct a large dataset of grounded trajectories. They compare autoregressive language models with a denoising-based language model, using a GRPO training framework with deterministic state checks to evaluate zero-shot transfer across out-of-distribution environments.

## Results
The denoising-based language model yields superior coherence, groundedness, and rollout diversity compared to larger autoregressive models, and achieves up to 47% absolute gains on ScienceWorld, ALFWorld, and AppWorld without fine-tuning.

## Contributions
The work formalizes text-based world modeling as a steerable transition-dynamics problem, curates a large multi-environment trajectory dataset, and demonstrates the effectiveness of denoising-based language models for diverse RL training via zero-shot transfer.

## Practical relevance
Open-sourcing the dataset and framework enables broader research into diverse, steerable world models for scalable agentic RL.

## Research questions this paper is counted under

- [How can we prevent alignment and mode collapse in iterative feedback-driven learning systems?](../q/677.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/148970)
