English

Regret Guarantees for Linear Contextual Stochastic Shortest Path

Machine Learning 2025-11-18 v1

Abstract

We define the problem of linear Contextual Stochastic Shortest Path (CSSP), where at the beginning of each episode, the learner observes an adversarially chosen context that determines the MDP through a fixed but unknown linear function. The learner's objective is to reach a designated goal state with minimal expected cumulative loss, despite having no prior knowledge of the transition dynamics, loss functions, or the mapping from context to MDP. In this work, we propose LR-CSSP, an algorithm that achieves a regret bound of O~(K2/3d2/3SA1/3B2Tlog(1/δ))\widetilde{O}(K^{2/3} d^{2/3} |S| |A|^{1/3} B_\star^2 T_\star \log (1/ \delta)), where KK is the number of episodes, dd is the context dimension, SS and AA are the sets of states and actions respectively, BB_\star bounds the optimal cumulative loss and TT_\star, unknown to the learner, bounds the expected time for the optimal policy to reach the goal. In the case where all costs exceed min\ell_{\min}, LR-CSSP attains a regret of O~(Kd2S3AB3log(1/δ)/min)\widetilde O(\sqrt{K \cdot d^2 |S|^3 |A| B_\star^3 \log(1/\delta)/\ell_{\min}}). Unlike in contextual finite-horizon MDPs, where limited knowledge primarily leads to higher losses and regret, in the CSSP setting, insufficient knowledge can also prolong episodes and may even lead to non-terminating episodes. Our analysis reveals that LR-CSSP effectively handles continuous context spaces, while ensuring all episodes terminate within a reasonable number of time steps.

Keywords

Cite

@article{arxiv.2511.12534,
  title  = {Regret Guarantees for Linear Contextual Stochastic Shortest Path},
  author = {Dor Polikar and Alon Cohen},
  journal= {arXiv preprint arXiv:2511.12534},
  year   = {2025}
}
R2 v1 2026-07-01T07:39:39.357Z