Proceedings

Automated Safety Verification of Posterior Distributions of Probabilistic Programs

Download BibTeX Cite

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

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

Abstract

Ensuring the safety of probabilistic systems is a central challenge in formal verification.

We propose an automated refinement technique for verifying a safety property of posterior distributions in probabilistic programs.

Our approach builds on the counterexample-guided abstraction refinement (CEGAR) framework and exploits the duality in convex optimisation and the adequacy of predicate-transformer semantics in probabilistic settings.

We implement the technique and evaluate its effectiveness through preliminary experiments.

  1. [Albarghouthi and Hsu, 2018] Aws Albarghouthi and Justin Hsu. Synthesizing coupling proofs of differential privacy. Proc. ACM Program. Lang., 2(POPL):58:1-58:30, 2018.
  2. [Ball and Rajamani, 2002] Thomas Ball and Sriram K. Raja- mani. The SLAM project: debugging system software via static analysis. In POPL, pages 1-3. ACM, 2002.
  3. [Bao et al., 2025] Jialu Bao, Nitesh Trivedi, Drashti Pathak, Justin Hsu, and Subhajit Roy. Data-driven invariant learn- ing for probabilistic programs. Formal Methods Syst. Des., 66(2):278-306, 2025.
  4. [Barthe et al., 2016] Gilles Barthe, Marco Gaboardi, Ben- jamin Grégoire, Justin Hsu, and Pierre-Yves Strub. Prov- ing differential privacy via probabilistic couplings. In LICS, pages 749-758. ACM, 2016.
  5. [Barthe et al., 2020] Gilles Barthe, Joost-Pieter Katoen, and Alexandra Silva, editors. Foundations of Probabilistic Programming. Cambridge University Press, 2020.
  6. [Batz et al., 2021] Kevin Batz, Benjamin Lucien Kaminski, Joost-Pieter Katoen, and Christoph Matheja. Relatively complete verification of probabilistic programs: an expres- sive language for expectation-based reasoning. Proc. ACM Program. Lang., 5(POPL):1-30, 2021.
  7. [Batz et al., 2023] Kevin Batz, Mingshuai Chen, Sebastian Junges, Benjamin Lucien Kaminski, Joost-Pieter Katoen, and Christoph Matheja. Probabilistic program verification via inductive synthesis of inductive invariants. In TACAS (2), volume 13994 of LNCS, pages 410-429. Springer, 2023.
  8. [Batz et al., 2024] Kevin Batz, Benjamin Lucien Kaminski, Christoph Matheja, and Tobias Winkler. J-P: MDP. FP. PP -characterizing total expected rewards in markov deci- sion processes as least fixed points with an application to operational semantics of probabilistic programs. In Prin- ciples of Verification (1), volume 15260 of LNCS, pages 255-302. Springer, 2024.
  9. [Bingham et al., 2019] Eli Bingham, Jonathan P. Chen, Mar- tin Jankowiak, Fritz Obermeyer, Neeraj Pradhan, Theofa- nis Karaletsos, Rohit Singh, Paul A. Szerlip, Paul Horsfall, and Noah D. Goodman. Pyro: Deep universal probabilistic programming. J. Mach. Learn. Res., 20:28:1-28:6, 2019.
  10. [Boyd and Vandenberghe, 2004] Stephen Boyd and Lieven Vandenberghe. Convex optimization. Cambridge univer- sity press, 2004.
  11. [Chakarov and Sankaranarayanan, 2013] Aleksandar Chakarov and Sriram Sankaranarayanan. Probabilis- tic program analysis with martingales. In CAV, volume 8044 of LNCS, pages 511-526. Springer, 2013.
  12. [Chatterjee et al., 2017] Krishnendu Chatterjee, Petr Novotný, and Dorde Zikelic. Stochastic invariants for probabilistic termination. In POPL, pages 145-160. ACM, 2017.
  13. [Chatterjee et al., 2020] Krishnendu Chatterjee, Hongfei Fu, and Petr Novotný. Termination analysis of probabilistic programs with martingales. In Foundations of Probabilis- tic Programming, pages 221-258. Cambridge University Press, 2020.
  14. [Chatterjee et al., 2024] Krishnendu Chatterjee, Ehsan Kaf- shdar Goharshady, Petr Novotný, and Dorde Zikelic. Equivalence and similarity refutation for probabilistic pro- grams. Proc. ACM Program. Lang., 8(PLDI):2098-2122, 2024.
  15. [Chatterjee et al., 2025] Krishnendu Chatterjee, Amir Kaf- shdar Goharshady, Ehsan Kafshdar Goharshady, Mehrdad Karrabi, Milad Saadat, Maximilian Seeliger, and Dorde Zikelic. PolyQEnt: A polynomial quantified entailment solver. In ATVA, LNCS, pages 411-424. Springer, 2025.
  16. [Clarke et al., 2003] Edmund M. Clarke, Orna Grum- berg, Somesh Jha, Yuan Lu, and Helmut Veith. Counterexample-guided abstraction refinement for sym- bolic model checking. J. ACM, 50(5):752-794, 2003.
  17. [Culpepper and Cobb, 2017] Ryan Culpepper and Andrew Cobb. Contextual equivalence for probabilistic programs with continuous random variables and scoring. In ESOP, volume 10201 of LNCS, pages 368-392. Springer, 2017.
  18. [de Moura and Bjørner, 2008] Leonardo Mendonc ¸a de Moura and Nikolaj S. Bjørner. Z3: an efficient SMT solver. In TACAS, volume 4963 of LNCS, pages 337-340. Springer, 2008.
  19. [Etessami et al., 2008] Kousha Etessami, Marta Z. Kwiatkowska, Moshe Y. Vardi, and Mihalis Yan- nakakis. Multi-objective model checking of Markov decision processes. Log. Methods Comput. Sci., 4(4), 2008.
  20. [Farkas, 1902] Julius Farkas. Theorie der einfachen ungle- ichungen. Journal für die reine und angewandte Mathe- matik (Crelles Journal), 1902(124):1-27, 1902.
  21. [Forejt et al., 2012] Vojtech Forejt, Marta Z. Kwiatkowska, and David Parker. Pareto curves for probabilistic model checking. In ATVA, volume 7561 of LNCS, pages 317- 332. Springer, 2012.
  22. [Goodman and Stuhlmüller, 2014] Noah D Goodman and Andreas Stuhlmüller. The Design and Implementation of Probabilistic Programming Languages. http://dippl.org, 2014. Accessed: 2026-1-18. Link
  23. [Goodman et al., 2008] Noah D. Goodman, Vikash K. Mansinghka, Daniel M. Roy, Kallista A. Bonawitz, and Joshua B. Tenenbaum. Church: a language for generative models. In UAI, pages 220-229. AUAI Press, 2008.
  24. [Gordon et al., 2014] Andrew D. Gordon, Thomas A. Hen- zinger, Aditya V. Nori, and Sriram K. Rajamani. Prob- abilistic programming. In FOSE, pages 167-181. ACM, 2014.
  25. [Goubault-Larrecq, 2007] Jean Goubault-Larrecq. Continu- ous previsions. In CSL, volume 4646 of LNCS, pages 542- 557. Springer, 2007.
  26. [Gretz et al., 2014] Friedrich Gretz, Joost-Pieter Katoen, and Annabelle McIver. Operational versus weakest pre- expectation semantics for the probabilistic guarded com- mand language. Perform. Evaluation, 73:110-132, 2014.
  27. [Handelman, 1988] David Handelman. Representing poly- nomials by positive linear functions on compact convex polyhedra. Pacific Journal of Mathematics, 132(1):35-62, 1988.
  28. [Hino et al., 2016] Wataru Hino, Hiroki Kobayashi, Ichiro Hasuo, and Bart Jacobs. Healthiness from duality. In LICS, pages 682-691. ACM, 2016.
  29. [Huang et al., 2018] Zixin Huang, Zhenbang Wang, and Sasa Misailovic. Psense: Automatic sensitivity analysis for probabilistic programs. In ATVA, volume 11138 of LNCS, pages 387-403. Springer, 2018.
  30. [Jeannet and Miné, 2009] Bertrand Jeannet and Antoine Miné. Apron: A library of numerical abstract domains for static analysis. In CAV, volume 5643 of LNCS, pages 661-667. Springer, 2009.
  31. [Kaminski and Katoen, 2015] Benjamin Lucien Kaminski and Joost-Pieter Katoen. On the hardness of almost-sure termination. In MFCS (1), volume 9234 of LNCS, pages 307-318. Springer, 2015.
  32. [Keimel and Plotkin, 2009] Klaus Keimel and Gordon D. Plotkin. Predicate transformers for extended probabil- ity and non-determinism. Math. Struct. Comput. Sci., 19(3):501-539, 2009.
  33. [Kozen, 1985] Dexter Kozen. A probabilistic PDL. J. Com- put. Syst. Sci., 30(2):162-178, 1985.
  34. [Kura et al., 2025] Satoshi Kura, Hiroshi Unno, and Takeshi Tsukada. Supermartingales for unique fixed points: A unified approach to lower bound verification. CoRR, abs/2504.04132, 2025. To Appear in PLDI2026.
  35. [Li et al., 2025] Guanyan Li, Juanen Li, Zhilei Han, Peixin Wang, Hongfei Fu, and Fei He. Structural abstraction and refinement for probabilistic programs. Proc. ACM Pro- gram. Lang., 9(OOPSLA2):1809-1836, 2025.
  36. [McIver and Morgan, 2005] Annabelle McIver and Carroll Morgan. Abstraction, Refinement and Proof for Prob- abilistic Systems. Monographs in Computer Science. Springer, 2005.
  37. [Morgan et al., 1996] Carroll Morgan, Annabelle McIver, and Karen Seidel. Probabilistic predicate transformers. ACM Trans. Program. Lang. Syst., 18(3):325-353, 1996.
  38. [Murawski and Ouaknine, 2005] Andrzej S. Murawski and Joël Ouaknine. On probabilistic program equivalence and refinement. In CONCUR, volume 3653 of LNCS, pages 156-170. Springer, 2005.
  39. [Ngo et al., 2018] Van Chan Ngo, Quentin Carbonneaux, and Jan Hoffmann. Bounded expectations: resource anal- ysis for probabilistic programs. In PLDI, pages 496-512. ACM, 2018.
  40. [Papadimitriou and Yannakakis, 2000] Christos H. Papadim- itriou and Mihalis Yannakakis. On the approximability of trade-offs and optimal access of web sources. In FOCS, pages 86-92. IEEE Computer Society, 2000.
  41. [Plotkin, 2004] Gordon D. Plotkin. The origins of structural operational semantics. J. Log. Algebraic Methods Pro- gram., 60-61:3-15, 2004.
  42. [Puterman, 1994] Martin L. Puterman. Markov Decision Processes: Discrete Stochastic Dynamic Programming. Wiley Series in Probability and Statistics. Wiley, 1994.
  43. [Putinar, 1993] Mihai Putinar. Positive polynomials on com- pact semi-algebraic sets. Indiana University Mathematics Journal, 42(3):969-984, 1993.
  44. [Rennen et al., 2011] Gijs Rennen, Edwin R. van Dam, and Dick den Hertog. Enhancement of sandwich algorithms for approximating higher-dimensional convex Pareto sets. INFORMS J. Comput., 23(4):493-517, 2011.
  45. [Ritchie et al., 2015] Daniel Ritchie, Ben Mildenhall, Noah D. Goodman, and Pat Hanrahan. Controlling procedural modeling programs with stochastically- ordered sequential Monte Carlo. ACM Trans. Graph., 34(4):105:1-105:11, 2015.
  46. [Sebastiani and Trentin, 2020] Roberto Sebastiani and Patrick Trentin. Optimathsat: A tool for optimization modulo theories. J. Autom. Reason., 64(3):423-460, 2020.
  47. [Solanki et al., 1993] Rajendra S Solanki, Perry A Appino, and Jared L Cohon. Approximating the noninferior set in multiobjective linear programming problems. European journal of operational research, 68(3):356-373, 1993.
  48. [Takisaka et al., 2021] Toru Takisaka, Yuichiro Oyabu, Nat- suki Urabe, and Ichiro Hasuo. Ranking and repulsing su- permartingales for reachability in randomized programs. ACM Trans. Program. Lang. Syst., 43(2):5:1-5:46, 2021.
  49. [Tolpin et al., 2016] David Tolpin, Jan-Willem van de Meent, Hongseok Yang, and Frank D. Wood. Design and implementation of probabilistic programming language Anglican. In IFL, pages 6:1-6:12. ACM, 2016.
  50. [van de Meent et al., 2018] Jan-Willem van de Meent, Brooks Paige, Hongseok Yang, and Frank Wood. An introduction to probabilistic programming. CoRR, abs/1809.10756, 2018.
  51. [Watanabe et al., 2024] Kazuki Watanabe, Marck van der Vegt, Ichiro Hasuo, Jurriaan Rot, and Sebastian Junges. Pareto curves for compositionally model checking string diagrams of MDPs. In TACAS (2), volume 14571 of LNCS, pages 279-298. Springer, 2024.
  52. [Wood et al., 2014] Frank D. Wood, Jan-Willem van de Meent, and Vikash Mansinghka. A new approach to prob- abilistic programming inference. In AISTATS, volume 33 of JMLR Workshop and Conference Proceedings, pages 1024-1032. JMLR.org, 2014.

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

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