XLVIN: eXecuted Latent Value Iteration Nets

Andreea Deac, Petar Veličković, Ognjen Milinković, Pierre-Luc Bacon, Jian Tang, Mladen Nikolić

TL;DR

XLVIN (eXecuted Latent Value Iteration Networks) brings the power of algorithmic planning to reinforcement learning agents operating in unknown, continuous, or high-dimensional environments. By combining contrastive self-supervised learning with a frozen, pre-trained Graph Neural Network executor, XLVIN forces true value iteration planning to emerge in a learned latent space without requiring a predefined map of the environment.

What Problem Does This Paper Address?

In reinforcement learning (RL), agents generally choose between two paths: model-free learning (learning purely from trial-and-error) or model-based planning (using a map or model of the environment to look ahead). Value Iteration Networks (VINs) introduced a clever middle ground: embedding a planning algorithm directly into a model-free policy network using convolutional layers to mimic value iteration (VI).

However, classic VINs suffer from three major limitations:

  1. Privileged Knowledge: They assume the underlying environment structure (the Markov Decision Process, or MDP) is discrete, fixed, and known in advance (e.g., a grid-world grid).
  2. Dimensionality Constraints: They struggle with continuous state spaces or complex pixel inputs unless they are explicitly discretized.
  3. Lack of Algorithmic Guarantee: Even though the architecture is designed to look like a planner, the network isn't explicitly forced to plan; it often exploits its capacity to simply overfit the training data.

The authors introduce XLVIN to alleviate all of these constraints, allowing VIN-style implicit planning to deploy seamlessly on generic, continuous, and unknown environments.

Methods

XLVIN breaks down the planning pipeline into four distinct, unified modules:

  1. Encoder ($z$): Maps raw observations (whether flat vectors or Atari pixels) into flat latent embeddings $\vec{h}_s = z(s)$.
  2. Transition Model ($T$): Instead of learning a complex pixel-reconstruction model, XLVIN uses a TransE translation model optimized via a contrastive triplet loss. It learns to predict the next state's embedding simply by adding an action vector to the current state embedding: $z(s) + T(z(s), a) \approx z(s')$.
  3. Executor ($X$): This is the core innovation. The executor is a Graph Neural Network (GNN) trained explicitly to execute the Value Iteration algorithm on synthetic graphs. Crucially, its parameters are frozen after pre-training. This forces the network to actually perform value iteration computations rather than repurposing the weights to overfit the RL task.
  4. Actor & Tail: Consumes both the initial state embedding and the planning-updated embedding to output action probabilities ($\pi$) and state values ($V$).

During execution, XLVIN performs a local, breadth-first tree expansion in the latent space up to a depth $K$ using the transition model, constructs a local graph, and runs the frozen GNN executor over it to compute the plan.

Figure 1: XLVIN model summary. The individual modules are explained (and colour-coded) in Section 3.1, and the dataflow is outlined in Section 3.2.

Datasets

The authors evaluated XLVIN across three distinct environment regimes:

  • Known Discrete MDPs: Standard $8 \times 8$ grid-world mazes, evaluated using a "continual maze task" where difficulty scales up as the agent succeeds, testing resilience to catastrophic forgetting.
  • Continuous-Space Observations: Classical control tasks from OpenAI Gym, including CartPole-v0, Acrobot-v1, and MountainCar-v0.
  • Pixel-Space Observations: High-dimensional Atari 2600 games (Freeway, Alien, and Enduro) via the Arcade Learning Environment.
  • Contextual Mazes: A newly introduced variant of the classic maze where global context (represented by border color intensities) flips the reward rules, specifically designed to expose the limitations of standard VINs.

Key Insights and Ideas

  • The Power of Freezing: Freezing the GNN executor after algorithmic pre-training acts as a powerful inductive bias. Because the weights cannot change, the policy network is forced to organize its learned latent space so that the executor's fixed value iteration math yields useful plans.
  • Algorithmic Transferability: The GNN executor doesn't need to be trained on the actual target environment. An executor trained on completely random, synthetic graphs successfully transfers its planning capabilities to control CartPole or play Atari games.
  • Latent Space vs. Pixel Reconstruction: Trying to plan using pixel-reconstruction world models (like VAEs) fails in complex environments because the model wastes capacity reconstructing irrelevant background details. Contrastive learning via TransE focuses purely on action-state dynamics.

Key Results

Continuous Control Sample Efficiency

XLVIN demonstrated massive sample efficiency gains in low-data regimes. For CartPole-v0, XLVIN solved the environment using only 10 trajectories—outperforming prior state-of-the-art model-based representations while using 10x fewer samples. In sparse-reward environments like Acrobot and MountainCar, standard model-free PPO failed completely, while XLVIN successfully solved them within 100 trajectories.

Overcoming the Limits of VINs

On standard mazes, XLVIN matched the performance of classic VINs. However, on the Contextual Maze, standard VINs failed because they rely on "coordinate slicing" which ignores global context. XLVIN easily mastered it by encoding the global context directly into the latent space.

Success rate on standard mazes

Atari Performance

In low-data Atari setups (limited to 1,000,000 transitions), XLVIN consistently explored and exploited better than the model-free PPO baseline, maintaining a higher average reward throughout the early stages of training.

Atari performance curves

Limitations and Future Work

The primary limitation of XLVIN is its tree expansion strategy. Because it uses a breadth-first search to build the local latent graph, the time and space complexity scales as $O(|A|^K)$, where $|A|$ is the number of actions and $K$ is the planning depth. Empirically, the authors found performance plateaus around $K \le 4$, making it prohibitive for deep planning horizons or massive action spaces.

The authors suggest that future iterations will require a rollout policy (similar to Imagination-Augmented Agents) to selectively expand promising paths in the latent space rather than expanding every single action blindly.

Summary updated

BibTeX
@inproceedings{deac2020xlvin,
  author = {Andreea Deac and Petar Veličković and Ognjen Milinković and Pierre-Luc Bacon and Jian Tang and Mladen Nikolić},
  title = {{XLVIN: eXecuted Latent Value Iteration Nets}},
  booktitle = {LMCA @ NeurIPS},
  year = {2020},
  url = {https://openreview.net/forum?id=yDKZFz_bT6p},
}
Figure