arXiv · 2203.04608
Modular Probabilistic Models via Algebraic Effects
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.
Explore related subjects
Keep this discovery
Minh Nguyen, Roly Perera, Meng Wang, Nicolas Wu. 2022-03-09. Modular Probabilistic Models via Algebraic Effects. https://doi.org/10.1145/3547635
Cite the original work for its findings. Save a collection to share your selection of sources.