Executive Summary
Value Memory Graph (VMG) is a novel world model that simplifies complex, continuous offline reinforcement learning (RL) environments into discrete, directed graphs. By mapping offline datasets into a searchable graph structure, VMG allows for exact value iteration and long-horizon planning. This approach significantly outperforms state-of-the-art methods in challenging, sparse-reward tasks like AntMaze and robotic kitchen manipulation.
The Challenge of Offline RL
Reinforcement Learning typically struggles in environments characterized by three specific pain points: continuous state-action spaces, sparse rewards (where the agent rarely gets feedback), and long temporal horizons (where a sequence of hundreds of actions is needed to succeed).
In the offline RL setting—where an agent must learn from a fixed dataset without further interaction—these problems are magnified. Standard algorithms often struggle to "reason" about distant goals or get stuck due to distribution shifts, attempting actions not present in the training data. Instead of trying to learn a complex policy directly on the raw data, VMG proposes building a simplified "map" or world model of the environment that is easier to navigate.
Building the Value Memory Graph
The authors introduce the Value Memory Graph (VMG), which transforms the environment into a discrete Markov Decision Process (MDP) represented as a graph. The process involves four main steps:
- Metric Space Learning: Using contrastive learning, the model learns to embed raw states into a metric space where the $L_2$ distance represents "reachability." If two states are close in this space, the agent can transition between them in a few steps.
- Graph Construction: The model maps all episodes from the offline dataset into this metric space. Similar states are merged into single "vertices" based on a distance threshold, and transitions between them become directed "edges."
- Value Iteration: Because the resulting graph is finite and relatively small, the authors can run the classical Value Iteration algorithm. This calculates the exact "value" of every vertex in seconds, identifying which parts of the graph lead to high rewards.
- Policy Execution: To control the agent, VMG uses a multi-step lookahead. It finds a high-value future state, plans the shortest path to it using Dijkstra’s algorithm, and then uses a supervised Action Translator to convert the abstract graph move into a concrete environment action.
Evaluation Environments
The model was evaluated on the D4RL benchmark, a standard for offline RL. Specifically, they tested on:
- Kitchen: A robotic arm performing a sequence of four subtasks (e.g., opening a microwave, turning on a light).
- AntMaze: A quadruped "ant" robot navigating complex mazes to reach a goal.
- Adroit: High-dimensional robotic hand tasks (e.g., opening a door, spinning a pen).
Why VMG Works
- Discrete is Easier: By turning a continuous world into a discrete graph, the researchers bypass the need for complex neural network-based value functions (like Q-learning), which are prone to instability and overestimation in offline settings.
- Reachability as Distance: The core insight is using contrastive learning to ensure that the geometry of the latent space reflects the physics of the environment. If the model knows how "far" a goal is in terms of steps, planning becomes a simple pathfinding problem.
- Zero-Shot Reward Reusability: Because the graph structure is learned independently of the rewards, if the task changes (e.g., the robot is told to open the cabinet instead of the microwave), the model doesn't need to be retrained. It just needs to re-run value iteration on the existing graph with the new reward labels, taking less than a second.
Performance Highlights
VMG demonstrated a clear advantage in tasks requiring long-term reasoning:
- AntMaze: VMG achieved a total score of 496.3 across all maze tasks, dwarfing the previous state-of-the-art (IQL at 378.0 and CQL at 303.6). It was particularly dominant in "Large" mazes where other models often failed to find the goal.
- Kitchen: VMG outperformed all baselines, including reaching a score of 73.0 on the "complete" task compared to IQL's 62.5.
- Efficiency: While standard RL agents require extensive training for value functions, VMG’s value iteration is nearly instantaneous once the graph is built.
Limitations and Future Directions
- Data Dependency: VMG cannot "imagine" new transitions; it can only create edges based on transitions already present in the offline dataset. If the data is too sparse, the graph may be disconnected.
- Low-Level Dynamics: The "Action Translator" relies on behavior cloning. In tasks where precise, high-frequency motor control is vital (like the Adroit hand tasks), this can lead to suboptimal performance compared to methods that optimize low-level control more aggressively.
- Future Work: The authors suggest extending VMG to online RL, where the graph could expand dynamically as the agent explores new areas of the environment. They also propose building hierarchical graphs to represent different levels of abstraction (e.g., a high-level "room" graph and a low-level "object" graph).
Summary updated