Reaching Goals is Hard: Settling the Sample Complexity of the Stochastic Shortest Path

Liyu Chen, Andrea Tirinzoni, Matteo Pirotta, Alessandro Lazaric

Introduction

The Stochastic Shortest Path (SSP) problem is a fundamental reinforcement learning (RL) framework where an agent aims to reach a designated goal state while minimizing the total expected cost. Unlike finite-horizon or discounted RL settings, SSPs do not impose a fixed time limit or a discount factor, making them highly relevant for real-world applications like autonomous navigation and robotics. However, this lack of temporal constraints significantly complicates the analysis of sample complexity—the number of interactions required to identify a near-optimal policy.

This paper addresses a long-standing gap in RL theory by providing a tight characterization of the sample complexity of SSPs. The authors investigate whether the minimum cost per step ($c_{min}$) is a fundamental barrier to learning or merely a technical artifact of previous analyses.

Methods: Hard Instances and New Algorithms

The authors establish their results through a combination of information-theoretic lower bounds and the development of two novel algorithms.

Information-Theoretic Lower Bounds

To prove the fundamental limits of learning in SSPs, the authors construct several "hard instances"—worst-case MDP environments designed to trap learning algorithms. These constructions, illustrated in Figure 3, include bandit-style states and chain structures that force an agent to distinguish between very similar transition probabilities to avoid infinite costs.

Hard instances used to establish lower bounds for SSP sample complexity. (a) Multi-arm bandit style state, (b) construction for distinguishing models, (c) chain construction for exponential complexity.

Algorithm Design

The paper introduces two algorithms to match these lower bounds:

  1. Search Horizon (Algorithm 1): Designed for the "generative model" setting (where a simulator is available). It employs a "doubling trick" to iteratively estimate the optimal hitting time, effectively reducing the SSP problem to a sequence of finite-horizon problems.
  2. BPI-SSP (Algorithm 2): Tailored for "Best Policy Identification" (BPI), where the agent must explore the environment directly without a simulator.

Key Insights

The Critical Role of $c_{min}$

A major contribution of this work is the discovery that if the minimum action cost $c_{min}$ is zero, the SSP problem can become mathematically "unlearnable." This distinguishes SSPs from standard RL settings where learning is always possible regardless of cost values. The complexity of learning is shown to be proportional to $1/c_{min}$, revealing that reaching a goal is fundamentally harder when some actions are "free."

Hitting Time and the "Teleport" Assumption

The authors demonstrate that learning complexity depends heavily on the "hitting time"—the expected time to reach the goal. In the BPI setting, an agent can become trapped in regions of the state space where finding the goal takes exponential time. To overcome this, the authors introduce Assumption 1: the agent can "teleport" to the goal state at any time for a high fixed cost $J$. This assumption ensures the problem remains tractable.

Key Results

The paper settles the sample complexity of SSPs with the following bounds:

  • Generative Model: The sample complexity is $\Theta\left(\frac{SAB_*^3}{c_{min}\epsilon^2}\right)$, where $S$ is the number of states, $A$ is the number of actions, $B_*$ is the optimal cost-to-goal, and $\epsilon$ is the target accuracy. Their "Search Horizon" algorithm matches this bound.
  • BPI Setting: Under the teleport assumption, the complexity scales with $J/\epsilon$, where $J$ is the cost of the teleport action.

These results indicate that SSP complexity is roughly a factor of $T_\ddagger = B_*/c_{min}$ larger than that of standard finite-horizon or discounted RL settings.

Limitations and Future Work

While this work provides a comprehensive theoretical foundation, several challenges remain. The BPI-SSP algorithm currently requires strictly positive costs ($c_{min} > 0$), and the "teleport" assumption, while necessary for the current proof, is quite strong. Future research could explore weaker conditions, such as "communicating" SSPs where every state can reach every other state, or attempt to refine lower-order terms in the complexity bounds to achieve perfectly tight minimax rates.

Summary updated

BibTeX
@inproceedings{chen2023reaching,
  author = {Liyu Chen and Andrea Tirinzoni and Matteo Pirotta and Alessandro Lazaric},
  title = {{Reaching Goals is Hard: Settling the Sample Complexity of the Stochastic Shortest Path}},
  booktitle = {ALT},
  year = {2023},
}
Figure