Probabilistic Circuits for Cumulative Distribution Functions

Oliver Broadrick, William X. Cao, Benjie Wang, Martin Trapp, Guy Van den Broeck · DOI

Abstract

Probabilistic Circuits (PCs) are a class of models designed for tractable inference, traditionally focused on computing Probability Mass Functions (PMFs) or Probability Density Functions (PDFs). This paper expands the PC toolkit by demonstrating that they can efficiently represent and compute Cumulative Distribution Functions (CDFs). The authors establish a fundamental computational equivalence between PMF/PDF and CDF representations across binary, finite discrete, and continuous variables, proving that transformations between these forms can be achieved in polynomial time.

Introduction

In the field of machine learning and statistics, Probabilistic Circuits (PCs) have gained prominence due to their ability to answer complex queries—such as marginals and conditionals—with guaranteed tractability. Traditionally, these models are optimized to compute the probability of a specific point in space (PMF or PDF). However, many critical tasks, including inverse transform sampling, copula modeling, and various forms of density estimation, rely on the Cumulative Distribution Function (CDF), which represents the probability that a variable falls below a specific threshold.

Until now, it was unclear whether a PC designed to compute a CDF would be as efficient or "succinct" as one designed for a PMF. This paper bridges the gap, providing mathematical proofs and algorithms that establish the computational equivalence of these two distributional perspectives within the PC framework.

Methodology and Theoretical Framework

The authors categorize their analysis into three primary domains: binary variables, finite discrete variables, and continuous variables.

Binary Variables and the PGF Connection

The paper defines "CDF polynomials" and "PMF polynomials" for binary variables. A significant insight of this work is the discovery that, for binary variables, the CDF polynomial is mathematically identical to the Probability Generating Function (PGF). By establishing this link, the authors leverage existing algorithmic frameworks to convert between PMF and CDF circuits in $O(ns)$ time, where $n$ represents the number of variables and $s$ denotes the circuit size.

Finite Discrete Variables and Less-Than Encoding

Standard PC approaches often utilize "one-hot encoding" for discrete variables. However, one-hot encoding is poorly suited for the "less-than-or-equal-to" logic inherent in CDFs. To resolve this, the authors introduce "Less-Than Encoding" (LTk). This method maps discrete values to binary vectors in a manner that preserves variable ordering. This encoding allows the authors to reduce the discrete problem back to the binary case, ensuring that cumulative reasoning remains computationally efficient.

Continuous Variables: Smoothness and Decomposability

For continuous data, the transformation relies on two essential structural properties of PCs: smoothness and decomposability. The authors demonstrate that if a circuit possesses these properties, a PDF circuit can be transformed into a CDF circuit (and vice versa) simply by modifying the "leaves" or input nodes. By integrating or differentiating these leaves, the transformation is achieved without altering the internal structure or size of the circuit.

Key Insights

Inclusion-Exclusion as a Circuit Operation

The mathematical transformation from a CDF to a PMF is shown to be an efficient, circuit-based implementation of the generalized principle of inclusion-exclusion. This provides a structural understanding of how PCs manage complex combinatorial probabilities.

The Importance of Encoding

The research highlights that the choice of "digitization" for discrete variables (one-hot vs. less-than encoding) fundamentally dictates which probabilistic queries are easy to answer. The "Less-Than Encoding" makes cumulative reasoning "free" without sacrificing the ability to perform standard point-wise inference.

Structural Efficiency

The findings reinforce the importance of smoothness and decomposability in PC design. These properties allow complex calculus—specifically integrals and derivatives—to be "pushed down" to the simplest components of the model, maintaining global tractability.

Conclusion and Future Work

The authors successfully prove that PMF-based PCs and CDF-based PCs are equally succinct for binary and finite discrete variables. For continuous variables, the transformation is linear and maintains the exact circuit structure. While this establishes a robust foundation for CDF-PCs, several avenues for future research remain. These include extending the proofs to infinite discrete domains (e.g., Poisson distributions), developing unified frameworks for mixed discrete-continuous distributions, and exploring even more compact binary encodings to further optimize circuit size.

By establishing this equivalence, the paper ensures that the benefits of tractable inference can be fully extended to the wide array of statistical applications that rely on cumulative distribution logic.

Summary updated

BibTeX
@inproceedings{broadrick2024probabilistic,
  author = {Oliver Broadrick and William X. Cao and Benjie Wang and Martin Trapp and Guy Van den Broeck},
  title = {{Probabilistic Circuits for Cumulative Distribution Functions}},
  booktitle = {TPM @ UAI},
  year = {2024},
  url = {https://openreview.net/forum?id=0DJvXLv9Zf},
}
Figure