Abstract
Generating functions, which are widely used in combinatorics and probability theory, encode function values into the coefficients of a polynomial. In this paper, we explore their use as a tractable probabilistic model, and propose probabilistic generating circuits (PGCs) for their efficient representation. PGCs are strictly more expressive efficient than many existing tractable probabilistic models, including determinantal point processes (DPPs), probabilistic circuits (PCs) such as sum-product networks, and tractable graphical models. We contend that PGCs are not just a theoretical framework that unifies vastly different existing models, but also show great potential in modeling realistic data. We exhibit a simple class of PGCs that are not trivially subsumed by simple combinations of PCs and DPPs, and obtain competitive performance on a suite of density estimation benchmarks. We also highlight PGCs’ connection to the theory of strongly Rayleigh distributions.
Introduction
In machine learning, researchers face a constant tug-of-war between expressivity (the complexity of distributions a model can represent) and tractability (the speed at which we can compute answers like marginal probabilities). Current Tractable Probabilistic Models (TPMs) generally fall into two distinct categories: Probabilistic Circuits (PCs), which excel at modeling local dependencies via sum-product relationships, and Determinantal Point Processes (DPPs), which are adept at modeling global "negative dependence" (e.g., the repulsion between similar items in a subset).
This paper introduces Probabilistic Generating Circuits (PGCs), a new class of TPMs that represent distributions as "generating polynomials" within a circuit structure. PGCs provide a unified framework that is strictly more expressive than existing state-of-the-art models while maintaining efficient inference.
The PGC Framework
Instead of representing a probability mass function directly, a PGC represents a probability generating polynomial. A PGC is structured as a Directed Acyclic Graph (DAG) containing three types of nodes:
- Sum nodes: Weighted sums of polynomials.
- Product nodes: Unweighted products.
- Leaf nodes: Variables $z_i$ or constants.
The "magic" of PGCs lies in their tractable inference. Marginal probabilities can be computed by evaluating the circuit over a polynomial ring. By substituting variables with specific values (like 0, 1, or an indeterminate $t$) and performing a bottom-up pass, the model can extract specific coefficients—representing probabilities—in polynomial time. This allows marginals to be computed in $O(mn \log n \log \log n)$ time, where $m$ is the circuit size and $n$ is the number of variables.
Hierarchical Composition: DetPGCs
A key innovation of this work is the ability to "plug" one PGC into another. The authors propose DetPGCs (Determinantal PGCs), which utilize a DPP-like structure at the top level to handle global negative dependencies, while using smaller PGCs at the leaves to capture local positive dependencies.
This hierarchical composition allows PGCs to tap into the theory of Strongly Rayleigh (SR) distributions, a rich mathematical field dedicated to modeling complex negative interactions that standard TPMs often struggle to capture.
Empirical Evaluation
The authors evaluated a "SimplePGC" (a weighted sum of DetPGCs) against strong baselines, including DPPs, Strudel, and Einsum Networks (EiNets), across two major benchmarks:
- The Twenty Datasets: A standard suite of real-world datasets for benchmarking tractable models. SimplePGC achieved better average log-likelihood than at least one baseline on 19 out of 20 datasets.
- Amazon Baby Registries: 15 datasets representing categories of baby products, ideal for testing negative dependencies (as registries rarely contain redundant items). SimplePGC outperformed all baselines on 11 out of 15 datasets.
Conclusion and Future Work
PGCs represent a significant step forward in unifying and extending the capabilities of tractable probabilistic models. They mathematically dominate decomposable PCs in expressivity, meaning they can represent certain distributions compactly that would require exponentially large PCs.
Future research will focus on developing automated structure learning algorithms for PGCs, as the current work relies on a simple greedy variable grouping. Additionally, while marginals are tractable, exploring the boundaries of other inference types, such as Maximum A Posteriori (MAP) queries, remains an open challenge.
Summary updated