World Value Functions: Knowledge Representation for Learning and Planning

Geraud Nangue Tasse, Benjamin Rosman, Steven JamesarXiv 2022 · DOI

Abstract

Standard reinforcement learning (RL) agents typically learn value functions tailored to specific tasks, leading to poor generalization when goals change. We propose World Value Functions (WVFs), a novel knowledge representation that captures the value of reaching every possible state within an environment. By learning the "physics" of the world through the lens of value, WVFs enable zero-shot transfer to new tasks and allow agents to perform model-based planning without explicitly learning transition dynamics. Our results in the Four Rooms domain demonstrate that WVF-based agents achieve superior sample efficiency and environmental mastery compared to standard Q-learning.

Introduction

Reinforcement learning has seen significant success in narrow tasks, yet creating agents with general intelligence remains a challenge. A primary hurdle is that internal knowledge—represented by value functions—is often tied strictly to a specific reward structure. If an agent's goal changes, it must typically relearn from scratch. To achieve mastery, agents require a representation that decouples environmental structure from specific task rewards. We introduce World Value Functions (WVFs) to bridge this gap, providing a mathematically grounded framework for learning general environmental knowledge.

Methodology: World Value Functions

The core innovation is the World Value Function $Q(s, g, a)$, which represents the expected value of taking action $a$ in state $s$ to reach an internal goal $g$. We define a goal space $\mathcal{G}$ as any state where the agent experiences a terminal transition.

Figure 2: Visualization of the learned policy and value gradients in the Four Rooms domain. The arrows indicate the optimal actions to reach specific goal states, demonstrating the agent's mastery of the environment's layout.

To learn this function, we employ a modified reward function $\bar{R}$ that penalizes the agent for reaching unintended goals. Key features of this approach include:

  1. Implicit Dynamics: We prove that a complete WVF implicitly contains the world's transition dynamics. By solving a system of Bellman equations, the agent can recover transition probabilities without a separate model-learning phase.
  2. Zero-Shot Transfer: New tasks can be solved instantly by combining a pre-learned WVF with an estimate of the new task's rewards, bypassing the need for further RL training.

Experimental Setup

We evaluated WVFs in the Four Rooms domain, a classic gridworld benchmark. Agents must navigate through rooms connected by narrow hallways. This environment tests an agent's ability to handle long-term planning and hierarchical structure.

Results and Key Insights

Our experiments reveal several advantages of the WVF approach:

  • Sample Efficiency: WVF-based agents reached optimal performance significantly faster than standard Q-learning agents. As shown in the learning curves, the WVF agent achieves high returns much earlier in training.
  • Exploration through Diversity: Learning a complex WVF is paradoxically faster than learning a simple value function because the pursuit of diverse internal goals leads to more effective environmental exploration than standard $\epsilon$-greedy strategies.
  • The Value is the Model: A sufficiently rich value function acts as a model. Knowing the "distance" (in value terms) between all states effectively maps the environment.
Figure 1: (a-c) Visualizations of WVFs and policies for various goals. (d) Learning curves comparing WVF (orange) to standard Q-learning (blue) in the Four Rooms task, demonstrating superior sample efficiency.

Discussion and Limitations

While WVFs offer a powerful framework for mastery, current theoretical proofs are limited to deterministic environments. Future work will extend these principles to stochastic settings. Additionally, while WVFs have been implemented with neural networks, scaling the planning component to high-dimensional, continuous state spaces remains an active area of research.

Summary updated

BibTeX
@misc{tasse2022world,
  author = {Geraud Nangue Tasse and Benjamin Rosman and Steven James},
  title = {{World Value Functions: Knowledge Representation for Learning and Planning}},
  year = {2022},
  eprint = {2206.11940},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.11940},
}
Figure