arXiv(opens in a new tab)cs.AIOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.02542

How To Train Your World Model: Fine-tuning vs RAG for LM-based World Modeling

Dhananjay Ashok, Shantanu Agarwal, Vivek Datla, Jonathan May, Alfy Samuel

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Dhananjay Ashok ∗^{*}

Information Sciences Institute

University of Southern California

ashokd@usc.edu

Shantanu Agarwal

Capital One

shantanu.agarwal1@capitalone.com

Vivek Datla

Capital One

vivek.datla@capitalone.com

Jonathan May

Information Sciences Institute

University of Southern California

jonmay@isi.edu

Alfy Samuel

Capital One

alfy.samuel@capitalone.com

ABSTRACT

World models (WMs) simulate the transition dynamics of environments, enabling agents to plan over the consequences of their actions. In text-based environments, fine-tuning a Language Model (LM) to serve as a WM has emerged as a dominant paradigm. However, despite the widespread success of non-parametric approaches such as Retrieval Augmented Generation (RAG), retrieval over past experience for LM-based world modelling remains underexplored. We conduct a systematic evaluation across five diverse environments spanning embodied, web navigation and social settings, comparing fine-tuning and RAG-based approaches for LM-based world modelling. Our study reveals that fine-tuning often outperforms RAG, with fine-tuned WMs enabling agents to obtain higher rewards on 15/20 settings. However, there are several cases where RAG proves superior, and there are often cases where simple prompting baselines match or outperform finetuning. While both construction paradigms benefit from additional and more diverse exploration, RAG-based approaches prove more data-efficient, while fine-tuning approaches disproportionately benefit from scaling the amount of experience collected. With a focus on RAG-based WMs, we devise a procedure that uses counterfactual intervention to estimate the error rate of the retrieval stage, and show that retrievers consistently surface suboptimal transitions from the experience buffer. Hoping to address this failing, we study a variety of query reformulation strategies, demonstrating that a hierarchical approach outperforms the traditional retrieval pipeline. Finally, we compose our findings into a hybrid world modelling system that parametrically captures core environment dynamics, while learning to rely on retrieval from an actively maintained memory store. Our hybrid system consistently outperforms other methods across multiple environments and models, showcasing the robustness of the approach and the applicability of our findings.

1 INTRODUCTION

Agentic systems increasingly improve by scaling experience within complex environments, shifting away from a reliance on dense human annotation and engineered reward systems (Silver & Sutton, 2025). A dominant approach to scaling experience is the development of world models (WMs)—internal simulators that learn the underlying transition dynamics of an environment (Ha &

*Work done during internship at CapitalOne

Schmidhuber, 2018). Using a WM, agents can go beyond simply reacting to the current state and instead plan by considering the consequences of their actions before executing them.

To leverage the rich knowledge priors encoded in Language Models (LMs) (Petroni et al., 2019), recent work has explored using LMs as the backbone for world models (Gu et al., 2024). These methods follow the traditional approach to world modelling of collecting exploratory trajectories on a training set, and then finetuning a model to predict future observations (Watter et al., 2015; Chae et al., 2025). When applied to LMs, this parametric approach yields WMs that can boost agent performance on a variety of environments, from embodied settings to web-domains (Li et al., 2026).

Particularly prominent in the LM domain is the use of non-parametric approaches, such as retrieval-augmented generation (RAG) (Arslan et al., 2024). Relying on the in-context capabilities of LMs, RAG make no changes to the weights, but rather provides examples and additional information relevant to the task at hand to help ground the LM's response. While both fine-tuning and RAG have their individual strengths (Balaguer et al., 2024), direct comparisons demonstrate that RAG-based approaches can often substantially outperform parametric adaptation in knowledge-acquisition tasks (Ovadia et al., 2024; Soudani et al., 2024). However, despite the power of non-parametric approaches, their application to LM-based world modelling remains underexplored.

In this work, we systematically compare strategies for constructing LM-based WMs across five environments, including embodied tasks (ALFWorld (Shridhar et al., 2020), TextWorld (Côté et al., 2018)), web navigation (WebShop (Yao et al., 2022)), and social conversations (Sotopia (Zhou et al., 2024), Chameleon (Karabag et al., 2025)). We construct both fine-tuned and RAG-based WMs and compare their performance on the axes of WM fidelity, as well as agent utility (Section 3.2).

Prior studies comparing RAG and fine-tuning frequently find RAG to be dominant in tasks such as knowledge-grounded question answering (Ovadia et al., 2024). Our results show the opposite: RAG underperforms fine-tuning on 15/20 model-environment combinations, but maintains a strong lead on specific environments. Additionally, on 9/20 settings, either fine-tuning or RAG is outperformed by a simple prompting baseline, demonstrating that the ideal approach is highly dependent on the specific environment in question.

Ablations over the buffers used to construct the WMs reveal approach-specific trends. Both RAG and fine-tuning benefit from larger and more diverse exploration data; however, RAG is more data-efficient, while fine-tuning exhibits more persistent returns to increases in scale.

With a focus on the yet unexplored RAG-based WM approach, we devise a counterfactual intervention experiment to estimate the error rate of the retrieval stage. Our findings are stark and clear: the retrieval step fails consistently with RAG-based WMs, with recall@5 falling below 0.7. Motivated by this finding, we investigate more complex ways of executing retrieval over observations and actions. We find that a hierarchical retrieval paradigm, which selects based on observation similarity before re-ranking based on action similarity, outperforms all other approaches.

Finally, we introduce a hybrid paradigm which combines the parametric and RAG-based approaches to construct a world model. Our hybrid approach outperforms every other method on 17/20 model-environment combinations, approaching 77% of the utility of an oracle upper bound (compared to 60% by the next best method). On 45% of environment-model combinations, our hybrid exceeds 90% of the performance of the oracle model, establishing the power of the method.

References (41)