Abstract
Goal-oriented Reinforcement Learning, where the agent needs to reach the goal state while simultaneously minimizing the cost, has received significant attention in real-world applications. Its theoretical formulation, stochastic shortest path (SSP), has been intensively researched in the online setting. Nevertheless, it remains understudied when such an online interaction is prohibited and only historical data is provided. In this paper, we consider the offline stochastic shortest path problem when the state space and the action space are finite. We design the simple value iteration-based algorithms for tackling both offline policy evaluation (OPE) and offline policy learning tasks. Notably, our analysis of these simple algorithms yields strong instance-dependent bounds which can imply worst-case bounds that are near-minimax optimal. We hope our study could help illuminate the fundamental statistical limits of the offline SSP problem and motivate further studies beyond the scope of current consideration.
Introduction
Reinforcement learning (RL) research typically focuses on either finite-horizon tasks with fixed time limits or infinite-horizon discounted tasks where future rewards are exponentially decayed. However, many critical real-world problems are inherently goal-oriented: the objective is to reach a specific target state—such as a robot reaching a charging station, solving a puzzle, or completing a medical treatment protocol—as efficiently as possible, regardless of the total number of steps.
The mathematical framework for these problems is the Stochastic Shortest Path (SSP). While online SSP (learning through active exploration) is well-studied, Offline SSP—learning from a fixed, historical dataset—has been largely ignored. This is a significant gap because exploration in high-stakes environments like aircraft planning can be dangerous or prohibitively expensive. Offline SSP is fundamentally harder than standard RL because trajectories have variable lengths, and a poorly learned policy might never reach the goal, leading to infinite costs.
Methodology
The authors introduce two primary algorithms based on Value Iteration (VI) to address the challenges of offline goal-oriented learning:
- VI-OPE (Offline Policy Evaluation): This algorithm estimates the cost of a specific target policy by solving an empirical Bellman equation. To ensure mathematical stability and convergence even with sparse data, the authors employ a "skewing" technique, injecting a tiny probability ($1/(n+1)$) of jumping directly to the goal state. This ensures the operator remains a contraction.
- PVI-SSP (Pessimistic Value Iteration): For policy learning, the authors utilize the principle of pessimism. When data for a specific state-action pair is scarce, the algorithm adds a "pessimistic bonus" (derived from Bernstein-type inequalities) to the cost. This discourages the agent from entering uncertain regions of the state space where it might fail to reach the goal.
Key Theoretical Insights
- Instance-Dependency: Unlike traditional "worst-case" bounds, the proposed bounds scale with the actual variance and marginal coverage of the specific task. In deterministic environments, the error rate improves from the standard $O(1/\sqrt{n})$ to a much faster $O(1/n)$.
- Bridging Time and Coverage: A major technical contribution is the mathematical linking of the "expected time to reach the goal" ($T^\pi$) with "marginal state-action coverage" ($d^\pi$). This allows for rigorous bounds even when trajectory lengths are undetermined.
- Minimax Optimality: The authors prove a lower bound for the offline SSP problem, showing that no algorithm can perform better than $\Omega(B_* \sqrt{SC^*/n})$. Their PVI-SSP algorithm matches this rate (up to logarithmic factors), proving it is near-optimal.
Conclusion and Future Work
This study provides the first systematic theoretical foundation for Offline SSP, establishing that near-minimax optimal learning is possible from historical data. The authors demonstrate that under sufficient data coverage, their algorithm is guaranteed to output a "proper" policy—one that reaches the goal with 100% probability.
Future research directions include relaxing the assumption of strictly positive costs for non-goal states and extending these tabular results to function approximation settings, such as linear MDPs or deep neural networks, to handle larger state spaces.
Summary updated