Proceedings

Learning Probabilistic Temporal Logic Specifications for Stochastic Systems

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 4642-4650.

https://doi.org/10.24963/ijcai.2025/517

Abstract

There has been substantial progress in the inference of formal behavioural specifications from sample trajectories, for example using Linear Temporal Logic (LTL). However, these techniques cannot handle specifications that correctly characterise systems with stochastic behaviour, which occur commonly in reinforcement learning and formal verification. We consider the passive learning problem of inferring a Boolean combination of probabilistic LTL (PLTL) formulas from a set of Markov chains, classified as either positive or negative. We propose a novel learning algorithm that infers concise PLTL specifications, leveraging grammar-based enumeration, search heuristics, probabilistic model checking and Boolean set-cover procedures. We demonstrate the effectiveness of our algorithm in two use cases: learning from policies induced by RL algorithms and learning from variants of a probabilistic model. In both cases, our method automatically and efficiently extracts PLTL specifications that succinctly characterize the temporal differences between the policies or model variants.

  1. [Baier and Katoen, 2008] Christel Baier and Joost-Pieter Katoen. Principles of model checking. MIT Press, 2008.
  2. [Bartocci et al., 2014] Ezio Bartocci, Luca Bortolussi, and Guido Sanguinetti. Data-driven statistical learning of tem- poral logic properties. In FORMATS, volume 8711 of Lec- ture Notes in Computer Science, pages 23-37. Springer, 2014.
  3. [Bartocci et al., 2022] Ezio Bartocci, Cristinel Mateis, Eleonora Nesterini, and Dejan Nickovic. Survey on mining signal temporal logic specifications. Inf. Comput., 289(Part):104957, 2022.
  4. [Bjørner and Havelund, 2014] Dines Bjørner and Klaus Havelund. 40 years of formal methods -some obstacles and some possibilities? In FM, volume 8442 of Lecture Notes in Computer Science, pages 42-61. Springer, 2014.
  5. [Boggess et al., 2023] Kayla Boggess, Sarit Kraus, and Lu Feng. Explainable multi-agent reinforcement learning for temporal queries. In Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence, IJCAI 2023, 19th-25th August 2023, Macao, SAR, China, pages 55-63. ijcai.org, 2023. IJCAI
  6. [Bombara et al., 2016] Giuseppe Bombara, Cristian Ioan Vasile, Francisco Penedo, Hirotoshi Yasuoka, and Calin Belta. A decision tree approach to data classification us- ing signal temporal logic. In Proceedings of the 19th In- ternational Conference on Hybrid Systems: Computation and Control, HSCC '16, page 1-10, New York, NY, USA, 2016. Association for Computing Machinery.
  7. [Bordais et al., 2024] Benjamin Bordais, Daniel Neider, and Rajarshi Roy. Learning branching-time properties in CTL and ATL via constraint solving. In Formal Methods -26th International Symposium, FM 2024, Milan, Italy, Septem- ber 9-13, 2024, Proceedings, Part I, volume 14933 of Lec- ture Notes in Computer Science, pages 304-323. Springer, 2024.
  8. [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.
  9. [Brockman et al., 2016] Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym. CoRR, abs/1606.01540, 2016.
  10. [Camacho and McIlraith, 2019] Alberto Camacho and Sheila A. McIlraith. Learning interpretable models expressed in linear temporal logic. In ICAPS, pages 621-630. AAAI Press, 2019.
  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. [Chiariello, 2024] Francesco Chiariello. Learning tempo- ral properties from event logs via sequential analysis. In TIME, volume 318 of LIPIcs, pages 14:1-14:14. Schloss Dagstuhl -Leibniz-Zentrum für Informatik, 2024.
  13. [Danesh et al., 2021] Mohamad H. Danesh, Anurag Koul, Alan Fern, and Saeed Khorram. Re-understanding finite- state representations of recurrent policy networks. In ICML, volume 139 of Proceedings of Machine Learning Research, pages 2388-2397. PMLR, 2021.
  14. [Duret-Lutz et al., 2022] Alexandre Duret-Lutz, Etienne Re- nault, Maximilien Colange, Florian Renkin, Alexan- dre Gbaguidi Aisse, Philipp Schlehuber-Caissier, Thomas Medioni, Antoine Martin, Jérôme Dubois, Clément Gillard, and Henrich Lauko. From Spot 2.0 to Spot 2.10: What's new? In Proceedings of the 34th In- ternational Conference on Computer Aided Verification (CAV'22), volume 13372 of Lecture Notes in Computer Science, pages 174-187. Springer, August 2022.
  15. [Duret-Lutz, 2024] Alexandre Duret-Lutz. Spot's temporal logic formulas, 2024. https://spot.lre.epita.fr/tl.pdf, Ac- cessed: 02-01-2025. Link
  16. [Dwyer et al., 1998] Matthew B. Dwyer, George S. Avrunin, and James C. Corbett. Property specification patterns for finite-state verification. In FMSP, pages 7-15. ACM, 1998.
  17. [Even et al., 1985] Shimon Even, Oded Goldreich, and Abraham Lempel. A randomized protocol for signing con- tracts. Commun. ACM, 28(6):637-647, 1985.
  18. [Flajolet and Sedgewick, 2009] Philippe Flajolet and Robert Sedgewick. Analytic Combinatorics. Cambridge Univer- sity Press, 2009.
  19. [Fuggitti and Chakraborti, 2023] Francesco Fuggitti and Tathagata Chakraborti. NL2LTL -a python package for converting natural language (NL) instructions to linear temporal logic (LTL) formulas. In AAAI, pages 16428-16430. AAAI Press, 2023.
  20. [Gold, 1978] E. Mark Gold. Complexity of automaton iden- tification from given data. Inf. Control., 37(3):302-320, 1978.
  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. [Kemeny et al., 1976] J. Kemeny, J. Snell, and A. Knapp. Denumerable Markov Chains. Springer-Verlag, 2nd edi- tion, 1976.
  23. [Kwiatkowska et al., 2011] Marta Z. Kwiatkowska, Gethin Norman, and David Parker. PRISM 4.0: Verification of probabilistic real-time systems. In Computer Aided Verifi- cation -23rd International Conference, CAV 2011, Snow- bird, UT, USA, July 14-20, 2011. Proceedings, volume 6806 of Lecture Notes in Computer Science, pages 585- 591. Springer, 2011.
  24. [Li et al., 2017] Xiao Li, Cristian Ioan Vasile, and Calin Belta. Reinforcement learning with temporal logic re- wards. In 2017 IEEE/RSJ International Conference on In- telligent Robots and Systems, IROS 2017, Vancouver, BC, Canada, September 24-28, 2017, pages 3834-3839. IEEE, 2017.
  25. [Luo et al., 2022] Weilin Luo, Pingjia Liang, Jianfeng Du, Hai Wan, Bo Peng, and Delong Zhang. Bridging ltlf in- ference to GNN inference for learning ltlf formulae. In AAAI, pages 9849-9857. AAAI Press, 2022.
  26. [Milani et al., 2024] Stephanie Milani, Nicholay Topin, Manuela Veloso, and Fei Fang. Explainable reinforcement learning: A survey and comparative review. ACM Comput. Surv., 56(7):168:1-168:36, 2024.
  27. [Mohammadinejad et al., 2020] Sara Mohammadinejad, Jy- otirmoy V. Deshmukh, Aniruddh Gopinath Puranic, Mar- cell Vazquez-Chanlatte, and Alexandre Donzé. Inter- pretable classification of time-series data using efficient enumerative techniques. In HSCC '20: 23rd ACM Inter- national Conference on Hybrid Systems: Computation and Control, Sydney, New South Wales, Australia, April 21-24, 2020, pages 9:1-9:10. ACM, 2020.
  28. [Neider and Gavran, 2018] Daniel Neider and Ivan Gavran. Learning linear temporal properties. In 2018 Formal Meth- ods in Computer Aided Design, FMCAD 2018, Austin, TX, USA, October 30 -November 2, 2018, pages 1-10. IEEE, 2018.
  29. [Neider and Roy, 2025] Daniel Neider and Rajarshi Roy. What is formal verification without specifications? A sur- vey on mining LTL specifications. In Principles of Veri- fication (3), volume 15262 of Lecture Notes in Computer Science, pages 109-125. Springer, 2025.
  30. [Nenzi et al., 2018] Laura Nenzi, Simone Silvetti, Ezio Bar- tocci, and Luca Bortolussi. A robust genetic algorithm for learning temporal specifications from data. In QEST, vol- ume 11024 of Lecture Notes in Computer Science, pages 323-338. Springer, 2018.
  31. [Norman and Shmatikov, 2006] G. Norman and V. Shmatikov. Analysis of probabilistic contract signing. Journal of Computer Security, 14(6):561-589, 2006.
  32. [Pnueli, 1977] Amir Pnueli. The temporal logic of programs. In 18th Annual Symposium on Foundations of Computer Science, Providence, Rhode Island, USA, 31 October -1 November 1977, pages 46-57. IEEE Computer Society, 1977.
  33. [Pommellet et al., 2024] Adrien Pommellet, Daniel Stan, and Simon Scatton. Sat-based learning of computation tree logic. In Automated Reasoning -12th International Joint Conference, IJCAR 2024, Nancy, France, July 3-6, 2024, Proceedings, Part I, volume 14739 of Lecture Notes in Computer Science, pages 366-385. Springer, 2024.
  34. [Raha et al., 2022] Ritam Raha, Rajarshi Roy, Nathanaël Fi- jalkow, and Daniel Neider. Scalable anytime algorithms for learning fragments of linear temporal logic. In Tools and Algorithms for the Construction and Analysis of Sys- tems, pages 263-280, Cham, 2022. Springer International Publishing.
  35. [Roy et al., 2020] Rajarshi Roy, Dana Fisman, and Daniel Neider. Learning interpretable models in the property specification language. In IJCAI, pages 2213-2219. ij- cai.org, 2020. IJCAI
  36. [Roy et al., 2023] Rajarshi Roy, Jean-Raphaël Gaglione, Nasim Baharisangari, Daniel Neider, Zhe Xu, and Ufuk Topcu. Learning interpretable temporal properties from positive examples only. In AAAI, pages 6507-6515. AAAI Press, 2023.
  37. [Roy et al., 2025] Rajarshi Roy, Yash Pote, David Parker, and Marta Kwiatkowska. Learning probabilistic tempo- ral logic specifications for stochastic systems. CoRR, abs/2505.12107, 2025.
  38. [Rozier, 2016] Kristin Yvonne Rozier. Specification: The biggest bottleneck in formal methods and autonomy. In VSTTE, volume 9971 of Lecture Notes in Computer Sci- ence, pages 8-26, 2016.
  39. [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
  40. [Topin and Veloso, 2019] Nicholay Topin and Manuela Veloso. Generation of policy-level explanations for reinforcement learning. In AAAI, pages 2514-2521. AAAI Press, 2019.
  41. [Valizadeh et al., 2024] Mojtaba Valizadeh, Nathanaël Fi- jalkow, and Martin Berger. Ltl learning on gpus. In Com- puter Aided Verification, pages 209-231, Cham, 2024. Springer Nature Switzerland.
  42. [Vardi, 1985] M. Vardi. Automatic verification of proba- bilistic concurrent finite state programs. In Proc. 26th Annual Symposium on Foundations of Computer Sci- ence (FOCS'85), pages 327-338. IEEE Computer Society Press, 1985.
  43. [Wan et al., 2024] Hai Wan, Pingjia Liang, Jianfeng Du, Weilin Luo, Rongzhen Ye, and Bo Peng. End-to-end learn- ing of ltlf formulae by faithful ltlf encoding. In AAAI, pages 9071-9079. AAAI Press, 2024.

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

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