Data-Driven Invariant Learning for Probabilistic Programs

被引:14
作者
Bao, Jialu [1 ]
Trivedi, Nitesh [2 ]
Pathak, Drashti [3 ]
Hsu, Justin [1 ]
Roy, Subhajit [2 ]
机构
[1] Cornell Univ, Ithaca, NY 14853 USA
[2] Indian Inst Technol IIT Kanpur, Kanpur, Uttar Pradesh, India
[3] Amazon, Bengaluru, India
来源
COMPUTER AIDED VERIFICATION (CAV 2022), PT I | 2022年 / 13371卷
基金
美国国家科学基金会;
关键词
Probabilistic programs; Data-driven invariant learning; Weakest pre-expectations;
D O I
10.1007/978-3-031-13185-1_3
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Morgan and McIver's weakest pre-expectation framework is one of the most well-established methods for deductive verification of probabilistic programs. Roughly, the idea is to generalize binary state assertions to real-valued expectations, which can measure expected values of probabilistic program quantities. While loop-free programs can be analyzed by mechanically transforming expectations, verifying loops usually requires finding an invariant expectation, a difficult task. We propose a new view of invariant expectation synthesis as a regression problem: given an input state, predict the average value of the post-expectation in the output distribution. Guided by this perspective, we develop the first data-driven invariant synthesis method for probabilistic programs. Unlike prior work on probabilistic invariant inference, our approach can learn piecewise continuous invariants without relying on template expectations. We also develop a data-driven approach to learn sub-invariants from data, which can be used to upper- or lower-bound expected values. We implement our approaches and demonstrate their effectiveness on a variety of benchmarks from the probabilistic programming literature.
引用
收藏
页码:33 / 54
页数:22
相关论文
共 41 条
[1]   Learning Probabilistic Termination Proofs [J].
Abate, Alessandro ;
Giacobbe, Mirco ;
Roy, Diptarko .
COMPUTER AIDED VERIFICATION, PT II, CAV 2021, 2021, 12760 :3-26
[2]   A Pre-expectation Calculus for Probabilistic Sensitivity [J].
Aguirre, Alejandro ;
Barthe, Gilles ;
Hsu, Justin ;
Kaminski, Benjamin Lucien ;
Katoen, Joost-Pieter ;
Matheja, Christoph .
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2021, 5
[3]   Synthesizing Coupling Proofs of Differential Privacy [J].
Albarghouthi, Aws ;
Hsu, Justin .
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2018, 2 (02)
[4]  
Baier C, 1997, LECT NOTES COMPUT SC, V1256, P430
[5]   Synthesizing Probabilistic Invariants via Doob's Decomposition [J].
Barthe, Gilles ;
Espitau, Thomas ;
Ferrer Fioriti, Luis Maria ;
Hsu, Justin .
COMPUTER AIDED VERIFICATION, (CAV 2016), PT I, 2016, 9779 :43-61
[6]  
Bartocci E, 2020, LECT NOTES COMPUT SC, V12078, P492, DOI 10.1007/978-3-030-45190-5_28
[7]   Automatic Generation of Moment-Based Invariants for Prob-Solvable Loops [J].
Bartocci, Ezio ;
Kovacs, Laura ;
Stankovic, Miroslav .
AUTOMATED TECHNOLOGY FOR VERIFICATION AND ANALYSIS (ATVA 2019), 2019, 11781 :255-276
[8]   Relatively Complete Verification of Probabilistic Programs [J].
Batz, Kevin ;
Kaminski, Benjamin Lucien ;
Katoen, Joost-Pieter ;
Matheja, Christoph .
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2021, 5 (POPL)
[9]  
Carbin M, 2013, ACM SIGPLAN NOTICES, V48, P33, DOI [10.1145/2544173.2509546, 10.1145/2509136.2509546]
[10]  
Chakarov Aleksandar, 2013, Computer Aided Verification. 25th International Conference, CAV 2013. Proceedings. LNCS 8044, P511, DOI 10.1007/978-3-642-39799-8_34