---
title: 'WorMI: World Model Implanting Framework'
url: https://www.emergentmind.com/topics/world-model-implanting-framework-wormi
type: topic
---

# WorMI: World Model Implanting Framework

World Model Implanting Framework (WorMI) is a test-time adaptation framework for embodied agents that combines the reasoning capabilities of large language models (LLMs) with independently learned, domain-specific world models through test-time composition, allowing seamless implantation and removal of the world models so that an embodied agent’s policy achieves and maintains cross-domain adaptability [2509.03956]. Its central premise is that cross-domain adaptation can be organized as retrieval and composition of specialized world models around a fixed reasoning policy, rather than as repeated retraining of a monolithic planner. In that sense, WorMI belongs to a broader conception of world models as reusable system-level components for perception, interaction, reasoning, and memory, rather than as isolated injections of “world knowledge” into narrowly defined tasks [2509.03956, 2602.01630].

## 1. Problem setting and conceptual scope

WorMI is formulated for embodied agents that must follow instructions and act in environments such as VirtualHome and ALFWorld, where novel tasks and scenes appear at test time [2509.03956]. The motivating problem is how an embodied agent can adapt to unseen domains with no or very little new data and without retraining large models. In the formulation used by WorMI, each domain \(D_j\) has a dataset
\[
\mathcal{D}_j = \{(I, s_t, a_t, s_{t+1})\},
\]
where \(I\) is a natural language task instruction, \(s_t\) is the environment state at time \(t\), \(a_t\) is the action, and \(s_{t+1}\) is the next state [2509.03956].

Within this setting, a world model \(M_j\) is a domain-specific neural model trained on \(\mathcal{D}_j\) and supporting dynamics prediction, affordance prediction, and behavior cloning. WorMI does not merge these domain models into one retrained backbone. Instead, it maintains a library of independent world models \(\{M_1,\dots,M_N\}\) and dynamically implants the most relevant subset into a fixed LLM-based reasoning policy at inference time [2509.03956].

The framework also defines an operational distinction between implantation and removal. Implanting means retrieving the top-\(K\) relevant world models for the current state and integrating their intermediate representations into the reasoning model through a learnable composition mechanism. Removal means excluding a model from the retrieved set and recomposing with the remaining models, without retraining the reasoning model or the world models themselves [2509.03956]. This modularity is central to the framework’s claim of continual model implanting and unlearning behavior.

A recurrent misconception in the surrounding literature is that world-model work is equivalent to adding more world-aware priors to a task-specific model. A broader design-spec view argues instead that a world model should be a system-level, normative framework that maintains internal state, supports interaction, reasoning, memory, and multimodal generation [2602.01630]. WorMI is consistent with that distinction insofar as it treats world models as reusable components with explicit roles in dynamics, affordances, and policy composition, rather than as prompt-time factual augmentations [2509.03956].

## 2. Formal architecture and implanted policy

WorMI has four primary components: a reasoning model \(\pi_R\), a set of domain-specific world models \(\{M_1,\dots,M_N\}\), a prototype-based retrieval module, and a composition module \(C_\theta\) implemented as world-wise compound attention [2509.03956]. In the reported instantiation, the reasoning model is a fixed Llama‑3.2‑3B, while each world model is a fixed Llama‑3.2‑1B trained with auxiliary tasks for dynamics, affordance, and behavior cloning [2509.03956].

The framework defines the implanted policy as
\[
\pi_\theta = C_\theta(\{M_1, \dots, M_K\}, \pi_R),
\]
where the retrieved subset of \(K\) world models is composed with the frozen reasoning model [2509.03956]. At the level of internal states, if \(l_{M_j}\) denotes a world model layer output and \(l_{\pi_R}\) denotes the reasoning-model hidden state, composition modifies the reasoning model through
\[
l_{\pi_R}^{(j+1)} = l_{\pi_R}^{(j)} + C_\theta(\{l_{M_1}, l_{M_2}, \dots, l_{M_K}\}, l_{\pi_R}^{(j)}).
\]
The final action distribution is obtained by decoding the modified hidden states through the reasoning model’s action head [2509.03956].

This design makes the composition module the only trainable part during meta-learning. The reasoning model \(\pi_R\) remains frozen, and the world models \(M_j\) remain frozen after their own pretraining [2509.03956]. The implication is that adaptation is concentrated in a compact composer rather than in the full planner. This suggests a parameter-efficient route to cross-domain transfer, especially in settings where the cost and instability of full LLM fine-tuning are prohibitive.

The architecture also assigns distinct semantic roles to the components. The reasoning model provides generic high-level planning capacity. Each world model contributes domain-specific transition, affordance, and behavioral regularities. The compound attention module determines how those specialized regularities should be aligned with the reasoning state at the current step [2509.03956].

## 3. Prototype-based world model retrieval

Retrieval determines which world models are implanted for the current state. WorMI constructs object-wise embeddings by first extracting object-wise states with an object detection or parsing model \(\Phi_D\), then embedding each object with \(\Phi_E\). For domain \(D_j\), the embedding set is
\[
\mathcal{E}_j = \left\{ \Phi_E(o) \,\middle|\, o \in \Phi_D(s),\, s \in \mathcal{D}_j \right\}.
\]
Rather than comparing full embedding sets at test time, the framework compresses each domain into a prototype set using a \(k\)-center objective [2509.03956]:
\[
p_j =
\arg\min_{C \subseteq \mathcal{E}_j, |C| = k}
\left[\max_{x \in \mathcal{E}_j} \min_{c \in C} \|x - c\| \right].
\tag{1}
\]

At inference time, the current state \(s_t\) is processed in the same way to obtain a prototype set \(p\). Retrieval then selects the top-\(K\) world models by Wasserstein distance:
\[
ret = \Bigl\{ M_j \;\Big|\; j \in \mathrm{TopK}\!\Bigl(\{-\delta(p_j, p)\}_{j=1}^N,\; K\Bigr)\Bigr\}.
\tag{2}
\]
The paper reports that \(p_j\) is about \(0.1\%\) of \(|\mathcal{E}_j|\); for VirtualHome, \(|\mathcal{E}_j| = 10{,}200\) and \(k=15\) [2509.03956].

The retrieval mechanism is justified by a boundedness argument. If \(\rho\) is the maximal distance from any element in \(\mathcal{E}_j\) to its closest prototype in \(p_j\), then
\[
\delta(p_i, p_j) \leq \delta(\mathcal{E}_i, \mathcal{E}_j) + 2\rho.
\]
Accordingly, prototype similarity is a bounded proxy for full-set similarity [2509.03956].

Empirically, retrieval is not a minor optimization but a substantive part of the framework. On VirtualHome unseen tasks and unseen scenes, using all world models every time yields \(48.63\%\) SR and \(18.93\) PS, random subset selection yields \(62.04\%\) SR and \(16.96\) PS, and prototype-based WorMI yields \(66.12\%\) SR and \(15.17\) PS [2509.03956]. The paper also reports robustness analyses in which prototype retrieval remains more stable than random selection as the world-model pool grows and as adversarial world models are introduced.

## 4. World-wise compound attention

The world-wise compound attention module \(C_\theta\) performs two distinct operations: world-level integration across retrieved world models, and reasoning-level alignment between the integrated world representation and the reasoning model’s hidden state [2509.03956].

Because the world models and the reasoning model may have different hidden dimensions, each world-model representation is first projected:
\[
\hat{l}_{M_j} = L_\theta(l_{M_j}).
\]
World-level cross-attention \(Attn_\theta^W\) is then constructed with a query from the reasoning model and keys and values from the projected world-model outputs:
\[
Q_W = W_Q\, l_{\pi_R},
\]
\[
K_W = W_K\, [\hat{l}_{M_1}; \dots; \hat{l}_{M_K}], \quad
V_W = [\hat{l}_{M_1}; \dots; \hat{l}_{M_K}].
\tag{3}
\]
This produces an integrated representation that weights the retrieved world models according to the current reasoning state [2509.03956].

Reasoning-level cross-attention \(Attn_\theta^R\) then aligns that integrated representation back into the reasoning model:
\[
\begin{aligned}
Q_R &= W_Q' l_{\pi_R},\\
K_R &= W_K' \,[\hat{l}_{M_1} + \dots + \hat{l}_{M_K}],\\
V_R &= W_V' \, Attn_\theta^{W}(Q_W, K_W, V_W).
\end{aligned}
\tag{4}
\]
The resulting aligned representation is the output of \(C_\theta\) that is added to the reasoning-model hidden state [2509.03956].

The framework’s ablations indicate that this hierarchy matters. On VirtualHome unseen tasks and unseen scenes, WorMI‑CONCAT achieves \(47.79\%\) SR and \(20.03\) PS, WorMI‑ADD achieves \(56.47\%\) SR and \(17.43\) PS, and the full compound-attention WorMI achieves \(66.12\%\) SR and \(15.17\) PS [2509.03956]. The paper therefore attributes a material share of performance to the explicit weighting and alignment mechanism, rather than to the mere presence of multiple world-model streams.

The attention analysis is also presented as semantically meaningful. The reported visualizations show attention concentrating on the model that contains knowledge about a required object, shifting across models when object positions differ by domain, and dividing labor across subtasks in composite instructions such as “Place plum in cabinet” [2509.03956]. This suggests that the composition module is not merely blending features but performing task-dependent routing over domain knowledge.

## 5. Meta-learning, benchmarks, and empirical performance

Each world model \(M_j\) is trained separately on its domain with three auxiliary tasks: dynamics prediction \(s_{t+1}\), affordance prediction from \(s_t\), and behavior cloning \(p(a_t \mid s_t, I)\) [2509.03956]. The compound attention module is then trained by a first-order meta-learning procedure similar to Reptile. For a sampled subset of world models \(\mathbf{M}_j\) and the union of their datasets \(\mathbf{D}_j\), the task-specific implanted policy is
\[
\pi_{\theta_j} = C_{\theta_j}(\mathbf{M}_j, \pi_R),
\]
and the inner-loop behavior-cloning loss is
\[
\mathcal{L}(\theta_j, \mathcal{B}) =
\sum_{(s, a) \in \mathcal{B}} -\log \pi_{\theta_j}(a \mid s).
\tag{5}
\]
After several inner-loop updates, the outer-loop meta-update is
\[
\theta \gets \theta + \beta \cdot \frac{1}{m} \sum_{j=1}^{m} (\theta_j - \theta).
\]
In zero-shot deployment, no parameters are updated. In few-shot deployment, only \(\theta\) is lightly fine-tuned; \(\pi_R\) and \(M_j\) remain fixed [2509.03956].

The framework is evaluated on VirtualHome and ALFWorld. VirtualHome includes \(20\) house configurations and \(78\) instructions, with \(1{,}023\) episodes partitioned into seen and unseen tasks and scenes. ALFWorld includes \(3{,}554\) episodes and domain splits based on CL-ALFRED clustering over scene and task types [2509.03956]. Performance is reported using Success Rate (SR), Pending Steps (PS), and, for complex instructions, Goal-conditioned success (GC).

The principal zero-shot and few-shot comparisons against SayCanPay are as follows [2509.03956]:

| Setting | SayCanPay | WorMI |
|---|---:|---:|
| VirtualHome, zero-shot, unseen tasks & unseen scenes | SR \(45.71\%\), PS \(19.04\) | SR \(66.12\%\), PS \(15.17\) |
| ALFWorld, zero-shot, unseen tasks & unseen scenes | SR \(39.66\%\), PS \(23.86\) | SR \(51.67\%\), PS \(20.18\) |
| VirtualHome, few-shot average over \(1/5/10\) shot | SR \(50.93\%\), PS \(16.88\) | SR \(77.51\%\), PS \(11.90\) |
| ALFWorld, few-shot average | SR \(39.06\%\), PS \(22.82\) | SR \(58.22\%\), PS \(15.46\) |

The framework also reports performance under increased instruction complexity. For long-horizon instructions in VirtualHome, LLM-Planner achieves SR \(0.65\%\), GC \(17.16\%\), PS \(86.12\); SayCanPay achieves SR \(6.54\%\), GC \(39.22\%\), PS \(57.87\); and WorMI achieves SR \(19.61\%\), GC \(49.35\%\), PS \(53.15\) [2509.03956]. For multiple instructions, LLM-Planner achieves SR \(1.31\%\), GC \(29.02\%\), PS \(85.17\); SayCanPay achieves SR \(6.54\%\), GC \(42.32\%\), PS \(57.94\); and WorMI achieves SR \(20.26\%\), GC \(60.62\%\), PS \(43.49\) [2509.03956]. The paper interprets these results as evidence that fused world-model knowledge improves planning over extended and multi-goal horizons.

## 6. Modularity, interpretation, and limitations

WorMI presents world models as removable and composable modules rather than permanent parameters of a single policy. This is reflected in the reported continual model implanting and unlearning behavior: adding relevant world models incrementally improves performance, while removing a relevant world model causes performance drops “as if unlearning” the corresponding domain [2509.03956]. The framework therefore treats domain knowledge as an attachable library rather than as a globally entangled internal state of the planner.

At the same time, the framework identifies a practical upper bound on simultaneous fusion. On VirtualHome unseen tasks and unseen scenes, using one world model yields SR \(42.75\%\) and PS \(20.54\); two models yield SR \(62.94\%\) and PS \(17.21\); three models yield SR \(66.12\%\) and PS \(15.17\); four models yield SR \(61.96\%\) and PS \(16.68\); and six models yield SR \(48.23\%\) and PS \(18.93\) [2509.03956]. The paper accordingly argues that there is an optimal range, here \(2\)–\(3\) models, beyond which conflicting or noisy knowledge becomes detrimental even with prototype retrieval and compound attention.

The principal limitations identified by the authors are computational overhead, dependence on the reasoning LLM, and dependence on world-model coverage and retrieval quality [2509.03956]. Running several \(1\)B world models plus an LLM at each step is heavier than a single-model policy. Performance inherits the strengths and weaknesses of the underlying LLM. If the world-model library does not include domains similar to the target, or if retrieval is misled, performance drops. The paper therefore suggests better world-model libraries, on-the-fly world-model construction, tighter LLM–world-model alignment, and more efficient retrieval and sparse fusion as future directions [2509.03956].

In the broader world-model literature, these limitations connect to a continuing debate over what a world model should be. A normative view holds that a robust world model should not be a loose collection of capabilities but a framework that integrates interaction, perception, symbolic reasoning, and spatial representation [2602.01630]. WorMI does not claim to solve that full unification problem. Its contribution is narrower and more operational: it shows that independently trained, domain-specific world models can be retrieved and composed into a frozen reasoning policy at test time, and that this yields improved zero-shot and few-shot embodied adaptation across unseen domains [2509.03956].

Source: https://www.emergentmind.com/topics/world-model-implanting-framework-wormi