Proceedings

About Time: Model-Free Reinforcement Learning with Timed Reward Machines

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 314-322.

https://doi.org/10.24963/ijcai.2026/36

Abstract

Reward specification plays a central role in reinforcement learning (RL), guiding the agent’s behavior. To express non-Markovian rewards, formalisms such as reward machines have been introduced to capture dependencies on histories. However, traditional reward machines lack the ability to model precise timing constraints, limiting their use in time-sensitive applications. In this paper, we propose timed reward machines (TRMs), which are an extension of reward machines that incorporate timing constraints into the reward structure. TRMs enable more expressive specifications with tunable reward logic, for example, imposing costs for delays and granting rewards for timely actions. We study model-free RL frameworks (i.e., tabular Q-learning) for learning optimal policies with TRMs under digital and real-time semantics. Our algorithms integrate the TRM into learning via abstractions of timed automata and employ counterfactual-imagining heuristics that exploit the TRM's structure to improve search. Experimentally, we demonstrate that our algorithm learns policies that achieve high rewards while satisfying the timing constraints specified by the TRM on popular RL benchmarks.

  1. [Alur and Dill, 1994] Rajeev Alur and David L. Dill. A the- ory of timed automata. Theor. Comput. Sci., 126(2):183- 235, 1994.
  2. [Alur et al., 1992] Rajeev Alur, Costas Courcoubetis, David L. Dill, Nicolas Halbwachs, and Howard Wong- Toi. An implementation of three algorithms for timing verification based on automata emptiness. In RTSS, pages 157-166. IEEE Computer Society, 1992.
  3. [Alur et al., 2001] Rajeev Alur, Salvatore La Torre, and George J. Pappas. Optimal paths in weighted timed au- tomata. In HSCC, volume 2034 of Lecture Notes in Com- puter Science, pages 49-62. Springer, 2001.
  4. [Behrmann et al., 2001] Gerd Behrmann, Ansgar Fehnker, Thomas Hune, Kim Guldstrand Larsen, Paul Pettersson, Judi Romijn, and Frits W. Vaandrager. Minimum-cost reachability for priced timed automata. In HSCC, volume 2034 of Lecture Notes in Computer Science, pages 147- 161. Springer, 2001.
  5. [Behrmann et al., 2007] Gerd Behrmann, Agnès Cougnard, Alexandre David, Emmanuel Fleury, Kim Guldstrand Larsen, and Didier Lime. Uppaal-tiga: Time for playing games! In CAV, volume 4590 of Lecture Notes in Com- puter Science, pages 121-125. Springer, 2007.
  6. [Bouyer et al., 2004a] Patricia Bouyer, Ed Brinksma, and Kim Guldstrand Larsen. Staying alive as cheaply as possi- ble. In HSCC, volume 2993 of Lecture Notes in Computer Science, pages 203-218. Springer, 2004.
  7. [Bouyer et al., 2004b] Patricia Bouyer, Franck Cassez, Em- manuel Fleury, and Kim Guldstrand Larsen. Optimal strategies in priced timed game automata. In FSTTCS, vol- ume 3328 of Lecture Notes in Computer Science, pages 148-160. Springer, 2004.
  8. [Bouyer et al., 2008] Patricia Bouyer, Ed Brinksma, and Kim Guldstrand Larsen. Optimal infinite scheduling for multi-priced timed automata. Formal Methods Syst. Des., 32(1):3-23, 2008.
  9. [Bozga et al., 1998] Marius Bozga, Conrado Daws, Oded Maler, Alfredo Olivero, Stavros Tripakis, and Sergio Yovine. Kronos: A model-checking tool for real-time sys- tems. In CAV, volume 1427 of Lecture Notes in Computer Science, pages 546-550. Springer, 1998.
  10. [Bozkurt et al., 2020] Alper Kamil Bozkurt, Yu Wang, Michael M. Zavlanos, and Miroslav Pajic. Control synthe- sis from linear temporal logic specifications using model- free reinforcement learning. In 2020 IEEE International Conference on Robotics and Automation, ICRA 2020, Paris, France, May 31 -August 31, 2020, pages 10349- 10355. IEEE, 2020.
  11. [Camacho et al., 2019] Alberto Camacho, Rodrigo Toro Icarte, Toryn Q. Klassen, Richard Anthony Valenzano, and Sheila A. McIlraith. LTL and beyond: Formal languages for reward function specification in reinforcement learn- ing. In Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, IJCAI 2019, Macao, China, August 10-16, 2019, pages 6065-6073. ij- cai.org, 2019. IJCAI
  12. [Corazza et al., 2022] Jan Corazza, Ivan Gavran, and Daniel Neider. Reinforcement learning with stochastic reward machines. In AAAI, pages 6429-6436. AAAI Press, 2022.
  13. [David et al., 2015] Alexandre David, Peter Gjøl Jensen, Kim Guldstrand Larsen, Marius Mikucionis, and Jakob Haahr Taankvist. Uppaal stratego. In TACAS, volume 9035 of Lecture Notes in Computer Science, pages 206-211. Springer, 2015.
  14. [Dole et al., 2021] Kalyani Dole, Ashutosh Gupta, John Komp, Shankaranarayanan Krishna, and Ashutosh Trivedi. Event-triggered and time-triggered duration calculus for model-free reinforcement learning. In RTSS, pages 240-252. IEEE, 2021.
  15. [Dole et al., 2023] Kalyani Dole, Ashutosh Gupta, John Komp, Shankaranarayanan Krishna, and Ashutosh Trivedi. Correct-by-construction reinforcement learning of cardiac pacemakers from duration calculus require- ments. In AAAI, pages 14792-14800. AAAI Press, 2023.
  16. [Falah et al., 2023] Amin Falah, Shibashis Guha, and Ashutosh Trivedi. Reinforcement learning for omega- regular specifications on continuous-time MDP. In ICAPS, pages 578-586. AAAI Press, 2023.
  17. [Falah et al., 2025] Amin Falah, Shibashis Guha, and Ashutosh Trivedi. Continuous-time reward machines. In IJCAI, pages 5056-5064. ijcai.org, 2025. IJCAI
  18. [Fujimoto et al., 2018] Scott Fujimoto, Herke van Hoof, and David Meger. Addressing function approximation error in actor-critic methods. In ICML, volume 80 of Proceedings of Machine Learning Research, pages 1582-1591.
  19. PMLR, 2018.
  20. [Hahn et al., 2023] Ernst Moritz Hahn, Mateo Perez, Sven Schewe, Fabio Somenzi, Ashutosh Trivedi, and Dominik Wojtczak. Omega-regular reward machines. In ECAI, vol- ume 372 of Frontiers in Artificial Intelligence and Appli- cations, pages 972-979. IOS Press, 2023.
  21. [Hasanbeig et al., 2019] Mohammadhosein Hasanbeig, Yiannis Kantaros, Alessandro Abate, Daniel Kroening, George J. Pappas, and Insup Lee. Reinforcement learning for temporal logic control synthesis with probabilistic satisfaction guarantees. In 58th IEEE Conference on De- cision and Control, CDC 2019, Nice, France, December 11-13, 2019, pages 5338-5343. IEEE, 2019.
  22. [Henzinger et al., 1992] Thomas A. Henzinger, Zohar Manna, and Amir Pnueli. What good are digital clocks? In ICALP, volume 623 of Lecture Notes in Computer Science, pages 545-558. Springer, 1992.
  23. [Icarte et al., 2018] Rodrigo Toro Icarte, Toryn Q. Klassen, Richard Anthony Valenzano, and Sheila A. McIlraith. Us- ing reward machines for high-level task specification and decomposition in reinforcement learning. In ICML, vol- ume 80 of Proceedings of Machine Learning Research, pages 2112-2121. PMLR, 2018.
  24. [Icarte et al., 2019] Rodrigo Toro Icarte, Ethan Waldie, To- ryn Q. Klassen, Richard Anthony Valenzano, Margarita P. Castro, and Sheila A. McIlraith. Learning reward ma- chines for partially observable reinforcement learning. In NeurIPS, pages 15497-15508, 2019.
  25. [Icarte et al., 2022] Rodrigo Toro Icarte, Toryn Q. Klassen, Richard Anthony Valenzano, and Sheila A. McIlraith. Re- ward machines: Exploiting reward function structure in reinforcement learning. J. Artif. Intell. Res., 73:173-208, 2022.
  26. [Icarte, 2022] Rodrigo Toro Icarte. Reward Machines. PhD thesis, University of Toronto, Canada, 2022.
  27. [Jothimurugan et al., 2021] Kishor Jothimurugan, Suguman Bansal, Osbert Bastani, and Rajeev Alur. Compositional reinforcement learning from logical specifications. In NeurIPS, pages 10026-10039, 2021.
  28. [Larsen et al., 1997] Kim Guldstrand Larsen, Paul Petters- son, and Wang Yi. UPPAAL in a nutshell. Int. J. Softw. Tools Technol. Transf., 1(1-2):134-152, 1997.
  29. [Mehdipour et al., 2023] Noushin Mehdipour, Matthias Al- thoff, Radboud Duintjer Tebbens, and Calin Belta. Formal methods to comply with rules of the road in autonomous driving: State of the art and grand challenges. Automatica, 152:110692, 2023.
  30. [Neary et al., 2021] Cyrus Neary, Zhe Xu, Bo Wu, and Ufuk Topcu. Reward machines for cooperative multi-agent re- inforcement learning. In AAMAS, pages 934-942. ACM, 2021.
  31. [Puterman, 1994] Martin L. Puterman. Markov Decision Processes: Discrete Stochastic Dynamic Programming. Wiley Series in Probability and Statistics. Wiley, 1994.
  32. [Roy et al., 2026] Rajarshi Roy, Anirban Majumdar, Ritam Raha, David Parker, and Marta Kwiatkowska. About time: Model-free reinforcement learning with timed reward ma- chines. CoRR, abs/2512.17637, 2026.
  33. [Sadigh et al., 2018] Dorsa Sadigh, Nick Landolfi, Shankar S. Sastry, Sanjit A. Seshia, and Anca D. Dragan. Planning for cars that coordinate with people: leveraging effects on human actions for planning and active information gathering over human internal state. Auton. Robots, 42(7):1405-1426, 2018.
  34. [Shao and Kwiatkowska, 2023] Daqian Shao and Marta Kwiatkowska. Sample efficient model-free reinforcement learning from LTL specifications with optimality guaran- tees. In IJCAI, pages 4180-4189. ijcai.org, 2023. IJCAI
  35. [Sutton and Barto, 2018] Richard S. Sutton and Andrew G. Barto. Reinforcement learning -an introduction, 2nd Edi- tion. MIT Press, 2018.
  36. [Tollund et al., 2024] Rasmus G. Tollund, Nicklas S. Jo- hansen, Kristian Ø. Nielsen, Álvaro Torralba, and Kim G. Larsen. Optimal infinite temporal planning: Cyclic plans for priced timed automata. In ICAPS, pages 588-596. AAAI Press, 2024.
  37. [Towers et al., 2024] Mark Towers, Ariel Kwiatkowski, Jor- dan Terry, John U. Balis, Gianluca De Cola, Tristan Deleu, Manuel Goulão, Andreas Kallinteris, Markus Krimmel, Arjun KG, Rodrigo Perez-Vicente, Andrea Pierré, Sander Schulhoff, Jun Jet Tai, Hannah Tan, and Omar G. You- nis. Gymnasium: A standard interface for reinforcement learning environments. arXiv preprint arXiv:2407.17032, 2024.
  38. [Watkins and Dayan, 1992] Christopher J. C. H. Watkins and Peter Dayan. Technical note q-learning. Mach. Learn., 8:279-292, 1992.
  39. [Xu and Topcu, 2019] Zhe Xu and Ufuk Topcu. Transfer of temporal logic formulas in reinforcement learning. In IJ- CAI, pages 4010-4018. ijcai.org, 2019. IJCAI

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards