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

不确定概率规划的费用分析

Cost Analysis of Nondeterministic Probabilistic Programs

Peixin Wang, Hongfei Fu, Amir Kafshdar Goharshady, Krishnendu Chatterjee, Xudong Qin, Wenjun Shi

摘要:

我们考虑非确定性概率程序的预期成本分析问题,其目标是分析此类程序资源使用情况的自动化方法。以前解决这个问题的方法只能处理非负的有界成本。然而,在许多情况下,例如排队网络或加密货币协议的分析,正成本和负成本都是必要的,并且成本也是无限的。在这项工作中,我们提出了一个健全的和有效的方法来获得多项式界的预期累积成本的非确定性概率程序。我们的方法可以处理(a)一般的正和负成本与有界更新的变量;和(b)非负成本与一般更新的变量。我们发现,在我们的框架中捕获了几个自然的例子,不能处理以前的方法。此外,我们的方法导致一个有效的多项式时间算法,而没有以前的方法的概率程序的成本分析可以保证多项式运行时间。最后,我们展示了我们的方法的有效性,提出了各种程序的实验结果,由现实世界的应用程序,我们有效地合成紧张的资源使用范围。

英文摘要:

We consider the problem of expected cost analysis over nondeterministic probabilistic programs, which aims at automated methods for analyzing the resource-usage of such programs. Previous approaches for this problem could only handle nonnegative bounded costs. However, in many scenarios, such as queuing networks or analysis of cryptocurrency protocols, both positive and negative costs are necessary and the costs are unbounded as well. In this work, we present a sound and efficient approach to obtain polynomial bounds on the expected accumulated cost of nondeterministic probabilistic programs. Our approach can handle (a) general positive and negative costs with bounded updates in variables; and (b) nonnegative costs with general updates to variables. We show that several natural examples which could not be handled by previous approaches are captured in our framework. Moreover, our approach leads to an efficient polynomial-time algorithm, while no previous approach for cost analysis of probabilistic programs could guarantee polynomial runtime. Finally, we show the effectiveness of our approach by presenting experimental results on a variety of programs, motivated by real-world applications, for which we efficiently synthesize tight resource-usage bounds.

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

↑