Data-Efficient Hierarchical Reinforcement Learning

Ofir Nachum, Shixiang Gu, Honglak Lee, Sergey Levine

Introduction

Reinforcement Learning (RL) has achieved remarkable success in mastering "atomic" skills, such as walking or grasping. However, it frequently struggles with long-horizon tasks that require sequential reasoning, like navigating a maze to find a block and using it to bridge a gap.

Hierarchical Reinforcement Learning (HRL) addresses this by employing a two-tiered system: a "manager" (high-level policy) that sets sub-goals for a "worker" (low-level policy). Despite its conceptual appeal, HRL has historically faced two major hurdles:

  1. Generality: Many methods require humans to hand-design task-specific sub-goals or reward functions for the low-level worker.
  2. Efficiency: Most HRL relies on on-policy training, meaning the agent learns only from newly collected data. While off-policy training (learning from a "replay buffer" of past experiences) is vastly more data-efficient, it traditionally fails in HRL. Because the low-level worker's behavior constantly evolves during training, past high-level actions become obsolete, destabilizing the learning process.

To overcome these challenges, researchers introduce HIRO (HIerarchical Reinforcement learning with Off-policy correction), a framework that enables robots to learn complex, multi-step tasks with high data efficiency and minimal hand-engineering.

The HIRO Architecture

HIRO utilizes a general, two-layer hierarchical structure that operates directly on raw state observations:

  • The High-Level Policy ($\mu^{hi}$): Operating at a lower temporal resolution (e.g., every $c$ steps), the manager observes the current state $s_t$ and outputs a goal $g_t$. Crucially, this goal is defined as a relative state change. It instructs the low-level policy to reach a target state of $s_t + g_t$ within $c$ steps.
  • The Low-Level Policy ($\mu^{lo}$): Operating at every time step, the worker takes the goal $g_t$ and executes raw actions (e.g., motor torques). It receives an intrinsic reward simply for minimizing the distance between the current state and the manager's target state.

Off-Policy Correction

The core innovation of HIRO is its off-policy correction, which allows the framework to leverage past experiences from a replay buffer. If the low-level policy has updated since a piece of data was recorded, the original high-level goal that produced the recorded behavior might no longer be accurate.

To fix this, HIRO "re-labels" past high-level actions. It searches for a new goal $\tilde{g}$ that would have most likely induced the low-level actions actually observed in the old data. By retroactively updating the manager's goals to match the worker's current capabilities, old experiences become valid training data again, stabilizing off-policy learning.

Experimental Evaluation

The researchers evaluated HIRO on four increasingly difficult continuous control tasks using a simulated "Ant" robot (a four-legged quadruped). These tasks require a combination of locomotion, navigation, and object manipulation.

Four continuous control tasks: Ant Gather, Ant Maze, Ant Push, and Ant Fall.
  1. Ant Gather: A standard benchmark where the ant must navigate to collect apples while avoiding bombs.
  2. Ant Maze: The ant must navigate a large U-shaped corridor to reach a target location.
  3. Ant Push: The ant must move a block out of its path to reach a target.
  4. Ant Fall: The ant is placed on a raised platform and must push a block into a chasm to create a bridge it can cross.

Key Results and Insights

  • Superior Performance: HIRO significantly outperformed prior state-of-the-art HRL methods, including SNN4HRL and FeUdal Networks (FuN). In the complex Maze, Push, and Fall tasks, HIRO achieved high success rates where baseline methods often failed to make meaningful progress.
  • Data Efficiency: HIRO successfully learned these complex behaviors using roughly 2 to 4 million samples. For a complex quadruped robot, this equates to just a few days of real-time interaction—a massive improvement over on-policy methods that typically require hundreds of millions of samples.
  • The Power of Raw States: The results demonstrate that complex, learned "latent spaces" are not strictly necessary for defining goals. Using the actual coordinates and joint angles of the robot as the goal space provides a strong, immediate supervision signal.
  • Ablation on Correction: Experiments confirmed that without the off-policy correction, the agent's performance plummeted on harder tasks, underscoring that managing non-stationarity is essential for stable HRL.

Limitations and Future Work

While highly effective, HIRO has a few limitations. The off-policy correction relies on an approximation (sampling candidate goals and selecting the most likely one); a more exact analytical solution could further improve stability. Additionally, because goals are set in the raw state space, the manager must process the entire state. This could prove challenging in environments with extremely high-dimensional observations, such as raw video pixels, without incorporating dimensionality reduction. Finally, extending this two-layer hierarchy to three or more layers to tackle even longer, multi-day tasks remains an open frontier for future research.

Summary updated

BibTeX
@inproceedings{nachum2018data,
  author = {Ofir Nachum and Shixiang Gu and Honglak Lee and Sergey Levine},
  title = {{Data-Efficient Hierarchical Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=SqgxJAtkn5},
}
Figure