Bounded expectations: Resource analysis for probabilistic programs

被引:12
|
作者
Ngo V.C. [1 ]
Carbonneaux Q. [2 ]
Hoffmann J. [1 ]
机构
[1] Ngo, Van Chan
[2] Carbonneaux, Quentin
[3] Hoffmann, Jan
来源
| 2018年 / Association for Computing Machinery, 2 Penn Plaza, Suite 701, New York, NY 10121-0701, United States卷 / 53期
关键词
Probabilistic programming; Resource bound analysis; Static analysis;
D O I
10.1145/3192366.3192394
中图分类号
学科分类号
摘要
This paper presents a new static analysis for deriving upper bounds on the expected resource consumption of probabilistic programs. The analysis is fully automatic and derives symbolic bounds that are multivariate polynomials in the inputs. The new technique combines manual state-of-the-art reasoning techniques for probabilistic programs with an effective method for automatic resource-bound analysis of deterministic programs. It can be seen as both, an extension of automatic amortized resource analysis (AARA) to probabilistic programs and an automation of manual reasoning for probabilistic programs that is based on weakest preconditions. An advantage of the technique is that it combines the clarity and compositionality of a weakest-precondition calculus with the efficient automation of AARA. As a result, bound inference can be reduced to off-the-shelf LP solving in many cases and automatically-derived bounds can be interactively extended with standard program logics if the automation fails. Building on existing work, the soundness of the analysis is proved with respect to an operational semantics that is based on Markov decision processes. The effectiveness of the technique is demonstrated with a prototype implementation that is used to automatically analyze 39 challenging probabilistic programs and randomized algorithms. Experiments indicate that the derived constant factors in the bounds are very precise and even optimal for some programs. © 2018 ACM.
引用
收藏
页码:496 / 512
页数:16
相关论文
共 50 条
  • [31] PARAMETRIC ANALYSIS OF LINEAR PROGRAMS WITH UPPER BOUNDED VARIABLES
    PANWALKAR, SS
    NAVAL RESEARCH LOGISTICS, 1973, 20 (01) : 83 - 93
  • [32] Bounded phase analysis of message-passing programs
    Bouajjani, Ahmed
    Emmi, Michael
    INTERNATIONAL JOURNAL ON SOFTWARE TOOLS FOR TECHNOLOGY TRANSFER, 2014, 16 (02) : 127 - 146
  • [33] Bounded Delay Timing Analysis of a Class of CSP Programs
    Henrik Hulgaard
    Steven M. Burns
    Formal Methods in System Design, 1997, 11 : 265 - 294
  • [34] Bounded Phase Analysis of Message-Passing Programs
    Bouajjani, Ahmed
    Emmi, Michael
    TOOLS AND ALGORITHMS FOR THE CONSTRUCTION AND ANALYSIS OF SYSTEMS, TACAS 2012, 2012, 7214 : 451 - 465
  • [35] The Bounded Strength of Weak Expectations
    Sprenger, Jan
    Heesen, Remco
    MIND, 2011, 120 (479) : 819 - 832
  • [36] Bounded phase analysis of message-passing programs
    Ahmed Bouajjani
    Michael Emmi
    International Journal on Software Tools for Technology Transfer, 2014, 16 : 127 - 146
  • [37] An SMT approach to bounded reachability analysis of model programs
    Veanes, Margus
    Bjorner, Nikolaj
    Raschke, Alexander
    FORMAL TECHNIQUES FOR NETWORKED AND DISTRIBUTED SYSTEMS - FORTE 2008, 2008, 5048 : 53 - +
  • [38] Bounded-memory runtime enforcement with probabilistic and performance analysis
    Shankar, Saumya
    Pradhan, Ankit
    Pinisetty, Srinivas
    Rollet, Antoine
    Falcone, Ylies
    FORMAL METHODS IN SYSTEM DESIGN, 2024, 62 (1-3) : 141 - 180
  • [39] Probabilistic analysis of the degree bounded minimum spanning tree problem
    Srivastav, Anand
    Werth, Soeren
    FSTTCS 2007: FOUNDATIONS OF SOFTWARE TECHNOLOGY AND THEORETICAL COMPUTER SCIENCE, PROCEEDINGS, 2007, 4855 : 497 - 507
  • [40] Security Analysis in Probabilistic Distributed Protocols via Bounded Reachability
    Pelozo, Silvia S.
    D'Argenio, Pedro R.
    TRUSTWORTHY GLOBAL COMPUTING, TGC 2013, 2013, 8358 : 182 - 197