R-WoM: Retrieval-augmented World Model For Computer-use Agents

Kai Mei, Jiang Guo, Shuaichen Chang, Mingwen Dong, Dongkyu Lee, Xing Niu, Jiarong Jiang · OpenReview

Abstract

Large Language Models (LLMs) can serve as world models to enhance agent decision-making in digital environments by simulating future states and predicting action outcomes, potentially eliminating costly trial-and-error exploration. However, this capability is fundamentally limited by LLMs' tendency toward hallucination and their reliance on static training knowledge, which can lead to compounding errors that inhibit long-horizon simulations. To address these limitations, we propose the Retrieval-augmented World Model (R-WoM), which grounds LLM simulations by incorporating factual, up-to-date knowledge retrieved from external tutorials. Experiments show that R-WoM achieves relative improvements of up to 23.4% and 16.3% on OSWorld and Webarena compared to baselines, with particular advantage in longer-horizon simulations.

Introduction: The Challenge of Long-Horizon Computer Use

For computer-use agents navigating operating systems or web browsers, trial-and-error is often expensive and irreversible. Actions like deleting a file or sending an email cannot be easily undone. To mitigate this, researchers use LLMs as world models, allowing agents to "think" several steps ahead and simulate the screen state after a series of actions.

However, LLMs frequently suffer from "hallucination" in these simulations. To systematically investigate this, the authors probed two core world model capabilities—future state prediction and reward estimation—through tasks like next-state identification and milestone transition recognition. The results revealed a significant "Local vs. Global" gap: while models identify immediate state changes with >75% accuracy, their ability to align a full 10-step plan with reality is poor (often <65%). They may lose track of the cursor, invent non-existent buttons, or ignore software-specific constraints, leading to compounding errors that make long-term planning unreliable.

Figure 1: Comparison of an agent using internal world knowledge versus grounded world knowledge. Internal knowledge leads to failure by losing cursor location, while grounded knowledge successfully follows tutorial steps to complete the task.

R-WoM: Grounding Simulations in External Knowledge

The R-WoM (Retrieval-augmented World Model) framework addresses these limitations by treating external software tutorials as the "laws of physics" for the digital world. Instead of relying solely on internal weights, the agent's mental simulations are grounded in factual documentation. The system incorporates four primary innovations:

  1. Reasoning-aware RAG: User queries are often vague (e.g., "Fork ChatGPT"). R-WoM uses an LLM to rewrite queries into technical terms and employs a list-wise reranker to ensure the most relevant tutorial is retrieved.
  2. Long Chain-of-Thought (CoT) Rollouts: Rather than making repeated calls for every step, R-WoM uses a single reasoning sequence to "unfold" a multi-step trajectory, significantly increasing efficiency.
  3. Listwise Reward Estimation: R-WoM compares multiple simulated futures against each other and ranks them, a relative approach that is more robust than absolute scoring.
  4. Adaptive Branching: To save computation, the agent only simulates multiple paths when it is uncertain, skipping expensive world-model calls for obvious steps.

Key Insights and Results

Evaluation on the OSWorld (desktop apps) and WebArena (web environments) benchmarks, supplemented by AgentNet Trajectories for synthetic tutorials, revealed several critical insights:

  • Tutorials as World Dynamics: By treating tutorials as transition functions, the LLM avoids guessing software behavior. This maintains accuracy even at a 3- or 4-step "imagination horizon," allowing for deeper lookahead during planning.
  • Performance Gains: R-WoM achieved relative improvements of 23.4% on OSWorld and 16.3% on WebArena compared to standard agents. Simply providing a tutorial (standard RAG) helped, but using it to simulate the future (R-WoM) was significantly more effective.
  • Efficiency: Adaptive branching and deduplication mechanisms reduced token usage by over 50% compared to naive world model approaches, making the system more viable for real-world deployment.

Conclusion

R-WoM demonstrates that grounding LLM simulations in external knowledge is essential for reliable long-horizon planning in digital environments. While challenges remain in fine-grained UI manipulation (like dragging sliders) and handling highly ambiguous intent, the use of tutorials as a factual anchor provides a scalable path toward more capable computer-use agents. Future work will explore multi-modal retrieval, incorporating video and visual data to further refine state transition modeling.

Summary updated

BibTeX
@inproceedings{mei2026r,
  author = {Kai Mei and Jiang Guo and Shuaichen Chang and Mingwen Dong and Dongkyu Lee and Xing Niu and Jiarong Jiang},
  title = {{R-WoM: Retrieval-augmented World Model For Computer-use Agents}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=5ZaoXB3MdP},
}
Figure