Reinforcement Learning with Random Time Horizons

Abstract

We extend the standard reinforcement learning framework to random time horizons. While the classical setting typically assumes finite and deterministic or infinite runtimes of trajectories, we argue that multiple real-world applications naturally exhibit random (potentially trajectory-dependent) stopping times. Since those stopping times typically depend on the policy, their randomness has an effect on policy gradient formulas, which we (mostly for the first time) derive rigorously in this work both for stochastic and deterministic policies. We present two complementary perspectives, trajectory or state-space based, and establish connections to optimal control theory. Our numerical experiments demonstrate that using the proposed formulas can significantly improve optimization convergence compared to traditional approaches.

Cite

Text

Borrell et al. "Reinforcement Learning with Random Time Horizons." Proceedings of the 42nd International Conference on Machine Learning, 2025.

Markdown

[Borrell et al. "Reinforcement Learning with Random Time Horizons." Proceedings of the 42nd International Conference on Machine Learning, 2025.](https://mlanthology.org/icml/2025/borrell2025icml-reinforcement/)

BibTeX

@inproceedings{borrell2025icml-reinforcement,
  title     = {{Reinforcement Learning with Random Time Horizons}},
  author    = {Borrell, Enric Ribera and Richter, Lorenz and Schuette, Christof},
  booktitle = {Proceedings of the 42nd International Conference on Machine Learning},
  year      = {2025},
  pages     = {5101-5123},
  volume    = {267},
  url       = {https://mlanthology.org/icml/2025/borrell2025icml-reinforcement/}
}