Inference of Probabilistic Programs with Moment-Matching Gaussian Mixtures

被引:4
作者
Randone, Francesca [1 ]
Bortolussi, Luca [2 ]
Incerto, Emilio [1 ]
Tribastone, Mirco [1 ]
机构
[1] IMT Sch Adv Studies Lucca, Lucca, LU, Italy
[2] Univ Trieste, Trieste, Italy
来源
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL | 2024年 / 8卷 / POPL期
关键词
probabilistic programming; inference; Gaussian mixtures;
D O I
10.1145/3632905
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Computing the posterior distribution of a probabilistic program is a hard task for which no one-fit-for-all solution exists. We propose Gaussian Semantics, which approximates the exact probabilistic semantics of a bounded program by means of Gaussian mixtures. It is parametrized by a map that associates each program location with the moment order to be matched in the approximation. We provide two main contributions. The first is a universal approximation theorem stating that, under mild conditions, Gaussian Semantics can approximate the exact semantics arbitrarily closely. The second is an approximation that matches up to second-order moments analytically in face of the generally difficult problem of matching moments of Gaussian mixtures with arbitrary moment order. We test our second-order Gaussian approximation (SOGA) on a number of case studies from the literature. We show that it can provide accurate estimates in models not supported by other approximation methods or when exact symbolic techniques fail because of complex expressions or non-simplified integrals. On two notable classes of problems, namely collaborative filtering and programs involving mixtures of continuous and discrete distributions, we show that SOGA significantly outperforms alternative techniques in terms of accuracy and computational time.
引用
收藏
页数:31
相关论文
共 68 条
[31]   AQUA: Automated Quantized Inference for Probabilistic Programs [J].
Huang, Zixin ;
Dutta, Saikat ;
Misailovic, Sasa .
AUTOMATED TECHNOLOGY FOR VERIFICATION AND ANALYSIS, ATVA 2021, 2021, 12971 :229-246
[32]   An introduction to variational methods for graphical models [J].
Jordan, MI ;
Ghahramani, Z ;
Jaakkola, TS ;
Saul, LK .
MACHINE LEARNING, 1999, 37 (02) :183-233
[33]   On Moments of Folded and Truncated Multivariate Normal Distributions [J].
Kan, Raymond ;
Robotti, Cesare .
JOURNAL OF COMPUTATIONAL AND GRAPHICAL STATISTICS, 2017, 26 (04) :930-934
[34]  
Katoen JP, 2010, LECT NOTES COMPUT SC, V6337, P390, DOI 10.1007/978-3-642-15769-1_24
[35]  
Kharchenko PV, 2014, NAT METHODS, V11, P740, DOI [10.1038/nmeth.2967, 10.1038/NMETH.2967]
[36]  
Koren Y, 2011, RECOMMENDER SYSTEMS HANDBOOK, P145, DOI 10.1007/978-0-387-85820-3_5
[37]  
Kozen D., 1979, 20th Annual Symposium of Foundations of Computer Science, P101, DOI 10.1109/SFCS.1979.38
[38]  
KOZEN D, 1983, P 15 ANN ACM S THEOR, P291, DOI DOI 10.1145/800061.808758
[39]  
Kucukelbir A, 2015, ADV NEUR IN, V28
[40]   ON INFORMATION AND SUFFICIENCY [J].
KULLBACK, S ;
LEIBLER, RA .
ANNALS OF MATHEMATICAL STATISTICS, 1951, 22 (01) :79-86