Content area

Abstract

Probabilistic programming languages (PPLs) allow programmers to construct statistical models and then simulate data or perform inference over them. Many PPLs restrict models to a particular instance of simulation or inference, limiting their reusability. In other PPLs, models are not readily composable. Using Haskell as the host language, we present an embedded domain specific language based on algebraic effects, where probabilistic models are modular, first-class, and reusable for both simulation and inference. We also demonstrate how simulation and inference can be expressed naturally as composable program transformations using algebraic effect handlers.

Details

1009240
Identifier / keyword
Title
Modular Probabilistic Models via Algebraic Effects
Publication title
arXiv.org; Ithaca
Publication year
2024
Publication date
Dec 23, 2024
Section
Computer Science
Publisher
Cornell University Library, arXiv.org
Source
arXiv.org
Place of publication
Ithaca
Country of publication
United States
University/institution
Cornell University Library arXiv.org
e-ISSN
2331-8422
Source type
Working Paper
Language of publication
English
Document type
Working Paper
Publication history
 
 
Online publication date
2024-12-24
Milestone dates
2022-03-09 (Submission v1); 2022-07-03 (Submission v2); 2022-07-09 (Submission v3); 2022-07-26 (Submission v4); 2024-12-23 (Submission v5)
Publication history
 
 
   First posting date
24 Dec 2024
ProQuest document ID
2637817495
Document URL
https://www.proquest.com/working-papers/modular-probabilistic-models-via-algebraic/docview/2637817495/se-2?accountid=208611
Full text outside of ProQuest
Copyright
© 2024. This work is published under http://creativecommons.org/licenses/by/4.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.
Last updated
2024-12-25
Database
2 databases
  • ProQuest One Academic
  • ProQuest One Academic