On Probabilistic Termination of Functional Programs with Continuous Distributions
We study termination of higher-order probabilistic functional programs with recursion, stochastic conditioning and sampling from continuous distributions.
Reasoning about the termination probability of programs with continuous distributions is hard, because the enumeration of terminating executions cannot provide any non-trivial bounds. We present a new operational semantics based on traces of intervals, which is sound and complete with respect to the standard sampling-based semantics, in which (countable) enumeration can provide arbitrarily tight lower bounds. Consequently we obtain the first proof that deciding almost-sure termination (AST) for programs with continuous distributions is $\Pi^0_2$-complete. We also provide a compositional representation of our semantics in terms of an intersection type system.
In the second part, we present a method of proving AST for non-affine programs, i.e., recursive programs that can, during the evaluation of the recursive body, make multiple recursive calls (of a first-order function) from distinct call sites. Unlike in a deterministic language, the number of recursion call sites has direct consequences on the termination probability. Our framework supports a proof system that can verify AST for programs that are well beyond the scope of existing methods.
We have constructed prototype implementations of our method of computing lower bounds of termination probability, and AST verification.
Fri 22 OctDisplayed time zone: Central Time (US & Canada) change
10:50 - 12:10 | |||
10:50 15mTalk | Compiling Stan to Generative Probabilistic Languages and Extension to Deep Probabilistic Programming SIGPLAN Papers Guillaume Baudart IBM Research, USA, Javier Burroni , Martin Hirzel IBM Research, Louis Mandel IBM Research, Avraham Shinnar IBM Research | ||
11:05 15mTalk | On Probabilistic Termination of Functional Programs with Continuous Distributions SIGPLAN Papers | ||
11:20 15mTalk | SPPL: Probabilistic Programming with Fast Exact Symbolic Inference SIGPLAN Papers Feras Saad Massachusetts Institute of Technology, Martin C. Rinard Massachusetts Institute of Technology, Vikash K. Mansinghka MIT DOI | ||
11:35 15mTalk | Cyclic Program Synthesis SIGPLAN Papers Shachar Itzhaky Technion, Hila Peleg Technion, Nadia Polikarpova University of California at San Diego, Reuben N. S. Rowe University of Kent, Ilya Sergey National University of Singapore DOI | ||
11:50 20mLive Q&A | Discussion, Questions and Answers SIGPLAN Papers |