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

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

The Challenge of Stochastic Shortest Paths

In Reinforcement Learning (RL), the Stochastic Shortest Path (SSP) model describes an agent attempting to reach a specific goal state in a stochastic environment while minimizing the total accumulated cost. Unlike standard finite-horizon Markov Decision Processes (MDPs)—where an agent interacts for a fixed, predetermined number of steps—an SSP episode only terminates when the goal is successfully reached.

This indefinite duration makes the problem notoriously difficult to analyze. Because an episode could theoretically last forever, achieving regret minimization (learning the environment's dynamics and improving the policy "on-the-fly" without wasting excessive costs) is a major challenge. Historically, the algorithms that achieved optimal regret in SSPs were strictly "model-based." They required storing a complete map of environmental transitions (demanding $O(S^2A)$ space) and relied on "full-planning"—frequently re-solving the entire problem from scratch, which is computationally prohibitive.

The Core Innovation: Implicit Finite-Horizon Approximation

To make SSPs mathematically manageable, previous research typically relied on two workarounds: explicitly converting the problem into a finite-horizon MDP (which bloats memory usage and forces the use of complex, non-stationary policies) or using discounted rewards (which alters the objective and can lead to sub-optimal behavior).

This paper introduces a powerful new theoretical template based on Implicit Finite-Horizon Approximation. The authors' key insight is that the mathematical bridge used to prove optimality does not actually need to be implemented in the code. By approximating the SSP as a finite-horizon problem strictly within the mathematical analysis, the actual algorithms can remain stationary, memory-efficient, and computationally lightweight, while still benefiting from the tight regret bounds associated with finite-horizon proofs.

Two Breakthrough Algorithms

Using this implicit approximation template, the authors developed two novel algorithms that significantly advance the state-of-the-art:

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

This is a major milestone: the first model-free algorithm for SSPs to achieve minimax optimality. Because it does not need to store the full transition matrix, it drastically reduces space complexity to $\tilde{O}(SA)$. It relies on a sophisticated variance-reduction technique to maintain optimal learning without building a full model of the environment.

2. SVI-SSP (Sparse Value Iteration, Model-Based)

While still model-based, SVI-SSP eliminates the need for computationally heavy full value iteration. Instead, it utilizes "one-step" sparse updates. The algorithm only updates a state-action pair logarithmically—specifically, when the amount of data collected for that pair doubles. This proves that you do not need to re-solve the entire MDP every time new information is acquired, making SVI-SSP exponentially faster than previous models.

Key Results and Insights

  • Minimax Optimality: Both algorithms achieve the near-optimal regret bound of $\tilde{O}(B_* \sqrt{SAK})$, where $B_*$ is the maximum expected cost to reach the goal, $S$ is the number of states, $A$ is the number of actions, and $K$ is the number of episodes.
  • Massive Efficiency Gains: SVI-SSP is significantly faster than the previous best model-based algorithm, EB-SSP. While EB-SSP requires $O(B_*^2 S^5 A / c_{min}^2)$ iterations for updates, SVI-SSP slashes this requirement to just $\tilde{O}(B_* S^2 A / c_{min})$.
  • Parameter-Free Learning: Both algorithms can be deployed without prior knowledge of the environment's "diameter" or the optimal cost ($B_*$), making them highly adaptable to unknown environments.
  • Empirical Validation: Though primarily a theoretical contribution, empirical evaluations demonstrate that these algorithms converge faster and incur lower computational overhead than vanilla Q-learning and existing model-based SSP algorithms.

Limitations and Future Directions

Despite these breakthroughs, some limitations remain. The model-free algorithm (LCB-ADVANTAGE-SSP) is currently only minimax optimal when costs are strictly positive ($c_{min} > 0$); if the environment contains zero-cost actions, the regret bound degrades. Furthermore, while the "leading" terms of the regret bounds are optimal, the "lower-order" terms still exhibit a dependency on $1/c_{min}$.

Future work will likely focus on closing this gap for zero-cost model-free learning and extending these highly efficient, sparse-update techniques to adversarial SSP environments, where costs can dynamically change over time.

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