Probabilistic programming

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

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]

The Gen probabilistic programming library (also written in Julia) has been applied to vision and robotics tasks.[7]

More recently, the probabilistic programming systems Turing.jl has been applied in various pharmaceutical and economics applications.[8]

Probabilistic programming in Julia has also been combined with differentiable programming by combining the Julia package Zygote.jl with Turing.jl. [9]

Probabilistic programming languages

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

Several PPLs are in active development, including some in beta test. The two most popular tools are Stan and PyMC3.[16]

Relational

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

NameExtends fromHost language
Analytica[17]C++
bayesloop[18][19]PythonPython
CuPPL[20]NOVA[21]
Venture[22]SchemeC++
Probabilistic-C[23]CC
Anglican[24]ClojureClojure
IBAL[25]OCaml
BayesDB[26]SQLite, Python
PRISM[13]B-Prolog
Infer.NET[12].NET Framework.NET Framework
dimple[10]MATLAB, Java
chimple[11]MATLAB, Java
BLOG[27]Java
delSAT[28]Answer set programming, SAT (DIMACS CNF)
PSQL[29]SQL
BUGS[14]
FACTORIE[30]Scala
PMTK[31]MATLABMATLAB
Alchemy[32]C++
Dyna[33]Prolog
Figaro[34]Scala
Church[35]SchemeVarious: JavaScript, Scheme
ProbLog[36]PrologPython, Jython
ProBT[37]C++, Python
Stan[15]C++
Hakaru[38]HaskellHaskell
BAli-Phy (software)[39]HaskellC++
ProbCog[40]Java, Python
Gamble[41]Racket
PWhile[42]WhilePython
Tuffy[43]Java
PyMC3[44]Python, TheanoPython
PyMC4[45]Python, TensorFlow ProbabilityPython
greta[46] TensorFlow R
pomegranate[47] Python Python
Lea[48]PythonPython
WebPPL[49]JavaScriptJavaScript
Let's Chance[50] Scratch JavaScript
Picture[4] Julia Julia
Turing.jl[51] Julia Julia
Gen[52] Julia Julia
Low-level First-order PPL[53]Python, Clojure, PytorchVarious: Python, Clojure
Troll[54] Moscow ML
Edward[55] TensorFlow Python
TensorFlow Probability[56] TensorFlow Python
Edward2[57] TensorFlow Probability Python
Pyro[58] PyTorch Python
Saul[59] Scala Scala
RankPL[60] Java
Birch[61] C++
PSI[62] D

Difficulty

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

gollark: `5A79756D6F727068` -> `Zyumorph`
gollark: Those hexadecimally coded names don't mean anything!
gollark: Needless Pendantry was a joke because someone was complaining about that.
gollark: Mine are typically the ones with semi-ridiculous names which don't match their parents or children.
gollark: Needless Pendantry & 0x5A79756D6F727068 are mine. Can you not tell? I need to improve my naming schemes.

See also

Notes

  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. Archived from the original on January 10, 2016. Retrieved December 24, 2013.
  3. Pfeffer, Avrom (2014), Practical Probabilistic Programming, Manning Publications. p.28. ISBN 978-1 6172-9233-0
  4. "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. Predicting Drug-Induced Liver Injury with Bayesian Machine Learning, 2019
  9. ∂P: A Differentiable Programming System to Bridge Machine Learning and Scientific Computing, 2019, arXiv:1907.07587
  10. "Dimple Home Page". analog.com.
  11. "Chimple Home Page". analog.com.
  12. "Infer.NET". microsoft.com. Microsoft.
  13. "PRISM: PRogramming In Statistical Modeling". rjida.meijo-u.ac.jp. Archived from the original on March 1, 2015. Retrieved July 8, 2015.
  14. "The BUGS Project - MRC Biostatistics Unit". cam.ac.uk. Archived from the original on March 14, 2014. Retrieved January 12, 2011.
  15. "Stan". mc-stan.org. Archived from the original on September 3, 2012.
  16. "The Algorithms Behind Probabilistic Programming". Retrieved March 10, 2017.
  17. "Analytica-- A Probabilistic Modeling Language". lumina.com.
  18. "bayesloop: Probabilistic programming framework that facilitates objective model selection for time-varying parameter models".
  19. "GitHub -- bayesloop".
  20. "Probabilistic Programming with CuPPL". popl19.sigplan.org.
  21. "NOVA: A Functional Language for Data Parallelism". acm.org.
  22. "Venture -- a general-purpose probabilistic programming platform". mit.edu. Archived from the original on January 25, 2016. Retrieved September 20, 2014.
  23. "Probabilistic C". ox.ac.uk. Archived from the original on January 4, 2016. Retrieved March 24, 2015.
  24. "The Anglican Probabilistic Programming System". ox.ac.uk.
  25. "IBAL Home Page". Archived from the original on December 26, 2010.
  26. "BayesDB on SQLite. A Bayesian database table for querying the probable implications of data as easily as SQL databases query the data itself". GitHub.
  27. "Bayesian Logic (BLOG)". mit.edu. Archived from the original on June 16, 2011.
  28. "delSAT (probabilistic SAT/ASP)".
  29. 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.
  30. "Factorie - Probabilistic programming with imperatively-defined factor graphs - Google Project Hosting". google.com.
  31. "PMTK3 - probabilistic modeling toolkit for Matlab/Octave, version 3 - Google Project Hosting". google.com.
  32. "Alchemy - Open Source AI". washington.edu.
  33. "Dyna". www.dyna.org. Archived from the original on January 17, 2016. Retrieved January 12, 2011.
  34. "Charles River Analytics - Probabilistic Modeling Services". cra.com.
  35. "Church". mit.edu. Archived from the original on January 14, 2016. Retrieved April 8, 2013.
  36. "ProbLog: Probabilistic Programming". dtai.cs.kuleuven.be.
  37. ProbaYes. "ProbaYes - Ensemble, nous valorisations vos données". probayes.com. Archived from the original on March 5, 2016. Retrieved November 26, 2013.
  38. "Hakaru Home Page". hakaru-dev.github.io/.
  39. "BAli-Phy Home Page". bali-phy.org.
  40. "ProbCog". GitHub.
  41. Culpepper, Ryan (January 17, 2017). "gamble: Probabilistic Programming" via GitHub.
  42. "PWhile Compiler". GitHub.
  43. "Tuffy: A Scalable Markov Logic Inference Engine". stanford.edu.
  44. PyMC devs. "PyMC3". pymc-devs.github.io.
  45. Developers, PyMC (May 17, 2018). "Theano, TensorFlow and the Future of PyMC". PyMC Developers. Retrieved January 25, 2019.
  46. "greta: simple and scalable statistical modelling in R". GitHub. Retrieved October 2, 2018.
  47. "Home — pomegranate 0.10.0 documentation". pomegranate.readthedocs.io. Retrieved October 2, 2018.
  48. "Lea Home Page". bitbucket.org.
  49. "WebPPL Home Page". github.com/probmods/webppl.
  50. "Let's Chance: Playful Probabilistic Programming for Children | Extended Abstracts of the 2020 CHI Conference on Human Factors in Computing Systems". dl.acm.org. doi:10.1145/3334480.3383071. Retrieved August 1, 2020.
  51. "The Turing language for probabilistic programming".
  52. "Gen: A General Purpose Probabilistic Programming Language with Programmable Inference". Retrieved June 17, 2019.
  53. "LF-PPL: A Low-Level First Order Probabilistic Programming Language for Non-Differentiable Models". ox.ac.uk.
  54. "Troll dice roller and probability calculator".
  55. "Edward – Home". edwardlib.org. Retrieved January 17, 2017.
  56. TensorFlow (April 11, 2018). "Introducing TensorFlow Probability". TensorFlow. Retrieved October 2, 2018.
  57. "'Edward2' TensorFlow Probability module". GitHub. Retrieved October 2, 2018.
  58. "Pyro". pyro.ai. Retrieved February 9, 2018.
  59. "CogComp - Home".
  60. Rienstra, Tjitze (January 18, 2018), RankPL: A qualitative probabilistic programming language based on ranking theory, retrieved January 18, 2018
  61. "Probabilistic Programming in Birch". birch-lang.org. Retrieved April 20, 2018.
  62. "PSI Solver - Exact inference for probabilistic programs". psisolver.org. Retrieved August 18, 2019.
  63. 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.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.