Abstract
Stochastic shortest path (SSP) is a well-known problem in planning and control, in which an agent has to reach a goal state in minimum total expected cost. In this paper we present the adversarial SSP model that also accounts for adversarial changes in the costs over time, while the underlying transition function remains unchanged. Formally, an agent interacts with an SSP environment for K episodes, the cost function changes arbitrarily between episodes, and the transitions are unknown to the agent. We develop the first algorithms for adversarial SSPs and prove high probability regret bounds of square-root K assuming all costs are strictly positive, and sub-linear regret in the general case. We are the first to consider this natural setting of adversarial SSP and obtain sub-linear regret for it.
Introduction
In Reinforcement Learning (RL), the Stochastic Shortest Path (SSP) model describes an agent's attempt to reach a specific goal state with minimum total cost. While standard SSP assumes costs are drawn from a fixed distribution, real-world environments—such as navigating urban traffic or managing dynamic networks—often involve costs that change unpredictably or even "adversarially."
Most existing work on adversarial environments assumes a "loop-free" or finite-horizon setting, where the agent is guaranteed to finish in exactly $H$ steps. The general SSP problem is significantly more complex due to three primary challenges:
- Unbounded Episodes: There is no fixed time limit; an improper policy could theoretically wander forever, incurring infinite cost.
- Conflicting Objectives: The agent must balance reaching the goal quickly (to avoid high costs) against finding the cheapest path (which might be longer).
- Adversarial Manipulation: An adversary can "trap" a learner by making low-cost paths lead to states where reaching the goal becomes extremely expensive or slow.
Methodology
The authors propose a family of algorithms based on Online Mirror Descent (OMD) applied to occupancy measures (the expected number of times a state-action pair is visited). This framework allows the agent to adapt to changing costs while maintaining a consistent strategy for reaching the goal.
SSP-O-REPS (Known Transitions)
To ensure the agent actually reaches the goal, the algorithm constrains the OMD optimization to a set of "proper" policies. These are policies whose expected time to the goal is bounded by a parameter $\tau$, which is related to the SSP-diameter ($D$)—defined as the maximum (over states) of the minimum expected time to reach the goal.
SSP-O-REPS2 (High Probability Guarantees)
Standard regret bounds often focus on average performance. To guarantee performance with high probability, the authors introduce a mid-episode policy switch. If the agent reaches a "bad" state where the expected time to the goal exceeds a certain threshold, it immediately switches to a pre-calculated "fast policy" that prioritizes reaching the goal over minimizing cost.
SSP-O-REPS3 (Unknown Transitions)
When the transition function $P$ is unknown, the agent maintains a confidence set of possible transition models. It utilizes forced exploration—playing the least-visited actions in "unknown" states—and optimistic estimates to ensure it eventually learns enough about the environment to reach the goal reliably. This requires a delicate balance between OMD (to handle adversarial costs) and optimism (to handle unknown transitions).
Key Insights
- The Role of the SSP-Diameter: The diameter $D$ acts as a surrogate for the "horizon" $H$ found in simpler Markov Decision Processes (MDPs), providing a crucial scale for the problem.
- Occupancy Measure Constraints: Unlike finite-horizon MDPs where any policy is "safe," SSP requires explicit linear constraints in the OMD optimization to ensure the resulting occupancy measure corresponds to a policy that reaches the goal in finite time.
- Countering "Slow-Down" Strategies: An adversary can punish a learner for using "slow" policies. By explicitly bounding the expected hitting time in the optimization step, the learner prevents itself from being lured into high-latency states.
Results
This research provides the first sub-linear regret bounds for the adversarial SSP setting:
- Known Transitions: The authors achieve an expected regret of $\tilde{O}(\frac{D}{c_{min}}\sqrt{K})$, where $K$ is the number of episodes and $c_{min}$ is the minimum cost.
- Unknown Transitions ($c_{min} > 0$): The algorithm achieves a regret of $\tilde{O}(\sqrt{K})$ when all costs are strictly positive.
- General Costs: In cases where costs can be zero, the algorithm achieves a regret of $\tilde{O}(K^{3/4})$ by employing a small cost perturbation technique.
Discussion and Future Work
While this paper establishes a foundational framework for adversarial SSP, several avenues for future research remain. The current $\sqrt{K}$ bounds depend on the reciprocal of the minimum cost ($1/c_{min}$); achieving a $\sqrt{K}$ bound without this dependence is a significant open challenge. Furthermore, while these are the first sub-linear bounds, they may not yet be minimax optimal. Finally, the computational complexity of solving a constrained convex optimization problem in every episode remains a hurdle for applying these methods to very large state spaces.
Summary updated