General agents need world models

Jonathan Richens, David Abel, Alexis Bellot, Tom EverittarXiv 2025 · DOI

Abstract

A long-standing debate in artificial intelligence concerns whether agents require explicit internal "world models" to exhibit complex behavior. While the "model-free" paradigm suggests that intelligence can emerge from simple action-perception loops, this paper provides a formal proof that any agent capable of generalizing across multi-step, goal-directed tasks must—by mathematical necessity—possess an internal predictive model of its environment. By introducing an algorithm that extracts environment transition probabilities directly from an agent's policy, the authors demonstrate that as an agent's competence and goal horizon increase, the accuracy of its implicit world model must also improve.

Introduction

Does a Large Language Model (LLM) or a reinforcement learning agent truly understand the "physics" of its environment, or is it merely a sophisticated statistical mimic? This question sits at the heart of the divide between model-based and model-free AI. The model-free camp, famously championed by Rodney Brooks, argues for "intelligence without representation." Conversely, proponents of world models argue that planning and reasoning are impossible without an internal simulation of cause and effect.

This research moves the debate from philosophical speculation to formal mathematical proof. By analyzing the relationship between an agent's ability to generalize to novel goals and its knowledge of environment dynamics, the authors show that there is no "model-free shortcut" to general intelligence.

Theoretical Framework

The authors utilize Controlled Markov Processes (cMP) to define environments. Unlike standard Markov Decision Processes, a cMP focuses on state transitions without a pre-defined reward function, allowing for a broader study of goal-directed behavior. Goals are specified using Linear Temporal Logic (LTL), a formal language capable of expressing complex, multi-step instructions such as "reach state A, then eventually reach state B while avoiding state C."

An agent is defined as "goal-conditioned" if its policy is a function of both its current state and its current LTL goal. The core of the paper's argument rests on a proof by reduction: if an agent can achieve a sufficiently diverse set of goals with a bounded level of regret (competence), it must implicitly contain the information necessary to reconstruct the environment's transition dynamics.

The Extraction Algorithm

To prove that the world model exists within the policy, the authors developed a novel Extraction Algorithm. This algorithm treats the agent as a "black box" and queries its policy with specific "either-or" composite goals. For example, by observing whether an agent prefers to move toward state A or state B under specific constraints, the algorithm can mathematically back out the underlying transition probabilities of the environment.

This finding is significant because it shifts the search for world models from internal activations (the "brain states" of a neural network) to the policy itself (the mapping of goals to actions). If the environment's physics can be reconstructed solely by observing an agent's choices across different goals, that information must be encoded within the policy.

Key Insights and Scaling Laws

The Necessity of Horizon

The research identifies a critical distinction between reactive and generalist agents. Theorem 2 proves that "myopic" agents—those concerned only with the immediate next state—do not require world models. This explains why simple reactive systems can appear intelligent in limited contexts. However, as soon as an agent must pursue multi-step horizons, a world model becomes mandatory.

Error Scaling

The accuracy of the extracted world model is directly tied to the agent's performance and the complexity of the tasks it can solve. The authors show that the error in the internal world model scales as $O(1/\sqrt{n})$, where $n$ represents the depth or horizon of the goals the agent can achieve. To solve longer, more complex tasks, an agent is forced to maintain a higher-resolution internal model.

Empirical Validation

The authors validated their theorems using synthetic environments consisting of randomly generated cMPs (20 states, 5 actions). They trained simulated agents with varying levels of experience and goal depth. The results confirmed the theoretical predictions:

  1. Model Recovery: The extraction algorithm successfully recovered accurate world models from agents trained using model-free methods.
  2. Performance Correlation: As agents were trained to handle longer-horizon goals, the mean error of the extracted world model dropped significantly, following the predicted $O(n^{-1/2})$ curve.
  3. Robustness: Even when agents were sub-optimal (violating strict theoretical bounds), the algorithm still recovered highly accurate models, suggesting the principle holds for the "messy" agents found in real-world applications.

Discussion and Limitations

While this paper establishes a formal link between generalization and world models, several challenges remain for future research:

  • Partial Observability: The current proof assumes the agent has a full view of the environment state. Extending this to Partially Observed MDPs (POMDPs) is a necessary next step for real-world robotics.
  • Continuous Spaces: The extraction algorithm currently operates on discrete states and actions; adapting it to high-dimensional or continuous spaces (like raw video) remains a computational challenge.
  • Subjective Dynamics: The paper focuses on recovering the objective environment. However, an agent might operate on a "subjective" world model that is technically incorrect but internally consistent with its planning—distinguishing between these is an open area of study.

In conclusion, this work provides a rigorous foundation for the necessity of world models. It suggests that as we build more capable and general AI, we are not just building better calculators, but are inevitably forcing these systems to construct increasingly accurate internal maps of the reality they inhabit.

Summary updated

Abstract

Are world models a necessary ingredient for flexible, goal-directed behaviour, or is model-free learning sufficient? We provide a formal answer to this question, showing that any agent capable of generalizing to multi-step goal-directed tasks must have learned a predictive model of its environment. We show that this model can be extracted from the agent's policy, and that increasing the agents performance or the complexity of the goals it can achieve requires learning increasingly accurate world models. This has a number of consequences: from developing safe and general agents, to bounding agent capabilities in complex environments, and providing new algorithms for eliciting world models from agents.
BibTeX
@misc{richens2025general,
  author = {Jonathan Richens and David Abel and Alexis Bellot and Tom Everitt},
  title = {{General agents need world models}},
  year = {2025},
  eprint = {2506.01622},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.01622},
}
Figure