---
title: Internal World Model (IWM)
url: https://www.emergentmind.com/topics/internal-world-model-iwm
type: topic
---

# Internal World Model (IWM)

Searching arXiv for recent papers on Internal World Models and closely related world-model formulations.
Searching arXiv for "Internal World Model" across transformers, vision, agents, and robotics.
An **Internal World Model (IWM)** is an internal representation or predictive mechanism that enables an agent to estimate the state of its environment, anticipate transitions under actions or transformations, and use those internal predictions for reasoning or control. Recent arXiv usage is deliberately broad rather than uniform. In a small transformer trained to sort by adjacent swaps, an IWM is a structured latent representation that encodes global token order and supports a simple decision rule for selecting swaps [2510.18315]. In JEPA-based vision, an IWM is a latent-space predictor conditioned on transformation parameters, trained to predict how masking and photometric transformations act on image representations [2403.00504]. In LLM-agent systems, the same term can denote an explicit neurosymbolic belief state that is updated online during interaction [2507.22281], a textual foresight module internalized within a single autoregressive policy [2606.27483], or even a reusable slice of pretrained transformer layers treated as a fixed internal reasoning substrate [2504.18562]. Formal work in robotics gives a more abstract characterization: an internal model emerges when the robot’s internal transition structure becomes sufficient, and in some cases isomorphic, with respect to the environment it interacts with [2406.11237].

## 1. Conceptual scope and defining criteria

A recurring distinction across this literature is between **mere input–output competence** and a genuinely structured internal model. The sorting study makes this distinction explicit: a model that simply maps a permutation to a good swap is not yet said to have an IWM. Instead, the term is reserved for an internal representation that captures **global properties of the environment state** and supports a **simple, algorithmic decision rule** from that representation to action [2510.18315]. That usage sharply separates representational quality from end-task accuracy.

The JEPA-based vision formulation adopts the same idea at a different level of abstraction. There, the world is the latent space of image representations together with a transformation family, and the IWM is the predictor \(p_\phi\) that maps a corrupted source representation, transformation parameters \(a_{x \rightarrow y}\), and mask positions to a target latent representation. The key property is not invariance, but **equivariance under explicitly conditioned transformations**: the model learns how the visual world changes in latent space rather than merely ignoring such changes [2403.00504].

LLM-agent papers push the term toward explicit state representation. CoEx defines the agent’s world model as a belief state \(b_k = (m_k, l_k)\), where \(m_k\) is symbolic memory and \(l_k\) is structured textual memory, updated after each subgoal attempt through verification and synthesis [2507.22281]. WorldMind likewise treats the LLM as an implicit world model, then aligns it with an external **World Knowledge Repository** containing Process Experience and Goal Experience, so that internal simulation becomes physically grounded rather than merely semantically plausible [2601.13247]. The paper on “Internalizing the Future” goes further by embedding the world model directly into the policy’s token stream: the same autoregressive model produces a prospective rollout and a plan-conditioned success estimate before outputting the next action [2606.27483].

Taken together, these formulations suggest that the term **Internal World Model** is best understood as a family resemblance concept centered on three properties: internal state abstraction, predictive or counterfactual transition structure, and downstream use in planning, control, or interpretability. The implementation may be a latent circuit, a transformer predictor, a symbolic belief state, or a reusable pretrained module, but the common role is to support internally grounded anticipation rather than reactive pattern completion.

## 2. Minimal mechanistic and formal formulations

The paper “Higher Embedding Dimension Creates a Stronger World Model for a Simple Sorting Task” provides one of the clearest mechanistic instantiations of an IWM [2510.18315]. The environment state is a permutation \(\pi\) of tokens \(\{1,\dots,\ell\}\), the action is an adjacent swap at index \(i\), the goal is the sorted permutation, and the reward is \(+1\) if the permutation becomes sorted after a swap and \(-0.001\) otherwise. The model is intentionally minimal: learned token and positional embeddings, a single-head causal self-attention block, no MLP block, and separate linear actor and critic heads. Embedding dimension \(d_{\text{embed}}\) is varied from 2 to 128, and PPO is used with \(\gamma = 0.99\), learning rate \(2.5 \times 10^{-4}\), and clipping coefficient 0.1.

The central result is that **task performance saturates early, but world-model quality continues to improve with width**. For sequence length 6, average accuracy is near 100% already by embedding dimension around 6 with 10M steps, and 99.2% of agents achieve 100% accuracy when \(d_{\text{embed}} > 16\). Yet the representational metrics continue improving until about \(d \approx 30\): global ordering fidelity in the last attention row reaches about 87% for length 6 and 78% for successful length-8 agents, while top-2 alignment with the difference-based decision rule exceeds 90% [2510.18315]. The two recurrent mechanisms are especially concrete. First, the last row of the attention matrix \(W = QK^\top/\sqrt{d_k}\) monotonically encodes token rank. Second, the selected transposition tends to align with the largest adjacent difference
\[
\Delta_i = W_{\ell, i+1} - W_{\ell, i}.
\]
This makes the IWM both interpretable and operational: a one-dimensional ordering coordinate plus a deterministic swap rule.

A complementary formal treatment appears in “An Internal Model Principle For Robots” [2406.11237]. There the question is not how to probe a neural circuit, but when an internal transition system can be said to **mirror** the environment. The central notion is **sufficiency** of an equivalence relation \(E\) on a deterministic transition system:
\[
(s,s') \in E \implies (\tau(s,a), \tau(s',a)) \in E \quad \forall a.
\]
If this condition holds, equivalence classes are preserved under all actions, so the quotient system remains dynamically predictive. The paper proves that minimal sufficient refinements exist uniquely, and that under appropriate conditions the quotient of the robot’s internal history space by such a refinement becomes bisimulation equivalent, and in some cases isomorphic, to the external environment [2406.11237]. In that formalism, an IWM is not a heuristic latent code but an internal transition structure guaranteed to preserve environmental dynamics.

These two lines of work occupy opposite ends of the same spectrum. The sorting paper shows a concrete, emergent circuit in a tiny trained transformer; the robotics paper characterizes, at the level of transition-system theory, when an internal structure deserves to be called a model of the world at all.

## 3. Latent predictive IWMs in vision and model-based control

In vision, the paper “Learning and Leveraging World Models in Visual Representation Learning” defines an Image World Model as a predictor network \(p_\phi\) operating in latent space, conditioned on transformation parameters and mask positions [2403.00504]. The target view \(y\) is a rich augmented image; the source view \(x\) is a more destructively transformed version with masking, grayscale, blur, solarization, and color jitter. Student and EMA-teacher ViT-B/16 encoders produce latents \(z_x\) and \(z_y\), and the predictor is trained with the JEPA-style loss
\[
L(x,y) = \sum_{i \in M_x^C} \left\| p_\phi\bigl(f_\theta(x), a_{x\rightarrow y}, m_a\bigr)_i - f_\theta^{\text{EMA}}(y)_i \right\|_2^2.
\]
The paper identifies three necessary ingredients for a strong IWM: **conditioning**, **prediction difficulty**, and **capacity**. Without conditioning, the predictor cannot distinguish transformations and world-model performance collapses, with MRR approximately 0.00. With sequence conditioning MRR is about 0.82; with feature conditioning, about 0.79. Stronger transformations and deeper predictors are likewise necessary to maintain equivariance rather than collapsing toward invariance [2403.00504].

This framework explicitly treats the abstraction level of representation as controllable. Weak IWMs yield more invariant, contrastive-like features; strong IWMs yield more equivariant features that retain richer low-level information. The trade-off is visible in downstream results. An equivariant IWM with an 18-layer, 384-d predictor attains 67.5% linear ImageNet accuracy, but 83.3% with a frozen encoder and tuned predictor, and 84.4% end-to-end, outperforming the invariant variant and prior self-supervised baselines in that setting [2403.00504]. Here the IWM is not just a pretraining loss; it is a reusable latent dynamics module.

The review “World Models for Cognitive Agents: Transforming Edge Intelligence in Future Networks” places this within a broader model-based RL vocabulary [2506.00417]. A world model is an internal representation that encodes the environment in compressed latent variables and models temporal evolution, typically through an encoder, latent transition model, and decoder or task head. Its concrete instantiation, Wireless Dreamer, trains a latent world model to predict future latent states and rewards, then learns a Q-network mainly from imagined trajectories. In the UAV trajectory-planning case study, reward prediction achieved a mean absolute error of 0.359, approximately 5% relative error, and Wireless Dreamer reached near-asymptotic performance with approximately 46.15% fewer episodes than DQN while achieving a higher final average reward, 923.55 versus 829.04 [2506.00417]. This usage returns to the classical world-model role: internal simulation for sample-efficient planning.

## 4. Agentic IWMs: explicit belief states, planning trees, and textual foresight

LLM-agent work has turned IWM into an architectural design problem. “Reasoning with Language Model is Planning with World Model” formalizes reasoning as an MDP whose states are natural-language descriptions of what is currently true and whose actions are reasoning steps [2305.14992]. The same LLM serves as both agent and world model, with transitions of the form \(p(s_{t+1}\mid s_t,a_t,c')\), and MCTS provides strategic search. The gains are concrete. In Blocksworld, RAP with LLaMA-33B reached 0.88 success on 4-step planning and 0.42 on 6-step planning, compared with GPT-4 CoT at 0.63 and 0.40. On GSM8K, RAP\((10)\) plus aggregation reached 51.6%, above CoT plus self-consistency at 46.8%. On PrOntoQA, RAP obtained 94.2% prediction accuracy and 78.8% proof accuracy [2305.14992]. In this setting, the IWM is an internal simulator over symbolic reasoning states.

CoEx externalizes that simulator into an explicit belief state. Its planner operates over subgoals, its actor executes them at the action level, and its adaptive world model is the neurosymbolic state \(b_k = (m_k, l_k)\), where symbolic memory records object-level facts and structured textual memory records status, verification outcomes, and learned facts [2507.22281]. That co-evolving belief state materially improves long-horizon exploration. CoEx reports 93.28% overall success on ALFWorld, 88.24% on the hard “picktwo” subset, 73.3% success and 92.8% progress on PDDL, and 25.0% success with 55.5% progress on Jericho, substantially above ReAct on those benchmarks [2507.22281].

A different internalization strategy appears in “Internalizing the Future: A Unified Agentic Training Paradigm for World Model Planning” [2606.27483]. Instead of a separate simulator or value head, a single autoregressive model is trained to emit a **prospective state rollout** and a **plan-conditioned confidence** before choosing an action. The foresight spans are explicitly tagged as `<imaginary>`, `<keyword>`, `<analysis>`, and `<confidence>`, making the IWM a textual analogue of a world model plus a \(Q\)-like estimate. The paper argues for a three-stage pipeline—World Model Agentic Mid-Training, Format-Eliciting SFT, and Foresight-Conditioned RL—because post-training alone leads to superficial format imitation without grounded predictive capability. The full pipeline yields a search average of 50.6, above the best state-only baseline at 48.7, and a math pass@30 of 60.0 with mean@30 of 29.5, above 56.7 and 27.7 for the best comparison system [2606.27483]. This suggests that an LLM’s IWM can be trained as an internal deliberative process rather than attached as an external planning module.

WorldMind complements this trend by aligning the implicit LLM world model with an explicit **World Knowledge Repository** built from prediction errors and successful trajectories [2601.13247]. It augments embodied agents with Process Experience rules and Goal Experience heuristics, improving EB-ALFRED from 44.4% to 48.0% success for GPT-3.5-turbo and from 41.2% to 49.2% for GPT-4.1-mini; on EB-Habitat the gains are 43.6% to 48.8% and 41.6% to 50.8% [2601.13247]. A plausible implication is that agentic IWMs are increasingly moving from implicit parametric priors toward hybrid parametric–symbolic systems that can be updated online.

## 5. Modular reuse: IWMs as transferable internal substrates

Some recent work treats an IWM less as a learned transition rule and more as a **pretrained internal substrate** that can be repurposed for new domains. “Deep Learning with Pretrained ‘Internal World’ Layers” uses layers 8–9 of Gemma‑3‑1B as a frozen internal-world module inside a wildfire predictor [2504.18562]. Tabular wildfire features are projected into hidden size \(H=1152\), passed through the frozen Gemma slice with 8 attention heads and 14.7M frozen parameters, and then mapped to a scalar fire probability by a small classifier. The full system has 37.7M parameters, but only approximately 5.0M are trainable. On the Moroccan wildfire dataset it achieved accuracy 0.8760, AUC 0.9344, precision 0.8313, recall 0.9433, and F1 0.8838, with recall emphasized as the highest among the conventional deep baselines [2504.18562]. Here the IWM is operationalized as **parametric memory** in pretrained mid-layers.

The vision IWM paper reaches a related conclusion from a different direction. Its predictor is not discarded after pretraining but fine-tuned as a reusable head. For the equivariant IWM, frozen-encoder predictor tuning reaches 83.3% on ImageNet-1k, compared with 82.9% for encoder-only tuning, and end-to-end tuning reaches 84.4%. On ADE20K, predictor tuning reaches 46.8 and end-to-end tuning 47.0, again exceeding encoder fine-tuning for that model [2403.00504]. This reusability is central: the internal world model is valuable not only for learning representations, but also as a deployable downstream module.

These modular papers suggest a broadened sense of IWM. The world model need not always be a separately trained dynamics learner. It may also be a pretrained internal layer stack whose representational geometry is rich enough to function as a reusable reasoning or adaptation substrate once suitable interfaces are learned.

## 6. Evaluation, safety, and ongoing disputes

The recent literature is equally notable for how it evaluates and challenges IWMs. WR-Arena argues that standard evaluation overemphasizes next-state fidelity and undermeasures simulation capabilities required for intelligent behavior [2603.25887]. It defines three benchmark dimensions: **Action Simulation Fidelity**, **Long-horizon Forecast**, and **Simulative Reasoning and Planning**, all built around the transition view \(s' \sim p(s' \mid s,a)\). The benchmark introduces metrics such as Multi-round Smoothness and \(\mathrm{AP}_\lambda\) for consistency degradation. Across evaluated models, no system exceeded 65% on the long-horizon metrics; PAN was best overall, with 70.3 on agent simulation, 47.0 on environment simulation, 53.6 on transition smoothness, 64.1 on generation consistency, and improvements of +26.7% and +23.4% over a VLM-only planner on open-ended and structured planning respectively [2603.25887]. The implication is that many apparent world models remain weak precisely where internal simulation is supposed to matter most.

Safety analyses sharpen that point. “World Models: The Safety Perspective” argues that a world model is meant to predict future environmental states or fill in missing information so an agent can plan and behave safely, but current systems remain vulnerable to unreasonable scene generation, temporal inconsistencies, model exploitation, and miscalibration [2411.07690]. The survey emphasizes robustness, calibration, symbolic guardrails, and formal verification as missing components of trustworthy IWMs. This is not a peripheral concern: once a world model is placed inside a decision loop, its errors are no longer merely perceptual.

A separate line of critique asks whether current language models possess IWMs at all in a human-like sense. “LLM world models are mental” adapts pulley-system paradigms from cognitive science and finds mixed evidence [2507.15521]. In Study 1, the best model reached only 26.1% exact MA accuracy, though estimates correlated with ground-truth mechanical advantage and were strongly driven by pulley count. In Study 2, models distinguished a functional pulley system from a jumbled fake system with F1 \(= 0.8\). In Study 3, when asked to distinguish a functional system from a matched but non-force-transferring system, performance fell to F1 \(= 0.46\), effectively chance [2507.15521]. The authors conclude that LLMs may manipulate internal world models sufficient for coarse structural discrimination, but not for nuanced connectivity reasoning.

The paper “Internal World Models as Imagination Networks in Cognitive Agents” reaches a parallel conclusion from a very different methodology [2510.04391]. Human imagination networks built from vividness questionnaires show coherent centrality correlations and clustering across populations, whereas LLM-derived networks often lack clustering and show lower correlations under different prompts and conversational-memory conditions. The paper interprets this as evidence that current LLM IWMs are not structurally similar to human imagination-based internal models [2510.04391].

The resulting debate is not whether IWMs exist in a single universal form, but which properties are necessary before the term becomes substantively explanatory. Current work supports at least four answers: structured and interpretable latent geometry, accurate transition prediction, reusable internal computation, and reliable support for planning under perturbation. No existing paradigm fully satisfies all four at once.

Source: https://www.emergentmind.com/topics/internal-world-model-iwm