TL;DR
Probabilistic circuits (PCs) typically compute probability mass or density functions (PMF/PDF), but cumulative distribution functions (CDFs) provide unique theoretical guarantees and practical perks like inverse transform sampling. This paper proves that PCs computing CDFs are computationally equivalent to standard PMF/PDF circuits across binary, finite discrete, and continuous domains. Crucially, the authors discover that for binary variables, a CDF polynomial is mathematically identical to a probability generating function (PGF), enabling efficient polynomial-time translations between representations.
What Problem Does This Paper Address?
Probabilistic circuits (PCs) are directed acyclic computation graphs that represent probability distributions while guaranteeing tractable exact inference (e.g., computing marginals or partition functions in polynomial or linear time). Almost universally, PCs are built to evaluate PMFs (for discrete distributions) or PDFs (for continuous distributions).
However, CDFs offer major advantages:
- A CDF exists for any real-valued multivariate distribution, including singular or mixed distributions where densities or mass functions fail to exist.
- The CDF acts as a probability integral transform (transforming random variables into uniform distributions), which is widely used in copulas, density estimation, and inverse transform sampling.
Despite these benefits, CDF semantics have remained largely unstudied in the PC literature. The authors investigate: What happens if a tractable probabilistic circuit computes a CDF instead of a PMF or PDF? Are CDF circuits equally expressive, succinct, and tractable?
Methods
The authors analyze the CDF semantics across three domains:
- Binary Variables: The authors examine multilinear polynomials over $x \in \{0, 1\}^n$. They establish that the CDF multilinear polynomial $c(x)$ and the probability generating function (PGF) $g(x)$ are identical. Leveraging this equivalence, they show how circuits computing PMFs can be converted to CDFs (and vice-versa) in $O(ns)$ time via polynomial interpolation/homogenization. They also provide an intuitive proof for inverting CDFs back to PMFs using an efficient evaluation of the generalized principle of inclusion-exclusion on a "network form" of the circuit.
- Finite Discrete Variables: Standard PC practice maps $k$-ary variables to binary indicators using one-hot encodings. However, one-hot encodings do not preserve the partial ordering ($\le$) needed for CDF evaluation (e.g., $2 \le 3$, but $(0, 1, 0) \not\le (0, 0, 1)$). The authors introduce the Less-Than Encoding ($LT_k(x) = [\mathbf{1}_x; \mathbf{0}_{k-x}]$), which preserves the elementwise $\le$ relation, seamlessly reducing the finite discrete case to the binary case.
- Continuous Variables: For continuous random variables, the paper leverages standard structural PC properties:
- Smoothness: Children of a sum node share the exact same variable scope.
- Decomposability: Children of a product node have disjoint variable scopes.
Datasets
Not discussed in the paper (this is a purely theoretical paper; no empirical datasets or benchmarks were evaluated).
Key Insights and Ideas
- Binary CDFs Are PGFs: For binary random variables, the CDF polynomial is algebraically equivalent to the Probability Generating Function ($c(x) \equiv g(x)$). Because recent work established polynomial-time translations between PGF circuits and PMF circuits, binary CDF and PMF circuits are immediately shown to be equally succinct models.
- Inclusion-Exclusion in a Single Pass: Translating a CDF back into a PMF naively requires inverting an exponential number of terms via inclusion-exclusion ($\sum_{T \subseteq S} (-1)^{|S|-|T|} c(T)$). The authors show that by converting the circuit to its "network form" $\bar{c}(x, \bar{x})$, this exponential sum can be evaluated in a single forward pass by setting leaf inputs to $\{1, -1, 0\}$.
- Order-Preserving Binary Encoding: By replacing standard one-hot encodings with unary threshold vectors (the Less-Than Encoding), discrete ordinal variables inherit all binary CDF tractability results without losing structural relationships.
- Continuous Transformations at the Leaves: Because integration and differentiation commute with sums (by linearity) and products (by scope decomposability), converting a continuous PC between a PDF and a CDF does not change the circuit wiring at all—it only requires replacing leaf distributions $l(x)$ with their integrals $\int_{-\infty}^x l(t)dt$ or derivatives $\frac{d}{dx} l(x)$.
Key Results
- Binary Equivalence: A circuit of size $s$ over $n$ binary variables computing a PMF can be transformed into a circuit computing a CDF (and vice-versa) in $O(ns)$ time, improving prior PGF-PMF conversion bounds by a factor of $n$.
- Continuous Circuit Invariance:
- A smooth, decomposable circuit of size $s$ computing a continuous PDF can be transformed into a CDF circuit of identical size $s$.
- A decomposable circuit of size $s$ computing a continuous CDF can be converted into a PDF circuit of identical size $s$ (smoothness is not strictly required for differentiation).
Limitations and Future Work
- Infinite Discrete Domains: The results currently address finite discrete domains; extending these transformations to count variables over unbounded integer domains (e.g., Poisson or geometric distributions) remains open.
- Encoding Efficiency: The Less-Than Encoding expands a variable of domain size $k$ into $k$ binary variables. More compact binary encodings (e.g., logarithmic bit-blasting) that still preserve the partial order needed for CDF semantics have yet to be investigated.
- Mixed Continuous-Discrete Distributions: The authors leave the synthesis of mixed distributions for future investigation.
Summary updated