Multi-Language Probabilistic Programming
Open Access
- 9 April 2025
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 9 (OOPSLA1) , 1239-1266
Abstract
There are many different probabilistic programming languages that are specialized to specific kinds of probabilistic programs. From a usability and scalability perspective, this is undesirable: today, probabilistic programmers are forced up-front to decide which language they want to use and cannot mix-and-match different languages for handling heterogeneous programs. To rectify this, we seek a foundation for sound interoperability for probabilistic programming languages: just as today’s Python programmers can resort to low-level C programming for performance, we argue that probabilistic programmers should be able to freely mix different languages for meeting the demands of heterogeneous probabilistic programming environments. As a first step towards this goal, we introduce MultiPPL, a probabilistic multi-language that enables programmers to interoperate between two different probabilistic programming languages: one that leverages a high-performance exact discrete inference strategy, and one that uses approximate importance sampling. We give a syntax and semantics for MultiPPL, prove soundness of its inference algorithm, and provide empirical evidence that it enables programmers to perform inference on complex heterogeneous probabilistic programs and flexibly exploits the strengths and weaknesses of two languages simultaneously.Keywords
All Related Versions
Funding Information
- National Science Foundation (#2220408)
This publication has 48 references indexed in Scilit:
- Fab ous Interoperability for ML and a Linear Language2018
- Commutative Semantics for Probabilistic Programming2017
- Contextual Equivalence for Probabilistic Programs with Continuous Random Variables and Scoring2017
- Stateful Contracts for Affine Types2010
- Action understanding as inverse planningCognition, 2009
- On probabilistic inference by weighted model countingArtificial Intelligence, 2008
- A semantics of introspection in a reflective prototype-based languageHigher-Order and Symbolic Computation, 1996
- A Model-Based Approach to Insulin Adjustment1991
- The ALARM Monitoring System: A Case Study with two Probabilistic Inference Techniques for Belief Networks1989
- A categorical approach to probability theory1982