This article relies too much on references to primary sources. (December 2014) (Learn how and when to remove this template message)
Probabilistic programming (PP) is a programming paradigm in which probabilistic models are specified and inference for these models is performed automatically. It represents an attempt to unify probabilistic modeling and traditional general purpose programming in order to make the former easier and more widely applicable. It can be used to create systems that help make decisions in the face of uncertainty.
Programming languages used for probabilistic programming are referred to as "Probabilistic programming languages" (PPLs).
Probabilistic reasoning has been used for a wide variety of tasks such as predicting stock prices, recommending movies, diagnosing computers, detecting cyber intrusions and image detection. However, until recently (partially due to limited computing power), probabilistic programming was limited in scope, and most inference algorithms had to be written manually for each task.
Nevertheless, in 2015, a 50-line probabilistic computer vision program was used to generate 3D models of human faces based on 2D images of those faces. The program used inverse graphics as the basis of its inference method, and was built using the Picture package in Julia. This made possible "in 50 lines of code what used to take thousands".
More recent work using the Gen programming system (also written in Julia) has applied probabilistic programming to a wide variety of tasks.
Probabilistic programming has also been combined with differentiable programming using the Julia package Zygote.jl, allowing it to be applied to additional tasks in which parts of the model need to be differentiated. The use of differentiable programming can also allow for the easier implementation of gradient based MCMC inference methods such as HMC.
Probabilistic programming languagesEdit
PPLs often extend from a basic language. The choice of underlying basic language depends on the similarity of the model to the basic language's ontology, as well as commercial considerations and personal preference. For instance, Dimple and Chimple are based on Java, Infer.NET is based on .NET, while PRISM extends from Prolog. However, some PPLs such as WinBUGS and Stan offer a self-contained language, with no obvious origin in another language.
Several PPLs are in active development, including some in beta test.
A probabilistic relational programming language (PRPL) is a PPL specially designed to describe and infer with probabilistic relational models (PRMs).
A PRM is usually developed with a set of algorithms for reducing, inference about and discovery of concerned distributions, which are embedded into the corresponding PRPL.
List of probabilistic programming languagesEdit
This article may contain an excessive amount of intricate detail that may interest only a particular audience.October 2019) (Learn how and when to remove this template message)(
|Name||Extends from||Host language|
|Infer.NET||.NET Framework||.NET Framework|
|delSAT||Answer set programming, SAT (DIMACS CNF)|
|PyMC4||Python, TensorFlow Probability||Python|
|Low-level First-order PPL||Python, Clojure, Pytorch||Various: Python, Clojure|
Reasoning about variables as probability distributions causes difficulties for novice programmers, but these difficulties can be addressed through use of Bayesian network visualisations and graphs of variable distributions embedded within the source code editor.
- "Probabilistic programming does in 50 lines of code what used to take thousands". phys.org. April 13, 2015. Retrieved April 13, 2015.
- "Probabilistic Programming". probabilistic-programming.org.
- Pfeffer, Avrom (2014), Practical Probabilistic Programming, Manning Publications. p.28. ISBN 978-1 6172-9233-0
- "Short probabilistic programming machine-learning code replaces complex programs for computer-vision tasks". KurzweilAI. April 13, 2015. Retrieved November 27, 2017.
- Hardesty, Larry (April 13, 2015). "Graphics in reverse".
- "MIT shows off machine-learning script to make CREEPY HEADS".
- "MIT's Gen programming system flattens the learning curve for AI projects". VentureBeat. June 27, 2019. Retrieved June 27, 2019.
- ∂P: A Differentiable Programming System to Bridge Machine Learning and Scientific Computing, 2019, arXiv:1907.07587
- "Dimple Home Page". analog.com.
- "Chimple Home Page". analog.com.
- "Infer.NET". microsoft.com. Microsoft.
- "PRISM: PRogramming In Statistical Modeling". rjida.meijo-u.ac.jp.
- "The BUGS Project - MRC Biostatistics Unit". cam.ac.uk.
- "Stan". mc-stan.org.
- "Analytica-- A Probabilistic Modeling Language". lumina.com.
- "bayesloop: Probabilistic programming framework that facilitates objective model selection for time-varying parameter models".
- "GitHub -- bayesloop".
- "Probabilistic Programming with CuPPL". popl19.sigplan.org.
- "NOVA: A Functional Language for Data Parallelism". acm.org.
- "Venture -- a general-purpose probabilistic programming platform". mit.edu.
- "Probabilistic C". ox.ac.uk.
- "The Anglican Probabilistic Programming System". ox.ac.uk.
- "IBAL Home Page". Archived from the original on December 26, 2010.
- "BayesDB on SQLite. A Bayesian database table for querying the probable implications of data as easily as SQL databases query the data itself". GitHub.
- "Bayesian Logic (BLOG)". mit.edu. Archived from the original on June 16, 2011.
- "delSAT (probabilistic SAT/ASP)".
- Dey, Debabrata; Sarkar, Sumit (1998). "PSQL: A query language for probabilistic relational data". Data & Knowledge Engineering. 28: 107–120. doi:10.1016/S0169-023X(98)00015-9.
- "Factorie - Probabilistic programming with imperatively-defined factor graphs - Google Project Hosting". google.com.
- "PMTK3 - probabilistic modeling toolkit for Matlab/Octave, version 3 - Google Project Hosting". google.com.
- "Alchemy - Open Source AI". washington.edu.
- "Dyna". www.dyna.org.
- "Charles River Analytics - Probabilistic Modeling Services". cra.com.
- "Church". mit.edu.
- "ProbLog: Probabilistic Programming". dtai.cs.kuleuven.be.
- ProbaYes. "ProbaYes - Ensemble, nous valorisations vos données". probayes.com.
- "Hakaru Home Page". hakaru-dev.github.io/.
- "BAli-Phy Home Page". bali-phy.org.
- "ProbCog". GitHub.
- Culpepper, Ryan (January 17, 2017). "gamble: Probabilistic Programming" – via GitHub.
- "PWhile Compiler". GitHub.
- "Tuffy: A Scalable Markov Logic Inference Engine". stanford.edu.
- PyMC devs. "PyMC3". pymc-devs.github.io.
- Developers, PyMC (May 17, 2018). "Theano, TensorFlow and the Future of PyMC". PyMC Developers. Retrieved January 25, 2019.
- "greta: simple and scalable statistical modelling in R". GitHub. Retrieved October 2, 2018.
- "Home — pomegranate 0.10.0 documentation". pomegranate.readthedocs.io. Retrieved October 2, 2018.
- "Lea Home Page". bitbucket.org.
- "WebPPL Home Page". github.com/probmods/webppl.
- "The Turing language for probabilistic programming".
- "Gen: A General Purpose Probabilistic Programming Language with Programmable Inference". Retrieved June 17, 2019.
- "LF-PPL: A Low-Level First Order Probabilistic Programming Language for Non-Differentiable Models". ox.ac.uk.
- "Troll dice roller and probability calculator".
- "Edward – Home". edwardlib.org. Retrieved January 17, 2017.
- TensorFlow (April 11, 2018). "Introducing TensorFlow Probability". TensorFlow. Retrieved October 2, 2018.
- "'Edward2' TensorFlow Probability module". GitHub. Retrieved October 2, 2018.
- "Pyro". pyro.ai. Retrieved February 9, 2018.
- "CogComp - Home".
- Rienstra, Tjitze (January 18, 2018), RankPL: A qualitative probabilistic programming language based on ranking theory, retrieved January 18, 2018
- "Probabilistic Programming in Birch". birch-lang.org. Retrieved April 20, 2018.
- "PSI Solver - Exact inference for probabilistic programs". psisolver.org. Retrieved August 18, 2019.
- Gorinova, Maria I.; Sarkar, Advait; Blackwell, Alan F.; Syme, Don (January 1, 2016). A Live, Multiple-Representation Probabilistic Programming Environment for Novices. Proceedings of the 2016 CHI Conference on Human Factors in Computing Systems. CHI '16. New York, NY, USA: ACM. pp. 2533–2537. doi:10.1145/2858036.2858221. ISBN 9781450333627.