SPFlow: An Easy and Extensible Library for Deep Probabilistic Learning using Sum-Product Networks
Alejandro Molina, Antonio Vergari, Karl Stelzner, Robert Peharz,, Pranav Subramani, Nicola Di Mauro, Pascal Poupart, Kristian Kersting

TL;DR
SPFlow is an open-source Python library that simplifies the creation, inference, and learning of Sum-Product Networks, enabling efficient probabilistic modeling and extensibility for deep probabilistic learning tasks.
Contribution
It provides a user-friendly, extensible framework for deep probabilistic models, integrating various algorithms and enabling fast computation through compilation to hardware-specific code.
Findings
Supports quick creation of SPNs from data and DSL
Implements efficient inference routines like marginals and MPEs
Allows compilation into TensorFlow, C, CUDA, or FPGA for speed
Abstract
We introduce SPFlow, an open-source Python library providing a simple interface to inference, learning and manipulation routines for deep and tractable probabilistic models called Sum-Product Networks (SPNs). The library allows one to quickly create SPNs both from data and through a domain specific language (DSL). It efficiently implements several probabilistic inference routines like computing marginals, conditionals and (approximate) most probable explanations (MPEs) along with sampling as well as utilities for serializing, plotting and structure statistics on an SPN. Moreover, many of the algorithms proposed in the literature to learn the structure and parameters of SPNs are readily available in SPFlow. Furthermore, SPFlow is extremely extensible and customizable, allowing users to promptly distill new inference and learning routines by injecting custom code into a lightweight…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBayesian Modeling and Causal Inference · Explainable Artificial Intelligence (XAI) · Machine Learning in Materials Science
