TL;DR
Hierarchical Reinforcement Learning (HRL) excels at solving complex tasks but has long lacked rigorous theoretical guarantees when high- and low-level policies are learned simultaneously. This paper introduces HBPI-UCRL, the first parallel HRL algorithm with provable polynomial sample complexity. The authors demonstrate that in sparse-reward settings, HRL is provably more sample-efficient than standard "flat" reinforcement learning.
What Problem Does This Paper Address?
Reinforcement learning (RL) agents often struggle in large environments with sparse rewards. HRL addresses this by decomposing a massive problem into a hierarchy: a high-level manager chooses abstract subproblems (tasks), and low-level workers execute specific actions to achieve them.
While HRL works exceptionally well empirically, proving why it works mathematically has been a notorious challenge—especially when both levels are learned in parallel. Parallel learning introduces non-stationarity: from the high-level manager's perspective, the environment's transition dynamics keep shifting because the low-level worker is constantly changing its behavior as it learns.
This paper provides the first explicit sample complexity bounds for parallel HRL under the Best Policy Identification (BPI) framework, answering the fundamental question: Under what conditions can parallel HRL be theoretically guaranteed to find an optimal policy efficiently?
Methods
The authors propose HBPI-UCRL (Hierarchical Best Policy Identification - Upper Confidence Reinforcement Learning), a model-based algorithm that learns high-level and low-level policies concurrently through episodic data collection.
The core technical innovations include:
- Composite Distributions: The algorithm tracks multi-step, low-level transitions to build empirical estimates and high-probability confidence bounds for the high-level Semi-Markov Decision Process (SMDP).
- Sufficient Conditions for Learnability (Assumption 3.1): To tame the non-stationarity of parallel learning, the authors introduce two critical conditions:
- The difference between any low-level policy's transition dynamics and the optimal policy's dynamics must be bounded by the difference in their subproblem value functions.
- The difference in high-level rewards must be similarly bounded.
These conditions ensure that making progress on solving local subproblems directly translates to improving the accuracy of the global high-level model.
Datasets
The algorithm was evaluated using a synthetic Grid Maze environment (modeled after the classic rooms world problem shown in Figure 1).
- Structure: An $m \times m$ grid of rooms, where each room contains a discrete $n \times n$ grid of states. Rooms are connected via specific doorways acting as subproblem targets.
- Variants: The authors evaluated both deterministic and stochastic transition dynamics, as well as setups with and without sparse rewards ("treasures").
Key Insights and Ideas
- Bridging the Theory-Practice Gap: HRL practitioners have long known that sharing transition dynamics across subproblems speeds up learning. This paper formalizes this intuition mathematically, showing that tracking shared dynamics allows the algorithm's sample complexity to scale independently of the number of high-level states ($\mathbf{S}$) and the number of subproblems ($K$).
- The Power of Hierarchy in Sparse Rewards: In goal-directed, sparse-reward tasks, the sample complexity bound of HBPI-UCRL is a factor of $\mathbf{S}$ smaller than its non-hierarchical counterpart. This provides the first ironclad theoretical justification for why HRL outperforms flat RL in sparse-reward landscapes.
Key Results
- Sample Complexity Bounds: Under the learnability conditions, HBPI-UCRL achieves a general sample complexity of $\tilde{O}(SAH^4\mathbf{H}^6/\epsilon^2)$, where $S$ and $A$ are low-level states and actions, $H$ is the subproblem horizon, and $\mathbf{H}$ is the high-level horizon. For sparse-reward settings, this drops dramatically to $\tilde{O}(SAH^2\mathbf{H}^2/\epsilon^2)$.
- Sublinear Scaling: Empirical evaluations demonstrate that the stopping time for HBPI-UCRL scales sublinearly ($\propto \sqrt{\mathbf{S}}$) with the number of high-level states, whereas flat BPI-UCRL scales linearly and quickly becomes computationally impractical as the environment grows.
Limitations and Future Work
- Shared Dynamics Assumption: The proof assumes that all subproblems share the exact same underlying transition dynamics (differing only in their reward functions). Extending this to environments where subproblems have completely distinct dynamics remains an open question.
- Strict Termination: The current examples that satisfy the authors' learnability conditions require optimal subproblem policies to terminate in a single target state with a probability of 1.
- Future Directions: The authors highlight extending HBPI-UCRL to infinite-horizon settings and defining high-level policies purely on abstract state representations rather than full environmental states as promising next steps.
Summary updated