arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.05421cs.PL
收藏

概率程序的数据驱动不变式学习

Data-Driven Invariant Learning for Probabilistic Programs

Jialu Bao, Nitesh Trivedi, Drashti Pathak, Justin Hsu, Subhajit Roy

AI总结:

针对概率程序循环验证中寻找不变期望的难题,提出将其视为回归问题的数据驱动合成方法,无需模板即可学习分段连续不变式,并支持黑盒访问和子不变式学习以界定期望值。

摘要:

Morgan和McIver的最弱前置期望框架是概率程序演绎验证中最成熟的方法之一。其核心思想是将二元状态断言推广为实值期望,以度量概率程序量的期望值。虽然无循环程序可通过机械地变换期望进行分析,但验证循环通常需要寻找不变期望,这是一项困难的任务。我们提出了一种将不变期望合成视为回归问题的新视角:给定输入状态,预测输出分布中后置期望的平均值。在此视角的指导下,我们开发了首个针对概率程序的数据驱动不变式合成方法。与先前关于概率不变式推断的工作不同,我们的方法无需依赖模板期望即可学习分段连续不变式,并且也适用于对程序的黑盒访问。我们还开发了一种从数据中学习子不变式的数据驱动方法,可用于对期望值进行上界或下界界定。我们实现了这些方法,并在概率程序设计文献中的多种基准测试上证明了其有效性。

英文摘要:

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, and also works with black-box access to the program. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑