Learning High-level Representations from Demonstrations

Garrett Andersen, Peter Vrancx, Haitham Bou-AmmararXiv 2018

Abstract

Hierarchical Reinforcement Learning (HRL) offers a promising path toward solving complex tasks with sparse rewards by decomposing them into manageable subgoals. However, identifying these subgoals automatically remains a significant challenge. This paper introduces a "top-down" framework that discovers subgoals by analyzing human demonstrations to detect changes in task dynamics. By partitioning the problem into a high-level meta-controller and low-level skills, the proposed method enables agents to solve notoriously difficult environments like Montezuma’s Revenge and Ant Maze with high efficiency.

Introduction: The Sparse Reward Problem

Standard Reinforcement Learning (RL) algorithms excel in environments with frequent feedback, such as Pong. However, they often struggle in "sparse reward" scenarios where an agent must execute a long, precise sequence of actions before receiving any reinforcement. In such cases, random exploration is unlikely to succeed. Hierarchical RL (HRL) addresses this by breaking large problems into smaller subtasks (e.g., "find the key," then "open the door"). The primary bottleneck in HRL is the discovery of these subtasks; manual design is labor-intensive, while "bottom-up" discovery methods often fail to align with the ultimate goal.

Methodology

The authors propose a three-stage pipeline to learn problem structure from a small set of human demonstrations.

Subgoal Discovery via Transition State Clustering (TSC)

The system analyzes human demonstrations to identify "switch points"—states where the underlying dynamics of the task change significantly. For example, the transition from walking on a platform to climbing a ladder represents a change in physical constraints and control requirements. These points are designated as subgoals.

Subgoal discovery in Montezuma's Revenge. Red dots indicate identified transition points used as subgoals.

State Space Factorization

To mitigate the "curse of dimensionality," the model factorizes features into independent components. In a game environment, the agent’s $(x, y)$ coordinates and its inventory (e.g., possessing a "key") are treated as separate factors. Subgoals are then identified within these specific feature subsets, simplifying the learning process.

Hierarchical Decomposition

The task is split into two levels:

  • Meta-Controller (Abstract MDP): A high-level planner that selects the next subgoal. Operating on a simplified symbolic state, it can be solved using efficient algorithms like tabular Q-learning.
  • Base MDPs (Low-level Options): These are the "muscles" of the agent. Each option is a policy trained to reach a specific subgoal using intrinsic rewards based on the distance to the target.

Experimental Evaluation

The framework was tested on two challenging benchmarks:

  • Atari 2600 Montezuma’s Revenge: A benchmark for sparse-reward RL requiring complex navigation and item usage. The model used 10 human demonstration trajectories.
  • Roboschool Ant Maze: A 3D robotics environment where a quadruped must navigate a maze. This task used 15 demonstrations from a pre-programmed controller.

Key Results

The proposed method demonstrated substantial improvements over state-of-the-art baselines.

Learning curves for Montezuma's Revenge. The proposed method (red) reaches high rewards significantly faster than baselines.
  • Human-Level Performance: In Montezuma’s Revenge, the agent reached human-level scores in just 2 million training steps. In contrast, standard DQN fails to score, and previous hierarchical methods require significantly more samples.
  • Solving Complex Robotics Tasks: In the Ant Maze, standard PPO failed entirely. The hierarchical approach solved it consistently, demonstrating the power of decomposing continuous control tasks.
  • Policy Reuse: The authors found that "probabilistic policy-reuse"—occasionally mimicking high-level choices from demonstrations during early training—greatly accelerated learning.

Conclusion and Future Work

This research highlights the effectiveness of a "top-down" approach to subgoal discovery. By using human demonstrations to identify the logical structure of a task, the agent avoids the inefficiencies of random skill discovery. While the current method relies on some manually defined features, future work aims to integrate unsupervised feature learning to enable end-to-end discovery from raw pixels.

Summary updated

BibTeX
@misc{andersen2018learning,
  author = {Garrett Andersen and Peter Vrancx and Haitham Bou-Ammar},
  title = {{Learning High-level Representations from Demonstrations}},
  year = {2018},
  eprint = {1802.06604},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1802.06604},
}
Figure