TL;DR
Probabilistic circuits (PCs) are celebrated for making exact probabilistic inference fast and tractable, yet we have surprisingly few guarantees on how much data it actually takes to learn them. This paper bridges that gap, proving for the first time that the number of data samples needed to accurately learn a PC’s parameters scales linearly with the size of the circuit. Even better, the authors show that even complex, non-deterministic circuits are statistically learnable with a polynomial amount of data.
What Problem Does This Paper Address?
In machine learning, there is usually a bitter trade-off between how expressive a generative model is and whether you can compute exact probabilities with it. Probabilistic circuits (PCs)—a unifying framework encompassing sum-product networks, arithmetic circuits, and bounded-treewidth graphical models—manage to strike a balance. By organizing sum nodes (mixtures) and product nodes (factorizations) into a computation graph with specific structural rules, PCs guarantee exact inference in time proportional to the circuit's size.
Historically, theorists have focused on expressive efficiency: how big does a circuit need to be to represent a given distribution? What has remained largely unexplored is sample complexity: in practice, when learning from data, how many samples do we need to guarantee our learned circuit is close to the true underlying distribution? Using the lens of Probably Approximately Correct (PAC) learning theory, the authors ask how sample requirements scale with the number of parameters ($S$) in Boolean PCs.
Methods
The authors tackle this problem across three progressively harder regimes, measuring statistical closeness via Hellinger distance, reverse Kullback-Leibler (KL) divergence, and total variation distance:
- Universal Lower Bounds: Using Assouad’s Lemma—a classic information-theoretic tool—they construct a family of subtly perturbed PCs around a uniform distribution. Essentially, they map parameter estimation to the known statistical hardness of figuring out the bias of a slightly weighted coin.
- Deterministic Upper Bounds: A PC is deterministic if any given data sample activates only a single path of non-zero probabilities through the circuit, allowing closed-form Maximum Likelihood Estimation (MLE) via simple counting. However, because different samples get routed to different sum nodes, node sample counts are dependent random variables. To handle this, the authors apply the law of iterated expectation topologically down the graph to bound the reverse KL divergence.
- Non-Deterministic Tournament: Dropping determinism means losing closed-form MLE and single-path routing. The authors treat non-deterministic sum nodes as latent variables, enumerate all $S^M$ possible latent completions for $M$ samples, and run a pairwise "Scheffé tournament" (using Hellinger hypothesis tests) to crown the circuit closest to the true distribution.
- Structure-Agnostic Bound: Moving to the realistic setting where the true data isn't generated by a known PC graph, they use the dataset's empirical distribution and a "half-norm" concentration inequality as a stepping stone to compute a practical error bound.
Datasets
While the paper is primarily theoretical, the authors test their computable, structure-agnostic bound (Theorem 7) on standard discrete density estimation benchmark datasets (referenced from Lowd & Davis 2010; Bekker et al. 2015; Van Haaren & Davis 2012; Larochelle & Murray 2011) using Hidden Chow-Liu Tree (HCLT) circuits in PyJuice. No new datasets are introduced, and specific dataset names and numerical tables are housed in the Appendix rather than the main text.
Key Insights and Ideas
- Expressive gains don't require an exponential data tax: Non-deterministic PCs are known to be exponentially more compact (expressively efficient) than deterministic ones. A major "aha" moment here is that despite this extra power, they only require a polynomially larger number of samples to learn—meaning decomposable PCs over any graph are PAC learnable.
- Routing dependencies cancel out nicely: In deterministic PCs, deep nodes might starve for data if few samples are routed their way. Yet, when evaluating global circuit error, the local divergence at a node is weighted by the exact probability of reaching that node. This allows the authors to bypass naive per-node bounds and prove tight, linear scaling with total circuit size $S$.
- Universal reach: Because their lower bound makes no assumptions about what the learning algorithm outputs, it automatically applies to any model family that subsumes deterministic PCs (including InceptionPCs, arithmetic circuits, and sum-of-squares circuits).
Key Results
Let $S$ be the number of circuit parameters, $\epsilon$ be the target statistical error, and $1-\delta$ be the target confidence probability:
- Lower Bound: Any learning algorithm requires $\Omega\left(\frac{S + \log(1/\delta)}{\epsilon^2}\right)$ samples for Hellinger distance, and $\Omega\left(\frac{S + \log(1/\delta)}{\epsilon}\right)$ for reverse KL divergence and total variation distance.
- Tight Deterministic Upper Bound: Closed-form MLE on known, deterministic, decomposable structures matches the lower bounds, achieving tight complexity of $\Theta\left(\frac{S + \log(1/\delta)}{\epsilon}\right)$ for reverse KL and $\Theta\left(\frac{S + \log(1/\delta)}{\epsilon^2}\right)$ for Hellinger distance. Both data and compute scale polynomially, making them efficiently PAC learnable.
- Non-Deterministic Upper Bound: Decomposable PCs without determinism can be learned within $\epsilon$ Hellinger or total variation distance using $O\left(\frac{S\log(S) + S\log(1/\delta)}{\epsilon^4} + \frac{\log(1/\delta)}{\epsilon^2}\right)$ samples.
- Agnostic Bound: Their empirical total variation upper bound computes in $O(|\mathcal{D}||\hat{P}|)$ time (dataset size times PC size) and yields non-trivial guarantees on modest-sized benchmarks.
Limitations and Future Work
- Computational vs. Statistical Efficiency: While the tournament approach proves non-deterministic PCs are PAC learnable in terms of data, enumerating $S^M$ candidates takes exponential time. Finding an algorithm that is both sample- and time-efficient remains an open problem, as does closing the $\epsilon^2$ vs. $\epsilon^4$ gap between the lower and upper bounds.
- Missing Reverse KL Tournament: Because the current literature lacks a tournament selection test for reverse KL divergence, the non-deterministic upper bounds only cover Hellinger and total variation distances.
- Structure Learning & Continuous Data: Establishing formal sample complexity bounds when the PC structure itself is unknown (structure learning) and extending these DAG-structured guarantees from Boolean variables to continuous variables remain high-impact avenues for future work.
Summary updated