Abstract
Sum-Product Networks (SPNs) with complex probability distributions at their leaves are powerful tractable-inference models. However, while learning internal parameters has been amply studied, learning complex leaf distributions is an open problem. This paper derives an efficient method to learn a very large class of leaf distributions using Expectation-Maximization (EM). The EM updates take the form of simple weighted maximum likelihood problems, allowing the use of any distribution that can be learned with maximum likelihood. The algorithm has a cost linear in the model size and converges even if only partial optimizations are performed. Experiments on twenty real-life datasets demonstrate that this approach, using tree graphical models as leaves (TreeSPN), outperforms state-of-the-art methods while using significantly fewer parameters.
Introduction: The Challenge of Complex Leaves
Sum-Product Networks (SPNs) are deep probabilistic models that guarantee tractable inference, allowing for rapid calculation of marginal and conditional probabilities. Traditionally, SPNs rely on simple univariate distributions or indicator variables at their leaves. While internal weight learning is well-understood, the use of complex, multivariate distributions at the leaves—which could significantly compress the network—has been limited by the lack of a general, efficient training algorithm. This paper addresses this gap by providing a principled way to train arbitrary leaf distributions.
The EM Framework for SPN Leaves
The core contribution of this work is a novel Expectation-Maximization (EM) algorithm designed specifically for learning structured leaf distributions. The method hinges on a "mixture interpretation" of SPNs, viewing them as exponentially large mixtures of subnetworks.
The algorithm proceeds in two main steps:
- E-Step (Calculating Responsibilities): The authors prove that the "responsibility" (how much a specific leaf is responsible for a data point) can be computed efficiently using a single upward and downward pass. This process leverages the structural derivatives of the SPN, which are already computed during standard inference.
- M-Step (Weighted Maximum Likelihood): Once responsibilities are determined, updating the leaf parameters becomes a standard weighted maximum likelihood estimation (MLE) problem. This "plug-and-play" nature allows researchers to use any distribution that supports MLE (e.g., Gaussians, Chow-Liu trees) as an SPN leaf.
Crucially, the algorithm maintains linear complexity relative to the number of edges and is robust to partial optimizations in the M-step, ensuring convergence even when exact MLE is difficult.
Experimental Results
The authors evaluated their approach using tree-shaped graphical models as leaves, a model they call TreeSPN. They compared TreeSPN against state-of-the-art parameter learning methods, including CCCP and CVI, across 20 benchmark datasets ranging from low-dimensional (NLTCS) to high-dimensional (Ad).
Key Findings:
- Superior Accuracy: TreeSPN achieved the best test log-likelihood on 11 out of 20 datasets, outperforming more complex parameter learning schemes.
- Model Compactness: TreeSPN models were remarkably more efficient. Across all datasets, TreeSPN required only 5.41 million edges, whereas the baseline CCCP models required 27.1 million edges—a nearly five-fold reduction in model size.
- Scalability: The training cost remained linear relative to the model size, proving that adding complex leaves does not break the tractability promise of SPNs.
Conclusion and Future Work
This research demonstrates that "shoving" complexity into the leaves of an SPN is a highly effective strategy for building compact, powerful probabilistic models. By providing a general EM framework for leaf learning, the authors open the door to using a wide variety of structured distributions within SPNs. Future work may involve integrating this parameter learning method with automated structure learning algorithms and exploring heuristics for optimal leaf selection based on dataset characteristics.
Summary updated