Bridging the Agent-World Gap: Text World Models for LLM-based Agents

Yixia Li, Hongru Wang, Peng Lai, Zhiwen Ruan, He Zhu, Youxin Zhu, Ganlong Zhao, Minda Hu, Yun Chen, Sibei Yang, Peng Li, Jeff Z. Pan, Jia Pan, Guanhua Chen, Yang Liu, Guanbin LiarXiv 2026

TL;DR

Current LLM-based agents are largely reactive, mapping observations directly to actions without anticipating how their environment will change. This survey introduces Text World Models (TWMs)—predictive transition models over textual states—and maps out their lifecycle across construction, training, inference, and evaluation. TWMs shift agents from short-sighted trial-and-error to proactive simulation across digital, physical, and social domains.

What Problem Does This Paper Address?

While large language model (LLM) agents excel at generating fluent text, browsing the web, and executing code, they typically operate in a purely reactive manner. A web agent might click a link without modeling how the page will change; a coding agent might patch a repository without simulating how those changes propagate to runtime behavior.

This lack of foresight leads to sample inefficiency, fragile planning, and an inability to recover from errors. To build truly autonomous, deliberate agents, we need a missing ingredient: a world model (WM). Because LLM agents primarily interact via textual interfaces (HTML, terminals, APIs, dialogue histories), this paper formalizes and reviews the rapidly growing field of Text World Models (TWMs), which predict the next textual state given a current state and a candidate action.

Methods

The paper establishes a formal framework for TWMs, defining them as a transition function: $$\hat{s}_{t+1} = M(s_t, a_t)$$ where states and actions are rendered textually. The authors organize the literature around a comprehensive taxonomy of the TWM lifecycle:

Figure 2: The text world model lifecycle. A world model M is first constructed via learning, prompting, or code generation (§3); then used to train agents through synthetic rollouts (§4) and guide them via lookahead at inference time (§5); finally evaluated for fidelity and utility (§6). The dashed arrow indicates a feedback loop that iteratively improves the world model.
  • Foundations & Landscape: TWMs are categorized along two axes: state representation (Natural Language, Structured data like JSON/graphs, or Executable Code) and grounding domain (Physical, Digital, Social, or Abstract).
  • Construction Paradigms: The survey breaks down how these models are built into three main archetypes:
  • Learning-Based: Fine-tuning LLMs on trajectory data using Supervised Fine-Tuning (SFT) or Reinforcement Learning (RL).
  • Prompt-Based: Utilizing frozen LLMs via in-context learning, retrieval-augmented generation (RAG), or self-evolving memory loops.
  • Programmatic: Prompting an LLM to generate executable code (e.g., Python or PDDL simulators) that acts as a deterministic world model.
Construction Pipelines for TWMs
  • Application: At training time, TWMs act as synthetic environments or user simulators to train policies. At inference time, they act as simulators for lookahead search (e.g., Monte Carlo Tree Search) or as verifiers to rank and correct proposed actions.

Datasets

As a systematic survey, this paper reviews dozens of datasets and benchmarks used to train and evaluate TWMs rather than introducing a new one. Key benchmarks discussed include:

  • Fidelity & Prediction Benchmarks: ByteSized32-StatePrediction (text games), Word2World (grid worlds), ENACT (embodied cognition), and WorldPrediction (procedural planning).
  • Agent Environments (Digital & Physical): ALFWorld, SciWorld, WebShop, WebArena-Lite, OSWorld, and SWE-bench Verified.
  • User Simulation Benchmarks: UserRL, $\tau$-bench, $\tau^2$-Bench, LifeSim, and MobileWorldBench.

Key Insights and Ideas

  • Full-State vs. Delta Prediction: For massive observation spaces like web pages (thousands of HTML tokens), predicting the entire next state is highly inefficient. Instead, state-of-the-art models predict "deltas" (local state changes). However, delta predictions tend to degrade faster over long planning horizons compared to compact, structured representations.
  • The "Metric Inversion" Pathology: Traditional text-matching metrics (like BLEU or embedding similarity) fail when evaluating world models. A predicted text state can be 99% identical to the ground truth but miss a single critical token (e.g., a product name or a negative flag), completely altering the agent's downstream decision. This necessitates behavioral consistency metrics that evaluate the world model based on whether it induces the correct action from a reference policy.
  • Simulators Create "Easy Mode": Prompting a standard LLM to act as a human user typically results in an unrealistically polite, cooperative, and uniform interaction. This masks agent weaknesses. Training dedicated user models on real human dialogues drops apparent agent success rates but drastically improves evaluation validity.

Key Results

The survey synthesizes several major quantitative milestones from the literature:

  • Data Saturation Thresholds: Closed, structured environments (like ALFWorld) saturate TWM training at around 20k trajectories. Open-ended web tasks require over 70k trajectories, while simulating free-form code execution requires mid-training on the scale of trillions of tokens (e.g., Code World Model's 5T tokens).
  • Search Beats Scale: Running structured tree search (like RAP) over a smaller, dedicated 33B LLM world model can outperform a massive frontier model (like GPT-4) relying on zero-shot chain-of-thought reasoning without search.
  • Downstream Agent Utility: Integrating a fine-tuned semantic text world model to simulate GUI changes was shown to boost an agent's real-world task success rate on AndroidWorld by 7.4%.

Limitations and Future Work

  • Hallucination Drift: During multi-step rollouts, free-form LLM simulators suffer from compounding errors. If an agent enters an out-of-distribution state, the simulator's responses quickly drift away from reality.
  • Policy-World Model Coupling: There is an unresolved architectural tension. Fully sharing parameters between the agent and the world model eliminates deployment overhead but causes gradient interference. Fully decoupling them allows independent scaling but risks language and granularity drift.
  • Lack of Multi-Step Reasoning: Most current TWMs map state-action pairs directly to the next state without intermediate reasoning. Future work must equip world models with explicit reasoning capabilities (e.g., tracing control flow or inferring latent intent) via process rewards and chain-of-thought distillation.

Summary updated

BibTeX
@misc{li2026bridging,
  author = {Yixia Li and Hongru Wang and Peng Lai and Zhiwen Ruan and He Zhu and Youxin Zhu and Ganlong Zhao and Minda Hu and Yun Chen and Sibei Yang and Peng Li and Jeff Z. Pan and Jia Pan and Guanhua Chen and Yang Liu and Guanbin Li},
  title = {{Bridging the Agent-World Gap: Text World Models for LLM-based Agents}},
  year = {2026},
  eprint = {2606.09032},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.09032},
}

Loading related content...

Figure