Skip to main content
QUICK REVIEW

[Paper Review] Bayesian Learning of Sum-Product Networks

Martin Trapp, Robert Peharz|arXiv (Cornell University)|May 26, 2019
Bayesian Modeling and Causal InferenceComputer Science49 references8 citations
TL;DR

This paper proposes a principled Bayesian framework for sum-product network (SPN) structure learning by decomposing the problem into designing a computational graph and learning a scope function via Bayesian inference. The method enables joint structure and parameter learning through monolithic posterior inference, achieving superior test likelihoods, robustness to missing data, and automatic hyperparameter tuning without validation sets—outperforming greedy baselines in low-data regimes.

ABSTRACT

Sum-product networks (SPNs) are flexible density estimators and have received significant attention due to their attractive inference properties. While parameter learning in SPNs is well developed, structure learning leaves something to be desired: Even though there is a plethora of SPN structure learners, most of them are somewhat ad-hoc and based on intuition rather than a clear learning principle. In this paper, we introduce a well-principled Bayesian framework for SPN structure learning. First, we decompose the problem into i) laying out a computational graph, and ii) learning the so-called scope function over the graph. The first is rather unproblematic and akin to neural network architecture validation. The second represents the effective structure of the SPN and needs to respect the usual structural constraints in SPN, i.e. completeness and decomposability. While representing and learning the scope function is somewhat involved in general, in this paper, we propose a natural parametrisation for an important and widely used special case of SPNs. These structural parameters are incorporated into a Bayesian model, such that simultaneous structure and parameter learning is cast into monolithic Bayesian posterior inference. In various experiments, our Bayesian SPNs often improve test likelihoods over greedy SPN learners. Further, since the Bayesian framework protects against overfitting, we can evaluate hyper-parameters directly on the Bayesian model score, waiving the need for a separate validation set, which is especially beneficial in low data regimes. Bayesian SPNs can be applied to heterogeneous domains and can easily be extended to nonparametric formulations. Moreover, our Bayesian approach is the first, which consistently and robustly learns SPN structures under missing data.

Motivation & Objective

  • To address the lack of a well-defined learning principle in existing SPN structure learners, which are often heuristic and ad-hoc.
  • To unify structure and parameter learning within a single Bayesian inference framework, ensuring principled and coherent model optimization.
  • To improve generalization and robustness, especially in low-data and missing-data regimes, by leveraging Bayesian priors and automatic regularization.
  • To enable direct hyperparameter evaluation via model scores, eliminating the need for separate validation sets.
  • To extend SPN learning to heterogeneous domains and nonparametric formulations through a flexible, modular Bayesian design.

Proposed method

  • Decomposes SPN structure learning into two stages: (1) defining a computational graph that specifies the topology of sum, product, and leaf nodes, and (2) learning a scope function that assigns variable scopes to nodes.
  • Proposes a natural parametrization of the scope function for tree-shaped region graphs, enabling efficient Bayesian inference via categorical latent variables.
  • Implements monolithic Bayesian posterior inference using Gibbs sampling over the scope function, parameters, and latent variables, with conjugate priors for tractability.
  • Encodes structural constraints (completeness and decomposability) directly into the scope function parametrization to ensure valid SPN structures.
  • Uses a hierarchical prior structure to allow for nonparametric extensions and robust modeling of complex data distributions.
  • Supports missing data by performing joint inference over structure, parameters, and missing values, without requiring imputation.

Experimental results

Research questions

  • RQ1What is a principled, globally optimal learning objective for SPN structure learning, as opposed to heuristic, local optimization strategies?
  • RQ2How can structure and parameter learning be unified within a single Bayesian inference framework to improve generalization and reduce overfitting?
  • RQ3Can Bayesian SPNs maintain performance under missing data, especially when traditional methods fail or require imputation?
  • RQ4To what extent can Bayesian SPNs outperform greedy SPN learners in terms of test likelihood, particularly in low-data regimes?
  • RQ5How can the Bayesian framework naturally support nonparametric extensions and heterogeneous data modeling in SPNs?

Key findings

  • Bayesian SPNs achieve significantly better test log-likelihood scores than greedy learners like LearnSPN and ID-SPN across multiple datasets, including a 2.7% improvement on the Dermatology dataset.
  • On the Autism dataset, Bayesian SPNs outperform all baselines by a large margin, suggesting reduced overfitting compared to existing methods.
  • The method is robust under missing data: unlike LearnSPN and ID-SPN, which degrade substantially with missing values—even with k-NN imputation—Bayesian SPNs maintain stable performance.
  • The Bayesian framework allows direct evaluation of hyperparameters using model scores, eliminating the need for a separate validation set, which is especially beneficial in low-data regimes.
  • In heterogeneous data experiments, Bayesian SPNs perform comparably to specialized models like MSPN and ABDA, and outperform them on certain datasets such as Autism.
  • The approach naturally extends to nonparametric formulations through hierarchical priors and variational inference, enabling scalable and flexible modeling.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.