Proceedings

Mining Statistically Likely k-Reachable States in Probabilistic Programs

Download BibTeX Cite

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

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

Abstract

We propose the notion of statistically likely k-step reachable set in probabilistic programs, a statistically robust notion for high-probability k-step reachable program states. We design an inductive algorithm to capture this set as a symbolic representation in propositional logic for Boolean probabilistic programs. Our methodology iteratively learns a symbolic formula for the statistically likely k-step reachable set that involves (a) learning an initial symbolic candidate via decision tree learning, (b) collecting positive and negative counterexamples via forward and backward verification checks, and (c) refining the current candidate via a sequence of prune and split moves on the decision tree. We demonstrate that the statistically likely k-step reachable set can reveal interesting properties about programs by studying probabilistic programs from the literature.

  1. [Aiken et al., 2016] Andrew Aiken, Marco Corradini, and Daniel Strubell. From Invariant Checking to Invariant In- ference Using Randomized Search. In Proceedings of the 28th International Conference on Computer Aided Verifi- cation (CAV), pages 388-402, 2016.
  2. [Bao et al., 2024] Jialu Bao, Nitesh Trivedi, Drashti Pathak, Justin Hsu, and Subhajit Roy. Data-driven invariant learn- ing for probabilistic programs. Formal Methods in System Design, 66:278-306, 2024.
  3. [Bartocci et al., 2020] Ezio Bartocci, Laura Kovács, and Miroslav Stankovič. Mora: Automatic Generation of Moment-Based Invariants. In Proceedings of the 26th In- ternational Conference on Tools and Algorithms for the Construction and Analysis of Systems (TACAS), pages 492-498, 2020.
  4. [Batz et al., 2023] Kevin Batz, Mingshuai Chen, Sebastian Junges, Benjamin Lucien Kaminski, Joost-Pieter Katoen, and Christoph Matheja. Probabilistic Program Verifica- tion via Inductive Synthesis of Inductive Invariants. In Proceedings of the 29th International Conference on Tools and Algorithms for the Construction and Analysis of Sys- tems (TACAS), pages 410-429, 2023.
  5. [Biere et al., 1999] Armin Biere, Alessandro Cimatti, Ed- mund M. Clarke, and Yunshan Zhu. Symbolic model checking without BDDs. In Proceedings of the 5th Inter- national Conference on Tools and Algorithms for the Con- struction and Analysis of Systems (TACAS), pages 193- 207, 1999.
  6. [Biere et al., 2024] Armin Biere, Tobias Faller, Katalin Fazekas, Mathias Fleury, Nils Froleyks, and Florian Pol- litt. CaDiCaL 2.0. In Proceedings of the 36th International Conference on Computer Aided Verification (CAV), pages 133-152, 2024.
  7. [Chakraborty et al., 2023] Saikat Chakraborty, Shuvendu Lahiri, Sarah Fakhoury, Akash Lal, Madanlal Musuvathi, Aseem Rastogi, Aditya Senthilnathan, Rahul Sharma, and Nikhil Swamy. Ranking LLM-Generated Loop Invariants for Program Verification. In Proceedings of the 2023 Con- ference on Empirical Methods in Natural Language Pro- cessing (EMNLP), pages 9164-9175, 2023.
  8. [Chen et al., 2015] Yu-Fang Chen, Chih-Duo Hong, Bow- Yaw Wang, and Lijun Zhang. Counterexample-Guided Polynomial Loop Invariant Generation by Lagrange Inter- polation. In Proceedings of the 27th International Confer- ence on Computer Aided Verification (CAV), pages 658- 674, 2015.
  9. [Das and Lal, 2017] Ankush Das and Akash Lal. Precise null pointer analysis through global value numbering. In Pro- ceedings of the 15th International Symposium on Auto- mated Technology for Verification and Analysis (ATVA), pages 25-41, 2017.
  10. [Das et al., 2015] Ankush Das, Shuvendu K. Lahiri, Akash Lal, and Yi Li. Angelic Verification: Precise Verification Modulo Unknowns. In Proceedings of the 27th Interna- tional Conference on Computer Aided Verification (CAV), pages 324-342, 2015.
  11. [Ezudheen et al., 2018] P. Ezudheen, Daniel Neider, Deepak D'Souza, Pranav Garg, and P. Madhusudan. Horn- ICE Learning for Synthesizing Invariants and Contracts. Proceedings of the ACM on Programming Languages, 2(OOPSLA):131:1-131:25, 2018.
  12. [Feng et al., 2017] Yijun Feng, Lijun Zhang, David N. Jansen, Naijun Zhan, and Bican Xia. Finding Polynomial Loop Invariants for Probabilistic Programs. In Proceed- ings of the 15th International Symposium on Automated Technology for Verification and Analysis (ATVA), pages 400-416, 2017.
  13. [Garg et al., 2014] Pranav Garg, Christof Löding, P. Mad- husudan, and Daniel Neider. ICE: A robust framework for learning invariants. In Proceedings of the 26th Interna- tional Conference on Computer Aided Verification (CAV), volume 8663 of Lecture Notes in Computer Science, pages 69-87, 2014.
  14. [Garg et al., 2016] Pranav Garg, Daniel Neider, P. Madhusu- dan, and Dan Roth. Learning Invariants using Decision Trees and Implication Counterexamples. In Proceedings of the 43rd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL), pages 499-512, 2016.
  15. [Gehr et al., 2016] Timon Gehr, Sasa Misailovic, and Martin Vechev. PSI: Exact Symbolic Inference for Probabilistic Programs. In Proceedings of the 28th International Con- ference on Computer-Aided Verification (CAV), pages 62- 83, 2016.
  16. [Gehr et al., 2020] Timon Gehr, Samuel Steffen, and Martin Vechev. λPSI: Exact Inference for Higher-Order Proba- bilistic Programs. In Proceedings of the 41st ACM SIG- PLAN Conference on Programming Language Design and Implementation (PLDI), pages 883-897, 2020.
  17. [Geldenhuys et al., 2012] Jaco Geldenhuys, Matthew B. Dwyer, and Willem Visser. Probabilistic Symbolic Execu- tion. In Proceedings of the 2012 International Symposium on Software Testing and Analysis (ISSTA), pages 166-176, 2012.
  18. [Golia et al., 2021] Priyanka Golia, Mate Soos, Sourav Chakraborty, and Kuldeep S. Meel. Designing Samplers is Easy: The Boon of Testers. In Proceedings of the 21st Conference on Formal Methods in Computer-Aided De- sign (FMCAD), pages 222-230, 2021.
  19. [Gretz et al., 2013] Friedrich Gretz, Joost-Pieter Katoen, and Annabelle McIver. Prinsys: On a Quest for Probabilistic Loop Invariants. In Proceedings of the 10th international conference on Quantitative Evaluation of Systems (QEST), pages 193-208, 2013.
  20. [Joshi et al., 2012] Saurabh Joshi, Shuvendu K. Lahiri, and Akash Lal. Underspecified Harnesses and Interleaved Bugs. Proceedings of the 39th annual ACM SIGPLAN- SIGACT symposium on Principles of programming lan- guages (POPL), pages 19-30, 2012.
  21. [Kaminski and Katoen, 2017] Benjamin Lucien Kaminski and Joost-Pieter Katoen. A Weakest Pre-Expectation Se- mantics for Mixed-Sign Expectations. In Proceedings of the 32nd Annual ACM/IEEE Symposium on Logic in Com- puter Science (LICS), pages 1-12, 2017.
  22. [Kozen, 1977] Dexter Kozen. Lower Bounds for Natural Proof Systems. In Proceedings of the 18th Annual Sympo- sium on Foundations of Computer Science (FOCS), pages 254-266, 1977.
  23. [Kwiatkowska et al., 2011] Marta Kwiatkowska, Gethin Norman, and David Parker. PRISM 4.0: Verification of Probabilistic Real-Time Systems . In Proceedings of the 23rd International Conference on Computer Aided Verification (CAV), pages 585-591, 2011.
  24. [Lahiri and Roy, 2022] Sumit Lahiri and Subhajit Roy. Al- most Correct Invariants: Synthesizing Inductive Invariants by Fuzzing Proofs. In Proceedings of the 31st ACM SIG- SOFT International Symposium on Software Testing and Analysis (ISSTA), pages 352-364, 2022.
  25. [Moura and Bjørner, 2008] Leonardo De Moura and Niko- laj Bjørner. Z3: An Efficient SMT Solver. In Proceed- ings of the 14th International Conference on Tools and Algorithms for the Construction and Analysis of Systems (TACAS), pages 337-340, 2008.
  26. [Ray et al., 2026] Arnab Ray, Nitesh Trivedi, Ansuman Banerjee, Sourav Chakraborty, Arijit Ghosh, and Subha- jit Roy. Mining Statistically Likely k-Reachable States in Probabilistic Programs, 2026. An extended abstract of this paper will appear in IJCAI 2026. Full version available at https://github.com/arnab-007/PRORP . [Riley and Fedyukovich, 2022] Daniel Riley and Grigory Fedyukovich. Multi-Phase Invariant Synthesis. In Pro- ceedings of the 30th ACM Joint European Software Engi- neering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE), pages 607-619, 2022. Link
  27. [Ryan et al., 2019] Gabriel Ryan, Justin Wong, Jianan Yao, Ronghui Gu, and Suman Jana. Cln2inv: learning loop in- variants with continuous logic networks. arXiv preprint arXiv:1909.11542, 2019.
  28. [Sharma et al., 2013] Rahul Sharma, Saurabh Gupta, Bharath Hariharan, Alex Aiken, and Aditya V. Nori. Veri- fication as Learning Geometric Concepts. In Proceedings of the 20th International Symposium on Static Analysis (SAS), volume 7935 of Lecture Notes in Computer Science, pages 388-411, 2013.
  29. [Si et al., 2018] Xujie Si, Hanjun Dai, Mukund Raghothaman, Mayur Naik, and Le Song. Learning Loop Invariants for Program Verification. In Proceedings of the 32nd International Conference on Neural Informa- tion Processing Systems (NeurIPS), pages 7762-7773, 2018.
  30. [Soos et al., 2023] Mate Soos, Divesh Aggarwal, Sourav Chakraborty, Kuldeep S. Meel, and Maciej Obremski. En- gineering an Efficient Approximate DNF-counter. In Pro- ceedings of the 32nd International Joint Conference on Ar- tificial Intelligence (IJCAI), pages 2031-2038, 2023. IJCAI
  31. [Susag et al., 2022] Zachary Susag, Sumit Lahiri, Justin Hsu, and Subhajit Roy. Symbolic execution for random- ized programs. Proceedings of the ACM on Programming Languages 2, 6(OOPSLA):1583-1612, 2022.
  32. [Wang et al., 2018] Di Wang, Jan Hoffmann, and Thomas Reps. PMAF: An Algebraic Framework for Static Anal- ysis of Probabilistic Programs. Proceedings of the 39th ACM SIGPLAN Conference on Programming Language Design and Implementatio (PLDI), pages 513-528, 2018.
  33. [Wu et al., 2024] Guangyuan Wu, Weining Cao, Yuan Yao, Hengfeng Wei, Taolue Chen, and Xiaoxing Ma. LLM Meets Bounded Model Checking: Neuro-Symbolic Loop Invariant Inference. In Proceedings of the 39th IEEE/ACM International Conference on Automated Software Engi- neering (ASE), pages 406-417, 2024.
  34. [Yao et al., 2020] Jianan Yao, Gabriel Ryan, Justin Wong, Suman Jana, and Ronghui Gu. Learning Nonlinear Loop Invariants with Gated Continuous Logic Networks. In Pro- ceedings of the 41st ACM SIGPLAN International Confer- ence on Programming Language Design and Implementa- tion (PLDI), pages 106-120, 2020.
  35. [Yu et al., 2023] Shiwen Yu, Ting Wang, and Ji Wang. Loop Invariant Inference through SMT Solving Enhanced Re- inforcement Learning. In Proceedings of the 32nd ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA), pages 175-187, 2023.

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

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