Abstract
A large variety of real-world Reinforcement Learning (RL) tasks is characterized by a complex and heterogeneous structure that makes end-to-end (or flat) approaches hardly applicable or even infeasible. Hierarchical Reinforcement Learning (HRL) provides general solutions to address these problems thanks to a convenient multi-level decomposition of the tasks, making their solution accessible. Although often used in practice, few works provide theoretical guarantees to justify this outcome effectively. Thus, it is not yet clear when to prefer such approaches compared to standard flat ones. In this work, we provide an option-dependent upper bound to the regret suffered by regret minimization algorithms in finite-horizon problems. We illustrate that the performance improvement derives from the planning horizon reduction induced by the temporal abstraction enforced by the hierarchical structure. Then, focusing on a sub-setting of HRL approaches, the options framework, we highlight how the average duration of the available options affects the planning horizon and, consequently, the regret itself. Finally, we relax the assumption of having pre-trained options to show how, in particular situations, is still preferable a hierarchical approach over a standard one.
Introduction
Reinforcement Learning (RL) often struggles with "long-horizon" tasks—problems where an agent must take thousands of primitive steps to reach a goal. While Hierarchical Reinforcement Learning (HRL) is a popular practical solution that breaks a large task into a sequence of sub-tasks or "options," the theoretical justification for why and when it outperforms standard RL has remained sparse, particularly for finite-horizon problems with fixed time limits.
Standard RL algorithms typically assume every action takes exactly one time step. In the options framework, an option (e.g., "navigate to the door") may take a variable number of steps to complete. This stochastic duration breaks the mathematical assumptions of standard regret analysis. This paper bridges the theory-practice gap by quantifying the "planning horizon reduction" that HRL provides and establishing the first theoretical regret analysis for HRL in finite-horizon settings.
Theoretical Framework: From MDP to FH-SMDP
To analyze hierarchical structures, the authors extend the Finite-Horizon Markov Decision Process (FH-MDP) to a Finite-Horizon Semi-MDP (FH-SMDP). This formalism explicitly accounts for actions (options) that have variable, random durations.
FH-SMDP-UCRL Algorithm
The researchers propose a new algorithm, FH-SMDP-UCRL, based on the "Optimism in the Face of Uncertainty" principle. Unlike standard algorithms, FH-SMDP-UCRL maintains confidence intervals that implicitly handle the uncertainty of option durations alongside rewards and transitions.
Renewal Process Theory
A significant challenge in bounding regret for SMDPs is estimating how many decisions an agent actually makes within an episode of length $H$. The authors utilize Renewal Theory to prove that if options are temporally extended (long-lived), the number of decisions $d$ is significantly smaller than the total number of steps $H$. This reduction is the primary driver of HRL's efficiency.
Key Insights and Regret Analysis
The core contribution of this work is the derivation of an option-dependent upper bound on regret.
- The "d vs. H" Advantage: The regret of the FH-SMDP-UCRL algorithm scales as $\tilde{O}(\sqrt{SOKd^2})$, where $S$ is the state space, $O$ is the number of options, $K$ is the number of episodes, and $d$ is the average number of decisions per episode. Because standard "flat" RL regret scales with the full horizon $H$, and $d \le H$, the hierarchical approach is provably more efficient whenever options have a meaningful duration.
- Handling Random Duration: Previous intuition suggested that the random duration of options might introduce significant complexity. However, the analysis shows that the "extra cost" of this randomness is only partially additive to the regret, rather than multiplicative. The benefits of a shorter planning horizon ($d$) far outweigh the noise of variable option lengths.
- Performance Difference Lemma: The authors derived a new version of the fundamental Performance Difference Lemma specifically for SMDPs. This allows for the decomposition of hierarchical policy error into errors in reward and transition estimation across multiple time steps.
Learning Options from Scratch
While most HRL theory assumes pre-trained options, this paper explores a two-phase "Explore-Then-Commit" approach to relax this assumption. In this regime, the agent first learns sub-task policies (options) and then uses them to solve the high-level task.
This hierarchical approach is preferable to flat RL even when starting from scratch, provided the sub-tasks are "local" (restricted to small parts of the state space). In such cases, the initial investment in learning options pays off during the high-level planning phase. The authors provide a concrete condition (Equation 10 in the paper) to determine the maximum number of episodes $K$ for which this hierarchical approach remains superior to a flat one.
Conclusion and Future Work
This work provides a rigorous theoretical foundation for the empirical success of HRL. By proving that regret scales with the number of decisions rather than the number of steps, the authors justify the use of temporal abstraction in complex tasks.
Future research directions include:
- Online Option Learning: Moving beyond the "Explore-Then-Commit" model to a fully online version of option learning to improve the $K^{2/3}$ scaling to the more optimal $K^{1/2}$.
- Tighter Bounds: Implementing "Bernstein-style" bounds to account for the variance of the value function, potentially leading to even tighter regret limits.
- Structure Exploitation: Investigating how environmental bottlenecks or specific topological structures further influence these theoretical bounds.
Summary updated