HyperSPNs: Compact and Expressive Probabilistic Circuits

Abstract
Probabilistic circuits (PCs) are a family of generative models which allows for the computation of exact likelihoods and marginals of its probability distributions. PCs are both expressive and tractable, and serve as popular choices for discrete density estimation tasks. However, large PCs are susceptible to overfitting, and only a few regularization strategies (e.g., dropout, weight-decay) have been explored. We propose HyperSPNs: a new paradigm of generating the mixture weights of large PCs using a small-scale neural network. Our framework can be viewed as a soft weight-sharing strategy, which combines the greater expressiveness of large models with the better generalization and memory-footprint properties of small models. We show the merits of our regularization strategy on two state-of-theart PC families introduced in recent literature – RAT-SPNs and EiNETs – and demonstrate generalization improvements in both models on a suite of density estimation benchmarks in both discrete and continuous domains.

1 Introduction
One of the core motivations for building models of probability distributions from data is to reason about the data distribution. For example, given a model of the distribution over driving routes, we may like to reason about the probability that a driver will take a certain route given that there is congestion on a certain street. Or, given a distribution over weather conditions, we may like to reason about the probability of it raining k times in the next year. Traditional probabilistic models such as Categorical/Gaussian Mixture Models or Hidden Markov Models (HMMs) are wellequipped to answer these types of queries with exact probabilities that are consistent with the model distribution [1]. However, their learned model distribution might not accurately approximate the data distribution due to their simplicity.
On the other end of the spectrum, the modern wave of deep generative models has largely focused on learning accurate approximations of the true data distribution, at the cost of tractability. High capacity models such as autoregressive or flow models can mimic the true data distribution with great fidelity [33, 13, 22]. However, they are not designed for reasoning about the probability distribution beyond computation of likelihoods. More illustrative of this trend are GANs and EBMs, which are expressive enough to sample high-quality images, but give up even the ability to compute exact likelihoods [9, 14].
To maintain the ability to reason about the distribution induced by our model, we need to explore within tractable probabilistic models. Of these model families, probabilistic circuits (e.g. Sum Product Networks) are one of the most expressive and general, subsuming shallow mixture models, and HMMs while maintaining their tractable properties [6, 26, 34]. Their expressive power comes from their hierarchical / deep architecture, allowing them to express a large number of modes in their distribution. Their tractability comes from global constraints imposed in their network structure, enabling efficient and exact computation of likelihoods, marginals, and more. Probabilistic circuits
35th Conference on Neural Information Processing Systems (NeurIPS 2021).
(PC) are a popular choice for density estimation [35, 18] and approximate inference in discrete settings [30].
Given the status of probabilistic circuits as one of the most expressive models among tractable probabilistic model families, recent works have looked into pushing the limits of expressivity of probabilistic circuits [15, 25, 24]. Naturally, the bigger and deeper the probabilistic circuit, the greater the expressiveness of the model. This has led to a trend of building large probabilistic circuits via design choices such as tensorizing model parameters, forgoing structure learning, and more. For example, [24] report the training of probabilistic circuits with 9.4M parameters.
However, larger probabilistic circuits are more susceptible to overfitting. In addition, the so-called double-descent phenomenon [19] (wherein highly overparameterized models exhibit low generalization gap) has yet to be observed in probabilistic circuits. This puts even more importance on effective regularization strategies for training large probabilistic circuits. Recent works have used dropout [25] and weight decay [37], but there has not been much exploration of other regularization strategies.
In this work, we propose HyperSPNs, which regularize by aggressively limiting the degrees of freedom of the model. Drawing inspiration from HyperNetworks [11], we generate the weights of the probabilistic circuit via a small-scale external neural network. More precisely, we partition the parameters (mixture weights) of the PC into several sectors. For each sector, we learn a lowdimensional embedding, then map that to the parameters of the sector using the neural network. The generated parameters still structurally form a PC, so we retain the same ability to reason about the probability distribution induced by the HyperSPN.
HyperSPNs combine the greater expressiveness of large probabilistic circuits with the better generalization of models with fewer degrees of freedom. The external neural network has much fewer parameters than the original PC, effectively regularizing the PC through a soft weight-sharing strategy. As a bonus, the memory requirement for storing the model is much smaller, and the memory requirement for evaluating the model can also be drastically reduced by materializing sectors of the PC “on the fly”. We verify the empirical performance of HyperSPNs on density estimation tasks for the Twenty Datasets benchmark [12], the Amazon Baby Registries benchmark [8], and the Street View House Numbers (SVHN) [20] dataset, showing generalization improvements over competing regularization strategies in all three settings. Our results suggest that HyperSPNs are a promising framework for training probabilistic circuits.

2 Background
Probabilistic circuits (PCs) are a family of generative models known for their tractability properties [6, 26, 34]. They support efficient and exact inference routines for computing likelihoods and marginals/conditionals of their probability distribution. The internals of a PC consist of a network (edge-weighted Directed Acyclic Graph) of sum and product nodes, stacked in a deep/hierarchical manner and evaluated from leaves to root. PCs gain their tractability by enforcing various structural constraints on their network, such as decomposability, which restricts children of the same product node to have disjoint scopes [5, 6]. Different combination of constraints leading to different types of PCs, including Arithmetic Circuits [6], and most notably Sum Product Networks (SPNs) [26].
The probability of an input x on the PC is defined to be the value groot(x) obtained at the root of the PC after evaluating the network topologically bottom-up. Internally, edges leading into a sum node are weighted with mixture probabilities α (that sum to 1), and edges leading into a product node are unweighted. Leaf nodes at the base of the network contain leaf distributions l. The nodes of the PC are evaluated as follows, with ch(i) denoting the children of node i:
gi(x) =    li(x) i is leaf node∑ j∈ch(i) αijgj(x) i is sum node∏ j∈ch(i) gj(x) i is product node
As long as the leaf distributions are tractable and the network structure satisfies the constraints of decomposability and smoothness, the output at groot is guaranteed to be normalized, and corresponding marginals/conditionals can be evaluated with linear-time exact inference algorithms [5, 6].
The network structure of a PC refers to the set of nodes and edge connections in the DAG, excluding the edge weights. There are various ways of constructing the network structure of PCs, e.g., through
X1 X1 X2 X2
× × ×
X3 X3 X4 X4
× × ×
× × ×
(a) We show the structure of a RAT-SPN over n = 4 variables using layer size k = 3. Solid edges are weighted with trainable parameters, and dashed edges are unweighted. Each fully connected layer of solid edges can be treated as a sector. (b) Counting the # of parameters, given the number of variables n and layer size k.
Figure 1: Given a RAT-SPN, we can partition its set of parameters into sectors. The trainable parameters (solid edges) in Figure 1a can be grouped into fully-connected layers of size 1× k, k × k, and k×2, oriented in a binary-tree structure. In Figure 1b, we visualize the sectors as blocks, counting the number of blocks in each layer of the binary tree to arrive at the total parameter count. The sector abstraction is a key ingredient in implementing the HyperSPN’s soft weight-sharing strategy.
the use of domain knowledge or through search-based methods [6, 17, 7, 28]. Recently, there has been a trend of abstracting away individual sum and product nodes, and instead dealing directly with layers that satisfy the structural constraints necessary for tractability [25, 24, 30]. Prescribing a network structure through a stacking of these layers leads to memory and hardware efficiencies that allow us to scale up the training of PCs to millions of edges.
Given a PC with a fixed network structure, we can learn its edge weights to best fit the probability distribution of data. We will refer to the full set of mixture probabilities leading into sum nodes in the PC as its parameters. These parameters can be learned using methods such as ExpectationMaximization (EM) [23], signomial program formulations [38], or simply via (projected) gradient descent. EM has been a well-studied choice for optimizing PCs [23, 24], although it requires handderived updates that can be tedious and sometimes even incorrect [26]. In this work, we rely on gradient descent, which is straightforward and works out-of-the-box on new families of models [37].
Learning a PC with a large number of parameters can be prone to overfitting. One regularization strategy that has been proposed is “probabilistic dropout” [25], which takes inspiration from the standard dropout technique in neural networks [31] and randomly ignores a subset of edges leading into sum nodes. Weight decay has also been commonly used as another form of regularization [37]. Unfortunately, there has been little exploration done around regularization strategies, and some current approaches only work in limited settings (e.g., dropout has been limited to settings that use PCs as a discriminative classifier [25]).

2.1 RAT-SPNs
Two particular PC structures have been recently proposed, namely RAT-SPNs [25] and EiNETs [24], both of which scale to millions of parameters. They are conceptually similar, the main difference being that EiNETs are designed for better GPU performance. To ground our discussion around regularizing large PCs, we will describe our methods just on RAT-SPNs, although we also apply our methods on EiNETs in later experiments too. In RAT-SPNs, the input variables are organized into a binary tree, with one leaf in the binary tree corresponding to each variable. We start from the base
of the SPN and construct its full structure by stacking sum layers and product layers. For each leaf node in the binary tree, we create one fully connected sum layer on top of the SPN leaves. For each internal node in the binary tree, we create one product layer that merges its two children layers in the SPN, and then stack one fully connected sum layer on top. We illustrate this construction in Figure 1. Finally, RAT-SPNs create so-called replicas of this structure, by repeating the construction but with permuted orderings of input variables in the binary tree leaves. The replicas are then combined under one top-level mixture distribution (for readability, Figure 1 does not show any replicas).
The size of each sum layer in the RAT-SPN is determined by a single constant k. For convenience, we also let the size of each product layer be k. This fully specifies the structure of our SPN. For the rest of the paper, it is helpful to abstractly group the parameters of the RAT-SPN into disjoint sectors. Corresponding to the root of the binary tree, we have a sector with 1×k parameters. Corresponding to each internal node in the binary tree, we have a sector with k × k parameters. Finally, corresponding to each leaf in the binary tree, we have a sector with k × l parameters, where l is the number of SPN leaf distributions per variable (we use l = 2 unless otherwise stated).
As shown in Figure 1, for n variables (where n is a power of 2) and r replicas, this corresponds to 2n − 1 sectors totaling O(rnk2) parameters. In particular, for each replica there are (n − 2)k2 + (2n+ 1)k parameters. For example, in a problem domain with 1000 variable, using layer size k = 10 and replica r = 10 leads to a RAT-SPN of around 1M parameters.
3 HyperSPNs
We propose HyperSPNs, an approach of regularizing probabilistic circuits with a large number of parameters by limiting the degrees of freedom of the model using an external neural network. We describe our method concretely on RAT-SPNs, which we will refer to as simply SPNs.
To regularize the SPN, we introduce a smaller-scale external neural network to generate the parameters of the SPN (see Figure 2). We associate each of the sectors of the SPN with a sector embedding. For each sector, we map the embedding to the parameters of the sector via the neural network. Then, we use these mapped parameters directly as the parameters of the SPN, re-normalize such that parameters leading into a sum node add up to 1, and evaluate the SPN as usual. We visualize the computation graph of this process in Figure 3. We materialize the SPN in the forward pass, and propagate
the gradients through the SPN in the backward pass. We optimize the neural network and embeddings jointly using gradient descent.
HyperSPNs can aggressively reduce the degrees of freedom of the original SPN. Using embeddings of size h, the number of learnable parameters is reduced to O((rn + k2)h). For the same above example with n = 1000, k = 10, r = 10, choosing embeddings of dimension h = 5 reduces the number of learnable parameters 20 fold, from around 1M down to around 50k parameters.
The lower degrees of freedom mitigates overfitting of the model. At the same time, the materialized SPN has a large number of mixture weights, and thus can express distribution families with a greater number of clusters compared to a small SPN with the same degrees of freedom. We visualize this with a motivating example in Figure 4, where we represent a dataset using a grid that is split recursively for each variable (we only draw the splits for the first 2 variables; the rest is implied). Intuitively, the number of parameters of the SPN is tied closely to the number of clusters in the distribution. As a result, training a large SPN can produce many clusters that overfit to the training points in blue (Figure 4a), and training a small SPN can lead to coarse factorizations and inflexible clusters (Figure 4b). Both cases can lead to poor generalization on the testing points in orange.
On the other hand, the HyperSPN uses a soft weight-sharing strategy by storing its parameters as low-dimensional embeddings and decoding them through a small-scale shared neural network. This allows the model to learn a high number of clusters without suffering from too high of a degree of freedom. In Figure 4c, we visualize the soft weight-sharing as fixing the shape of the cluster-triples within each quadrant, while still giving the model control over the center position of each cluster-triple. In this way, HyperSPNs can improve generalization compared to a large SPN with the same number of mixture weights and a small SPN with the same degrees of freedom. We verify this phenomenon on a hand-crafted dataset in the Appendix, and further observe similar improvements on real world datasets in our experiments.

3.1 Memory-Efficient Evaluation
Another merit of HyperSPNs is the ability for low-memory storage of the model, since we only need to store the embeddings and the neural network, which together have much fewer parameters than the SPN. Importantly, our abstraction of the SPN structure into sectors allows us to forgo storage of the nodes and edges in the SPN network. Moreover, not only can we be memory-efficient during storage , but we can also be memory-efficient during evaluation. To do so, we materialize sectors of the SPN on the fly, and erase them from memory when they become unnecessary.
The sectors of the SPN are structured as a binary tree, so to evaluate each sector we need all the input values leading into the sector. These input values correspond to the output values (each a vector of size k) of its children sectors. Evaluating the binary tree bottom-up depth-wise is possible, but is also costly since the leaf layer has n sectors leading to O(nk) cost for storing the output values of children sectors. Rather, we can proceed greedily, evaluating leaf sectors left-to-right and propagating values up a sectors as soon as all of its children sectors have been evaluated. A simple recursive argument shows that this procedure requires storing only O(k log n) intermediate values at a time, and is provably optimal.
Proposition 1. Evaluating a complete binary-tree computation graph requires Θ(log n) memory, where n is the number of leaves in the complete binary-tree, and the memory cost of storing each intermediate value and performing each computation is assumed to be a constant.
Proof. Perform the sequence of computations based on a post-order traversal of the binary tree, erasing children values from memory when their parent value has been computed. This process requires storing at most log n+1 intermediate values at any time. To show optimality, let C(i) denote the optimal memory cost needed to compute the value for a node i. For non-leaf nodes i, Let j1 be the first child of i that we begin to process, and j2 be the second. Since we processed j1 first (which requires at least 1 unit of memory throughout), we have C(i) ≥ 1 + C(j2). As the base case, for leaf nodes i, we have C(i) = 1. Thus, the optimal memory cost for the whole computation is at least C(root) = log n+ 1.
Corollary 1. Evaluating a HyperSPN with an underlying RAT-SPN structure requires O(k log n+ h(k2 + rn)) memory.
The cost in Corollary 1 can be broken down into two parts, where O(k log n) memory is required for storing intermediate values in the binary-tree computation graph, and O(h(rn+ k2)) memory is required for storing the HyperSPN parameters and materializing the SPN one sector at a time.
The takeaway is that both storing and evaluating a HyperSPN require less memory than storing and evaluating the underlying SPN, which require O(rnk2) memory. This memory efficiency arises from our key insight of using sector abstractions to enable 1) encoding the SPN parameters as embeddings, 2) forgoing storage of the nodes and edges in the SPN network, and 3) mapping the SPN to a binary-tree computation graph that allows for a low-memory evaluation order.

4 Experiments
We experiment with HyperSPN on three sets of density estimation tasks: the Twenty Datasets benchmark, the Amazon Baby Registries benchmark, and the Street View House Numbers (SVHN) dataset. All runs were done using a single GPU. We primarily compare with weight decay as the competing regularization method. We also include comparisons with smaller SPNs that have the same degrees of freedom as our HyperSPN, and with results reported from other works in literature. We omit results on dropout because in our experimentation (and as suggested by [25]), dropout on SPNs worked poorly for these generative density estimation tasks. In all three sets of tasks, we find that HyperSPNs give better generalization performance than weight decay, when comparing using the same underlying SPN structure and optimizer. Furthermore, HyperSPNs outperforms results reported in literature on EiNETs trained using the same optimization method (Adam), and is competitive against results reported on stochastic EM (sEM).

4.1 Twenty Datasets
The Twenty Datasets benchmark [12] is a standard benchmark used in comparing PC models. Our experiment aims to compare the use of HyperSPN against the baseline of regularization via weight decay, using the same underlying SPN structure for both. We use the RAT-SPN structure described in Section 2.1, choosing layer size parameter k = 5 and replicas r = 50, randomizing the variable orders for each replica. The number of learnable parameters in this SPN structure is shown in the # Params column under Weight Decay in Table 1. For Weight Decay, we vary the weight decay value between 1e-3, 1e-4, and 1e-5.
The HyperSPN uses the exact same underlying SPN structure, along with an external neural network (a 2 layer MLP of width 20) and embeddings of dimension ranging between h = 5, 10, 20. The number of learnable parameters in the HyperSPN is around 5 times smaller, as shown in the # Params column under HyperSPN. We describe more details of our training setup in the Appendix.
In Table 1, we show in bold the better of the results between Weight Decay and HyperSPN. We see that HyperSPN outperforms Weight Decay on all but two of the datasets. On top of that, storing and evaluating the HyperSPN can be much more memory-efficient, as shown by the reduced number of trainable parameters and as described by the techniques in Section 3.1.
On the two right-most columns, we directly copy over results reported in literature. We compare with training EiNETs on Adam (the same optimizer as our setup) [24], and training RAT-SPNs on sEM (a similar network structure as our setup) [25]. We see that HyperSPN also compares favorably to these reported results (the best values underlined).
To illustrate the regularization effects of HyperSPN, we plot training curves on the training and validation data for the Plants and for Pumsb-star datasets. We use the same HyperSPN model described above. For clarity, let M denote the size of its underlying SPN and m denote its true number of learnable parameters (those in its external neural network and embeddings). We then construct two SPNs – one with size M (SPN-Large) and one with size m (SPN-Small) – and overlay their training curves in Figure 5. For both plots in Figure 5a and 5b, SPN-Large suffers from overfitting on the training data (presumably due to the large degrees of freedom), and SPN-Small fits the data poorly (presumably limited by the size of the SPN). Instead, HyperSPN strikes the balance between the expressiveness of a large underlying SPN, and regularization properties from the compact neural network with low degrees of freedom. This translates to better generalization on the validation data shown in the plots of Figure 5, and on the testing data shown in Table 1.

4.2 Amazon Baby Registries
We conduct similar experiments on the Amazon Baby Registries dataset [8]. We repeat the same experimental setup of maximizing the log-likelihood of data, and use the same model structure for HyperSPN and Weight Decay as their respective structures described in the previous section.
In Table 2, we see that HyperSPN clearly outperforms Weight Decay as a regularization technique, giving better test log-likelihoods (in bold) while using around 5 times fewer trainable parameters. On the right-most column we include results as reported in literature [37] on training EiNETs using sEM. Although the comparison with this right-most column is hard to interpret due to the differences in model architecture, optimization procedure, and regularization, we still note that HyperSPNs compare favorably on the majority of the datasets (best values underlined).
The experimental results on the Amazon Baby Registries benchmark confirm our findings in the previous subsection. On both tasks, HyperSPNs generalizes much better than Weight Decay when compared on the same underlying SPN structure, while enabling more memory-efficient storage and evaluation of the model.
Sample Quality In addition to generalization performance on log-likelihood, we can examine the sample quality of HyperSPNs in comparison to standard SPNs. To estimate sample quality, we take the approach of applying kernel density estimation / Parzen windows [3] using the test dataset. Out of the 35 datasets from the above Twenty Datasets and Amazon Baby Registries, we observe that HyperSPNs report better sample quality for 29 of them, compared to SPNs trained with weight decay. We report the full results of this experiment in the Appendix.

4.3 Street View House Numbers (SVHN)
Lastly, we experiment on the SVHN dataset [20]. We use the infrastructure provided by [24], which groups the train/valid/test data into 100 clusters, then learns a separate PC for each cluster. The final density estimator is a combination of all the individual PCs under one mixture distribution. Here, we
study the performance of each individual PC on each cluster separately, comparing between weight decay and HyperSPN when trained using Adam.
The underlying PC structure is an EiNET with leaves that hold continuous distributions [24]. To introduce soft weight-sharing of the HyperSPN on the EiNET, we partition the parameters into sectors of size 40, which is the number of sum nodes used in each layer in the setup of [24]. We use an embedding size of h = 8, which reduces the number of learnable edge-parameters in the EiNET by about 5 fold. In Figure 6, we plot the difference between HyperSPN and weight decay in log-likelihood on the test set, sorted in increasing order for readability. The higher the value, the more improvement we observe when using HyperSPN as the regularization method. In around 70% of the clusters, we see an improvement in generalization, and on average (weighted by cluster size) the HyperSPN achieves an improvement in log-likelihood of 9± 4. Our experiments suggest that HyperSPNs give a superior regularization strategy for PCs compared to the primary alternative of weight decay. HyperSPNs also lead to better performance than other reported approaches in literature that use the same optimizer (Adam), as well as other reported methods that use sEM. Our experimental results are general, showing that HyperSPNs are applicable across three standard benchmarks, across PCs with discrete and continuous leaf distributions, and across different state-of-the-art structures such as RAT-SPNs and EiNETs.

5 Related Work
Many existing works focus on structure learning for probabilistic circuits, covering a wide range of PC types [7, 28, 27, 15]. These approaches often regularize by limiting the complexity of the structure [7, 35]. However, structure learning in general can be tedious and difficult to tune [25].
Recent works have embraced a more deep-learning-like framework by prescribing the structure of the PC and learning only the model parameters [25, 24]. This framework leads to the training of large PCs with millions of parameters. However, little exploration has been done around regularization in this new parameter-centric framework. For generative settings, dropout was suggested as unsuitable [25], leaving only weight decay as the primary parameter regularization method. Concurrently, other works [16] look into data softening and entropy regularization techniques. In our work, we propose the new regularization strategy of HyperSPNs which show promising improvements in generalization.
Finally, the idea of generating parameters with an external neural network comes from HyperNetworks [11], which were introduced as an effective architecture for recurrent models. Soft weightsharing strategies in general [21] have also shown good empirical results [2] and proven useful for neural network compression [32]. There have also been recent work on using similar techniques to parameterize conditional SPNs [29, 36].

6 Conclusion
We propose HyperSPNs, a new paradigm of training large probabilistic circuits using a small-scale external neural network to generate the parameters of the probabilistic circuit. HyperSPNs provide regularization by aggressively reducing the degrees of freedom through a soft weight-sharing strategy. We show empirical improvements in the generalization performance of PCs compared to competing regularization methods, across both discrete and continuous density estimation tasks, and across different state-of-the-art PC structures. As a bonus, HyperSPNs enable memory-efficient storage and evaluation, combining the expressiveness of large PCs with the compactness of small models.
Limitations and Future Work Our analysis of the memory efficiency of HyperSPNs is limited their storage and evaluation, since training HyperSPNs involves manipulating of the gradients through the underlying SPN. Future work can look into combining HyperSPNs with techniques from memoryefficient back propagation [4, 10] to train very large SPNs that do not fit in memory.

7 Acknowledgments
This research was supported by NSF (#1651565, #1522054, #1733686), ONR (N00014-19-1-2145), AFOSR (FA9550-19-1-0024), ARO (W911NF-21-1-0125) and Sloan Fellowship.

Limitations
Limitations and Future Work Our analysis of the memory efficiency of HyperSPNs is limited their storage and evaluation, since training HyperSPNs involves manipulating of the gradients through the underlying SPN. Future work can look into combining HyperSPNs with techniques from memoryefficient back propagation [4, 10] to train very large SPNs that do not fit in memory.

Reviewer Summary
Reviewer_2: This paper presents a novel method to regularize very large probabilistic circuits, mainly large sum-product networks (SPNs). The idea is to train a small external neural network to generate the parameters (mixture weights) of a large SPN. The neural network itself is defined by a conservative number of parameters. Given the structure of an SPN, the parameter generation process first learns low dimensional embeddings that are representative of groups of parameters (called sectors) in the SPN. These embeddings are then fed into the external neural network which outputs the actual parameters for the SPN. Both the embeddings and the external neural network can be jointly trained using gradient descent. The neural network imposes soft weight-sharing over the SPN parameters which results in limiting the degrees of freedom of the model, therefore reducing potential overfitting. On a variety of benchmark datasets, both discrete and continuous, the authors empirically evaluated the proposed technique to regularize large SPNs and found that their method outperformed the well-known weight decay regularizer in terms of accuracy (log-likelihood scores) with significantly fewer parameters.

Reviewer_3: The paper presents HyperSPN, a way to reguralize the learning of Sum-Product networks (SPNs).

Reviewer_4: This work proposes a deep learning architecture, called HyperSPN, with built-in regularization. The architecture comprises two components: a probabilistic circuit (PC) and a neural network (NN). The main idea here is that the NN generates the parameters of the PC. The NN structure provides the regularization technique: parts of the NN embeddings are shared when generating the PC parameters. The paper's theoretical contribution is the architecture involving the PC and NN for efficient training and inference tasks. Practical contributions include experiments in three different problem domains.

Reviewer_5: The paper proposes a novel method for regularizing large scale probabilistic circuits: The PC's parameters are partitioned into evenly sized sectors, and each sector is represented via a low dimensional embedding. A shared neural network is used to map the embeddings in to the PC's original parameter space. Experimental results show that this reduction in the number of trainable parameters yields improved generalization performance when compared to previous methods, mainly weight decay.

Reviewer Comment
Reviewer_2: This paper makes an interesting novel contribution. The main goal is to reduce overfitting of large SPNs by limiting their degrees of freedom without limiting their expressivity. Learning smaller SPNs can reduce degrees of freedom at the cost of their expressivity. Here the authors propose an alternative method where the degrees of freedom of the model is indirectly controlled by a small-scale external neural network which offers to impose a soft weight-sharing strategy over the parameters. This soft weight-sharing does not necessarily reduce the total number of parameters (clusters) of the model but restricts their structure and thus restrictis their degrees of freedom. The proposed technique is not only an effective regularizer but also an efficient means to compactly represent SPNs. One can easily opt to store only the neural network parameters and the embeddings which together have much fewer parameters than the underlying SPN itself. As the authors described this has the added benefit of reducing the memory footprint of SPNs during their evaluation as well.
The experiments seem quite comprehensive with a few exceptions. The authors tested their method on both discrete and continuous datasets and on two different structures (RAT-SPNs and EiNets). The results are promising. In majority of the cases the method reduced overfitting compared to the weight-decay strategy. The paper is written clearly and with quality.
Questions/Comments to authors:
An important piece of study that is missing is the effect of the length of 'h'. Two values were used in the experiments (5 and 8).
The values in tables 1 and 2 present average test log-likelihood?
The plot in figure 5 was quite informative. It will be useful if the scores for other datasets are also presented.
Limitations And Societal Impact:
yes
Needs Ethics Review: No
Time Spent Reviewing: 10

Reviewer_3: One advantage of the proposed approach is its memory efficiency.
The main problem of the paper regards the clarity of the proposed approach.
It is not clear how the embeddings are defined. The relation between the embeddings and the SPN is not defined.
The structure of the neural network used to learn the parameters is not defined
The loss used to optimize the parameters is not reported
How the embeddings are used by the neural network is not discussed
The experimental results prove an improvement of the proposed method when compared to weight decay. However, state of the art results on Twenty Datasets are not reported for a comparison.
Concluding, the idea seems to be interesting but the paper does not prove its validity. The approach should be better explained and the experiments should be extended.
Limitations And Societal Impact:
The main limitation regrds the clarity of the proposed method
Needs Ethics Review: No
Time Spent Reviewing: 3

Reviewer_4: The originality of this work is not clear from the manuscript. The idea of conditioning a PC with weights from a NN has been explored in the PC literature. Some examples are [1] and, more recently, [2]. This paper can benefit from including a proper discussion on how the proposed method differs from those published. It would be interesting to discuss also how it compares to not recent but similar techniques, such as in [3]. The idea of regularizing the PC by sharing some of the NN architecture is smart and with promising results.
The paper's theoretical contributions are sound, to the best of my knowledge. There are only two derivations, namely Proposition 1 and Corollary 1, and both are well presented.
The manuscript is well written, and it has a good presentation. The architecture's description is supported by informative Figures 1, 2, and 3, and the experiments are also well described. This description is essential for the work's reproducibility.
The motivation of the manuscript is significant for the research community. Large models are prominent now in the literature and, thus, efficient regularization techniques are welcome. However, the manuscript should clarify this work's main contributions and how the work adds to previous similar papers. This clarification will strengthen this work's significance. Another suggestion for improving significance is to show results on specific tasks. Improvements on log-likelihood, at times, do not reflect on improvements of particular tasks, such as classification or sampling. It would be interesting to see results on such tasks, besides the log-likelihood numbers.
Reference
[1] "Conditional Sum-Product Networks: Imposing Structure on Deep Probabilistic Architectures." PDF: https://arxiv.org/abs/1905.08550
[2] "RECOWNs: Probabilistic Circuits for Trustworthy Time Series Forecasting." PDF: https://arxiv.org/abs/2106.04148
[3] "Hierarchical mixtures of experts and the EM algorithm." PDF: https://www.cs.toronto.edu/~hinton/absps/hme.pdf
Limitations And Societal Impact:
The paper briefly discusses one limitation in the Conclusion section. Future works include combining HyperSPNs with techniques from memory-efficient back-propagation.
Needs Ethics Review: No
Time Spent Reviewing: 2

Reviewer_5: Originality / Significance
The proposed method is novel to my knowledge. It addresses a relevant problem, as the fast growth in the number of parameters is one of the main issues preventing RAT-SPNs and EiNets from scaling further.
The proposed method is intuitively plausible, and the theoretical analysis is correct.
Evaluation
The proposed method is evaluated on a large variety of datasets, and the results are overall convincing.
Given that weight decay is the main point of comparison, it would be good run a hyperparameter search over its value, to verify that the chosen setting is sensible (and ideally optimal).
The robustness of the results in Tables 1 and 2 could also be improved by running the experiments multiple times and testing for significance.
For the SVHN experiment, it would be good to report the change in performance of the overall model, especially given the fact that the clusters are not uniform in size (i.e., given the reported data, it is not clear whether overall performance went up or down).
Clarity
The paper is very well written and easy to follow.
Summary
Overall, this paper makes a simple but useful contribution that is well presented, theoretically analyzed, and empirically evaluated. I have therefore set my rating to accept, with the expectation that the authors will address the above comments on the empirical evaluation during the response phase.
Limitations And Societal Impact:
The limitations and societal impact are adequately discussed.
Needs Ethics Review: No
Time Spent Reviewing: 4