NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Thinker: Learning to Plan and Act

Stephen Chung, Ivan Anokhin, David Krueger

TL;DR

The Thinker algorithm allows reinforcement learning (RL) agents to learn how to plan autonomously, moving away from rigid, handcrafted search algorithms like Monte Carlo Tree Search (MCTS). By treating a learned world model as a "mental sandbox" within the environment's action space, the agent discovers its own strategies for searching and evaluating future scenarios. This approach achieves state-of-the-art performance in complex reasoning tasks like Sokoban.

What Problem Does This Paper Address?

In model-based RL, agents use a "world model" to predict the consequences of their actions. However, most current state-of-the-art methods (like MuZero) rely on handcrafted planning algorithms to navigate these models. These algorithms are often computationally expensive and rigid; they don't adapt to the specific nuances of a learned model, which might be inaccurate or biased.

The fundamental challenge is: Can an agent learn to plan for itself? Planning requires an agent to master several high-level skills simultaneously—searching through possibilities, evaluating their quality, summarizing different paths, and finally executing the best one. The authors address this by unifying "imaginary" and "real" actions into a single framework, allowing standard RL algorithms to learn planning as just another part of the policy.

Methods

The authors introduce the Thinker-augmented MDP, which transforms a standard environment into a multi-step "thinking" process.

The Thinker-augmented MDP process, showing imaginary steps interacting with a world model before a real environment step.
  1. Augmented Transitions: For every single "real" step in the environment, the agent is given $K-1$ "imaginary" steps. During these steps, the agent interacts exclusively with a learned world model.
  2. Model-Interaction Actions: The agent’s action space is expanded to include a reset action. This allows the agent to "unroll" the model to a certain depth and then instantly jump back to the current real state to try a different "what-if" scenario.
  3. The Dual Network: To make the world model more effective, the authors use two separate RNNs: a state-reward network (predicting physics and points) and a value-policy network (predicting what a "base" policy would do and how good the state is).
  4. Tree Representation & Hints: Instead of just seeing raw predicted pixels, the agent receives a compact "tree representation" containing "hints"—summary statistics like mean/max rollout returns and visit counts. This helps the agent aggregate its "thoughts" without needing an impossibly large memory.

Datasets

  • Sokoban: A classic box-pushing puzzle game known for requiring deep, multi-step planning. The authors used an unfiltered dataset of 900,000 levels.
  • Atari 2600 Benchmark: A suite of 57 diverse games (e.g., Breakout, Chopper Command, Seaquest) used to test the generality of the algorithm across different dynamics and visual styles.

Key Insights and Ideas

  • Planning as "Internalized Action": Drawing from neuroscience, the paper treats planning not as a separate algorithm, but as "internalized actions" processed within an internal world model. This allows the same RL machinery (like IMPALA) to optimize both thinking and acting.
  • Learned vs. Handcrafted Search: Unlike MCTS, which typically resets at leaf nodes, Thinker agents learned to reset based on the quality of the imaginary rollout (measured by TD error). If the agent "saw" a bad outcome (like getting a box stuck), it learned to stop that line of thought and reset immediately.
  • Efficiency of Thought: Thinker achieved better results with just 20 "imaginary steps" than MCTS did with 1,280 simulations. This suggests that a learned, selective search is far more efficient than an exhaustive, handcrafted one.
  • Interpretability: Because the planning process is explicit (the agent chooses to look at specific future states), we can visualize the agent’s "mental rehearsals." This provides a window into the agent's decision-making process that is usually hidden in "black box" model-free networks.

Key Results

Training curves demonstrating Thinker's state-of-the-art solving rate on Sokoban compared to baselines.
  • Sokoban SOTA: Thinker achieved a 94.5% solving rate, significantly outperforming the previous state-of-the-art (DRC at 93%) and crushing model-free baselines (56.7%).
  • Atari Performance: On the Atari 2600 benchmark, Thinker achieved a median human-normalized score of 261%, compared to 102% for the raw model-free version of the same architecture.
  • Generalization: The agent showed a "planning gain"—performance improved as the number of imaginary steps ($K$) increased at test time, even if the agent wasn't specifically trained for that many steps.

Limitations and Future Work

  • Computational Overhead: Every real step now requires $K$ model steps, increasing the wall-clock time for training and inference.
  • Rigid Planning Budget: The current version uses a fixed number of imaginary steps. A more "human-like" agent would decide for itself how long to think before acting based on the difficulty of the situation.
  • Deterministic Model: The current world model is deterministic, which may struggle in highly stochastic environments.
  • Exploration: The algorithm currently lacks a mechanism to use the world model to improve real-world exploration (e.g., curiosity-driven search), which led to lower performance on "hard exploration" games like Montezuma’s Revenge.

Summary updated

BibTeX
@inproceedings{chung2023thinker,
  author = {Stephen Chung and Ivan Anokhin and David Krueger},
  title = {{Thinker: Learning to Plan and Act}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=mumEBl0arj},
}
Figure