Probabilistic programming

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search


Probabilistic programming (PP) is a programming paradigm in which probabilistic models are specified and inference for these models is performed automatically.[1] It represents an attempt to unify probabilistic modeling and traditional general purpose programming in order to make the former easier and more widely applicable.[2][3] 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).

Applications[edit]

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.[4] 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.[4] This made possible "in 50 lines of code what used to take thousands".[5][6]

More recent work using the Gen programming system (written in Julia) has applied probabilistic programming to a wide variety of tasks.[7]

Probabilistic programming languages[edit]

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[8] and Chimple[9] are based on Java, Infer.NET is based on .NET,[10] while PRISM extends from Prolog.[11] However, some PPLs such as WinBUGS and Stan offer a self-contained language, with no obvious origin in another language.[12][13]

Several PPLs are in active development, including some in beta test.

Relational[edit]

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 languages[edit]

Name Extends from Host language
Analytica[14] C++
bayesloop[15][16] Python Python
CuPPL[17] NOVA[18]
Venture[19] Scheme C++
Probabilistic-C[20] C C
Anglican[21] Clojure Clojure
IBAL[22] OCaml
BayesDB[23] SQLite, Python
PRISM[11] B-Prolog
Infer.NET[10] .NET Framework .NET Framework
dimple[8] MATLAB, Java
chimple[9] MATLAB, Java
BLOG[24] Java
delSAT[25] Answer set programming, SAT (DIMACS CNF)
PSQL[26] SQL
BUGS[12]
FACTORIE[27] Scala
PMTK[28] MATLAB MATLAB
Alchemy[29] C++
Dyna[30] Prolog
Figaro[31] Scala
Church[32] Scheme Various: JavaScript, Scheme
ProbLog[33] Prolog Python, Jython
ProBT[34] C++, Python
Stan[13] C++
Hakaru[35] Haskell Haskell
BAli-Phy (software)[36] Haskell C++
ProbCog[37] Java, Python
Gamble[38] Racket
PWhile[39] While Python
Tuffy[40] Java
PyMC3[41] Python, Theano Python
PyMC4[42] Python, TensorFlow Probability Python
greta[43] TensorFlow R
pomegranate[44] Python Python
Lea[45] Python Python
WebPPL[46] JavaScript JavaScript
Picture[4] Julia Julia
Turing.jl[47] Julia Julia
Gen[48] Julia Julia
Low-level First-order PPL[49] Python, Clojure, Pytorch Various: Python, Clojure
Troll[50] Moscow ML
Edward[51] TensorFlow Python
TensorFlow Probability[52] TensorFlow Python
Edward2[53] TensorFlow Probability Python
Pyro[54] PyTorch Python
Saul[55] Scala Scala
RankPL[56] Java
Birch[57] C++

Difficulty[edit]

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.[58]

See also[edit]

Notes[edit]

  1. ^ "Probabilistic programming does in 50 lines of code what used to take thousands". phys.org. April 13, 2015. Retrieved April 13, 2015.
  2. ^ "Probabilistic Programming". probabilistic-programming.org.
  3. ^ Pfeffer, Avrom (2014), Practical Probabilistic Programming, Manning Publications. p.28. ISBN 978-1 6172-9233-0
  4. ^ a b c "Short probabilistic programming machine-learning code replaces complex programs for computer-vision tasks". KurzweilAI. April 13, 2015. Retrieved November 27, 2017.
  5. ^ Hardesty, Larry (April 13, 2015). "Graphics in reverse".
  6. ^ "MIT shows off machine-learning script to make CREEPY HEADS".
  7. ^ "MIT's Gen programming system flattens the learning curve for AI projects". VentureBeat. June 27, 2019. Retrieved June 27, 2019.
  8. ^ a b "Dimple Home Page". analog.com.
  9. ^ a b "Chimple Home Page". analog.com.
  10. ^ a b "Infer.NET". microsoft.com. Microsoft.
  11. ^ a b "PRISM: PRogramming In Statistical Modeling". rjida.meijo-u.ac.jp.
  12. ^ a b "The BUGS Project - MRC Biostatistics Unit". cam.ac.uk.
  13. ^ a b "Stan". mc-stan.org.
  14. ^ "Analytica-- A Probabilistic Modeling Language". lumina.com.
  15. ^ "bayesloop: Probabilistic programming framework that facilitates objective model selection for time-varying parameter models".
  16. ^ "GitHub -- bayesloop".
  17. ^ "Probabilistic Programming with CuPPL". popl19.sigplan.org.
  18. ^ "NOVA: A Functional Language for Data Parallelism". acm.org.
  19. ^ "Venture -- a general-purpose probabilistic programming platform". mit.edu.
  20. ^ "Probabilistic C". ox.ac.uk.
  21. ^ "The Anglican Probabilistic Programming System". ox.ac.uk.
  22. ^ "IBAL Home Page". Archived from the original on December 26, 2010.
  23. ^ "BayesDB on SQLite. A Bayesian database table for querying the probable implications of data as easily as SQL databases query the data itself". GitHub.
  24. ^ "Bayesian Logic (BLOG)". mit.edu. Archived from the original on June 16, 2011.
  25. ^ "delSAT (probabilistic SAT/ASP)".
  26. ^ 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.
  27. ^ "Factorie - Probabilistic programming with imperatively-defined factor graphs - Google Project Hosting". google.com.
  28. ^ "PMTK3 - probabilistic modeling toolkit for Matlab/Octave, version 3 - Google Project Hosting". google.com.
  29. ^ "Alchemy - Open Source AI". washington.edu.
  30. ^ "Dyna". www.dyna.org.
  31. ^ "Charles River Analytics - Probabilistic Modeling Services". cra.com.
  32. ^ "Church". mit.edu.
  33. ^ "ProbLog: Probabilistic Programming". dtai.cs.kuleuven.be.
  34. ^ ProbaYes. "ProbaYes - Ensemble, nous valorisations vos données". probayes.com.
  35. ^ "Hakaru Home Page". hakaru-dev.github.io/.
  36. ^ "BAli-Phy Home Page". bali-phy.org.
  37. ^ "ProbCog". GitHub.
  38. ^ Culpepper, Ryan (January 17, 2017). "gamble: Probabilistic Programming" – via GitHub.
  39. ^ "PWhile Compiler". GitHub.
  40. ^ "Tuffy: A Scalable Markov Logic Inference Engine". stanford.edu.
  41. ^ PyMC devs. "PyMC3". pymc-devs.github.io.
  42. ^ Developers, PyMC (May 17, 2018). "Theano, TensorFlow and the Future of PyMC". PyMC Developers. Retrieved January 25, 2019.
  43. ^ "greta: simple and scalable statistical modelling in R". GitHub. Retrieved October 2, 2018.
  44. ^ "Home — pomegranate 0.10.0 documentation". pomegranate.readthedocs.io. Retrieved October 2, 2018.
  45. ^ "Lea Home Page". bitbucket.org.
  46. ^ "WebPPL Home Page". github.com/probmods/webppl.
  47. ^ "The Turing language for probabilistic programming".
  48. ^ "Gen: A General Purpose Probabilistic Programming Language with Programmable Inference". Retrieved June 17, 2019.
  49. ^ "LF-PPL: A Low-Level First Order Probabilistic Programming Language for Non-Differentiable Models". ox.ac.uk.
  50. ^ "Troll dice roller and probability calculator".
  51. ^ "Edward – Home". edwardlib.org. Retrieved January 17, 2017.
  52. ^ TensorFlow (April 11, 2018). "Introducing TensorFlow Probability". TensorFlow. Retrieved October 2, 2018.
  53. ^ "'Edward2' TensorFlow Probability module". GitHub. Retrieved October 2, 2018.
  54. ^ "Pyro". pyro.ai. Retrieved February 9, 2018.
  55. ^ "CogComp - Home".
  56. ^ Rienstra, Tjitze (January 18, 2018), RankPL: A qualitative probabilistic programming language based on ranking theory, retrieved January 18, 2018
  57. ^ "Probabilistic Programming in Birch". birch-lang.org. Retrieved April 20, 2018.
  58. ^ 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.

External links[edit]