Implicit Finite-Horizon Approximation and Efficient Optimal Algorithms for Stochastic Shortest Path

Liyu Chen, Mehdi Jafarnia-Jahromi, Rahul Jain, Haipeng Luo

Introduction

The Stochastic Shortest Path (SSP) problem is a fundamental framework in reinforcement learning (RL) used to model goal-oriented tasks, such as robotic navigation or maze solving. In an SSP, an agent interacts with an environment in episodes that conclude only when a designated "goal" state is reached. The agent's objective is to minimize regret—the difference between its cumulative costs and the costs incurred by an optimal policy.

While recent theoretical advancements have produced algorithms with near-optimal regret bounds, these solutions often face significant practical hurdles. Most state-of-the-art SSP algorithms are model-based, requiring the explicit estimation and storage of transition dynamics. This leads to a memory complexity of $\Omega(S^2A)$ (where $S$ is the number of states and $A$ is the number of actions). Furthermore, these algorithms typically rely on "full planning"—executing Value Iteration until convergence at every step—which creates a massive computational bottleneck. This paper addresses these challenges by introducing a novel analytical framework that enables the design of both model-free and computationally efficient model-based algorithms.

Implicit Finite-Horizon Approximation

The primary innovation of this work is the concept of implicit finite-horizon approximation. Traditionally, to analyze the indefinite horizon of an SSP, researchers might explicitly convert it into a finite-horizon problem. However, this explicit conversion often expands the state space and forces the algorithm to learn a non-stationary, time-dependent policy, which is inefficient.

Instead, the authors propose approximating the SSP with a finite-horizon counterpart only within the mathematical analysis. This allows the algorithm itself to remain stationary and unaware of the artificial horizon, preserving low memory requirements and natural policy structures while still benefiting from the theoretical guarantees of finite-horizon analysis.

Proposed Algorithms

Using this framework, the authors develop two distinct algorithms designed to overcome the limitations of prior methods:

1. LCB-ADVANTAGE-SSP (Model-Free)

This represents the first-ever model-free algorithm for the SSP problem. By avoiding the storage of a transition model, it reduces space complexity to $\tilde{O}(SA)$. The algorithm utilizes a variance reduction technique known as reference-advantage decomposition to update Q-values in $O(1)$ time per step. It achieves minimax optimal regret when the minimum cost of any state-action pair ($c_{min}$) is strictly positive.

2. SVI-SSP (Model-Based)

The SVI-SSP algorithm utilizes Sparse Value Iteration. Unlike traditional model-based methods that perform full planning at every step, SVI-SSP updates state-action Q-values only at specific, exponentially growing intervals. This sparse update schedule ensures that the algorithm remains computationally light while maintaining the optimism necessary to achieve optimal regret bounds, even in environments where zero-cost states exist ($c_{min} = 0$).

Key Results and Empirical Performance

The theoretical contributions are supported by strong regret bounds:

  • LCB-ADVANTAGE-SSP achieves a regret of $\tilde{O}(B_\star \sqrt{SAK} + B_\star^5 S^2 A / c_{min}^4)$, where $B_\star$ is the maximum expected cost of the optimal policy.
  • SVI-SSP achieves $\tilde{O}(B_\star \sqrt{SAK} + B_\star S^2 A)$, matching the best-known bounds in the literature.

Empirically, the efficiency gains are stark. In a synthetic RandomMDP environment (5 states, 2 actions) over 3,000 episodes, SVI-SSP required only 0.12 seconds for updates. In contrast, existing baselines like UC-SSP and ULCVI required 14.4 seconds and 15.7 seconds, respectively. This represents a massive reduction in computational overhead without sacrificing performance.

Limitations and Future Work

A notable limitation of the model-free approach (LCB-ADVANTAGE-SSP) is its dependence on a strictly positive minimum cost ($c_{min} > 0$). If zero-cost states are present, the algorithm requires a cost-perturbation trick that introduces a polynomial dependence on the total number of episodes ($K$) into the time complexity. This $K$-dependent complexity is a common hurdle for algorithms learning stationary policies in SSPs. Future research is needed to determine if a stationary policy can be learned with optimal efficiency in the presence of zero-cost states without this computational penalty.

Summary updated

BibTeX
@inproceedings{chen2021implicit,
  author = {Liyu Chen and Mehdi Jafarnia-Jahromi and Rahul Jain and Haipeng Luo},
  title = {{Implicit Finite-Horizon Approximation and Efficient Optimal Algorithms for Stochastic Shortest Path}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=mo-EcqhZU2R},
}
Figure