WorksComputer Science
Statistical Guarantees for Probabilistic Circuit Parameter Learning
Abstract
Probabilistic circuits (PCs) are a powerful class of models that balance both expressivity and tractable inference. The expressive efficiency of PC classes has been studied extensively in the exact case and, although to a lesser degree, the approximate case. However, these results are mainly concerned with the theoretical ability of circuits to compactly represent functions. Statistical guarantees, such as sample complexity, for learning PCs has remained largely unexplored. In this paper, we first prove a lower bound, linear in the size of the PC, on the number of samples needed for any learning algorithm to guarantee bounded statistical distance (Hellinger, reverse Kullback-Leibler, or total variation) with high probability. Next, for learning the parameters of deterministic and decomposable PCs under known structure, we also show a matching upper bound on the number of samples in the case of the Hellinger distance and reverse KL divergence. Dropping determinism, we use a tournament-based approach to provide an upper bound, proving that decomposable PCs are PAC learnable. Lastly, removing the known-structure assumption, we provide an instance-specific statistical upper bound on the total variation distance using the empirical estimator.
Introduction
As generative models capable of compactly representing probability distributions, probabilistic circuits (PCs) serve as a unifying framework to study many families of tractable probabilistic models, as PCs imposing different structural constraints. Enforcing structural properties on PCs guarantees exact and efficient inference: precisely, polynomial (often linear) time with respect to the size of the circuit. Thus, understanding the expressive efficiency of PCs—the size needed to represent a target function—is essential. The expressive efficiency of PCs classes has been studied extensively in the case of exact representation, as well as, to a lesser degree, the approximate case ([17, 6, 12, 25, 30]). Nevertheless, these works do not address the more common setting for PCs nowadays in practice: learning from data. That is, how does the number of samples needed to learn a PC relate to their size?
We turn to probably approximately correct (PAC) learning theory to answer this question. PAC learning algorithms are analyzed with two central concerns: (1) time complexity and (2) sample complexity (Servedio [34]). Sample complexity characterizes the number of samples a learning algorithm requires to guarantee that the function it returns approximates the true function within a small error with high probability. Note that sample complexity alone does not consider the runtime of a given algorithm. A class is considered to be efficiently PAC learnable if there exists a learning algorithm that is polynomial in both time and sample complexity. Many existing works have studied sample complexity and PAC density estimation for probabilistic models such as Bayesian Networks (Darwiche (1997); Friedman and Yakhini [22]) and Gaussian mixture models (Ashtiani et al. [3]); however, the only work on sample complexity for PCs, to the best of our knowledge, is an upper bound for tree-shaped sum-product networks (Aden-Ali and Ashtiani [1]).
We present novel PAC-style bounds for more general classes of PCs over Boolean variables. First, we prove a lower bound on the sample complexity for any learning algorithm when the true distribution is a PC of size (Theorem 1, Section 3). This result applies to any family of models that subsumes, or compactly represents deterministic PCs with a known structure, such as sum-product networks (Poon and Domingos [32]), arithmetic circuits (Darwiche [17]), etc. Next, we show that the parameters of deterministic and decomposable PCs are efficiently PAC learnable by introducing an efficient parameter learning algorithm for PCs with a matching sample complexity upper bound, achieving a tight upper and lower bound of on the sample complexity for the KL divergence, and for the Hellinger distance, under the realizability assumption that the true distribution is a PC with known structure (Theorem 2, Section 4). Our arguments also provide looser lower and upper bounds of and , respectively, for the total variation distance. To better complete our understanding of PC parameter learning, we use a tournament-based approach to provide a sample complexity upper bound of for learning decomposable PC parameters for the Hellinger and total variation distance (Theorem 5, Section 4). This bound proves that decomposable PCs are PAC learnable in the case of the Hellinger distance and total variation distance, though the algorithm is inherently inefficient. While the realizable setting allows us to prove tight bounds, the assumption does not generally hold when learning PCs from data. Thus, we also provide a high-probability upper bound on the total variation distance between the true data distribution and a learned circuit by using the empirical distribution as an intermediary (Theorem 7, § 4).
Preliminaries
Sample Complexity
For a given distance measure , we wish to characterize the number of samples from a distribution that is necessary and sufficient to learn within distance with error probability : i.e., to ensure . There are two common settings considered in PAC learning: realizable and agnostic. In the realizable case, we assume that the true distribution and the distribution output by our learning algorithm are members of the same class . In the agnostic case, it is not necessary that , and the objective becomes ; see that the error also depends structurally on the choice of hypothesis class . Informally, upper bounds on the sample complexity state that there exists an algorithm that, given at least samples from , outputs such that ; on the other hand, a lower bound states that any algorithm must have at least samples for the same guarantee. For the distance measure , we consider the total variation distance, reverse Kullback-Leibler (KL) divergence, and Hellinger distance, defined between discrete distributions as follows, respectively:
We use the squared Hellinger for the majority of our proofs due to its simple formulation and tensorization, but the bounds trivially extend to the Hellinger distance. We also use the following relationships between these measures:
Lemma 1 (Divergence Inequalities (Canonne [8]).) The following hold: (1) ; (2) ; (3) .
Probabilistic Circuits
Probabilistic circuits (PCs) (Choi, Vergari, and Van den Broeck [12]) provide a unifying framework for many tractable probabilistic models, such as arithmetic circuits (Darwiche [16]), sum-product networks (Poon and Domingos [32]), cutset networks (Rahman, Kothalkar, and Gogate [33]), probabilistic sentential decision diagrams (Kisa et al. [23]), and bounded-treewidth graphical models (Elidan and Gould [21]; Chow and Liu [13]).
Definition 1 (Probabilistic circuits). A probabilistic circuit (PC) represents a joint probability distribution over random variables through a directed acyclic graph (DAG) parameterized by . The DAG is composed of 3 types of nodes: leaf, product, and sum nodes. Every leaf node in is an input function over a variable , also called its scope . Every internal node receives inputs from its children , and its scope is defined recursively as . Each node of a PC recursively defines a distribution as follows:
where is the parameter associated with the edge connecting nodes in , and . The distribution represented by the circuit is the output at its root node. In this paper, we assume that is a Boolean indicator function: i.e., or , and the size of a PC (denoted ) refers to the number of parameters.
Probabilistic circuits guarantee tractable inference by composing sum and product gates under specific conditions such as smoothness, decomposability, and determinism (see Figure 1 for an example). As is common in the literature, we assume that PCs are smooth and decomposable, which enable tractable marginal and conditional inference as well as sampling.
Definition 2 (Smoothness and decomposability). A PC is smooth if the children of every sum node have identical scopes: . It is decomposable if the children of every product node have disjoint scopes: .
Definition 3 (Determinism). A PC is deterministic if for every sum node and any fully-instantiated input, the output of at most one of its children is nonzero; i.e., the supports of its children are mutually disjoint.
Learning the parameters of a deterministic PC with the closed-form MLE algorithm can be viewed intuitively as learning many categorical distributions using the empirical (counting) estimator, where each categorical variable corresponds to a sum node in the circuit with as many categories as there are children. This can be formalized using the notion

Figure 1. A smooth, decomposable, and deterministic PC (weights shown only at the root for brevity).
Definition 4 (Context). The context of every node in a PC, is defined in a top-down manner: for the base case, the context of the root node is the support . For all other nodes , its context is the intersection of its support and the union of its parents’ context:
Given a sample , the value of the categorical variable corresponding to a sum node is given only if , with the specific value being the child index such that as well; this can be evaluated for all sum nodes by propagating the sample through the circuit. We denote the probability of reaching a node as .
Determinism provides further desirable properties. Namely, given a joint assignment , a deterministic PC induces exactly one tree-shaped sub-circuit through which is evaluated [10]. Then, computing the probability of for a deterministic PC amounts to simply multiplying the parameters associated with the induced sub-tree for . Formally, we denote this tree , and thus for a deterministic circuit we write
This is especially of use when we define both circuits to have the same underlying graph, as a sample must follow identical paths through the circuit as the underlying structure and leaves are the same.
Lower Bounds for Learning PCs
This section investigates the following question: how many samples are necessary to ensure that we can learn a PC within a bounded distance to the true distribution with high probability? While this is a natural question in learning theory, this has not been answered explicitly for any hypothesis class of PCs. In particular, we consider the classes of deterministic PCs of fixed structure and prove that the required sample complexity is polynomial in circuit size , accuracy parameter , and confidence parameter .
Theorem 1 (Lower Bound). Let be a family of distributions represented by PCs with parameters. For , , any learning algorithm that takes in samples from and outputs such that with probability requires
with requires
and with requires,
even if is in , a family of deterministic PCs of a fixed structure with parameters, and is known to .
Notably, this result does not restrict the output of learner , and applies to any PC class that subsumes deterministic PCs of any fixed structure(s).
We first give a high-level proof sketch here before presenting the formal proof. The proof relies on standard lower-bound techniques for discrete distributions: Assouad’s Lemma and the hardness of estimating the bias of a coin with high probability. Assouad’s Lemma provides a guiding principle to constructing a family of distributions which requires many samples to learn. These distributions are constructed by making many different “choices”, by perturbing an initial distribution slightly with each choice; for instance, we will construct such family of PCs by perturbing the parameters, by a carefully chosen amount, around the uniform distribution (Proposition 1). This family will include a large set of distributions that are difficult to tell apart by any learning algorithm without using many samples. Moreover, suppose we have two distributions in this family that differ by only one perturbation; this perturbation can be mapped to the task of biasing a fair coin. As such, if an algorithm can learn the constructed family of distributions with high probability, then it also learns the bias of a coin with high probability, thereby inheriting its sample complexity.
Lemma 2 (Assouad’s Lemma [4, 8]). Let be a family of probability distributions and be the set of learning algorithms that take samples and output a distribution . Suppose there exists a family of of distributions and constants such that :
The distance between is at least proportional to the Hamming distance : ;
If , then .
Then, for all ,
Proof sketch. The original statement (seen in Tsybakov 2008 ) is proven by observing that the average is smaller than the maximum and using Le Cam’s method [39]. Lemma 2 differs from [8] as we are using the squared Hellinger distance as our loss function. Thus, there is an additional factor of to account for the fact that the squared Hellinger only satisfies the weak triangle inequality. For a detailed explanation connecting the version found in [36] to Lemma 2, see the Appendix. □
Informally, Assouad’s Lemma interprets the distributions in the constructed family as being determined by distinct choices (or bit flips), and states that any learning algorithm must learn many choices when the Hamming distance is large and simultaneously cannot easily distinguish two distributions if [8]. Next, we describe our constructed family of PCs that satisfies the conditions in Assouad’s Lemma.
Proposition 1 (PC Family Construction). There exists a family of distributions in for a deterministic PC structure of size , such that if ,
Proof sketch. W.l.o.g. suppose every sum node has an even number of children, and assign an index in to each pair of edges of the same sum node. Then, define for each such that where
Using the conditions on gives the desired result.
Intuitively, using Assouad’s Lemma on a smaller subset of larger family proves lower bounds on the larger family for two reasons: (1) Assouad’s Lemma holds for any learning algorithm, and (2) sample complexity considers all possible distributions, thus a lower bound on the worst subset is also a lower bound on the sample complexity of the larger family. We next obtain our lower bound from Assouad’s Lemma with this construction and using the hardness of learning the bias of a coin with high probability.
Proof of Theorem 1. We first apply Lemma 2 using the family of distributions constructed in Proposition 1 to obtain:
To make , set , then
which implies that
Thus we must set
to guarantee
Using Bernoulli,
Therefore,
Next we convert this expectation into a fixed probability statement. From our construction,
The reverse Markov inequality gives us:
By the weak triangle inequality, , which implies finally that if then
This yields the term.
See that the above only applies to the fixed probability regime. To move to any , see that using our construction any learning algorithm must both be able to learn the above distribution and be able to learn the bias of a coin (flip two edges for one sum node in our construction). Learning the bias of a coin is a well studied task, and is known to require at least
samples to learn within probability .1 Combining the two complexity results and taking the Hellinger distance as the distance measure, since , we have that ensuring with probability requires:
Similarly, using , ensuring with probability requires:
and finally since , ensuring with probability requires:
Notice in the proof above that we must scale with . Of course, for some structures such as shallow mixtures (i.e. single sum node) this is equivalent to requiring ; thus there exist structures where this statement is trivial. However, there may also exist structures where without setting to be quite small, nodes deep in the circuit do not contribute enough to the sample complexity bound. This motivates further study into pruning circuit nodes, as discussed by Dang, Liu, and Van den Broeck [15]. In short, we have shown that a learning algorithm for any family of models that subsumes, or can compactly represent, deterministic PCs of fixed structure requires at least proportionally as many samples as the circuit size. For instance, this lower bound immediately applies to learning sum-product networks [32], arithmetic circuits [17], sum-of-squares circuits [28], InceptionPCs [38], probabilistic generating circuits [40], and more.
Tight Sample Complexity Bounds
We next show that this necessary number of samples is sufficient to learn the parameters of a given deterministic PC structure to guarantee KL divergence and Hellinger distance less than with probability . This proves that the parameters of deterministic and decomposable PCs are efficiently PAC learnable. We also prove a polynomial upper bound on the sample complexity of learning non-deterministic circuits; hence proving that their parameters are also PAC learnable, although not using an efficient (polytime) algorithm.
Deterministic PCs
Theorem 2 (Upper Bound). Let be a family of distributions represented by deterministic PCs of a fixed structure of size . For and , the closed-form estimator given samples from outputs such that with probability if:
and and with probability if:
With our intuition for learning a deterministic PCs parameters with the closed form MLE, it is tempting to assume that the sample complexity can be derived trivially by upper bounding the sample complexity of learning a discrete distribution for each sum node. However, unlike learning discrete distributions where every sample corresponds to some category, in deterministic PCs not every sample is routed through every sum node, and a given sample can be completely irrelevant to many sum nodes. That is, from the total number of samples used to learn the parameters of a PC, only a fraction would be relevant for learning the parameters of each sum node , directly related to the magnitude of . Therefore, we must move past this naive approach.
The proof of Theorem 2 proceeds as follows: First, we prove a concentration inequality for the reverse KL divergence between deterministic PCs, using the fact the parameters of each sum node are learned using the empirical estimator. Then, we follow the argument from Canonne [7] in conjunction with our concentration inequality to yield the desired result. We highlight again that we use the reverse KL divergence, which is necessary as enforcing a learning guarantee less than with the standard KL divergence requires learning arbitrarily small probabilities without approximating by zero [7]. The reverse KL divergence between deterministic PCs has the following property,
Lemma 3 (Deterministic reverse KLD Decomposition). Let and be two distributions over variables represented by deterministic PCs with the same structure. Then:
where is the probability of reaching sum node under the learned circuit, and is the reverse KL divergence of the categoricals associated with node .
Proof sketch. For the full proof see the Appendix. First, use the fact that as and are deterministic and thus evaluating a given creates a tree through the circuit. This allows us to turn into . Using indicator functions we can change this to be sums over the nodes and children. Using this in the definition of the reverse KL divergence yields the result. □
This result essentially follows from the fact that circuits with the same structure and leaves only differ in parameterization. Determinism simply ensures these differences can be taken locally at each sum node and combined by weighting with the probability of reaching a given sum node.
Theorem 3. For a deterministic PC and learned with MLE with the same underlying structure and parameters, and for all ,
Which relies on the following result from Agrawal [2],
Theorem 4 [2]. For a categorical distribution over categories and the empirical estimator with samples, it holds that for all ,
Given that we are using the closed form MLE, which is equivalent to the empirical estimator described by Agrawal [2], if each sum node receives samples we can transfer the upper bound from . However, in PCs, the number of samples to reach node is determined by a random variable, . Notice that the number of samples to reach node also depends on the sum of the number of samples to reach the parents of (at the root this is ), thus there exists a dependence between sum nodes. To circumvent this, we use the law of iterated expectation topologically down the circuit, and upper bound each sum node as we traverse downwards on the circuit using Theorem 4.
Proof of Theorem 3. Let be the set of all random variables . Using Lemma 3,
Now, we order all sum nodes topologically from parents to children, and define to record the routing of samples preceding node . Thus for every node we know and the choices among the children of are independent. See first that upon fixing the closed-form MLE yields . At each sum node then we use Theorem 4 conditionally to get
Now, using the law of iterated expectation topologically,
Iterating over all nodes we get:
Using a Chernoff bound, for we have
Choose , then for all ,
Proof of Theorem 2. Let and be over where and have the exact same underlying graph. Then, using the change of exponent rules, we rewrite Theorem 3 as
If then . Thus, when ,
Finally, setting we get that implies that . Thus, combining these two terms results in a guarantee learning of with probability using at least samples. The extension to the KL divergence and squared Hellinger distance follows from Lemma 1, which results a learning guarantee for and with probability using at least samples.
Non-deterministic PCs
We have shown a tight upper and lower bound on the number of samples needed for deterministic PCs of known structure. However, our lower bound holds for non-deterministic PCs as well. This leaves a clear question: what is the sample complexity of learning the parameters of non-deterministic PCs? Without determinism, we no longer have (1) closed-MLE nor (2) exactly one path through the circuit for any given sample, preventing us from naively applying our previous results; however, using the notion of a tournament,2 we can provide an upper bound for learning non-deterministic PCs.
Theorem 5 (Sample Complexity of Learning Non-deterministic PCs). Let be a family of distributions represented by non-deterministic PCs of a fixed structure of size . For and , there exists a learning algorithm such that given samples from there exists such that (or ) with probability if
We first provide a sketch of our proof approach. Using by the latent variable interpretation [31] every non-deterministic sum node has a latent variable whose values are associated with each of its children. Then by making these latent variables explicit, which we call a “latent-completion”, we can instantiate a deterministic and decomposable PC whose marginal probability distribution matches that given by the corresponding decomposable PC . Now, take samples from the true distribution . If we enumerate all possible latent variable assignments for each sample to form the set of all possible completions , this set must include a dataset of samples from the true . As such, for sample complexity of learning a circuit with the dataset from the true distribution, we can use the argument for deterministic PCs from Theorem 2. However, we do not know exactly which latent-completion dataset matches the true distribution. To overcome this, we use a tournament which is a common technique in learning theory when there exist many possible candidate distributions (Canonne et al. 2020; Daskalakis, Diakonikolas, and Servedio 2012). If there are at most candidate circuits, we run a pairwise tournament between all candidates, which requires hypothesis tests; by choosing the candidate that wins the most rounds and taking a union bound, we are guaranteed to return a circuit whose distribution is from the true distribution with high probability.
As our lower bound applies both the Hellinger distance and total variation distance, we use the tournament and test statistic described in [35] to yield an upper bound for both. Unfortunately, in the current literature there is no tournament selection approach for the reverse KL-divergence, thus we are unable to provide an upper bound for decomposable PCs learned with the reverse KL divergence currently. Given samples from an unknown distribution and two candidates , suppose
The test statistic for this hypothesis test is
where is the th sample and wins if , wins if , and the winner is picked randomly if . This procedure is referred to as the Hellinger Test; given at least samples for and a constant depending on the Hellinger test ensures the selection of under and under with probability at least [35].
Using the Hellinger Test, choosing the candidate that wins the most matches guarantees the chosen distribution to be closest to the true distribution within a constant factor.
Lemma 4. Let be the true distribution and a set of candidate distributions. Suppose that . Run the Hellinger test between every pairwise set of candidates in using samples, and let be the distribution that wins the most rounds of the Hellinger test. Then,
Proof. Suppose wins the most rounds and there exists such that . Suppose for contradiction that . Define the set ; then for all , and for all , . By the triangle inequality then, for , and for , . Thus, as is a constant, a union bound ensures all comparisons are correct with probability with at least samples.
As we have confirmed our comparisons are correct, with probability , is a subset of all losses for . Following this contains the set of all wins for , and thus the number of wins for is at most . But, , thus for every candidate wins. As such the number of wins for is at least which is greater than the number of wins for . Therefore, cannot have the most wins which is a contradiction.
Thus, our selection criteria will yield a candidate with high probability that is within at most a constant factor of any other. We next determine the number of possible latent completions.
Lemma 5 (Candidate Count). Given independent samples from , there are at most possible datasets from where the true distribution is a PC with parameters.
Proof. Suppose we receive independent samples from , that that each sum node has children, and a sample can be routed down each child. Knowing this, there are at most possibilities for any given sum node. Taking this across all sum nodes results in possible latent completions .
While method of counting possible latent-completions likely leads to over-counting this is acceptable as we are considering an upper bound. Finally, we have the ingredients needed, and prove Theorem 5.
Proof of Theorem 5. Let be the true distribution represented by a decomposable PC and be a PC of the exact same structure with parameters. From Peharz et al. 2016 the introduction of latent variables allows us to represent as , which is a deterministic augmentation over . Let and draw a set of samples from , called , where
Now, if we are given both the samples and the true latent completions from then learning over with the empirical estimator yields by Theorem 2. The monotonicity of then proves . But we do not know exactly which dataset has the correct choice of . Thus, we must enumerate all possible latent variable instantiations for a given dataset, call this larger set . See that such that , and thus one of these datasets allows us to construct from the above.
Using Lemma 5, we know that and let . Conditionally on the number of samples already taken , we run the Hellinger tournament on . From above we know that contains a candidate within of , and by Lemma 4 using a union bound over all tests in the tournament returns some satisfying with probability given samples. Substituting in our original number of samples gives us the desired result of
The total variation distance follows from the same argument up to constant factors as .
This proves that non-deterministic PCs are PAC learnable for the Hellinger and total variation distance, though not with an efficient algorithm due to the exponential enumeration required by the tournament. Interestingly, this shows that while non-deterministic PCs can be exponentially more efficient than deterministic PCs, they require only a polynomially greater number of samples.
Relaxing Structural Assumptions
The upper bounds discussed above are derived using the restrictive assumption that the true distribution can be represented as a PC with a known structure. However, in practice when learning PCs from data this assumptions is unlikely to be true. As a step towards establishing sample complexity in the agnostic setting, we provide a computable bound on the distance between a learned PC and an unknown distribution , accessible only through a set of samples from it.
Let be the empirical distribution induced by a dataset . We define the half-norm as follows:
Definition 5 (Half-Norm). where is the probability of the category.
Using the half-norm and the empirical distribution on a dataset , Cohen, Kontorovich, and Wolfer [14] proves an upper (and lower) bound which is optimal with high probability.
Theorem 6 (Cohen, Kontorovich, and Wolfer [14]). For all , and ,
holds with probability at least . Furthermore,
Using this result, we can easily provide a computable, high probability upper bound on the total variation distance between the true distribution and any learned PC.
Theorem 7. Let be the true distribution, be the empirical distribution, and be our learned PC. Then, with probability ,
This upper bound can be computed in time, where , are the sizes of the dataset and the PC respectively.
Proof. The result follows from a simple application of the triangle inequality and Theorem 6.
The time complexity follows from the fact that the empirical distribution can be constructed in time and the TVD between the empirical distribution and the PC can be computed in time using the simple computation between and below,
We empirically test our upper bound on the density estimation benchmark datasets [29, 5, 37, 24] with circuits learned via the HCLT structure in PyJuice (Liu, Ahmed, and Van den Broeck [27]). We compute bounds on both the train and test (see Table 1 and Table 2 in the Appendix) sets providing the error associated with each term. While our method may return trivial bounds, we observe that on several benchmark datasets of modest size we return non-trivial bounds. All learned PCs, datasets, and code is publicly available3.
| Dataset | Vars | |||||
| accidents | 111 | 12758 | 1612 | 1.032414 | 0.999995 | 2.032409 |
| ad | 1556 | 2461 | 21332 | 0.808336 | 0.882735 | 1.691071 |
| baudio | 100 | 15000 | 1748 | 1.028706 | 0.999650 | 2.028356 |
| bbc | 1058 | 1670 | 15332 | 1.060031 | 1.000000 | 2.060031 |
| bnetflix | 100 | 15000 | 1652 | 1.029894 | 1.000000 | 2.029894 |
| book | 500 | 8700 | 7172 | 1.021469 | 0.988659 | 2.010128 |
| c20ng | 910 | 11293 | 12052 | 1.031496 | 1.000000 | 2.031496 |
| connect4 | 126 | 16000 | 1780 | 1.029027 | 0.992987 | 2.022014 |
| cr52 | 889 | 6532 | 11612 | 1.027842 | 0.999978 | 2.027820 |
| cwebkb | 839 | 2803 | 11900 | 1.056962 | 1.000000 | 2.056962 |
| dna | 180 | 1600 | 3268 | 1.071262 | 1.000000 | 2.071262 |
| jester | 100 | 9000 | 1636 | 1.034563 | 0.999952 | 2.034515 |
| kdd | 64 | 180092 | 1108 | 0.065394 | 0.104025 | 0.169419 |
| kosarek | 190 | 33375 | 2580 | 0.425928 | 0.369643 | 0.795570 |
| moviereview | 1001 | 1600 | 15020 | 1.090692 | 1.000000 | 2.090692 |
| msnbc | 17 | 291326 | 236 | 0.090154 | 0.340814 | 0.430968 |
| mushrooms | 112 | 2000 | 1652 | 1.082100 | 0.996632 | 2.078732 |
| nips | 500 | 400 | 8212 | 1.183581 | 1.000000 | 2.183581 |
| nltcs | 16 | 16181 | 260 | 0.304177 | 0.237589 | 0.541767 |
| ocr_letters | 128 | 32152 | 2820 | 0.987693 | 0.999993 | 1.987686 |
| plants | 69 | 17412 | 1324 | 0.593797 | 0.854377 | 1.448173 |
| pumsb_star | 163 | 12262 | 2396 | 1.021908 | 0.999073 | 2.020980 |
| rcv1 | 150 | 40000 | 1972 | 0.959677 | 0.999621 | 1.959298 |
| tmovie | 500 | 4524 | 7876 | 0.960019 | 0.944952 | 1.904971 |
| tretail | 135 | 22041 | 1948 | 0.573789 | 0.492148 | 1.065937 |
| voting | 1359 | 1214 | 16572 | 0.854437 | 1.000000 | 1.854437 |
Table 1. Upper bounds for the train split with .
| Dataset | Vars | |||||
| accidents | 111 | 2551 | 1612 | 1.072695 | 0.999999 | 2.072694 |
| ad | 1556 | 491 | 21332 | 1.003393 | 0.888762 | 1.892155 |
| baudio | 100 | 3000 | 1748 | 1.066839 | 0.999937 | 2.066776 |
| bbc | 1058 | 330 | 15332 | 1.196791 | 1.000000 | 2.196791 |
| bnetflix | 100 | 3000 | 1652 | 1.067034 | 1.000000 | 2.067034 |
| book | 500 | 1739 | 7172 | 1.082414 | 0.996639 | 2.079053 |
| c20ng | 910 | 3764 | 12052 | 1.056903 | 1.000000 | 2.056903 |
| connect4 | 126 | 47557 | 1780 | 1.016836 | 0.979539 | 1.996376 |
| cr52 | 889 | 1540 | 11612 | 1.080821 | 0.999996 | 2.080817 |
| cwebkb | 839 | 838 | 11900 | 1.118674 | 1.000000 | 2.118674 |
| dna | 180 | 1186 | 3268 | 1.091390 | 1.000000 | 2.091390 |
| jester | 100 | 4116 | 1636 | 1.053856 | 0.999962 | 2.053818 |
| kdd | 64 | 34955 | 1108 | 0.098416 | 0.097484 | 0.195900 |
| kosarek | 190 | 6675 | 2580 | 0.536955 | 0.431198 | 0.968153 |
| moviereview | 1001 | 250 | 15020 | 1.232214 | 1.000000 | 2.232214 |
| msnbc | 17 | 58265 | 236 | 0.169269 | 0.355389 | 0.524658 |
| mushrooms | 112 | 5624 | 1652 | 1.048959 | 0.990377 | 2.039337 |
| nips | 500 | 1240 | 8212 | 1.103795 | 1.000000 | 2.103795 |
| nltcs | 16 | 3236 | 260 | 0.499338 | 0.331435 | 0.830773 |
| ocr_letters | 128 | 10000 | 2820 | 1.013833 | 0.999996 | 2.013829 |
| plants | 69 | 3482 | 1324 | 0.755341 | 0.881216 | 1.636557 |
| pumsb_star | 163 | 2452 | 2396 | 1.072236 | 0.999704 | 2.071941 |
| rcv1 | 150 | 150000 | 1972 | 0.912592 | 0.999368 | 1.911960 |
| tmovie | 500 | 591 | 7876 | 1.092290 | 0.960803 | 2.053093 |
| tretail | 135 | 4408 | 1948 | 0.710520 | 0.568160 | 1.278680 |
| voting | 1359 | 350 | 16572 | 0.968925 | 1.000000 | 1.968925 |
Table 2. Upper bounds for the test split with .
Conclusion
We have proved a lower bound on the sample complexity of learning PCs: for example, any learning algorithm requires samples to ensure a KL divergence within with probability at least , as well as similar results for Hellinger and total variation distance. This lower bound holds even for deterministic PCs with known structure, whose maximum-likelihood parameters can be estimated in closed form. Furthermore, we showed that the parameters of deterministic and decomposable PCs are efficiently PAC learnable with sample complexity upper bounds matching the aforementioned lower bounds. Using a tournament based approach, we are able to use this technique for non-deterministic PCs in the case of the Hellinger distance and total variation distance, proving an upper bound of for both distances. This proves that PCs of any graph are PAC learnable for discrete random variables.
There are still a number of future directions to explore. Notably, there remains a gap between the lower and upper bounds on the sample complexity of decomposable PC parameter learning, as well as efficient PAC learnability. Sample complexity upper and lower bounds for PCs of unknown structures is yet unknown to the best of our knowledge. Lastly, tight sample complexity bounds for PCs over continuous variables in the general case would be highly impactful, with a possible route via extending the results for tree-structured sum-product networks over Gaussian leaves (Aden-Ali and Ashtiani [1]) to DAG-structured PCs.
Derivation of Lemma 2 from Assouad’s Lemma
Here we provide a detailed derivation of how Lemma 2 can be derived from the statement of Assouad’s lemma seen in Tsybakov [36]. Furthermore, we show that Lemma 2 differs from that of Canonne [8] by a factor of 1/2 as the total variation distance satisfies the triangle inequality, while the squared Hellinger only satisfies the weak triangle inequality .
Lemma 6 (Assouad’s Lemma [36]). Let be the set of all binary sequences of length . Let be a set of probability measures, and let the corresponding expectations be denoted by . Then,
where is the Hamming distance between and , denotes the infimum over all estimators taking values in , and where denotes the infimum over all tests taking values in .
Tsybakov [36] makes the following observation in the continuous case: . Thus for the discrete case, this is equivalent to: . Using Le Cam’s inequalities, we have:
Note that Lemma 2 uses instead of and adds the following conditions:
For all , the distance between is at least proportional to the Hamming distance:
For all with , the squared Hellinger distance of is small: .
The squared Hellinger distance can be expressed as . As such, if condition 2 is satisfied then we have that . If we take this over samples, we then have . Next, using Condition 2,
Finally, by Condition 1, and the fact that the squared Hellinger satisfies the weak triangle inequality , we can say:
Since , this implies exactly the following statement of Lemma 2:
Proofs
Proof of Proposition 1
Let be a deterministic PC structure of size . W.l.o.g. suppose every sum node has an even number of children, and assign an index in to every pair of edges of the same sum node. We parameterize the PC to define for each , where for every sum node , the parameters for half of its edges will be perturbed as , and the parameters for their counterparts . We set and where is the maximum number of sum nodes in a tree shaped path. Recall that for a deterministic PC, evaluating on an instantiation is equivalent to taking the product of the parameters in the tree defined by , and here we use as the probability of reaching node under the uniform circuit.
Note that for every edge : if then where the sign is determined by whether it is a perturbed or dependent edge; if then . Then we have:
For given , we can parameterize the same PC structure using the following:
Next, we will normalize to define a valid probability distribution. To that end, we first compute the normalization constant for each as follows:
where to derive (3), and refers to the Hamming distance over only the indices corresponding to edges of . Then, for each sum node , we define a normalized distribution as follows:
Therefore, the squared Hellinger distance via (2) can be expressed as:
We lower- and upper-bound the above using the fact that we set and Weierstrass’ inequality, respectively, as our choice of ensures the necessary conditions to apply them— and :
As , we can improve this to the following:
Thus, we can bound the expectation in (4) from below using and similarly from above using .
Next, remember that and
Since , we have that
This allows us to say that:
Now, by our choice of , we know that , which implies and . Therefore,
Since is the maximum number of edges in a tree-shaped path through the circuit, we have that any root to node path contains at most factors, which yields,
Taking Bernoulli’s inequality gives us and thus
Furthermore, and since we can put this together to prove the constructed family meets the conditions of Lemma 2.
and
Proof of Lemma 3
Suppose that and are deterministic and decomposable PCs with the same structure over variables . Then for all :
Next, use the definition of the reverse KL divergence:
Our event in this case can be seen as two parts: (1) the probability of the context of the node, and (2) the probability of the context of the child. Thus,
Experimental Results
We compute our proposed bound for on the train and test sets of density estimation benchmark datasets. Table 1 and Table 2 show that we are able to achieve a number of non-trivial results, and the bound improving as the number of samples grows larger.
References
- [1]Aden-Ali, I.; and Ashtiani, H. 2020. On the sample complexity of learning sum-product networks. In International Conference on Artificial Intelligence and Statistics, 4508–4518. PMLR.
- [2]Agrawal, R. 2020. Finite-sample concentration of the multinomial relative entropy. IEEE Transactions on Information Theory, 66(10): 6297–6302.DOI
- [3]Ashtiani, H.; Ben-David, S.; Harvey, N. J.; Liaw, C.; Mehrabian, A.; and Plan, Y. 2020. Near-optimal sample complexity bounds for robust learning of gaussian mixtures via compression schemes. Journal of the ACM, 67(6): 1–42.DOI
- [4]Assouad, P. 1983. Deux remarques sur l’estimation. Comptes rendus des séances de l’Académie des sciences. Série 1, Mathématique, 296(23): 1021–1024.
- [5]Bekker, J.; Davis, J.; Choi, A.; Darwiche, A.; and Van den Broeck, G. 2015. Tractable learning for complex probability queries. Advances in Neural Information Processing Systems, 28.
- [6]Bova, S.; Capelli, F.; Mengel, S.; and Slivovsky, F. 2016. Knowledge Compilation Meets Communication Complexity. In IJCAI, volume 16, 1008–1014.
- [7]Canonne, C. L. 2020a. A short note on learning discrete distributions. arXiv preprint arXiv:2002.11457.arxiv.org/abs/2002.11457
- [8]Canonne, C. L. 2020b. A survey on distribution testing: Your data is big. But is it blue? Theory of Computing, 1–100.
- [10]Choi, A.; and Darwiche, A. 2017. On relaxing determinism in arithmetic circuits. In International Conference on Machine Learning, 825–833. PMLR.arxiv.org/abs/1708.06846
- [11]Choi, Y.; Dang, M.; and Van den Broeck, G. 2021. Group Fairness by Probabilistic Modeling with Latent Fair Decisions. In Proceedings of the 35th AAAI Conference on Artificial Intelligence.
- [12]Choi, Y.; Vergari, A.; and Van den Broeck, G. 2020. Probabilistic circuits: A unifying framework for tractable probabilistic models. UCLA. URL: http://starai. cs. ucla. edu/papers/ProbCirc20. pdf, 6.
- [13]Chow, C.; and Liu, C. 1968. Approximating discrete probability distributions with dependence trees. IEEE Transactions on Information Theory, 14(3): 462–467.DOI
- [14]Cohen, D.; Kontorovich, A.; and Wolfer, G. 2020. Learning discrete distributions with infinite support. Advances in Neural Information Processing Systems, 33: 3942–3951.arxiv.org/abs/2004.12680
- [15]Dang, M.; Liu, A.; and Van den Broeck, G. 2022. Sparse probabilistic circuits via pruning and growing. Advances in Neural Information Processing Systems, 35: 28374–28385.arxiv.org/abs/2211.12551
- [16]Darwiche, A. 2002. A logical approach to factoring belief networks. KR, 2: 409–420.
- [17]Darwiche, A. 2003. A differential approach to inference in Bayesian networks. J. ACM, 50(3): 280–305.arxiv.org/abs/1301.3847
- [18]Dasgupta, S. 1997. The sample complexity of learning fixed-structure Bayesian networks. Machine Learning, 29(2): 165–180.DOI
- [20]Devroye, L.; and Lugosi, G. 2001. Combinatorial methods in density estimation, volume 1. Springer.DOI
- [21]Elidan, G.; and Gould, S. 2008. Learning bounded treewidth Bayesian networks. Advances in neural information processing systems, 21.
- [22]Friedman, N.; and Yakhini, Z. 1996. On the sample complexity of learning Bayesian networks. In Proceedings of the Twelfth international conference on Uncertainty in artificial intelligence, 274–282.
- [23]Kisa, D.; Van den Broeck, G.; Choi, A.; and Darwiche, A. 2014. Probabilistic Sentential Decision Diagrams. In KR.
- [24]Larochelle, H.; and Murray, I. 2011. The neural autoregressive distribution estimator. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, 29–37. JMLR Workshop and Conference Proceedings.
- [25]Leland, J.; and Choi, Y. 2026. On the hardness of approximating distributions with tractable probabilistic models. Advances in Neural Information Processing Systems, 38: 42977–43000.arxiv.org/abs/2506.01281
- [26]Liang, Y.; Bekker, J.; and Van den Broeck, G. 2017. Learning the structure of probabilistic sentential decision diagrams. In Proceedings of the 33rd Conference on Uncertainty in Artificial Intelligence (UAI).
- [27]Liu, A.; Ahmed, K.; and Van den Broeck, G. 2024. Scaling Tractable Probabilistic Circuits: A Systems Perspective. In Proceedings of the 41th International Conference on Machine Learning (ICML).arxiv.org/abs/2406.00766
- [28]Loconte, L.; Mengel, S.; and Vergari, A. 2025. Sum of squares circuits. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, 19077–19085.
- [29]Lowd, D.; and Davis, J. 2010. Learning Markov network structure with decision trees. In 2010 IEEE International Conference on Data Mining, 334–343. IEEE.DOI
- [30]Martens, J.; and Medabalimi, V. 2014. On the expressive efficiency of sum product networks. arXiv:1411.7717.arxiv.org/abs/1411.7717
- [31]Peharz, R.; Gens, R.; Pernkopf, F.; and Domingos, P. 2016. On the latent variable interpretation in sum-product networks. IEEE transactions on pattern analysis and machine intelligence, 39(10): 2030–2044.arxiv.org/abs/1601.06180
- [32]Poon, H.; and Domingos, P. 2011. Sum-product networks: A new deep architecture. In 2011 IEEE International Conference on Computer Vision Workshops (ICCV Workshops), 689–690. IEEE.arxiv.org/abs/1202.3732
- [33]Rahman, T.; Kothalkar, P.; and Gogate, V. 2014. Cutset networks: A simple, tractable, and scalable approach for improving the accuracy of chow-liu trees. In Machine Learning and Knowledge Discovery in Databases: European Conference, ECML PKDD 2014, Nancy, France, September 15-19, 2014. Proceedings, Part II 14, 630–645. Springer.DOI
- [34]Servedio, R. A. 2025. The Probably Approximately Correct Learning Model in Computational Learning Theory. arXiv preprint arXiv:2511.08791.
- [35]Suresh, A. T. 2021. Robust hypothesis testing and distribution estimation in hellinger distance. In International Conference on Artificial Intelligence and Statistics, 2962–2970. PMLR.arxiv.org/abs/2011.01848
- [36]Tsybakov, A. B. 2008. Introduction to Nonparametric Estimation. Springer Publishing Company. ISBN 0387790519.
- [37]Van Haaren, J.; and Davis, J. 2012. Markov network structure learning: A randomized feature generation approach. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 26, 1148–1154.
- [38]Wang, B.; and Van den Broeck, G. 2025. On the relationship between monotone and squared probabilistic circuits. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, 21026–21034.arxiv.org/abs/2408.00876
- [39]Yu, B. 1997. Assouad, fano, and le cam. In Festschrift for Lucien Le Cam: research papers in probability and statistics, 423–435. Springer.DOI
- [40]Zhang, H.; Juba, B.; and Van den Broeck, G. 2021. Probabilistic generating circuits. In International Conference on Machine Learning, 12447–12457. PMLR.arxiv.org/abs/2102.09768