Learning to Reach Goals Without Fixed Time Horizons

This direction is split into other directions: stochastic shortest path problem. Its last version stays readable and citable here.

Version 1 of 182 papers109 conceptsfrozen 2026-10-04

In standard reinforcement learning, we usually assume a safety net: either the episode ends after a fixed number of steps (finite horizon), or future rewards are worth less than immediate ones (discounting). But many real-world tasks don't work this way. A robot navigating a building or a car driving to a destination doesn't care about a "deadline"—it cares about reaching the goal with the lowest total cost, no matter how long it takes.

This is the Stochastic Shortest Path (SSP) problem. It is the purest form of goal-oriented reinforcement learning, but it introduces a terrifying mathematical possibility: if an agent explores poorly, it might enter an infinite loop and never reach the goal, incurring infinite cost.

The Danger of Improper Policies

In a finite-horizon MDP, you can't fail to terminate; time simply runs out. In SSP, termination is a consequence of the agent's behavior. Researchers like Jean Tarbouriech and Alessandro Lazaric highlight that the primary challenge is avoiding improper policies—strategies that have a non-zero probability of never hitting the goal state.

If an agent follows an improper policy in an unknown environment, it isn't just performing poorly; it is effectively "lost." In No-Regret Exploration in Goal-Oriented Reinforcement Learning, the authors explain that because there is no external mechanism to force the end of an episode, the agent must learn to be "proper" while still being "optimistic" enough to explore.

Forcing Termination with Pivot Horizons

How do you explore an environment where a single mistake could lead to an infinite episode? The breakthrough algorithm UC-SSP, introduced by Jean Tarbouriech et al., uses a "pivot horizon" stopping rule.

The intuition is simple: if an episode lasts much longer than we expect the optimal policy to take, something is wrong. The agent is likely stuck in a loop or following an improper policy. By setting a threshold (the pivot), the agent can "give up" on the current policy and update its model of the world before it wastes too much time. This mid-episode correction, also explored by Daniel Vial and Advait Parulekar in Regret Guarantees for Linear Contextual Stochastic Shortest Path, ensures that the agent eventually reaches the goal while maintaining sublinear regret.

From Minimum Costs to Hitting Times

Early theoretical work on SSP often relied on a crutch: the assumption that every action has a minimum positive cost ($c_{min} > 0$). This makes the math easier because it penalizes every extra step, naturally pushing the agent toward the goal. However, many tasks have zero-cost transitions.

Aviv Rosenberg and Yishay Mansour showed in Near-optimal Regret Bounds for Stochastic Shortest Path that the true complexity of the problem isn't determined by the minimum cost, but by $B_*$—the maximum expected cost of the optimal policy across all starting states. By using variance-sensitive Bernstein confidence sets, they achieved regret bounds that match the lower limits of the problem without needing to know $c_{min}$.

This shift was further refined by Haipeng Luo and Liyu Chen. In Implicit Finite-Horizon Approximation and Efficient Optimal Algorithms for Stochastic Shortest Path, they introduced a technique that treats the indefinite SSP as a sequence of finite-horizon problems that slowly expand. This "implicit" approximation allows them to achieve minimax optimal regret even when costs are adversarial.

Scaling to Large Worlds

While tabular SSP is well-understood, real-world states are too numerous to count. To handle this, researchers have moved toward Linear Function Approximation. The goal here is to learn a weight vector that represents the cost-to-go, rather than a value for every single state.

Quanquan Gu and Qiwei Di developed LEVIS++, described in Nearly Minimax Optimal Regret for Learning Linear Mixture Stochastic Shortest Path. This algorithm uses recursive high-order moment variance estimators to handle the massive variance inherent in random-length episodes. Meanwhile, Daniel Vial and Sanjay Shakkottai proposed finding Optimistic Approximate Fixed Points (OAFPs), a method that allows agents to use simple, stationary policies while still guaranteeing they won't get stuck in infinite loops.

A Unified Framework

The beauty of the Stochastic Shortest Path framework is its generality. As noted by Ming Yin and Mengdi Wang in Offline Stochastic Shortest Path: Learning, Evaluation and Towards Optimality, SSP can simulate discounted RL (by adding a "death" probability to every step) and finite-horizon RL (by including time in the state).

By solving the "hardest" version of the problem—where the horizon is unknown and the agent must find its own way home—researchers are building a foundation for AI that can operate in the open-ended, goal-driven reality of the physical world.

Papers in this version

Showing 60 of 82 papers.

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_learning_to_reach_goals_without_fixed_ti_a9c5bffe,
  title = {Learning to Reach Goals Without Fixed Time Horizons},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/learning-to-reach-goals-without-fixed-time-horizons/rdr_a9c5bffe7ac948ec89a720e30a7850c4},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_learning_to_reach_goals_without_fixed_ti_a9c5bffe_v1,
  title = {Learning to Reach Goals Without Fixed Time Horizons},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/learning-to-reach-goals-without-fixed-time-horizons/rdr_a9c5bffe7ac948ec89a720e30a7850c4/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}