Skip to main content
QUICK REVIEW

[Paper Review] Deep Hierarchical Planning from Pixels

Danijar Hafner, Kuang-Huei Lee|arXiv (Cornell University)|Jun 8, 2022
Reinforcement Learning in RoboticsComputer Science14 citations
TL;DR

Director is a hierarchical reinforcement learning agent that learns long-horizon visual control policies directly from pixels by planning in the latent space of a world model. It uses a discrete goal autoencoder and a two-level policy—manager (high-level) selecting abstract goals, worker (low-level) executing actions—achieving state-of-the-art performance on sparse-reward 3D navigation and visual control tasks without access to global state or dense rewards.

ABSTRACT

Intelligent agents need to select long sequences of actions to solve complex tasks. While humans easily break down tasks into subgoals and reach them through millions of muscle commands, current artificial intelligence is limited to tasks with horizons of a few hundred decisions, despite large compute budgets. Research on hierarchical reinforcement learning aims to overcome this limitation but has proven to be challenging, current methods rely on manually specified goal spaces or subtasks, and no general solution exists. We introduce Director, a practical method for learning hierarchical behaviors directly from pixels by planning inside the latent space of a learned world model. The high-level policy maximizes task and exploration rewards by selecting latent goals and the low-level policy learns to achieve the goals. Despite operating in latent space, the decisions are interpretable because the world model can decode goals into images for visualization. Director outperforms exploration methods on tasks with sparse rewards, including 3D maze traversal with a quadruped robot from an egocentric camera and proprioception, without access to the global position or top-down view that was used by prior work. Director also learns successful behaviors across a wide range of environments, including visual control, Atari games, and DMLab levels.

Motivation & Objective

  • Address the challenge of long-horizon reinforcement learning in visual control tasks with sparse rewards.
  • Overcome limitations of flat RL and existing hierarchical methods that require manual subtask specification or semantic goal spaces.
  • Enable interpretable, generalizable hierarchical behavior learning directly from raw pixels without access to global state or dense supervision.
  • Demonstrate success across diverse environments—3D navigation, Atari, DMLab, Control Suite—using a unified set of hyperparameters.
  • Enable interpretability by decoding learned latent goals into visual images for human inspection.

Proposed method

  • Train a world model (based on PlaNet) to predict future observations in a compact latent space from pixel inputs.
  • Introduce a goal autoencoder that compresses latent state representations into discrete codes for high-level planning.
  • Implement a manager policy that selects discrete goal codes every K=8 steps, operating at a higher temporal abstraction.
  • Use a goal decoder to map discrete codes back to latent space goals for the worker policy to pursue.
  • Train a worker policy to select primitive actions based on current state and goal, maximizing similarity to the goal.
  • Optimize the manager using task reward and an exploration bonus based on autoencoder reconstruction error for temporally-extended exploration.

Experimental results

Research questions

  • RQ1Can hierarchical reinforcement learning be learned directly from pixels without access to global state or dense rewards?
  • RQ2Can a learned world model enable interpretable, discrete goal representations that support effective long-horizon planning?
  • RQ3Does a two-level hierarchy with discrete goal selection and latent space planning outperform flat policies on sparse-reward visual control tasks?
  • RQ4Can the same hyperparameters and architecture generalize across diverse visual environments like 3D mazes, Atari, and DMLab levels?
  • RQ5How do the learned latent goals correspond to semantically meaningful subgoals in complex tasks?

Key findings

  • Director outperforms standard exploration and flat RL baselines on two sparse-reward benchmarks, including 3D maze navigation with a quadruped robot from egocentric vision.
  • The agent successfully solves long-horizon tasks such as Ant Maze M, breaking down navigation into semantically meaningful subgoals like targeting walls before the reward object.
  • Latent goals are interpretable: the world model can decode them into images, revealing that the agent plans via intermediate visual landmarks.
  • Director generalizes across environments—including Atari, DMLab, and Control Suite—using identical hyperparameters and without task reward signal to the worker policy.
  • The manager policy learns temporally-extended exploration via reconstruction error-based bonus, enabling effective long-range goal discovery without dense supervision.
  • In tasks like the Ant Maze, the agent learns to coordinate locomotion and navigation by selecting goals that imply velocity and posture states, even when not explicitly specified.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.