techlist.io
OpenAI2017-10-252 min read

Curated summary

Learning a hierarchy

Read original(opens in new tab)

Learning a Hierarchy with Meta-Learning Shared Hierarchies

Humans tackle complex problems by chaining together learned sub-skills, but standard reinforcement learning searches over low-level actions one step at a time, which becomes inefficient for long tasks. The post introduces Meta-Learning Shared Hierarchies (MLSH), a hierarchical reinforcement learning algorithm that discovers reusable high-level actions automatically. Applied to navigation tasks, it learns walking and crawling behaviors in different directions that let an agent master new tasks quickly.

Why Flat Reinforcement Learning Struggles

  • Current reinforcement learning methods rely on brute-force search over low-level actions, such as individual muscle contractions.
  • Long tasks requiring thousands of timesteps demand an enormous number of attempts, making these methods very inefficient.
  • Humans, by contrast, decompose tasks like making pancakes into reusable components and sequence them together.

Hierarchical Reinforcement Learning

  • The core idea is to represent complex behavior as a short sequence of high-level actions.
  • In the authors' example, a solution requiring 2,000 low-level actions becomes 10 high-level actions, and searching a 10-step sequence is far cheaper than searching a 2,000-step one.

Meta-Learning Shared Hierarchies (MLSH)

  • A master policy chooses among a set of sub-policies and selects a new action every N timesteps (for example, N=200).
  • A sub-policy executed for N timesteps forms one high-level action. In navigation tasks, sub-policies correspond to walking or crawling in particular directions.
  • Unlike most prior work, which hand-engineers hierarchies, MLSH discovers the structure automatically through interaction with the environment.
  • The method takes a meta-learning view: a good hierarchy is one that enables fast reward acquisition on unseen tasks.
  • Training samples a distribution of tasks, shares the sub-policies across them, and learns a new master policy for each sampled task. Repeatedly training new master policies pushes the sub-policies toward structures that suit the master's learning dynamics.

Experiments in AntMaze

  • A Mujoco Ant robot must navigate from a start position to a goal across a distribution of nine different mazes.
  • The algorithm finds a diverse set of sub-policies that can be sequenced to solve these mazes, learned purely from environment interaction.
  • The learned sub-policies can then be reused to master a larger task than those used during training.

Code Release

  • The authors released the code for training MLSH agents, along with the MuJoCo environments built to evaluate them.

Continue with another curated summary.