Abstract
In recent years, reinforcement learning has achieved many remarkable successes due to the growing adoption of deep learning techniques and the rapid growth in computing power. Nevertheless, it is well-known that flat reinforcement learning algorithms are often not able to learn well and data-efficient in tasks having hierarchical structures, e.g. consisting of multiple subtasks. Hierarchical reinforcement learning is a principled approach that is able to tackle these challenging tasks. On the other hand, many real-world tasks usually have only partial observability in which state measurements are often imperfect and partially observable. The problems of RL in such settings can be formulated as a partially observable Markov decision process (POMDP). In this paper, we study hierarchical RL in POMDP in which the tasks have only partial observability and possess hierarchical properties. We propose a hierarchical deep reinforcement learning approach for learning in hierarchical POMDP. The deep hierarchical RL algorithm is proposed to apply to both MDP and POMDP learning. We evaluate the proposed algorithm on various challenging hierarchical POMDP.
Introduction
Standard Reinforcement Learning (RL) often struggles with two major real-world hurdles: hierarchy and partial observability. Many complex tasks require a sequence of sub-goals (e.g., "find the key," then "open the door"), where "flat" RL agents often fail to learn long-term dependencies. Furthermore, in Partially Observable Markov Decision Processes (POMDPs), an agent cannot see the entire state of the world, necessitating a memory mechanism to make informed decisions based on history.
This paper introduces hDRQN (Hierarchical Deep Recurrent Q-Network), a framework designed to solve complex tasks by nesting two levels of recurrent neural networks. By combining hierarchical decomposition with Long Short-Term Memory (LSTM) layers, hDRQN allows an agent to decompose long-term goals into subtasks while maintaining a "memory" to overcome partial observability.
Proposed Methodology
The hDRQN framework operates using a two-level hierarchy consisting of a Meta-Controller and a Sub-Controller. The Meta-Controller acts as a high-level manager that observes the environment and selects a subgoal $g_t$. The Sub-Controller then receives this subgoal and executes primitive actions $a_t$ to achieve it over several time steps.
Architectural Variations
The authors propose two distinct architectural frameworks to handle the flow of information between these levels:
- Framework 1 (hDRQNv1): The meta-controller makes decisions based directly on raw observations from the environment.
- Framework 2 (hDRQNv2): The meta-controller utilizes the internal hidden state of the sub-controller as its input. This design assumes that the sub-controller's memory already contains a compressed, task-relevant summary of the environment's history.
Temporal Dynamics and Recurrence
Both levels of the hierarchy utilize LSTM layers to maintain temporal state, which is critical for navigating POMDPs. The sub-controller runs for $k$ steps until a subgoal is reached or a timeout occurs, at which point control returns to the meta-controller to select the next subgoal. The underlying learning engine uses Double Dueling Deep Q-Networks to improve stability and prevent the agent from overestimating the value of certain actions.
Experimental Evaluation
The algorithm was evaluated on three benchmarks modified for partial observability, where the agent only sees a small "window" around itself:
- Multiple Goals in Gridworld & Four-Rooms: Classic navigation tasks requiring sequential goal visits.
- Montezuma’s Revenge (Atari 2600): A notoriously difficult game requiring complex tool-use and navigation with sparse, delayed rewards.
Key Results
- Overcoming Partial Observability: While flat agents (DQN, DRQN) and non-recurrent hierarchical agents (hDQN) failed in partially observable settings, hDRQN successfully learned to navigate the environments.
- Superiority of Framework 2: hDRQNv2 consistently outperformed Framework 1 across tasks. This suggests that the low-level "worker's" memory (hidden state) provides a richer feature set for high-level planning than raw pixels.
- Montezuma’s Revenge Performance: hDRQNv2 successfully learned to navigate the first screen, pick up the key, and reach the doors, achieving scores near 400, whereas baseline flat agents scored 0.
Conclusion
The hDRQN framework demonstrates that combining hierarchical reinforcement learning with recurrent neural networks is a powerful approach for solving POMDPs with hierarchical structures. The use of internal hidden states as features for the meta-controller (Framework 2) proves particularly effective. Future work will focus on automated subgoal discovery to remove the need for predefined task decompositions.
Summary updated