Manuscript Offprint
arXiv:2610.28945Self-Improving Agents with World Model Predictive Paths
Abstract
Large language model (LLM) agents are increasingly expected to interact with environments and improve their decisions during deployment. However, how anticipating future outcomes and drawing on accumulated interaction experience can jointly support decision-making remains underexplored. We propose a test-time framework, inspired by Model Predictive Path Integral (MPPI) control, that combines multi-branch predictive analysis with experience-based adaptation. At each step, the agent proposes multiple candidate actions and imagines their outcomes with a world model, so that alternatives can be compared without being executed in the environment. Since language environments provide neither explicit dynamics nor costs, the predicted outcomes are evaluated for task progress and risk, and MPPI-style weights over the resulting costs guide the final decision. A dual-branch experience memory enables self-improvement: the planner branch refines candidate generation and action selection, while the world model branch improves next-observation prediction. Experiments on ALFWorld and ScienceWorld across three backbones demonstrate the strong overall performance of our method and the effectiveness of experience-guided predictive control. Our code will be made publicly available.
1 Introduction
Large language model (LLM) agents interact with environments by interpreting observations and taking actions to accomplish tasks. Long-horizon tasks require them to sustain progress under incomplete observations, where poor decisions can lead to repeated failures or wasted interactions. Building agents that make reliable decisions over extended interactions therefore remains a central challenge.
Prior work improves interactive decision making in several complementary ways. ReAct interleaves reasoning with environment feedback (Yao et al., 2023b), but commits to a single proposed action at each step, which may miss useful alternatives. Search-based methods instead explore multiple reasoning or action paths at inference time (Yao et al., 2023a; Zhou et al., 2024; Hao et al., 2023; Liu et al., 2026), but their cost grows with the breadth and depth of the search. A separate line improves agents through retrieved reflections and trajectory-derived action advantages (Shinn et al., 2023; Li et al., 2026a). These directions motivate exploring a few alternatives before acting, without executing them, together with experience gathered through interaction. This also resembles how people mentally simulate a few alternatives before choosing (Gilbert and Wilson, 2007; Vul et al., 2014): the agent imagines the outcomes of several candidate actions (Hafner et al., 2020; Gu et al., 2025), which avoids the interaction steps and potential irreversible consequences of trying them in the environment. Model Predictive Path Integral (MPPI) control offers a concrete recipe for this pattern: it samples a finite batch of candidate trajectories, weights them by predicted costs with exponential (Gibbs) weights, executes only the next action, and replans (Williams et al., 2015, 2017).
Language environments, however, provide neither explicit dynamics nor costs. A language world model can supply the missing dynamics by predicting the outcome of each candidate action (Hao et al., 2023; Liu et al., 2026; Zhang et al., 2026), but better next-observation prediction does not necessarily yield higher task success (Zhang et al., 2026). We therefore couple prediction directly with decision making: the agent predicts the outcomes of several candidate actions, an evaluator assigns costs for task progress and risk, and MPPI-style weights summarize these costs for a final controller that selects or synthesizes the action to execute.
Corresponding author.
To make both the candidates and their predictions more reliable over time, we further introduce a dual-branch experience memory for self-improvement. The planner branch uses accumulated experience to improve candidate generation and action selection, while the world model branch improves next-observation prediction, so that a single stream of interaction experience improves both what is proposed and what is predicted. Both branches operate through retrieved textual context, with policy and world model parameters frozen. Our analysis bounds the agent's per-step regret in terms of three error sources, namely limited candidate coverage, errors in action selection, and inaccurate next-observation predictions, which motivates the two branches.
Experiments on ALFWorld (Shridhar et al., 2021) and ScienceWorld (Wang et al., 2022) demonstrate the strongest overall success-rate performance among the evaluated methods across three backbones. Our main contributions are:
• We propose a test-time, MPPI-inspired framework that improves a bounded predict–select–replan decision loop with experience: a world model predicts the outcomes of a few candidate actions, and a dual-branch memory improves both candidate generation and selection and next-observation prediction.
• We provide a theoretical analysis showing that the weighting rule is optimal under a KL-regularized objective, and that the per-step regret is bounded in terms of candidate coverage, action selection, and next-observation prediction errors, which motivates the two memory branches.
• Experiments on ALFWorld and ScienceWorld across three backbones demonstrate the strongest overall success rate performance among baselines. We also provide ablation studies and a computational cost analysis.
World models for agent planning. World models can estimate how actions change an environment before they are executed. Dynalang (Lin et al., 2024), RAP (Hao et al., 2023), WebDreamer (Gu et al., 2025), and IMPLEMENT (Song et al., 2026) simulate action outcomes with language-based or lightweight world models; while ITP (Liu et al., 2026), WKM (Qiao et al., 2024), and WorldEvolver (Zhang et al., 2026) add adaptive lookahead, structured knowledge, or retrieved experience. Qian et al. (Qian et al., 2026) and Li et al. (Li et al., 2026b) study how well agents use forecasts and whether LLMs can serve as text-based world models. More recently, MemWM (Wang et al., 2026) trains a world model with offline-built memory to evaluate the candidates. Unlike them, we keep all models frozen and use experience gathered during interaction in two branches that improve next-observation prediction and candidate generation and selection.
Self-improving agents. Experience-based methods improve later decisions by retaining information from prior interactions, building on memory systems (Park et al., 2023; Packer et al., 2023; Chhikara et al., 2025; Xu et al., 2025; Sumers et al., 2024; Hu et al., 2025; Gao et al., 2025; Liu et al., 2023, 2024; Lu et al., 2026). Reflexion (Shinn et al., 2023), ExpeL (Zhao et al., 2024), ERL (Allard et al., 2026), and Reasoning-Bank (Ouyang et al., 2026) distill feedback or trajectories into experience, Voyager (Wang et al., 2024) and AWM (Wang et al., 2025) retain skills or task procedures, AdaPlanner (Sun et al., 2023) and JitRL (Li et al., 2026a) revise plans or action preferences from retrieved experience, and Memento (Zhou et al., 2025), ACE (Zhang et al., 2025), and Dynamic Cheatsheet (Suzgun et al., 2026) adapt through episodic memory or evolving contexts instead of fine-tuning (Wu et al., 2026). These methods improve what the agent proposes; our dual-branch memory also improves what it predicts, so a single stream of interaction experience sharpens both the candidates and the forecasts used to choose among them.
3 Problem Formulation
We consider a language agent solving a long-horizon interactive task with goal g and an interaction budget of T steps. At step t, the agent receives an observation and has interaction history . It acts from context . Its policy defines a distribution over language actions, and the action at step t is generated according to:
After is applied, the environment generates the next observation according to:
Our objective is to maximize the probability of completing the task within the interaction budget:
In control, Model-Predictive Control (MPC) plans over a finite horizon H by selecting the candidate action sequence with the lowest expected predicted cost:
where is the expected cost of the model-predicted trajectory (Camacho and Bordons, 2007; Rawlings et al., 2017; Li et al., 2019, 2020; Zhang et al., 2021; Li et al., 2021). MPC executes only the first action and replans after the next observation. Model Predictive Path Integral (MPPI) (Williams et al., 2015, 2017) approximates this search by sampling candidate trajectories and favoring those with lower predicted costs with Gibbs weights. This predict-and-replan cycle suits our agent tasks, where each action shapes later decisions. Inspired by MPPI, we develop a test-time framework for language agents that uses a world model to evaluate multiple candidate actions and guide decision-making. The next section presents our method in detail.
4 Method
We first describe the test-time loop: a world model predicts outcomes for up to K proposed actions, and MPPI-inspired weighting of task-conditioned costs guides a final controller to select or synthesize an action before replanning from the new observation. We then describe how dual-branch experience memory improves planning and grounds future forecasts.
4.1 MPPI-Inspired Decision Loop
At time step t, the agent receives the goal, interaction history, current observation, and action protocol. Let denote the planner experiences retrieved for this decision, which will be introduced in Sec. 4.2 in detail. The proposal module first reasons over the context, and then emits up to K atomic candidate actions. The resulting candidate set is represented as:
(5)
Here denotes the proposal policy, K is the maximum number of candidates, and is the number generated at step t. This adapts MPPI's candidate sampling to language actions: instead of adding perturbations to a continuous control sequence, the proposal policy generates candidate actions that could advance the task, gather information, or recover from failures.
Next, for each proposal, the world model receives the goal, current observation, candidate action, and retrieved world model memory .
It predicts a one-step textual observation of the action’s immediate consequence:
We use one-step prediction rather than multi-step rollouts to simplify the architecture and control computational cost. We denote the resulting candidate-specific imagined transition by
which bundles the task context, proposed action, and predicted outcome used to evaluate that candidate. In classical MPPI, candidate trajectories are evaluated by a numerical cost function. For language agents, we instantiate this cost-evaluation

Figure 1: Overview of our method. At step , the proposal policy takes the goal, history, and observation and proposes candidate actions . The world model predicts the next observation of each candidate, the evaluator scores task progress and risk to give costs , and MPPI-style weights summarize these costs for the final controller, which decides the executed action . After execution, the transition updates both experience branches. The planner branch labels it as success, failure, or ignore and summarizes the first two into and , retrieved by the proposal policy and final controller in future steps; the world model branch updates its episodic and semantic memory , retrieved by the world model in future steps.
stage through textual outcome prediction and evaluation of task progress and risk. A language evaluator maps each imagined transition to a bounded predictive cost:
where lower cost indicates greater predicted usefulness for the goal. The evaluator considers expected task progress, information value, and whether the predicted outcomes are consistent with the available evidence. To account for uncertainty in predicted costs, we optimize a distribution w that favors low-cost candidates while retaining alternatives. We denote its regularized objective by and its minimizing distribution by ; the objective combines weighted predictive cost with a KL penalty from uniform weighting.
Proposition 1 (Optimal candidate weighting). For candidates with finite costs, let denote the probability simplex and the uniform reference. For , consider
The objective has a unique minimizer
For every ,
The minimizing distribution is the standard Gibbs cost-tilted form underlying MPPI (Williams et al., 2017), which also admits a free-energy interpretation of bounded-rational choice (Ortega and Braun, 2013). The proof is in Appendix B. Proposition 1 shows that candidate weights depend on cost differences scaled by : smaller emphasizes the lowest predicted costs, whereas larger retains more balanced influence across candidates. Our main configuration uses . We use below. The weights then guide the final controller, which also receives the goal, trajectory, observation, candidate set, predicted outcomes, and retrieved planner experiences. We denote its action-generation step by
where is the final controller. It generates an action, selecting a proposed action or synthesizing a new atomic action when useful. The controller executes only the selected action in the real environment. It then appends the resulting observation to the trajectory and repeats the process from the updated context.
4.2 Dual-Branch Experience Memory
The weighting in Proposition 1 depends on both the proposed actions and the accuracy of their predicted costs. It cannot assign weight to a useful action absent from the candidate set, and inaccurate forecasts can favor unsuitable candidates. Moreover, optimal candidate weights do not guarantee an optimal final action, since action selection is performed by a separate controller. Our dual-branch memory aligns with these limitations: the planner branch targets candidate coverage and final action selection, while the world model branch adapts forecasts to environment-specific dynamics.
Proposition 2 (Coverage, cost error, and selection). Fix a nonempty candidate set, its uniform reference , and . Let denote a reference cost for any action , with , and let be the predictive costs, with
Define by replacing with in Eq. (9), and let minimize . The predictive weights satisfy
Moreover, for any comparator action , possibly outside the candidate set, define the coverage gap and the selection gap
where the expectation is over the controller’s output given its inputs in Eq. (12). Then the executed action satisfies
(18)
The proof is in Appendix B. Reference costs represent an ideal assessment of actual action consequences, which are not available to the agent. Taking to be a reference-optimal action makes the left-hand side of Eq. (18) a per-step regret and . Eq. (18) separates the limitations above: the coverage gap is positive only when a better action than every candidate exists, and shrinks as better candidates are proposed, while decreases with more accurate forecasts and cost assessments. The selection gap compares the controller's choice with the weighted candidates: it is negative when the controller corrects inaccurate weights or generates a better action, and positive when it disregards reliable guidance. This decomposition guides our memory design. Candidate-generation memories target , final-planner memories target , and world model memories target . Both memory branches update textual memories while keeping the model parameters frozen.
Planner branch. After each real transition, an experience extraction module labels the step as SUCCESS, FAILURE, or IGNORE based on the observed outcome. It then records experience only for SUCCESS and FAILURE, producing separate summaries for candidate generation and final action selection. Each memory bank retains its most recent C records. To retrieve memories, let map text to its set of lowercase alphanumeric tokens, and let be the query tokens. We score each memory m by token-set Jaccard similarity and keep the R highest-scoring ones:
where indexes candidate-generation or final-planner experiences, and indexes memory banks for experiences from successful and failed steps. Accordingly, the planner experiences in Eqs. (5) and (12) are , where ; the proposal policy conditions on and the final controller on .
World model branch. For the world model branch, we adopt the episodic and semantic memory design of WorldEvolver (Zhang et al., 2026), which we use to reduce the predictive cost error in Proposition 2. To support prediction for multiple candidate actions, we retrieve relevant transitions separately for each candidate and use them with shared environment rules to predict next observations. Memory is updated only after real interaction, storing observed transitions and extracting
| Metric | Method | Gemma-4-26B-A4B | Qwen3.5-9B | GPT-5.4-mini | |||
|---|---|---|---|---|---|---|---|
| ALFWorld | ScienceWorld | ALFWorld | ScienceWorld | ALFWorld | ScienceWorld | ||
| SR@1 | ReAct | 20.1 | 31.1 | 14.9 | 34.4 | 38.8 | 52.2 |
| ITP-I | 32.8 | 36.7 | 6.7 | 27.8 | 50.0 | 51.1 | |
| WorldEvolver | 16.4 | 32.2 | 24.6 | 24.4 | 24.6 | 45.6 | |
| Ours | 65.7 | 46.7 | 28.4 | 32.2 | 64.9 | 56.7 | |
| SR@5 | ReAct | 24.6 | 36.7 | 24.6 | 52.2 | 48.5 | 62.2 |
| ITP-I | 54.5 | 50.0 | 12.7 | 46.7 | 81.3 | 70.0 | |
| WorldEvolver | 20.9 | 43.3 | 37.3 | 42.2 | 30.6 | 56.7 | |
| Ours | 84.3 | 60.0 | 54.5 | 50.0 | 92.5 | 66.7 | |
Table 1: Overall success rates (%) on ALFWorld and ScienceWorld across three backbones, reported as SR@1 and SR@5. Bold and underlined success rates indicate the best and second-best results, respectively.
rules from prediction errors. The implementation details are provided in Appendix A.
5 Experiments
5.1 Experimental Setup
Benchmarks. We evaluate our method on ALF-World (Shridhar et al., 2021) and ScienceWorld (Wang et al., 2022) provided by AgentBoard (Ma et al., 2024). Our evaluation includes 134 ALFWorld tasks and 90 ScienceWorld tasks, with each trial limited to 30 environment steps. ALFWorld is a text-based household benchmark of tasks such as picking up, cleaning, heating, and moving objects, while ScienceWorld is a text-based science benchmark where agents manipulate objects and carry out simple experiments. Our primary metrics are SR@1, the fraction of tasks solved in a single trial, and SR@5, the fraction solved in at least one of five trials.
Baselines. We compare our method with multiple baselines. ReAct (Yao et al., 2023b) interleaves reasoning and action, using environment observations to guide subsequent decisions. ITP-I, the training-free variant of Imagine-then-Plan (Liu et al., 2026), uses adaptive lookahead to imagine future outcomes and guide action selection. WorldEvolver (Zhang et al., 2026) represents an evolving language world model pipeline that uses episodic and semantic experience. All baselines use the same task files and backbone.
Implementation details. At each step, the agent generates up to candidate actions and applies MPPI-style weighting with to their predicted costs. Candidate generation and final planning read from the corresponding planner memory bank with capacity and retrieval count . The policy and world model pa- rameters remain frozen during deployment. Following WorldEvolver (Zhang et al., 2026), we do not reset memory within each evaluation setting. World model memory hyperparameters and prompt templates are in Appendices A and D. We also vary the backbone, evaluating Gemma-4-26B-A4B (Gemma Team, 2026), Qwen3.5-9B (Qwen Team, 2026), and GPT-5.4-mini (OpenAI, 2026), to test generalization across models. In all tables, bold and underlined numbers mark the best and second-best results per column, shaded rows are the default setting, and Avg. is the mean over ALF-World and ScienceWorld.
5.2 Results
Results on ALFWorld and ScienceWorld. Table 1 compares our method with ReAct, ITP-I, and WorldEvolver on ALFWorld and ScienceWorld across three backbones. With Gemma-4-26B-A4B, Ours leads on both benchmarks, scoring 65.7/84.3 on ALFWorld and 46.7/60.0 on ScienceWorld, and improves over the strongest baseline, ITP-I, by 32.9/29.8 and 10.0/10.0 points, respectively. With Qwen3.5-9B and GPT-5.4-mini, Ours achieves the best ALFWorld results and remains competitive on ScienceWorld: it ranks second behind ReAct on Qwen3.5-9B, and leads in SR@1 but ranks second in SR@5 on GPT-5.4-mini. Across the three backbones, Ours achieves the strongest overall performance, ranking first in nine comparisons and second in the remaining three. Per-task ALFWorld results are reported in Appendix C.
Action selection analysis. Figure 2 shows that the controller selects a highest-weight candidate in 77.8–83.8% of decisions across both benchmarks and trial settings. Second-ranked candidates account for 10.4–12.2%, while actions outside the proposal set account for 1.6–6.0%. The controller
SR@1
SR@5

Figure 2: Executed actions by candidate rank under MPPI-style weighting with Gemma-4-26B-A4B. Rank 1 includes ties for the highest weight; Outside denotes actions not in the proposal set.
therefore usually follows the highest-weight candidate, while retaining the flexibility to choose other candidates or generate new actions.
Illustrative example. Figure 3 shows how retrieved experience and predictive scoring guide a ScienceWorld trajectory. At Step 4, retrieved experience identifies focusing on the target as a prerequisite for pickup, and the controller selects the lower-cost focus action over immediate pickup. After this subgoal is completed, the predicted cost of pickup falls from 40 to 10, making it the preferred action at Step 5 and leading to environment-verified success with a score of 100. In contrast, ReAct skips the focus subgoal and repeatedly declares completion despite ending with failure.
5.3 Ablation Study
Action candidate number . Table 2 evaluates candidate-set sizes . The default gives the highest SR@1 on both benchmarks, exceeding by 5.3 percentage points on ALFWorld and 3.4 points on ScienceWorld. Larger sets help SR@5 only on ScienceWorld, where raises it from 60.0 to 68.9 while SR@1 declines, possibly because of its larger and more varied action space. Since larger candidate sets do not consistently help, we use in all settings as a moderate choice that balances candidate coverage and cost.
Weight temperature . Table 3 evaluates , where larger values produce flatter weights and reduce the influence of predictive cost differences. Performance is similar at and , whereas degrades ALFWorld, lowering SR@1 from 65.7 to 53.7, and ScienceWorld is less sensitive. We use as the default, an intermediate temperature that keeps cost differences informative while softening the weights, and the results are not sensitive to this choice between and .
| K | ALFWorld | ScienceWorld | Avg. | |||
|---|---|---|---|---|---|---|
| SR@1 | SR@5 | SR@1 | SR@5 | SR@1 | SR@5 | |
| 1 | 60.4 | 82.1 | 43.3 | 58.9 | 51.9 | 70.5 |
| 2 | 59.7 | 85.1 | 38.9 | 56.7 | 49.3 | 70.9 |
| 4 | 61.9 | 82.8 | 40.0 | 58.9 | 51.0 | 70.9 |
| 8 | 65.7 | 84.3 | 46.7 | 60.0 | 56.2 | 72.2 |
| 16 | 64.2 | 84.3 | 42.2 | 68.9 | 53.2 | 76.6 |
Table 2: Effect of the number of candidate actions imagined per step, with Gemma-4-26B-A4B (%). The default setting is shaded.
| λ | ALFWorld | ScienceWorld | Avg. | |||
|---|---|---|---|---|---|---|
| SR@1 | SR@5 | SR@1 | SR@5 | SR@1 | SR@5 | |
| 1 | 65.7 | 81.3 | 48.9 | 62.2 | 57.3 | 71.8 |
| 10 | 65.7 | 84.3 | 46.7 | 60.0 | 56.2 | 72.2 |
| 50 | 53.7 | 80.6 | 47.8 | 63.3 | 50.8 | 72.0 |
Table 3: Effect of weight temperature with Gemma-4-26B-A4B (%). Larger gives more uniform MPPI-style weights. The default setting is shaded.
Experience ablations. Table 4 isolates the contributions of planner memory and world model memory. Their effects differ across benchmarks: world model memory alone helps on ALFWorld, raising SR@1 from 56.7 to 68.7, but hurts on ScienceWorld, whereas planner memory alone helps on ScienceWorld but hurts on ALFWorld. Enabling both branches achieves the highest average SR@1 and SR@5, though the gains are not uniform across benchmarks. Figure 4 shows cumulative SR@1 as tasks are executed: the two curves coincide on the first tasks and then separate, with the gap persisting on both benchmarks, consistent with experience accumulating across trajectories. Experience also takes effect within a single trajectory, as shown in Figure 3, where the experience summarized at one step is retrieved at the next.
Agent memory budget. Table 5 examines the capacity and the number of records retrieved per bank of planner memory, so each planning call uses at most records. At , increasing from 4 to 24 improves SR@1 on both benchmarks, while lowers it. Performance is relatively stable across moderate budgets, namely and , and gives mixed results. We therefore use as a shared default with moderate storage and retrieval budgets.
Goal: "Your task is to find a butterfly egg in the outside."

Figure 3: An example of how retrieved experience and predictive evaluation guide action selection. Our agent completes the focus subgoal before pickup and succeeds, while ReAct skips this subgoal and fails.
| Memory | ALFWorld | ScienceWorld | Avg. | ||||
|---|---|---|---|---|---|---|---|
| Planner | WM | SR@1 | SR@5 | SR@1 | SR@5 | SR@1 | SR@5 |
| × | × | 56.7 | 80.6 | 38.9 | 57.8 | 47.8 | 69.2 |
| ✓ | × | 49.3 | 73.9 | 44.4 | 60.0 | 46.9 | 67.0 |
| × | ✓ | 68.7 | 88.8 | 36.7 | 54.4 | 52.7 | 71.6 |
| ✓ | ✓ | 65.7 | 84.3 | 46.7 | 60.0 | 56.2 | 72.2 |
Table 4: Effect of planner and world model (WM) memory with Gemma-4-26B-A4B (%). ‘✓’ indicates an enabled branch. The default setting is shaded.

Figure 4: Cumulative SR@1 over executed tasks with and without dual-branch memory. Shaded areas show the gain in percentage points.
5.4 Computational Cost
Table 6 reports per-step latency measured on a task subset with Gemma-4-26B-A4B running on NVIDIA A40 GPUs. Our method takes 6.72 seconds per step, compared with 0.51–1.94 seconds for the baselines. The additional overhead comes from predicting and scoring multiple candidate actions before execution. Although slower, this remains practical for tasks without strict real-time constraints, where improved task success can jus-
| C | R | ALFWorld | ScienceWorld | ||
|---|---|---|---|---|---|
| SR@1 | SR@5 | SR@1 | SR@5 | ||
| 4 | 4 | 62.7 | 85.8 | 36.7 | 60.0 |
| 12 | 4 | 64.9 | 85.8 | 44.4 | 58.9 |
| 24 | 4 | 65.7 | 84.3 | 46.7 | 60.0 |
| 36 | 4 | 63.4 | 84.3 | 42.2 | 64.4 |
| 24 | 1 | 64.2 | 89.6 | 46.7 | 63.3 |
| 24 | 8 | 56.7 | 85.1 | 48.9 | 58.9 |
Table 5: Effect of planner memory capacity C and retrieval count R with Gemma-4-26B-A4B (%). The upper block varies C at R = 4, the lower block varies R at C = 24. The default setting is shaded.
tify the added cost.
| Method | Avg. sec. / step↓ | SR@1↑ | SR@5↑ |
|---|---|---|---|
| ReAct | 0.51 | 20.1 | 24.6 |
| ITP-I | 1.94 | 32.8 | 54.5 |
| WorldEvolver | 1.33 | 16.4 | 20.9 |
| Ours | 6.72 | 65.7 | 84.3 |
Table 6: Per-step latency and success rates using Gemma-4-26B-A4B on NVIDIA A40 GPUs.
6 Conclusion
We presented a self-improving, test-time MPPI-inspired framework for language agents performing long-horizon tasks. The framework predicts the outcomes of several candidate actions with a world model before acting, and uses MPPI-style weights to summarize their costs for the final decision. A dual-branch experience memory enables self-improvement: planner memory refines candidate generation and selection, and world model memory improves next-observation prediction. Experiments on ALFWorld and ScienceWorld demonstrate the strongest overall performance across three backbones, with measured computational costs remaining practical for the evaluated tasks.
7 Limitations
First, world model accuracy is important because predicted outcomes determine candidate costs and can change the controller's action preference. Our current dual-branch adaptation relies on retrieved textual experience while keeping model parameters frozen. More capable mechanisms for improving world model accuracy and adapting to changing dynamics remain an important direction for future work. Second, evaluating multiple candidates requires additional world model and evaluator calls at test time. This increases inference latency and cost as the candidate set grows, motivating more computationally efficient ways to obtain useful candidate comparisons.
Ethical considerations. Our experiments are conducted entirely in text-based simulated environments and involve no human subjects or personal data. If such an agent were deployed in real environments, inaccurate world model predictions could lead to unsafe actions, so human oversight would be needed.
Acknowledgments
This research is supported by the National Artificial Intelligence Research Resource Pilot Awards NAIRR250199, NAIRR260019, and NAIRR260077; AMD University Program's AI & HPC Cluster; NVIDIA Academic Grant Program; Lambda's Research Grant; and Google Cloud Research Credits Program. Computational resources are also provided by Delta and DeltaAI at the National Center for Supercomputing Applications (NCSA) through ACCESS allocations CIS250012, CIS250816, and CIS251188.
References
Michael Ahn, Anthony Brohan, Noah Brown, Yevgen Chebotar, Omar Cortes, Byron David, Chelsea Finn, Chuyuan Fu, Keerthana Gopalakrishnan, Karol Hausman, Alex Herzog, Daniel Ho, Jasmine Hsu, Julian Ibarz, Brian Ichter, Alex Irpan, Eric Jang, Rosario Jauregui Ruano, Kyle Jeffrey, and 26 others. 2022. Do as i can, not as i say: Grounding language in robotic affordances. arXiv preprint arXiv:2204.01691.
Marc-Antoine Allard, Arnaud Teinturier, Victor Xing, and Gautier Viaud. 2026. Experiential reflective learning for self-improving LLM agents. arXiv preprint arXiv:2603.24639.
Eduardo F. Camacho and Carlos Bordons. 2007. Model Predictive Control, 2 edition. Advanced Textbooks in Control and Signal Processing. Springer, London.
Prateek Chhikara, Dev Khant, Saket Aryan, Taranjeet Singh, and Deshraj Yadav. 2025. Mem0: Building production-ready AI agents with scalable long-term memory. arXiv preprint arXiv:2504.19413.
Huan-ang Gao, Jiayi Geng, Wenyue Hua, Mengkang Hu, Xinzhe Juan, Hongzhang Liu, Shilong Liu, Jiahao Qiu, Xuan Qi, Yiran Wu, et al. 2025. A survey of self-evolving agents: What, when, how, and where to evolve on the path to artificial super intelligence. arXiv preprint arXiv:2507.21046.
Gemma Team. 2026. Gemma 4 technical report. arXiv preprint arXiv:2607.02770.
Daniel T. Gilbert and Timothy D. Wilson. 2007. Prospection: Experiencing the future. Science, 317(5843):1351–1354.
Yu Gu, Kai Zhang, Yuting Ning, Boyuan Zheng, Boyu Gou, Tianci Xue, Cheng Chang, Sanjari Srivastava, Yanan Xie, Peng Qi, Huan Sun, and Yu Su. 2025. Is your LLM secretly a world model of the internet? model-based planning for web agents. In Transactions on Machine Learning Research.
Danijar Hafner, Timothy Lillicrap, Jimmy Ba, and Mohammad Norouzi. 2020. Dream to control: Learning behaviors by latent imagination. In International Conference on Learning Representations.
Shibo Hao, Yi Gu, Haodi Ma, Joshua Hong, Zhen Wang, Daisy Wang, and Zhiting Hu. 2023. Reasoning with language model is planning with world model. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 8154–8173, Singapore. Association for Computational Linguistics.
Samuel Holt, Max Ruiz Luyten, Thomas Pouplin, and Mihaela van der Schaar. 2026. Fact-augmented lookahead planning for llm agents. In Proceedings of The 29th International Conference on Artificial Intelligence and Statistics, volume 300 of Proceedings of Machine Learning Research, pages 3205–3213. PMLR.
Yuyang Hu, Shichun Liu, Yanwei Yue, Guibin Zhang, Boyang Liu, Fangyi Zhu, Jiahang Lin, Honglin Guo, Shihan Dou, Zhiheng Xi, et al. 2025. Memory in the age of AI agents. arXiv preprint arXiv:2512.13564.
Jing Yu Koh, Stephen McAleer, Daniel Fried, and Ruslan Salakhutdinov. 2024. Tree search for language model agents. arXiv preprint arXiv:2407.01476.
Yibo Li, Zijie Lin, Ailin Deng, Xuan Zhang, Yufei He, Shuo Ji, Tri Cao, and Bryan Hooi. 2026a. Just-in-time reinforcement learning: Continual learning in llm agents without gradient updates. In International Conference on Learning Representations.
Yingying Li, Xin Chen, and Na Li. 2019. Online optimal control with linear dynamics and predictions: Algorithms and regret analysis. Advances in Neural Information Processing Systems, 32.
Yingying Li, Subhro Das, and Na Li. 2021. Online optimal control with affine constraints. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 8527–8537.
Yingying Li, Guannan Qu, and Na Li. 2020. Online optimization with predictions and switching costs: Fast algorithms and the fundamental limit. IEEE Transactions on Automatic Control, 66(10):4761–4768.
Yixia Li, Hongru Wang, Jiahao Qiu, Zhenfei Yin, Dongdong Zhang, Cheng Qian, Zeping Li, Xiaoteng Ma, Guanhua Chen, and Heng Ji. 2026b. From word to world: Can large language models be implicit text-based world models? In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 8084–8111.
Jessy Lin, Yuqing Du, Olivia Watkins, Danijar Hafner, Pieter Abbeel, Dan Klein, and Anca Dragan. 2024. Learning to model the world with language. In Proceedings of the 41st International Conference on Machine Learning.
Yaoyao Liu, Yingying Li, Bernt Schiele, and Qianru Sun. 2023. Online hyperparameter optimization for class-incremental learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pages 8906–8913.
Yaoyao Liu, Yingying Li, Bernt Schiele, and Qianru Sun. 2024. Wakening past concepts without past data: Class-incremental learning from online placebos. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 2215–2224.
Youwei Liu, Jian Wang, Hanlin Wang, Beichen Guo, and Wenjie Li. 2026. Imagine-then-plan: Agent learning from adaptive lookahead with world models. arXiv preprint arXiv:2601.08955.
Haori Lu, Xusheng Cao, Linlan Huang, Enguang Wang, Fei Yang, and Xialei Liu. 2026. Restoring forgotten knowledge in non-exemplar class incremental image classification through test-time semantic evolution. IEEE Transactions on Multimedia.
Chang Ma, Junlei Zhang, Zhihao Zhu, Cheng Yang, Yujiu Yang, Yaohui Jin, Zhenzhong Lan, Lingpeng Kong, and Junxian He. 2024. Agentboard: An analytical evaluation board of multi-turn llm agents. In Advances in Neural Information Processing Systems.
OpenAI. 2026. Introducing gpt-5.4 mini and nano.
Pedro A. Ortega and Daniel A. Braun. 2013. Thermodynamics as a theory of decision-making with information-processing costs. Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences, 469(2153):20120683.
Siru Ouyang, Jun Yan, I-Hung Hsu, Yanfei Chen, Ke Jiang, Zifeng Wang, Rujun Han, Long Le, Samira Daruki, Xiangru Tang, et al. 2026. ReasoningBank: Scaling agent self-evolving with reasoning memory. In International Conference on Learning Representations.
Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G. Patil, Ion Stoica, and Joseph E. Gonzalez. 2023. MemGPT: Towards LLMs as operating systems. arXiv preprint arXiv:2310.08560.
Joon Sung Park, Joseph O'Brien, Carrie Jun Cai, Meredith Ringel Morris, Percy Liang, and Michael S. Bernstein. 2023. Generative agents: Interactive simulacra of human behavior. In Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology.
Archiki Prasad, Alexander Koller, Mareike Hartmann, Peter Clark, Ashish Sabharwal, Mohit Bansal, and Tushar Khot. 2024. ADaPT: As-needed decomposition and planning with language models. In Findings of the Association for Computational Linguistics: NAACL 2024, pages 4226–4252.
Cheng Qian, Emre Can Acikgoz, Bingxuan Li, Xiusi Chen, Yuji Zhang, Bingxiang He, Qinyu Luo, Gokhan Tur, Dilek Hakkani-Tür, Yunzhu Li, and Heng Ji. 2026. Current agents fail to leverage world model as tool for foresight. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 13686–13723, San Diego, California, United States. Association for Computational Linguistics.
Shuofei Qiao, Runnan Fang, Ningyu Zhang, Yuqi Zhu, Xiang Chen, Shumin Deng, Yong Jiang, Pengjun Xie, Fei Huang, and Huajun Chen. 2024. Agent planning with world knowledge model. In Advances in Neural Information Processing Systems, volume 37.
Qwen Team. 2026. Qwen3.5: Towards native multi-modal agents.
James B. Rawlings, David Q. Mayne, and Moritz M. Diehl. 2017. Model Predictive Control: Theory, Computation, and Design, 2 edition. Nob Hill Publishing, Madison, WI.
Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. 2023. Reflexion: Language agents with verbal reinforcement learning. In Advances in Neural Information Processing Systems.
Mohit Shridhar, Xingdi Yuan, Marc-Alexandre Côté, Yonatan Bisk, Adam Trischler, and Matthew Hausknecht. 2021. Alfworld: Aligning text and embodied environments for interactive learning. In International Conference on Learning Representations.
Junru Song, Hengzhe Jin, Yucong Huang, Tingsong Jiang, Weien Zhou, Feifei Wang, Yang Yang, Ying Wen, and Wen Yao. 2026. Model-based imaginative planning for embodied agents. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 18125–18147.
Theodore R. Sumers, Shunyu Yao, Karthik Narasimhan, and Thomas L. Griffiths. 2024. Cognitive architectures for language agents. Transactions on Machine Learning Research.
Haotian Sun, Yuchen Zhuang, Lingkai Kong, Bo Dai, and Chao Zhang. 2023. Adaplanner: Adaptive planning from feedback with language models. In Advances in Neural Information Processing Systems, volume 36.
Mirac Suzgun, Mert Yuksekgonul, Federico Bianchi, Dan Jurafsky, and James Zou. 2026. Dynamic cheat-sheet: Test-time learning with adaptive memory. In Proceedings of the 19th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), pages 7080–7106.
Edward Vul, Noah Goodman, Thomas L. Griffiths, and Joshua B. Tenenbaum. 2014. One and done? optimal decisions from very few samples. Cognitive Science, 38(4):599–637.
Guanzhi Wang, Yuqi Xie, Yunfan Jiang, Ajay Mandlekar, Chaowei Xiao, Yuke Zhu, Linxi Fan, and Anima Anandkumar. 2024. Voyager: An open-ended embodied agent with large language models. Transactions on Machine Learning Research.
Ruoyao Wang, Peter Jansen, Marc-Alexandre Côté, and Prithviraj Ammanabrolu. 2022. Scienceworld: Is your agent smarter than a 5th grader? In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing.
Yujun Wang, Tao Zhang, Jinhe Bi, Aniri, Wenxuan Ye, Boliang Liu, Sikuan Yan, Shuning Wang, Xuebing Zhou, Sören Pirk, Hinrich Schütze, and Yunpu Ma. 2026. Memwm: Memory-augmented text-based world model. arXiv preprint arXiv:2608.07107. Accepted to EMNLP 2026.
Zora Zhiruo Wang, Jiayuan Mao, Daniel Fried, and Graham Neubig. 2025. Agent workflow memory. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 63897–63911.
Grady Williams, Andrew Aldrich, and Evangelos A. Theodorou. 2015. Model predictive path integral control using covariance variable importance sampling. arXiv preprint arXiv:1509.01149.
Grady Williams, Nolan Wagener, Brian Goldfain, Paul Drews, James M. Rehg, Byron Boots, and Evangelos A. Theodorou. 2017. Information theoretic mpc for model-based reinforcement learning. In 2017 IEEE International Conference on Robotics and Automation, pages 1714–1721.
Yongliang Wu, Xinting Hu, Yuyang Sun, Yizhou Zhou, Wenbo Zhu, Fengyun Rao, Bernt Schiele, and Xu Yang. 2025a. Number it: Temporal grounding videos like flipping manga. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13754–13765.
Yongliang Wu, Zonghui Li, Xinting Hu, Xinyu Ye, Xianfang Zeng, Gang Yu, Wenbo Zhu, Bernt Schiele, Ming-Hsuan Yang, and Xu Yang. 2025b. KRIS-Bench: Benchmarking next-level intelligent image editing models. In Advances in Neural Information Processing Systems, volume 38.
Yongliang Wu, Yizhou Zhou, Ziheng Zhou, Yingzhe Peng, Xinyu Ye, Xinting Hu, Wenbo Zhu, Lu Qi, Ming-Hsuan Yang, et al. 2026. On the generalization of SFT: A reinforcement learning perspective with reward rectification. In International Conference on Learning Representations.
Wujiang Xu, Zujie Liang, Kai Mei, Hang Gao, Juntao Tan, and Yongfeng Zhang. 2025. A-Mem: Agentic memory for LLM agents. In Advances in Neural Information Processing Systems.
Shunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran, Thomas L. Griffiths, Yuan Cao, and Karthik Narasimhan. 2023a. Tree of thoughts: Deliberate problem solving with large language models. In Advances in Neural Information Processing Systems, volume 36.
Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik R. Narasimhan, and Yuan Cao. 2023b. React: Synergizing reasoning and acting in language models. In International Conference on Learning Representations.
Qizheng Zhang, Changran Hu, Shubhangi Upasani, Boyuan Ma, Fenglu Hong, Vamsidhar Kamanuru, Jay Rainton, Chen Wu, Mengmeng Ji, Hanchen Li, Urmish Thakker, James Zou, and Kunle Olukotun. 2025. Agentic context engineering: Evolving contexts for self-improving language models. arXiv preprint arXiv:2510.04618.
Runyu Zhang, Yingying Li, and Na Li. 2021. On the regret analysis of online lqr control with predictions. In 2021 American Control Conference (ACC), pages 697–703. IEEE.
Xuan Zhang, Wenxuan Zhang, See-Kiong Ng, and Yang Deng. 2026. Self-evolving world models for llm agent planning. arXiv preprint arXiv:2606.30639.
Andrew Zhao, Daniel Huang, Quentin Xu, Matthieu Lin, Yong-Jin Liu, and Gao Huang. 2024. Expel: Llm agents are experiential learners. Proceedings of the AAAI Conference on Artificial Intelligence, 38(17):19632–19642.
Andy Zhou, Kai Yan, Michal Shlapentokh-Rothman, Haohan Wang, and Yu-Xiong Wang. 2024. Language agent tree search unifies reasoning, acting, and planning in language models. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 62138–62160. PMLR.
Huichi Zhou, Yihang Chen, Siyuan Guo, Xue Yan, Kin Hei Lee, Zihan Wang, Ka Yiu Lee, Guchun Zhang, Kun Shao, Linyi Yang, and Jun Wang. 2025. Memento: Fine-tuning LLM agents without fine-tuning LLMs. arXiv preprint arXiv:2508.16153.
A World Model Memory Implementation Details
Our implementation adopts WorldEvolver's episodic and semantic memory design (Zhang et al., 2026) as auxiliary prediction context. For each real transition, the episodic bank stores the current observation, executed action, and observation returned by the environment. For a candidate action a, we tokenize it and each stored action into token sets and score them by Jaccard similarity:
We retrieve up to the five highest-scoring transitions. Each retrieved record is presented as a state-action-next-state example. The predictor prompt also includes the task goal and current observation.
The semantic memory bank stores reusable rules about environment changes and persistence. For each prediction–observation mismatch, the language model extracts at most one rule. Up to eight recent rules guide subsequent predictions.
For both benchmarks, the episodic memory bank stores up to 100 transitions and retrieves up to 5 per candidate, while the semantic memory bank stores up to 128 rules and supplies up to 8 per prediction. Memory is retained across trajectories within each environment, allowing later interactions to reuse accumulated experience.
B Theoretical Analysis and Proofs
We prove Propositions 1 and 2.
Proof of Proposition 1. Suppress the time index and define
Since , these weights coincide with Eq. (10). Using
we obtain
The KL divergence is nonnegative and vanishes only at , establishing the unique minimizer. Since , subtracting this minimum gives the stated identity. We use the convention .
Proof of Proposition 2. For any distribution w on the fixed candidate set, the cost-error assumption implies
Optimality of for then gives
This proves Eq. (14). Applying Proposition 1 to the reference costs gives
Dividing by establishes Eq. (15).
For Eq. (18), nonnegativity of the KL term gives
The proof of Proposition 1 also gives , where
Therefore,
Combining these inequalities with Eq. (14) yields
Adding to both sides turns the left-hand side into , where the expectation is over in Eq. (12). Subtracting then yields Eq. (18) by the definition of . The selection gap captures the final controller's contribution to per-step regret, completing the decomposition into candidate coverage, predictive cost error, and action selection.
C Detailed Results
Table 7 reports SR@1 / SR@5 for each ALFWorld task type (PICK, CLEAN, HEAT, COOL, LOOK, and PICK2). Although the best method varies across individual task types, overall success rate is the primary measure of performance, and Ours achieves the best overall ALFWorld results across all three backbones.
| Method | PICK | CLEAN | HEAT | COOL | LOOK | PICK2 | Overall |
|---|---|---|---|---|---|---|---|
| Backbone: Gemma-4-26B-A4B | |||||||
| ReAct | 95.8 / 100.0 | 0.0 / 0.0 | 0.0 / 0.0 | 0.0 / 0.0 | 0.0 / 0.0 | 23.5 / 52.9 | 20.1 / 24.6 |
| ITP-I | 95.8 / 100.0 | 29.0 / 58.1 | 0.0 / 4.3 | 9.5 / 38.1 | 38.9 / 77.8 | 17.6 / 47.1 | 32.8 / 54.5 |
| WorldEvolver | 87.5 / 91.7 | 0.0 / 0.0 | 0.0 / 0.0 | 0.0 / 0.0 | 0.0 / 0.0 | 5.9 / 35.3 | 16.4 / 20.9 |
| Ours | 91.7 / 100.0 | 74.2 / 90.3 | 30.4 / 43.5 | 95.2 / 95.2 | 50.0 / 83.3 | 41.2 / 94.1 | 65.7 / 84.3 |
| Backbone: Qwen3.5-9B | |||||||
| ReAct | 20.8 / 33.3 | 6.5 / 19.4 | 13.0 / 17.4 | 23.8 / 28.6 | 22.2 / 22.2 | 17.6 / 29.4 | 14.9 / 24.6 |
| ITP-I | 4.2 / 20.8 | 6.5 / 9.7 | 0.0 / 0.0 | 4.8 / 4.8 | 27.8 / 44.4 | 0.0 / 0.0 | 6.7 / 12.7 |
| WorldEvolver | 58.3 / 70.8 | 32.3 / 41.9 | 8.7 / 17.4 | 0.0 / 0.0 | 33.3 / 72.2 | 5.9 / 17.6 | 24.6 / 37.3 |
| Ours | 54.2 / 91.7 | 22.6 / 35.5 | 0.0 / 17.4 | 23.8 / 57.1 | 33.3 / 50.0 | 41.2 / 88.2 | 28.4 / 54.5 |
| Backbone: GPT-5.4-mini | |||||||
| ReAct | 95.8 / 100.0 | 0.0 / 0.0 | 69.6 / 82.6 | 4.8 / 28.6 | 0.0 / 0.0 | 70.6 / 94.1 | 38.8 / 48.5 |
| ITP-I | 79.2 / 100.0 | 67.7 / 93.5 | 8.7 / 39.1 | 52.4 / 85.7 | 44.4 / 100.0 | 35.3 / 64.7 | 50.0 / 81.3 |
| WorldEvolver | 87.5 / 100.0 | 0.0 / 0.0 | 13.0 / 13.0 | 0.0 / 0.0 | 0.0 / 0.0 | 52.9 / 82.4 | 24.6 / 30.6 |
| Ours | 83.3 / 95.8 | 48.4 / 90.3 | 65.2 / 82.6 | 76.2 / 95.2 | 66.7 / 100.0 | 52.9 / 94.1 | 64.9 / 92.5 |
Table 7: Success rates (%) on ALFWorld by task type across three backbones. Each cell reports SR@1 / SR@5. Bold and underlined overall success rates indicate the best and second-best results, respectively.
D Prompt Templates
We use WorldEvolver's ReactAgent prompt (Zhang et al., 2026) as a starting point and substantially revise it for our framework. The resulting module-specific prompts are presented below.
D.1 Candidate Generation
Both calls receive the shared context below. Call 1 appends a reasoning instruction; Call 2 appends the returned reasoning and candidate-generation instructions.
Shared context.
Generate 1 to 8 distinct one-step action candidates.
Environment instruction: {environment_instruction}
There is an interaction example (style and action/observation pattern only; do not copy its final Thought/Action output contract): {fixed_demonstration}
This stage proposes candidates for a downstream planner. It does not execute an action and must use the separate candidate format at the end of this prompt.
Goal: {goal}
Trajectory: {trajectory}
Current observation: {current_observation}
Learned planner experience (fallible; success and failure experiences):
- {retrieved_candidate_experience_1}
- {retrieved_candidate_experience_2}
- ...
Follow the public protocol exactly. Generate distinct one-step actions that may reveal useful information or advance the task.
Prefer a grounded action that directly advances the goal. Use an information action only when it can resolve relevant uncertainty.
Preserve the operation requested by the goal; do not replace it with an unrelated information action. If multiple visible referents are plausible, include distinct grounded alternatives.
Copy every non-empty argument verbatim from the current observation or an environment Observation in the trajectory. Never use names found only in the Goal, demonstrations, or earlier model-generated actions.
Do not repeat the latest unchanged failed action or add redundant candidates.
Candidates are suggestions, not guarantees.
If no grounded argumented action is available, output one useful zero-argument protocol action.
Keep candidates distinct and do not repeat the latest unchanged failure.
Return only:
CANDIDATE_1=<action>
CANDIDATE_2=<action>
...
Call 1: Reasoning.
Input: Shared context + the following reasoning instruction.
Analyze the visible evidence, protocol, goal, and learned planner experience briefly.
This is a private advisory analysis for a separate emitter: do not reproduce instructions or demonstrations, and do not emit candidate markers or actions.
Call 2: Candidate Action Generation.
Input: Shared context + the following.
Advisory analysis from the candidate reasoner:
{candidate_reasoning}
Before emitting, correct any analysis that replaced an executable goal
operation with information gathering. If the goal operation's target is
uncertain, use the visible plausible referents as separate candidates; do not
emit only information-gathering actions when the requested operation itself
can test the visible referents.
Now emit the candidate proposals. Return up to the requested maximum number of lines in exactly
this form, with no Thought, Action, explanation, markdown, or text after the
last line:
CANDIDATE_1=<one atomic action>
CANDIDATE_2=<one atomic action>
...
D.2 World Model Prediction
Frame Axioms and Persistence Rules
-
{semantic_rule_1}
-
{semantic_rule_2}
{additional_semantic_rules}
Retrieved similar past transitions
Current state: {retrieved_state_1}
Action: {retrieved_action_1}
Next state: {retrieved_next_state_1}
{additional_retrieved_transitions}
You are a world model for the {environment_name} environment. Given the agent's current observation, its proposed action, and the task goal, predict what the agent will observe next.
If a "## Frame Axioms and Persistence Rules" section appears above, treat each rule as a constraint: do not predict any change to a property the rules say does not change for the action being taken. Use the rules to filter out spurious changes.
If a "## Retrieved similar past transitions" section is provided, use those transitions as analogies for what can change after this action. Let the retrieved transitions guide what changes, but keep the prediction consistent with the current observation and task goal.
Output format: a single paragraph starting with "Prediction:" describing the next observation in the style of the environment's own text output.
Task: {goal}
State:
{world_model_observation}
Action: {candidate_action}
Prediction:
D.3 Cost Evaluation
Score all candidate actions jointly as decision evidence for an embodied-agent planner.
Goal: {goal}
Trajectory: {trajectory}
Current observation: {current_observation}
Candidates and their uncertain WM predictions: Candidate 1: {candidate_action_1} WM predicted next observation: {predicted_next_observation_1} Candidate 2: {candidate_action_2} WM predicted next observation: {predicted_next_observation_2} {remaining_candidate_prediction_blocks}
Relevant planner memory (fallible): {retrieved_final_planner_memory_json}
Assign each candidate a cost from 0 to 100. A lower cost means more likely to make useful progress or reveal useful information for the goal; 100 means very poor. Consider the current observation and trajectory, expected progress, information value, and whether the predicted result is consistent with the visible evidence. WM predictions are uncertain suggestions, not facts. Do not reject, filter, rewrite, or replace any action. Score every candidate, including weak ones, in one response.
Return only one line per candidate, in the original order: COST_1=<number from 0 to 100> COST_2=<number from 0 to 100> ...
D.4 Final Action Selection
Choose the next action for an embodied agent.
Environment instruction: {environment_instruction}
There is an interaction example (demonstrates reasoning/action/observation style; the final output contract below takes precedence): {fixed_demonstration}
The environment instruction and example are references for this decision. Use the candidates and forecasts supplied below, then follow this planner's final output contract.
Goal: {goal}
Trajectory: {trajectory}
Current observation: {current_observation}
Candidate proposals and uncertain WM forecasts: Candidate 1: {candidate_action_1} WM forecast: {predicted_next_observation_1} MPPI-inspired evidence: weight={weight_1:.6f} Candidate 2: {candidate_action_2} WM forecast: {predicted_next_observation_2} MPPI-inspired evidence: weight={weight_2:.6f} {remaining_candidate_forecast_cost_weight_blocks}
Planner memory (model-generated and fallible; unresolved is a hypothesis, not hidden environment state): {retrieved_final_planner_memory_json}
The current observation is authoritative; WM forecasts are uncertain evidence. Prefer a grounded candidate that directly advances the goal. Use an information action only when it can resolve relevant uncertainty. If every candidate is insufficient, synthesize one new atomic action in the public protocol using visible names. If no candidate is suitable and external actions are allowed, generate one grounded protocol action. Preserve the operation requested by the goal.
Before acting, ground every non-empty action argument by copying its complete name from Current observation or an environment Observation in the trajectory. Never use a name found only in the Goal, a demonstration, a WM forecast, or an earlier model-generated action. If no candidate is sufficient, any external action must follow the same grounding rule; otherwise choose a zero-argument information action.
Output exactly two lines: Thought: <brief decision> Action: <one action> Reference examples do not override this request. Return exactly one line in the form Thought: <one brief sentence>. Action: <one action>. Do not repeat the trajectory or the examples. Do not emit an Observation or a second Thought/Action pair.
D.5 Planner Reflection
Evaluate only the latest visible transition. Goal: {goal} Previous state: {previous_observation} Executed action: {executed_action} New state/observation: {observed_next_state}
You may retain an environment-specific regularity when the feedback directly supports it, but do not import a rule that is not shown by the transition or treat an unsupported guess as fact. Return SUCCESS only for substantive, visible progress toward the goal. An accepted action, a changed string, a successful inspection, or a newly exposed fact is not sufficient by itself. The new observation must either establish a previously unavailable goal-relevant fact/relation, make a visible state change that advances the goal, or visibly confirm a goal-relevant sub-result. Return FAILURE only when the visible result shows rejection, impossibility, contradiction, or a failed attempt that yields a reusable mistake. Return IGNORE when the action was accepted but was routine, repeated, neutral, or provided no reusable experience. If there is no substantive progress and no reusable experience from failure, use IGNORE rather than inventing experience.
When the outcome is FAILURE, extract two short experiences from this example. For the candidate-generation experience, consider whether the proposal was grounded in visible names and relations, whether its arguments had enough context, whether it repeated an unchanged hypothesis, and whether another observation or interaction would reveal more information. For the final action-selection experience, consider whether the action matched the latest evidence, whether its predicted consequence was only a weak hypothesis, whether the candidate frontier was insufficient, and what visible change should be preferred next.
When the outcome is SUCCESS, extract two short reusable experiences instead: one about what made the proposal produce the substantive progress, and one about why the selected action was a good choice given that progress. Generalize from the visible transition without assuming that the same object, action, or hidden state will recur. Preserve a convention only when this transition directly supports it, label it as context-dependent, and do not invent a hidden cause. Do not copy the observation or write generic advice such as only "verify."
Also write one short unresolved question or constraint for the current trajectory when the goal is not yet complete. It is a fallible reasoning aid, not a hidden-state assertion. If there is no unresolved issue, use an empty string. On SUCCESS, fill the two success-experience fields and leave the failure fields empty. On FAILURE, do the reverse. On IGNORE, leave all four experience fields empty. Always provide the unresolved field.
Be concise: each experience and unresolved value must be at most 20 words. Do not add fields or markdown fences.
Return JSON only: { "outcome": "success|failure|ignore", "candidate_generation_experience": "candidate proposal experience, or empty string", "final_planner_experience": "final action-selection experience, or empty string", "unresolved": "one short current-trajectory question or constraint, or empty string" }