HackerPapers

arXiv:1809.10756stat.ML

An Introduction to Probabilistic Programming

Jan-Willem van de Meent, Brooks Paige, Hongseok Yang, Frank Wood

Abstract

This book is a graduate-level introduction to probabilistic programming. It not only provides a thorough background for anyone wishing to use a probabilistic programming system, but also introduces the techniques needed to design and build these systems. It is aimed at people who have an undergraduate-level understanding of either or, ideally, both probabilistic machine learning and programming languages. We start with a discussion of model-based reasoning and explain why conditioning is a foundational computation central to the fields of probabilistic machine learning and artificial intelligence. We then introduce a first-order probabilistic programming language (PPL) whose programs correspond to graphical models with a known, finite, set of random variables. In the context of this PPL we introduce fundamental inference algorithms and describe how they can be implemented. We then turn to higher-order probabilistic programming languages. Programs in such languages can define models with dynamic computation graphs, which may not instantiate the same set of random variables in each execution. Inference requires methods that generate samples by repeatedly evaluating the program. Foundational algorithms for this kind of language are discussed in the context of an interface between program executions and an inference controller. Finally we consider the intersection of probabilistic and differentiable programming. We begin with a discussion of automatic differentiation, and how it can be used to implement efficient inference methods based on Hamiltonian Monte Carlo. We then discuss gradient-based maximum likelihood estimation in programs that are parameterized using neural networks, how to amortize inference using by learning neural approximations to the program posterior, and how language features impact the design of deep probabilistic programming systems.

arXiv comments
Under review at Foundations and Trends in Machine Learning
Journal reference
DOI
Subjects
stat.MLMachine Learning (Statistics) cs.AIArtificial Intelligence cs.LGMachine Learning cs.PLProgramming Languages

On Hacker News

Linked by 5 identifiable commenters in 6 comments across 6 threads, from Oct 2018 to Aug 2023. Found in 3 HN submissions from Oct 2018 to Mar 2026. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments6 threads

    • I think the main outcome from Anglican was a great theoretical textbook: https://arxiv.org/abs/1809.10756 But it is probably too expressive, and therefore too slow, for most practical inference problems.

      nextosView on HNParent context

    • It's not outdated. Many ideas there, like mixture models or hierarchical models are pretty timeless mathematical concepts. A nice follow up is [1], which delves more into more technical inference aspects. There are also follow up texts by the same authors [2,3]. Another approach…

      nextosView on HNParent context

    • I started [0], but I got sidetracked. If anyone else has used this let me know as well. [0] https://arxiv.org/abs/1809.10756

      dryrunesView on HNParent context

    • - A Personal Viewpoint on Probabilistic Programming https://www.youtube.com/watch?v=TFXcVlKqPlM by Dan Roy (I think this is the best intro to PP there is) - Probabilistic Models of Cognition https://probmods.org/ by Noah D. Goodman, Joshua B. Tenenbaum & contributors - An…

      pinouchonView on HNParent context

    • > Since you mention Bayesian methods, I thought I may randomly ask you - have you come across any good work about applications of subjective Bayesian statistics in AI? https://www.youtube.com/watch?v=O0MF-r9PsvE https://arxiv.org/abs/1809.10756 (by my adviser)…

      eli_gottliebView on HNParent context

    • Some people think the inequality has gone down significantly (I'm in that camp), but others point out to things like Bezos and a few others owning more assets than 80% of the world combined. Regardless, AI is bound to increase inequality. Just yesterday we discussed this book…

      credit_guyView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.