Back to Search Start Over

Modular probabilistic models via algebraic effects

Authors :
Minh Nguyen
Roly Perera
Meng Wang
Nicolas Wu
Source :
Nguyen, M H, Perera, R N T, Wang, M & Wu, N 2022, ' Modular Probabilistic Models via Algebraic Effects ', Proceedings of the ACM on Programming Languages, vol. 6, no. ICFP, 104, pp. 381-410 . https://doi.org/10.1145/3547635
Publication Year :
2022
Publisher :
Association for Computing Machinery (ACM), 2022.

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

ISSN :
24751421
Volume :
6
Database :
OpenAIRE
Journal :
Proceedings of the ACM on Programming Languages
Accession number :
edsair.doi.dedup.....97855316a62cb1258a7cf9b82db6e6b3