A Lambda-Calculus Foundation for Universal Probabilistic Programming

被引:0
作者
Borgstrom, Johannes [1 ]
Dal Lago, Ugo [2 ,3 ]
Gordon, Andrew D. [4 ,5 ]
Szymczak, Marcin [5 ]
机构
[1] Uppsala Univ, Uppsala, Sweden
[2] Univ Bologna, I-40126 Bologna, Italy
[3] INRIA, Rocquencourt, France
[4] Microsoft Res, Cambridge, England
[5] Univ Edinburgh, Edinburgh EH8 9YL, Midlothian, Scotland
基金
瑞典研究理事会;
关键词
Probabilistic Programming; Lambda-calculus; MCMC; Machine Learning; Operational Semantics; MARKOV-CHAINS;
D O I
10.1145/2951913.2951942
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We develop the operational semantics of an untyped probabilistic lambda-calculus with continuous distributions, and both hard and soft constraints, as a foundation for universal probabilistic programming languages such as CHURCH, ANGLICAN, and VENTURE. Our first contribution is to adapt the classic operational semantics of lambda-calculus to a continuous setting via creating a measure space on terms and defining step-indexed approximations. We prove equivalence of big-step and small-step formulations of this distribution-based semantics. To move closer to inference techniques, we also define the sampling-based semantics of a term as a function from a trace of random samples to a value. We show that the distribution induced by integration over the space of traces equals the distribution-based semantics. Our second contribution is to formalize the implementation technique of trace Markov chain Monte Carlo (MCMC) for our calculus and to show its correctness. A key step is defining sufficient conditions for the distribution induced by trace MCMC to converge to the distribution-based semantics. To the best of our knowledge, this is the first rigorous correctness proof for trace MCMC for a higher-order functional language, or for a language with soft constraints.
引用
收藏
页码:33 / 46
页数:14
相关论文
共 38 条
[1]  
[Anonymous], 2014, PROC FOSE 14, DOI DOI 10.1145/2593882.2593900
[2]  
[Anonymous], 2014, CORR
[3]  
[Anonymous], 2008, P 24 C UNC ART INT
[4]  
Bhat S, 2013, LECT NOTES COMPUT SC, V7795, P508, DOI 10.1007/978-3-642-36742-7_35
[5]  
BILLINGSLEY P., 1995, Probability and measure, V3rd
[6]   Step-Indexed Logical Relations for Probability [J].
Bizjak, Ales ;
Birkedal, Lars .
FOUNDATIONS OF SOFTWARE SCIENCE AND COMPUTATION STRUCTURES (FOSSACS 2015), 2015, 9034 :279-294
[7]  
Borgstrom J., 2015, CORR
[8]  
Cousot P, 2012, LECT NOTES COMPUT SC, V7211, P169, DOI 10.1007/978-3-642-28869-2_9
[9]  
Danos V., 2002, ACM Transactions on Computational Logic, V3, P359, DOI 10.1145/507382.507385
[10]   Probabilistic coherence spaces as a model of higher-order probabilistic computation [J].
Danos, Vincent ;
Ehrhard, Thomas .
INFORMATION AND COMPUTATION, 2011, 209 (06) :966-991