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

通过k-归纳法进行概率程序的分段分析

Piecewise Analysis of Probabilistic Programs via $k$-Induction

Institute of Software Chinese Academy of Sciences(中国科学院软件研究所);Shanghai Jiao Tong University(上海交通大学);Peking University(北京大学);Zhongguancun Laboratory(中关村实验室)

Tengshun Yang, Shenghua Feng, Hongfei Fu, Naijun Zhan, Jingyu Ke, Shiyang Wu

AI总结:

本文提出了一种通过k-归纳法合成概率程序分段界的方法,结合lattice算子和Optional Stopping Theorem,通过双线性规划和半正定规划实现紧界生成。

摘要:

在概率程序分析中,定量分析旨在推导概率属性(如期望和断言概率)的紧数值界。大多数先前的工作考虑整个程序状态空间上的数值界,而不考虑分段界。不出所料,整体界要么保守,或者在一般情况下不够表达和简洁。为了推导更好的界,我们提出了一种新的方法,用于合成概率程序上的分段界。首先,我们展示了如何从带 lattice 的 k-归纳法算子中提取有用的分段信息,并将分段信息与 Optional Stopping Theorem 结合,以获得推导概率程序上分段界的一般方法。其次,我们开发了合成分段多项式界算法,并显示在线性情况下,合成可以减少为双线性规划,在多项式情况下则可以安全地放松为半正定规划。实验结果表明,我们的方法在与最先进方法相比时,为广泛基准生成了紧的分段界。

英文摘要:

In probabilistic program analysis, quantitative analysis aims at deriving tight numerical bounds for probabilistic properties such as expectation and assertion probability. Most previous works consider numerical bounds over the whole program state space monolithically and do not consider piecewise bounds. Not surprisingly, monolithic bounds are either conservative, or not expressive and succinct enough in general. To derive better bounds, we propose a novel approach for synthesizing piecewise bounds over probabilistic programs. First, we show how to extract useful piecewise information from latticed $k$-induction operators, and combine the piecewise information with Optional Stopping Theorem to obtain a general approach to derive piecewise bounds over probabilistic programs. Second, we develop algorithms to synthesize piecewise polynomial bounds, and show that the synthesis can be reduced to bilinear programming in the linear case, and soundly relaxed to semidefinite programming in the polynomial case. Experimental results show that our approach generates tight piecewise bounds for a wide range of benchmarks when compared with the state of the art.

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

↑