TL;DR
The paper introduces OPSRL-SSP, the first posterior-sampling algorithm for the Stochastic Shortest Path (SSP) problem that achieves minimax-optimal regret. By combining an optimistic pseudo-state construction with dynamic posterior inflation, the authors close a long-standing theoretical gap, matching the performance of complex "Optimism in the Face of Uncertainty" (OFU) methods while maintaining the simplicity and empirical efficiency of Thompson Sampling.
What Problem Does This Paper Address?
In Reinforcement Learning, the Stochastic Shortest Path (SSP) problem is a general framework where an agent tries to reach a goal state while minimizing total costs. Unlike standard finite-horizon tasks, the time it takes to reach the goal in an SSP is random and depends on the agent's policy. If the agent explores poorly, it might never reach the goal at all.
Researchers typically use two strategies for exploration:
- OFU (Optimism in the Face of Uncertainty): These algorithms build explicit "confidence sets" around their model and pick the most optimistic one. They have great theoretical guarantees but are computationally heavy.
- Posterior Sampling (Thompson Sampling): These algorithms sample a model from a distribution based on past data. They are simpler and often perform better in practice, but until now, they couldn't match the "minimax-optimal" theoretical regret bounds of OFU methods—they were usually off by a factor of $\sqrt{S}$ (where $S$ is the number of states).
This paper solves the "open problem" of whether posterior sampling can be truly optimal in the SSP setting.
Methods
The authors propose OPSRL-SSP (Optimistic Posterior Sampling for RL in SSP). To force the algorithm to be optimistic enough to reach the theoretical lower bound, they introduce three key mechanisms:
- Optimistic Pseudo-state ($s_0$): They add a virtual state to the environment that has an "optimistically low" cost (specifically $-2B_\star$, where $B_\star$ is the optimal expected cost). This acts as a "shortcut" that encourages the agent to explore states it hasn't visited much yet.
- Dynamic Posterior Inflation: Standard Dirichlet distributions (used to model transitions) can become too "concentrated" around the mean too quickly, preventing the agent from sampling optimistic models. The authors divide the counts in the posterior by an inflation factor $\kappa_t$, effectively "widening" the distribution to ensure optimistic models are still likely to be sampled.
- Anytime Sampling Schedule: Instead of taking just one sample, the algorithm draws a logarithmic number of candidate models ($J_t$) at the start of each epoch and picks the most optimistic one. This ensures that optimism holds globally over time, even without a fixed time horizon.
Datasets
The algorithm was evaluated on standard tabular SSP benchmarks:
- RandomMDP: Randomly generated environments with 8 states and 2 actions, used to test general learning behavior.
- GridWorld: A $10 \times 10$ grid (100 states, 4 actions) where an agent must navigate to a goal while dealing with stochastic "slips."
- Held-out RandomMDP Cohort: A set of 20 independently generated RandomMDP instances used to ensure the results weren't just a fluke of a specific random seed.
Key Insights and Ideas
- Closing the Gap: The primary "aha" moment is that by carefully inflating the posterior and using a pseudo-state, posterior sampling can achieve the same $\tilde{O}(B_\star \sqrt{SAK})$ regret bound as the best OFU methods. This removes the extra $\sqrt{S}$ factor found in previous attempts like PSRL-SSP.
- Horizon-Free Learning: The regret bound is "horizon-free," meaning it doesn't depend polynomially on the hitting time or the minimum cost ($c_{min}$). This makes the algorithm robust for problems where reaching the goal might take a very long time.
- The "Carrot" of the Pseudo-state: By assigning a negative value to the pseudo-state, the authors transform a cost-minimization problem into one where "unknown" transitions look like high-reward opportunities, naturally driving exploration.
Key Results
The theoretical centerpiece is the regret bound: $$\tilde{O}(B_\star \sqrt{SAK} + B_\star S^2 A)$$ This matches the minimax lower bound for the leading term.
As shown in the comparison table below, OPSRL-SSP is the first posterior sampling (PS) approach to achieve "Horizon-Free" status while maintaining optimal regret.
Empirically, OPSRL-SSP performed competitively with (and often outperformed) top-tier OFU baselines like EB-SSP and SVI-SSP across all tested environments, proving that the theoretical "optimism" doesn't break the algorithm's practical efficiency.
Limitations and Future Work
- Knowledge of $B_\star$: The current algorithm requires knowing an upper bound ($B_\star$) on the optimal expected cost. In many real-world scenarios, this isn't known upfront. The authors suggest a "doubling scheme" (repeatedly guessing and increasing $B_\star$) as a potential fix.
- Tabular Only: This work focuses on "tabular" RL, where states and actions are discrete and finite. Extending these optimistic sampling techniques to large-scale problems using function approximation (like neural networks) is the next big frontier.
- Computational Cost: While simpler than some OFU methods, drawing multiple posterior samples and solving the Bellman equations on an augmented state space still carries a computational cost that grows with the number of samples $J_t$.
Summary updated