An Option-Dependent Analysis of Regret Minimization Algorithms in Finite-Horizon Semi-Markov Decision Processes

Gianluca Drappo, Alberto Maria Metelli, Marcello RestelliarXiv 2023

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, learning hierarchically from scratch could be preferable to using a standard approach.

Introduction

Reinforcement Learning (RL) has seen significant empirical success in solving complex tasks, yet it often struggles with the "curse of dimensionality" and long-term credit assignment in environments with long horizons. Hierarchical Reinforcement Learning (HRL) addresses these challenges by decomposing tasks into sub-tasks or "options"—temporally extended actions that persist over multiple time steps. While HRL is a staple of practical RL, its theoretical benefits have primarily been explored in infinite-horizon or average-reward settings.

This paper provides the first theoretical regret analysis for HRL in finite-horizon settings, bridging the gap between the practical utility of hierarchical structures and our mathematical understanding of their efficiency. By introducing a new formalism and algorithm, the authors demonstrate that the primary advantage of HRL stems from a fundamental reduction in the effective planning horizon.

The Finite-Horizon Semi-Markov Decision Process (FH-SMDP)

To analyze HRL in time-limited scenarios, the authors introduce the Finite-Horizon Semi-Markov Decision Process (FH-SMDP). Unlike standard Markov Decision Processes (MDPs) where every action takes exactly one time step, SMDPs allow for actions (options) with variable durations. In a finite-horizon $H$ setting, this means the number of decisions an agent makes in an episode is no longer fixed, but depends on the duration of the chosen options.

The FH-SMDP-UCRL Algorithm

The authors propose FH-SMDP-UCRL, an algorithm designed to minimize regret in these environments. It operates on the "Optimism in the Face of Uncertainty" principle, utilizing several key mechanisms:

  • Bernstein Exploration Bonuses: The algorithm uses empirical Bernstein inequalities to construct confidence intervals for rewards and transitions. This encourages the agent to explore state-option pairs that have not been sufficiently sampled.
  • Renewal Theory Integration: To handle the random duration of options within a fixed episode length $H$, the authors employ tools from renewal theory to bound the expected number of decisions an agent makes.

Key Theoretical Insights

1. Horizon Reduction

The most significant finding is that HRL's performance improvement is driven by horizon reduction. If a task has a total horizon $H$ and the available options have an average duration of $\bar{\tau}$, the agent effectively only makes $d \approx H/\bar{\tau}$ decisions per episode. Because regret bounds in RL typically scale with the number of decisions, this reduction directly leads to lower regret.

2. Option-Dependent Regret Bounds

The paper derives an upper bound on regret: $\tilde{O}(\sqrt{SOKd^2}(\bar{T} + \sqrt{SH}))$. Here, $d$ represents the expected number of decisions and $\bar{T}$ relates to the second moment of option duration. This bound is "option-dependent," meaning it scales based on the specific properties of the hierarchy used, such as the mean and variance of option durations. Notably, if the option length is set to 1, this bound recovers the standard regret bounds for flat finite-horizon MDPs, proving it is a true generalization.

3. The Cost of Learning the Hierarchy

A common critique of HRL is that the cost of learning the sub-tasks (options) might outweigh the benefits of using them. The authors address this by analyzing a two-phase approach where the agent learns options from scratch. They identify a "Hierarchy Advantage Threshold"—a mathematical condition determining when HRL is superior to flat RL. They show that HRL is preferable when the number of episodes $K$ is below a specific threshold, demonstrating that the speed-up in solving the high-level task can compensate for the initial "waste" of episodes spent learning sub-tasks.

Conclusion and Future Work

This research provides a rigorous theoretical justification for the use of hierarchical structures in finite-horizon RL. By proving that temporal abstraction reduces the effective planning horizon, the authors offer a clear framework for understanding when and why HRL outperforms flat approaches.

However, the authors note that using a fixed set of options can introduce a "hierarchical bias" if the optimal policy cannot be represented by those options. Future research may focus on sharpening these bounds using advanced variance-analysis techniques or exploring how the topological structure of an environment (like bottlenecks) interacts with these option-dependent bounds to further optimize hierarchical design.

Summary updated

BibTeX
@misc{drappo2023option,
  author = {Gianluca Drappo and Alberto Maria Metelli and Marcello Restelli},
  title = {{An Option-Dependent Analysis of Regret Minimization Algorithms in Finite-Horizon Semi-Markov Decision Processes}},
  year = {2023},
  eprint = {2305.06936},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.06936},
}
Figure