Daphne: Multi-Pass Compilation of Probabilistic Programs into Graphical Models and Neural Networks

Published: 21 Mar 2025, Last Modified: 21 Mar 2025Accepted by TMLREveryoneRevisionsBibTeXCC BY 4.0
Abstract: Daphne is a probabilistic programming system that provides an expressive syntax to denote a large, but restricted, class of probabilistic models. Programs written in the Daphne language can be compiled into a general graph data structure of a corresponding probabilistic graphical model with simple link functions that can easily be implemented in a wide range of programming environments. Alternatively Daphne can also further compile such a graphical model into understandable and vectorized PyTorch code that can be used to train neural networks for inference. The Daphne compiler is structured in a layered multi-pass compiler framework that allows independent and easy extension of the syntax by adding additional passes. It leverages extensive partial evaluation to reduce all syntax extensions to the graphical model at compile time.
Submission Length: Regular submission (no more than 12 pages of main content)
Changes Since Last Submission: Acceptance date fixed.
Code: https://github.com/plai-group/daphne
Assigned Action Editor: ~Andriy_Mnih1
Submission Number: 3262
Loading

OpenReview is a long-term project to advance science through improved peer review with legal nonprofit status. We gratefully acknowledge the support of the OpenReview Sponsors. © 2025 OpenReview