Back to research
World modelsPreprint · 2026

Visualizing the World Model in an Agent's Value Function

Counterfactual tests reveal which rules of Crafter are encoded in a model-free agent’s value function, and where reward prediction relies on shortcuts.

Method

A Proximal Policy Optimization agent learns from symbolic observations in Craftax-Classic, a fast implementation of Crafter. The analysis uses a checkpoint trained for 10 billion environment steps and an evaluation set of 10,000 episodes.

With the network frozen, interventions change resources, tools or health while preserving the rest of the state. Predicted values are compared against expected orderings, such as whether a diamond becomes more valuable when the agent has the tool needed to collect it.

Results

  • Value estimates distinguish an available resource from a collectible one, reflecting tool prerequisites for achievements such as mining diamonds and iron.
  • Food and water valuations change with the agent’s health needs. Inventory also acts as a proxy for progress through the game’s finite set of rewards.
  • These rules coexist with weak spatial memory and inventory shortcuts. In the evaluation episodes, diamond collection succeeds 35% of the time and 69% of episodes end in lava.
Cite this work
@article{visualizingvaluefunctions2026,
  title = {Visualizing the World Model in an Agent's Value Function},
  author = {Shawheen Naderi and Fatemeh Akherati and Yubei Chen},
  year = {2026},
  journal = {arXiv},
  url = {https://arxiv.org/abs/2610.14186}
}