Hierarchical Reinforcement Learning with Optimal Level Synchronization based on a Deep Generative Model

Jaeyoon Kim, Junyu Xuan, Christy Jie Liang, Farookh Khadeer HussainarXiv 2021

Introduction

Hierarchical Reinforcement Learning (HRL) is a powerful paradigm for solving complex, long-horizon tasks by decomposing them into a hierarchy of sub-tasks. Typically, a "Manager" (higher-level policy) sets abstract goals, while a "Worker" (lower-level policy) executes primitive actions to achieve them. While effective, this structure introduces a significant challenge: the level synchronization problem. This paper presents a novel framework that utilizes Flow-based Deep Generative Models (FDGMs) to achieve optimal synchronization between hierarchical levels, significantly improving learning efficiency in high-dimensional robotic environments.

The Synchronization Challenge

In off-policy HRL, agents learn from a replay buffer containing past experiences. However, as the Worker policy evolves, the relationship between a goal and the resulting action changes. A goal issued by the Manager thousands of steps ago might have led the Worker to move left then, but the current, more optimized Worker might move right for the same goal. This non-stationarity makes old memories in the replay buffer "stale" and misleading for the Manager.

Previous state-of-the-art methods, such as the HIRO algorithm, attempted to mitigate this by relabeling old goals using probabilistic estimates. However, these indirect guesses are often noisy and inaccurate, leading to suboptimal training performance.

Methodology: Direct Relabeling via FDGMs

The core innovation of this work is the use of Normalizing Flows (specifically RealNVP) to perform direct goal relabeling. Unlike standard neural networks, FDGMs are mathematically invertible. This property allows the system to run the model "backward": given an observed action and state, it can calculate the exact goal that would have produced that action under the current Worker policy.

Architecture of the proposed HRL framework featuring the Forward and Inverse parts for optimal level synchronization.

As shown in the architecture above, the lower-level policy is split into two components:

  1. Forward Part: Functions as a standard policy for environment interaction.
  2. Inverse Part: Leverages the FDGM to relabel goals in the replay buffer, ensuring the Manager always learns from data synchronized with the Worker's latest capabilities.

To handle varying dimensions between goals and states, the authors implemented a "conditional part" that extracts global state representations. This allows the FDGM to focus on the goal-to-action mapping without being restricted by the bijective constraints typical of normalizing flows.

Experimental Evaluation and Results

The framework was evaluated using the MuJoCo Ant environment in OpenAI Gym, focusing on four challenging benchmarks: Ant Push (Single & Multi) and Ant Fall (Single & Multi). These tasks are characterized by sparse rewards and high-dimensional state spaces, requiring precise long-term planning.

Performance comparison across four MuJoCo Ant tasks, showing reward curves for the proposed method (green) vs. the HIRO baseline (red).

The proposed model consistently outperformed the HIRO baseline across all tasks. In the "Ant Fall Single" environment, the model demonstrated a significantly higher learning speed, particularly in the early stages up to 5.25 million steps. In "Ant Push Single," the model achieved considerably higher final performance through the 10-million-step mark. These results suggest that direct synchronization via generative inversion provides a more stable and accurate learning signal than probabilistic estimation.

Conclusion and Future Work

By replacing indirect goal estimation with direct calculation via invertible generative models, this research provides a robust solution to the non-stationarity problem in HRL. While the current implementation using RealNVP shows great promise, the authors note that future work could involve optimizing generative models specifically for the smaller feature spaces common in reinforcement learning and addressing the computational overhead associated with multi-level policy architectures.

Summary updated

BibTeX
@misc{kim2021hierarchical,
  author = {Jaeyoon Kim and Junyu Xuan and Christy Jie Liang and Farookh Khadeer Hussain},
  title = {{Hierarchical Reinforcement Learning with Optimal Level Synchronization based on a Deep Generative Model}},
  year = {2021},
  eprint = {2107.08183},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.08183},
}
Figure