TL;DR
eXecuted Latent Value Iteration Networks (XLVINs) generalize implicit planning networks—like Value Iteration Networks (VINs)—to generic reinforcement learning domains without requiring known, discrete Markov Decision Processes (MDPs). By combining contrastive self-supervised world modeling with a graph neural network pretrained to execute the Value Iteration algorithm, XLVIN enables effective, sample-efficient planning in continuous control and pixel-based environments.
What Problem Does This Paper Address?
Implicit planning models integrate algorithmic dynamic programming biases directly into policy network architectures. Seminal works like VINs and Generalized VINs (GVINs) mimic the Value Iteration (VI) algorithm through convolutional or graph operations. However, they share severe limitations:
- Discrete & Known MDP Assumption: They require the transition structure and state space to be discrete, fixed, and fully specified in advance. They cannot handle continuous state spaces or pixel observations without manual discretization.
- Lack of Algorithmic Verification: Conventional VINs are trained end-to-end purely from task rewards, with no explicit incentive or guarantee that internal layers actually perform valid value iteration updates.
- Memory & Scalability: Storing and computing convolutions over massive state-action transition graphs becomes intractable for large or open-ended environments.
XLVIN addresses these gaps by lifting planning into an abstract latent space, constructing a local neighborhood graph on the fly, and running an algorithmically aligned neural executor.
Methods
XLVIN breaks implicit planning into modular, differentiable components:
State s ──► [Encoder z] ──► h_s ────┬──► [Transition T] ──► Local Latent Graph
│ │ │
│ └──► [GNN Executor X] ◄───────┘
│ │
▼ ▼
[Actor-Critic Heads (A, V)]
- Encoder ($z$): Maps raw observations $s$ (e.g., continuous vectors or image pixels) to a latent embedding $\vec{h}_s = z(s)$.
- Transition Model ($T$): Predicts how actions translate latent states: $\vec{h}_s + T(\vec{h}_s, a) \approx \mathbb{E}[z(s')]$. It is pretrained using a TransE ranking loss on random transitions and periodically regularized during RL training.
-
Neural Algorithm Executor ($X$): A Graph Neural Network (GNN) trained explicitly to execute the one-step dynamic programming update of Value Iteration: $$v^{(t+1)}(s) = \max_{a} \left[ r(s,a) + \gamma \sum_{s'} p(s'|s,a) v^{(t)}(s') \right]$$ Crucially, $X$ is pretrained offline on synthetic abstract graphs with intermediate supervision on true VI steps, then frozen during policy optimization.
-
Actor and Critic Heads ($A, V$): At inference, the model unrolls transitions $K$ steps forward to form a local latent tree/graph, executes $K$ rounds of message passing with the frozen executor, and feeds the resulting planned embedding $\vec{\chi}_s$ alongside $\vec{h}_s$ into policy ($\pi$) and value ($V$) heads trained via Proximal Policy Optimization (PPO).
Datasets
- Known Discrete MDP: $8 \times 8$ grid-world mazes with obstacle layouts and variable shortest-path difficulty levels (1 to 10), evaluated both in-distribution ($8 \times 8$) and out-of-distribution ($16 \times 16$).
- Continuous Control (Gym): Classic continuous-state benchmarks: CartPole-v0, Acrobot-v1, and MountainCar-v0.
- Pixel-Space (Atari 2600): Freeway, evaluated in low-data regimes (100k transitions) from raw video frames.
- Synthetic Graph MDPs: Generated synthetically (e.g., Erdős–Rényi/Barabási–Albert graphs, grid mazes with terminal nodes, and binary trees) exclusively for pretraining the GNN executor.
Key Insights and Ideas
- Zero-Shot Algorithmic Transfer: Remarkably, an executor GNN trained purely on abstract binary trees transfers directly to CartPole, Acrobot, MountainCar, and even Atari Freeway. The executor learns the general logic of dynamic programming rather than environment-specific features.
- Decoupling Dynamics from Algorithmics: Standard model-based RL often suffers from compounding model errors, while standard VINs suffer from gradient degradation. Decoupling representation learning (TransE) from the algorithmic operator (frozen VI executor) stabilizes training.
- Emergence of Goal-Metric Spaces: Qualitative 3D PCA visualizations show that during continual learning, the latent space reorganizes: rather than simply preserving 2D spatial coordinates, states cluster according to their shortest-path proximity to the goal.
Key Results
- Continuous Control Sample Efficiency:
- CartPole-v0: XLVIN solves the task using only 10 trajectories (score: $195.2 \pm 5.0$), outperforming standard PPO ($104.6 \pm 48.5$) and prior representation-learning baselines like PRAE ($171.53 \pm 34.18$ using 100 trajectories).
- Sparse-Reward Benchmarks: Solves Acrobot-v1 (score $-245.4$ vs. PPO’s $-500.0$) and MountainCar-v0 (score $-168.9$ vs. PPO’s $-200.0$) with only 100 training trajectories.
- Pixel Observations (Freeway): Under a 100,000-step budget, XLVIN consistently outperforms model-free PPO, demonstrating that the structural planning bias benefits sample efficiency in visual domains.
- Continual Mazes: Matches traditional VIN and GVIN architectures on $8 \times 8$ mazes without needing privileged access to coordinate slicing, and generalizes to out-of-distribution $16 \times 16$ mazes where naive pooling ablations fail.
Limitations and Future Work
- Synthetic Prior Selection: Pretraining the executor still relies on heuristic choices of synthetic graph topologies (e.g., binary trees for low-dimensional discrete action spaces).
- Frozen Executor: Because the executor is frozen to prevent gradient drift, it cannot adapt its core algorithmic reasoning to environments with unusual non-Markovian dynamics.
- Local Horizon Expansion: The forward rollout constructs local neighborhood graphs up to depth $K$ ($K=2$ or $4$). Scaling to deep planning horizons without graph-size explosion remains open.
Summary updated