Tractable Regularization of Probabilistic Circuits

Anji Liu, Guy Van den Broeck

Abstract

Probabilistic Circuits (PCs) are a promising avenue for probabilistic modeling. They combine advantages of probabilistic graphical models (PGMs) with those of neural networks (NNs). Crucially, however, they are tractable probabilistic models, supporting efficient and exact computation of many probabilistic inference queries, such as marginals and MAP. Further, since PCs are structured computation graphs, they can take advantage of deep-learning-style parameter updates, which greatly improves their scalability. However, this innovation also makes PCs prone to overfitting, which has been observed in many standard benchmarks. Despite the existence of abundant regularization techniques for both PGMs and NNs, they are not effective enough when applied to PCs. Instead, we re-think regularization for PCs and propose two intuitive techniques, data softening and entropy regularization, that both take advantage of PCs' tractability and still have an efficient implementation as a computation graph. Specifically, data softening provides a principled way to add uncertainty in datasets in closed form, which implicitly regularizes PC parameters. To learn parameters from a softened dataset, PCs only need linear time by virtue of their tractability. In entropy regularization, the exact entropy of the distribution encoded by a PC can be regularized directly, which is again infeasible for most other density estimation models. We show that both methods consistently improve the generalization performance of a wide variety of PCs. Moreover, when paired with a simple PC structure, we achieved state-of-the-art results on 10 out of 20 standard discrete density estimation benchmarks.

The Challenge: Overfitting in Tractable Models

Probabilistic Circuits (PCs) serve as a unified framework for tractable probabilistic modeling, encompassing representations like Sum-Product Networks (SPNs) and Arithmetic Circuits (ACs). Their primary appeal lies in the ability to perform exact inference (e.g., marginals, MAP) in time linear to the circuit size, while simultaneously leveraging gradient-based optimization common in deep learning.

However, as PCs scale, they become increasingly susceptible to overfitting. Traditional regularization methods often fail in this context:

  1. Laplace Smoothing (PGM-style): This method adds a uniform prior to parameters. However, learned PC structures often exhibit significant "imbalanceness," where different branches of a sum unit represent vastly different volumes of the state space. Applying a uniform prior across these imbalanced children introduces significant bias.
  2. L1/L2 Regularization (NN-style): These weight-based penalties are often incompatible with the closed-form updates or Expectation-Maximization (EM) algorithms typically used for PC parameter estimation.
Figure 3: (a) A PC sum unit $n_1$ where child $c_1$ covers a single state while $c_2$ covers $2^{n-1}$ states. (b) Distribution of imbalanceness in PCs learned by the Strudel algorithm, showing that imbalance is a pervasive structural feature.

Proposed Tractable Regularization Techniques

The authors propose two model-agnostic techniques that leverage the unique structural properties of PCs to regularize the distribution itself rather than just the weights.

1. Data Softening

Instead of training on "hard" evidence (where features are strictly binary), the authors propose injecting noise to create a "softened" dataset. This ensures every possible assignment in the variable space receives at least a marginal weight, preventing the model from assigning zero probability to unseen events. While learning from such a massive, softened distribution is typically #P-hard for general models, the authors prove that for deterministic PCs, Maximum Likelihood Estimation (MLE) remains computable in linear time $O(|p| \cdot |D|)$.

2. Entropy Regularization

This technique incorporates the Shannon entropy of the model's distribution directly into the objective function. By maximizing entropy alongside likelihood, the model is discouraged from becoming overly "spiky" or over-confident on training samples. While computing exact entropy is generally intractable for neural density estimators, it can be computed in $O(|p|)$ for deterministic PCs. The authors introduce a specialized EM-like algorithm that efficiently converges to a stationary point for this objective.

Experimental Evaluation

The researchers evaluated these methods across 20 standard discrete density estimation benchmarks (e.g., accidents, dna, webkb) and a protein sequence dataset known for severe overfitting.

Key Results and SOTA Performance

By combining these regularization techniques with a simple "Hidden Chow-Liu Tree" (HCLT) structure, the proposed approach achieved state-of-the-art (SOTA) results on 10 out of 20 standard benchmarks. The HCLT structure, which expands a standard Chow-Liu Tree with hidden variables, provides a robust baseline that, when properly regularized, outperforms much more complex architectures.

Figure 6: The transformation from a standard Chow-Liu Tree (CLT) to a Hidden Chow-Liu Tree (HCLT) by introducing latent variables $Z_i$, creating a more expressive yet still tractable PC structure.

On the protein dataset, the hybrid regularization approach significantly closed the generalization gap, consistently outperforming standard Laplace smoothing. Furthermore, the algorithms proved highly efficient; entropy regularization typically converged within 3–5 iterations, maintaining the practical scalability of the PC framework.

Conclusion

This work demonstrates that the tractability of Probabilistic Circuits is not just a benefit for inference, but also a powerful tool for regularization. By moving from syntactic weight penalties to semantic distribution-level constraints, data softening and entropy regularization provide a principled way to scale PCs without succumbing to overfitting. Future work may extend these "distribution-first" ideas to non-deterministic circuits and continuous domains.

Summary updated

BibTeX
@inproceedings{liu2021tractable,
  author = {Anji Liu and Guy Van den Broeck},
  title = {{Tractable Regularization of Probabilistic Circuits}},
  booktitle = {TPM @ UAI},
  year = {2021},
  url = {https://openreview.net/forum?id=oQPv9TkLR-},
}
Figure