Static Posterior Inference of Bayesian Probabilistic Programming via Polynomial Solving

Author:

Wang Peixin1ORCID,Yang Tengshun2ORCID,Fu Hongfei3ORCID,Li Guanyan4ORCID,Ong C.-H. Luke1ORCID

Affiliation:

1. Nanyang Technological University, Singapore, Singapore

2. Institute of Software at Chinese Academy of Sciences, Beijing, China / University of Chinese Academy of Sciences, Beijing, China

3. Shanghai Jiao Tong University, Shanghai, China

4. University of Oxford, Oxford, United Kingdom

Abstract

In Bayesian probabilistic programming, a central problem is to estimate the normalised posterior distribution (NPD) of a probabilistic program with conditioning via score (a.k.a. observe) statements. Most previous approaches address this problem by Markov Chain Monte Carlo and variational inference, and therefore could not generate guaranteed outcomes within a finite time limit. Moreover, existing methods for exact inference either impose syntactic restrictions or cannot guarantee successful inference in general. In this work, we propose a novel automated approach to derive guaranteed bounds for NPD via polynomial solving. We first establish a fixed-point theorem for the wide class of score-at-end Bayesian probabilistic programs that terminate almost-surely and have a single bounded score statement at program termination. Then, we propose a multiplicative variant of Optional Stopping Theorem (OST) to address score-recursive Bayesian programs where score statements with weights greater than one could appear inside a loop. Bayesian nonparametric models, enjoying a renaissance in statistics and machine learning, can be represented by score-recursive Bayesian programs and are difficult to handle due to an integrability issue. Finally, we use polynomial solving to implement our fixed-point theorem and OST variant. To improve the accuracy of the polynomial solving, we further propose a truncation operation and the synthesis of multiple bounds over various program inputs. Our approach can handle Bayesian probabilistic programs with unbounded while loops and continuous distributions with infinite supports. Experiments over a wide range of benchmarks show that compared with the most relevant approach (Beutner et al., PLDI 2022) for guaranteed NPD analysis via recursion unrolling, our approach is more time efficient and derives comparable or even tighter NPD bounds. Furthermore, our approach can handle score-recursive programs which previous approaches could not.

Funder

National Natural Science Foundation of China

National Research Foundation, Singapore, under its RSS Scheme

the Engineering and Physical Sciences Research Council

Publisher

Association for Computing Machinery (ACM)

Reference59 articles.

1. MOSEK ApS. 2022. The MOSEK optimization toolbox for MATLAB manual. Version 10.0.. http://docs.mosek.com/10.0/toolbox/index.html

2. Proving expected sensitivity of probabilistic programs

3. Probabilistic Program Verification via Inductive Synthesis of Inductive Invariants

4. Guaranteed bounds for posterior inference in universal probabilistic programming

5. Pyro: Deep Universal Probabilistic Programming;Bingham Eli;J. Mach. Learn. Res.,2019

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3