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

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

In the quest to build autonomous agents that can navigate our computers and the web as skillfully as humans, researchers have hit a recurring wall: hallucination. While Large Language Models (LLMs) are surprisingly good at "imagining" what might happen after a click or a keystroke, these mental simulations often drift away from reality over long sequences, leading to agents that get stuck in loops or attempt impossible actions.

A new paper from researchers at Rutgers and AWS Agentic AI, titled "R-WoM: Retrieval-augmented World Model For Computer-use Agents," proposes a clever fix. By grounding an agent's "world model" in external, real-world tutorials, they’ve significantly boosted the reliability of autonomous digital assistants.

TL;DR

R-WoM is a framework that enhances LLM-based agents by using a Retrieval-Augmented World Model. By pulling in factual, up-to-date knowledge from external tutorials to ground its simulations, R-WoM achieves up to a 23.4% improvement on complex computer-use benchmarks, effectively solving the compounding error problem in long-horizon planning.

What Problem Does This Paper Address?

To act effectively, an agent needs a world model—a mental map of cause and effect. If I click "Print," the world model should predict a dialog box will appear. This allows the agent to "look ahead" and plan without expensive (and sometimes irreversible) trial-and-error.

However, LLMs used as world models suffer from two major flaws:

  1. Static Knowledge: They only know what was in their training data. If a website's UI changes or a specific software version behaves differently, the LLM is lost.
  2. Compounding Errors: In a 10-step task, a tiny hallucination in step 2 makes step 3's prediction slightly worse. By step 10, the agent's "imagined" state bears no resemblance to the actual screen.
Failure of internal world models leading to stuck agents

The authors systematically probed LLMs and found they are actually quite good at identifying immediate next states but fail miserably at maintaining a coherent plan over long horizons.

Methods

The authors introduce R-WoM, which integrates several novel components to stabilize these simulations:

  • Reasoning-aware RAG: Instead of simple keyword searches, R-WoM uses an LLM to rewrite queries (anonymizing personal data and generalizing tasks) and then reranks retrieved tutorial chunks to ensure they are actually relevant to the current UI state.
  • Long-Chain-of-Thought (LongCoT) Rollouts: Inspired by models like DeepSeek-R1, the world model simulates multi-step trajectories in a single forward pass, making the "imagination" process more efficient.
  • Listwise Reward Estimation: Most agents try to give an action an absolute score (e.g., "this action is 0.8 good"). R-WoM instead ranks candidate trajectories against each other. This relative comparison is much more robust against the biases inherent in LLM scoring.
  • Adaptive Rollout: To save on computation, the agent only triggers the full world model simulation when the policy is uncertain. If the next step is obvious, it skips the "daydreaming" and just acts.

Datasets

The researchers evaluated R-WoM on two of the most challenging "computer-use" benchmarks available:

  • OSWorld: Tasks involving desktop applications like Chrome, GIMP, and LibreOffice.
  • WebArena: Complex web-based tasks across e-commerce and social platforms.
  • Knowledge Base: They compiled a massive library of over 30,000 tutorial chunks from sources like WikiHow, Google Chrome Help, and official software manuals.
  • Synthetic Tutorials: For areas where manuals don't exist, they used a "self-play" pipeline to synthesize tutorials from successful agent trajectories.

Key Insights and Ideas

  • The "Aha!" Moment on Horizons: The study found that ungrounded world models peak in performance at a 1 or 2-step lookahead and then crash. R-WoM, however, maintains high success rates even at a 3-step imagination horizon, proving that external grounding effectively "anchors" the agent's reasoning.
  • Relative > Absolute: One of the most important findings was that listwise ranking (comparing A vs. B) outperformed absolute reward scoring. It turns out LLMs are better judges than they are scorers.
  • Grounding as a Filter: The world model doesn't just follow tutorials blindly. It uses them to filter out "hallucinated" actions that don't align with the documented environment dynamics.

Key Results

R-WoM demonstrated substantial performance leaps across the board:

  • OSWorld: Achieved a relative improvement of 21.5% to 23.4% over strong baselines (like WebDreamer).
  • WebArena: Showed gains of 5.6% to 16.3%.
  • Efficiency: The adaptive rollout strategy reduced token usage by over 50% compared to full simulation, while retaining almost all the performance benefits.
  • Model Agnostic: The benefits held true across different backbones, including Qwen-2.5-VL and various Claude 3.5/3.7 models.

Limitations and Future Work

While R-WoM is a major step forward, the authors note some remaining hurdles:

  • Content Modification: The agent still struggles with tasks requiring fine-grained "content modification" (like precisely dragging a slider or editing specific text in a complex document) compared to simple navigation.
  • Implicit Reasoning: If a task requires deep semantic inference that isn't explicitly spelled out in a tutorial, the retrieval mechanism can fail to provide the necessary "spark."
  • Multi-modal Retrieval: Currently, the system relies heavily on text-based tutorials. Future iterations could benefit from retrieving images or videos of UI interactions to provide even better visual grounding.

For those building the next generation of digital assistants, R-WoM provides a clear blueprint: if you want your agent to act in the real world, you have to give it a way to read the manual.

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