Diversity-Driven Extensible Hierarchical Reinforcement Learning

Yuhang Song, Jianyi Wang, Thomas Lukasiewicz, Zhenghua Xu, Mai Xu

Abstract

Diversity-Driven Extensible Hierarchical Reinforcement Learning (DEHRL) is a novel framework designed to solve complex tasks in environments with sparse rewards and long horizons. By utilizing a bottom-up, self-supervised approach, DEHRL builds a multi-level hierarchy of subpolicies driven by a diversity-based intrinsic reward. This allows agents to bridge the gap between low-level primitive actions and high-level abstract goals without the need for human-designed subgoals or prior environment knowledge.

Introduction

Reinforcement Learning (RL) has achieved significant success in various domains, yet it frequently struggles in environments characterized by sparse rewards and long temporal horizons. In such scenarios, an agent may need to perform thousands of primitive actions—such as moving individual joints or limbs—before receiving any external feedback. Standard RL agents often fail to explore effectively in these settings, wandering aimlessly without ever encountering a reward signal.

Hierarchical Reinforcement Learning (HRL) aims to address this by decomposing complex tasks into manageable subpolicies. However, traditional HRL methods often suffer from two major limitations: they are typically restricted to two levels (a master and a worker) and often require human experts to manually define subgoals. Furthermore, many "top-down" hierarchical methods require the agent to reach the final goal at least once to begin learning, which is nearly impossible in truly sparse environments. DEHRL addresses these challenges through a bottom-up, extensible architecture that discovers useful hierarchies through a self-supervised diversity drive.

Methodology

The Level-wise Architecture

DEHRL is designed to be extensible, allowing for the stacking of multiple levels as required by the complexity of the task. Each level $l$ in the hierarchy consists of three primary components:

  1. Policy ($\pi^l$): This component selects which subpolicy at the level below ($l-1$) to activate.
  2. Predictor ($\beta^l$): This learns to predict the resulting state and the intrinsic reward generated by the level below.
  3. Intrinsic Reward Function Module (IRFM): This module serves as the core of the diversity drive, generating rewards based on the distinctiveness of reached states.

Diversity-Driven Intrinsic Rewards

The fundamental innovation of DEHRL is its self-supervised reward mechanism. At any given level $l$, the IRFM evaluates the state reached by the current subpolicy and compares it to the states that would have been reached if alternative subpolicies had been selected. If the chosen subpolicy leads to a state that is significantly different (measured via a distance metric) from the outcomes of other available subpolicies, the agent receives a high intrinsic reward. This mechanism encourages the agent to develop a diverse repertoire of skills that cover the state space as broadly as possible.

Temporal Abstraction

To handle long horizons, DEHRL employs temporal abstraction, where higher levels operate at lower frequencies than lower levels. For instance, in a navigation task, Level 0 might execute a primitive action every step, while Level 1 acts every 4 steps, and Level 2 acts every 48 steps. This allows the top-level policy to focus on abstract objectives, such as "fetching an ingredient," while the bottom-level policies handle the mechanics of movement.

Hierarchical decomposition of tasks in the OverCooked environment, showing temporal abstraction across three levels.

Experimental Evaluation

Environments and Discovery

The researchers evaluated DEHRL in two primary environments: a custom "OverCooked" grid-world and Minecraft. In OverCooked, the agent must coordinate 16 primitive actions (moving 4 legs in 4 directions) to move its body and eventually fetch ingredients in a randomized order. DEHRL demonstrated remarkable robust discovery, identifying 100% of the fundamental movement subpolicies (Up, Down, Left, Right, and Stay), whereas the state-of-the-art baseline, SNN, only discovered 20%.

Performance Results

DEHRL significantly outperformed standard baselines in sparse-reward scenarios. In the most challenging "random" tasks of OverCooked—where the agent must fetch four ingredients in a shuffled order—DEHRL achieved a success score of 0.81. In contrast, established methods like Option-Critic and FeUdal failed to achieve any success (scoring 0.00).

Comparison of Learning Speed Scores across various game settings, demonstrating DEHRL's superiority in sparse-reward and random-goal scenarios.

In Minecraft, the framework's extensibility was put to the test. As the number of levels in the DEHRL agent increased, the complexity of the structures it "voluntarily" built grew significantly, moving from simple block clusters to more intricate, spread-out formations, demonstrating the framework's ability to scale with task complexity.

Discussion and Conclusion

DEHRL represents a significant step forward in self-supervised hierarchical reinforcement learning. By discovering useful skills from the bottom up through a diversity drive, it avoids the pitfalls of top-down methods that require prior goal-reaching experience. While the framework currently requires manual tuning of hyperparameters like time scales ($T^l$) and the number of subpolicies ($A^l$), its ability to solve highly abstract tasks in sparse environments is a major advancement. Future research will focus on dynamically adjusting these parameters and utilizing more advanced state embeddings to enhance the diversity drive in visually complex environments.

Summary updated

BibTeX
@inproceedings{song2019diversity,
  author = {Yuhang Song and Jianyi Wang and Thomas Lukasiewicz and Zhenghua Xu and Mai Xu},
  title = {{Diversity-Driven Extensible Hierarchical Reinforcement Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33014992},
}
Figure