Abstract
This paper establishes the first near-optimal regret bounds for the Stochastic Shortest Path (SSP) problem that are independent of the minimum cost per step ($c_{min}$). By leveraging Bernstein-style confidence sets and a novel cost-perturbation technique, the authors derive a regret bound of $\tilde{O}(B_\star |S| \sqrt{|A|K})$, where $B_\star$ is the maximum expected cost of the optimal policy. This result matches their newly established lower bound $\Omega(B_\star \sqrt{|S||A|K})$ in terms of its dependence on the optimal cost, action space, and number of episodes, effectively closing a long-standing gap in SSP theory.
Introduction
In Reinforcement Learning (RL), the Stochastic Shortest Path (SSP) model serves as a fundamental framework for goal-oriented tasks. In an SSP, an agent interacts with an environment to reach a designated goal state while minimizing the total accumulated cost. Unlike finite-horizon or discounted Markov Decision Processes (MDPs), the episode length in an SSP is not fixed; it is a random variable determined by the agent's policy and the environment's transitions. This variability introduces a significant risk: a poorly performing policy might never reach the goal, leading to infinite costs.
The central challenge in learning SSPs is regret minimization—quantifying the excess cost an agent incurs while learning the environment compared to an optimal policy. Historically, regret bounds for SSPs were heavily dependent on the minimum possible cost per step ($c_{min}$). When $c_{min}$ is very small or zero, these bounds either become vacuous or scale poorly (e.g., $K^{2/3}$ instead of the standard $\sqrt{K}$). This paper addresses this limitation by "removing the $c_{min}$" and providing bounds that scale only with the optimal expected cost $B_\star$.
The Challenge of Minimum Cost
Previous state-of-the-art algorithms for SSP relied on concentration inequalities that were sensitive to the smallest possible cost in the system. If an environment contained actions with zero cost, the agent could potentially cycle through these states indefinitely without penalty, complicating the estimation of the "cost-to-go" function. To achieve a regret bound proportional to $\sqrt{K}$, researchers previously had to assume $c_{min} > 0$, which is often unrealistic in complex real-world scenarios where many transitions might be cost-free.
Algorithmic Framework
The authors adopt the Optimism in the Face of Uncertainty (OFU) principle. Under this paradigm, the agent maintains a set of plausible models (confidence sets) of the environment and acts according to the most optimistic model within that set. The paper introduces three specific algorithms to refine this approach:
- Hoeffding-based Algorithms (Alg. 1 & 3): These use standard Hoeffding concentration bounds to build confidence sets. Algorithm 3 incorporates a "doubling trick" to estimate the optimal cost $B_\star$ when it is not known a priori.
- Bernstein-based Algorithm (Alg. 2): This is the primary contribution. By utilizing tighter Bernstein-style confidence bounds, the algorithm accounts for the variance of the cost-to-go function. This increased precision allows the agent to focus on the total expected cost rather than the minimum cost per step.
Handling Improper Policies
A critical hurdle in SSP is avoiding "improper policies"—those that fail to reach the goal with probability 1. The authors manage this by dividing the learning process into intervals. An interval terminates if the goal is reached, if the agent encounters a state-action pair that requires further exploration, or if visit counts double. To handle zero-cost loops, they employ a perturbation technique, adding a negligible $\epsilon$ to all costs. This ensures the agent is always mathematically incentivized to progress toward the goal.
Key Theoretical Results
The paper provides a rigorous mathematical analysis of the proposed algorithms, resulting in two major findings:
- Near-Optimal Upper Bound: The Bernstein-based algorithm achieves a regret of $O(B_\star |S| \sqrt{|A|K} \cdot \text{polylog}(K))$. This represents the first $\sqrt{K}$ bound for SSP that remains stable even when costs are zero.
- Tight Lower Bound: The authors establish a new lower bound, proving that any learning algorithm for SSP must suffer at least $\Omega(B_\star \sqrt{|S||A|K})$ regret in the worst-case scenario.
The upper bound is nearly optimal, matching the lower bound's dependence on the optimal cost $B_\star$, the action space $|A|$, and the number of episodes $K$. The only remaining discrepancy is a linear dependence on the state space $|S|$ in the upper bound versus a square-root dependence in the lower bound.
Technical Insights
The technical breakthrough lies in the variance summation technique. The authors demonstrate that the sum of variances of the value function over an episode can be bounded by $B_\star^2$. By adapting this technique from finite-horizon RL to the variable-length setting of SSP, they prove that the agent's uncertainty is controlled by the total expected cost, effectively bypassing the need for a $c_{min}$ lower bound.
Conclusion and Future Work
This work significantly advances the theoretical understanding of Stochastic Shortest Path problems by providing regret bounds that are independent of the minimum cost per step. While the results are near-optimal, two areas remain for future exploration:
- State Space Gap: Closing the gap between $|S|$ and $\sqrt{|S|}$ to achieve minimax optimality.
- Stochastic Costs: The current model assumes deterministic and known costs $c(s, a)$. Extending these guarantees to unknown or stochastic costs would broaden the applicability of the framework to fields like robotics and finance.
- Computational Efficiency: Reducing the overhead of solving augmented MDPs at each epoch would make the algorithm more practical for large-scale applications.
Summary updated