Abstract
Sum-product networks (SPNs) have recently emerged as an attractive representation due to their dual interpretation as a special type of deep neural network with clear semantics and a tractable probabilistic model. This paper introduces the first online learning algorithms for SPNs designed specifically for continuous data. By using Gaussian leaf distributions and a novel Bayesian moment matching approach, the authors enable SPNs to learn from streaming data in linear time while maintaining the exact, tractable inference that makes SPNs unique among deep generative models.
Introduction
Sum-Product Networks (SPNs) represent a powerful class of deep probabilistic models. Their primary advantage is tractability: unlike many deep models, SPNs allow for the computation of exact marginal and conditional probabilities in linear time relative to the network size. Despite these strengths, two significant limitations have hindered their broader application. First, most research has focused on categorical (discrete) variables, whereas real-world data is frequently continuous. Second, existing learning algorithms are typically batch-oriented, requiring the entire dataset to be available simultaneously—a requirement that is often impractical for streaming applications or massive datasets.
This work addresses these gaps by developing online algorithms—specifically Online Bayesian Moment Matching (oBMM) and Online Expectation Maximization (oEM)—for SPNs with continuous Gaussian leaf distributions.
Methodology
The proposed approach focuses on SPNs where internal nodes perform sum and product operations, while the leaf nodes are multivariate Gaussian distributions. The core contribution is the Online Bayesian Moment Matching (oBMM) algorithm.
In a Bayesian framework, the posterior distribution typically becomes increasingly complex with each new observation, leading to an "exponentially growing mixture." To maintain tractability, oBMM approximates the true posterior after each update by matching its moments (such as mean and variance) to a simpler distribution, specifically Dirichlet and Normal-Wishart distributions.
For tree-structured SPNs, these updates can be computed efficiently using a single bottom-up and top-down pass, ensuring linear time complexity. Furthermore, the properties of Bayes' theorem allow this learning process to be distributed across multiple machines without a loss in accuracy.
Experimental Evaluation
The algorithms were evaluated on seven real-world datasets from the UCI and function approximation repositories, ranging from 3 to 48 variables (e.g., Flow Size, Quake, Banknote, Abalone, Kinematics, CA, and Sensorless Drive).
The performance of oBMM-trained SPNs was compared against Online Expectation Maximization (oEM), Stacked Restricted Boltzmann Machines (SRBMs), and Generative Moment Matching Networks (GenMMNs).
Results and Discussion
The experimental results yielded several key insights:
- Superiority of oBMM: The Bayesian approach (oBMM) consistently outperformed oEM across all datasets, suggesting that maintaining a distribution over parameters is more robust for online learning than point estimation.
- Performance Benchmarks: oBMM achieved the highest log-likelihood scores on several datasets, including Abalone, CA, and Sensorless Drive. Notably, on the Sensorless Drive dataset, oBMM achieved a log-likelihood of 1.58, significantly outperforming SRBM (-26.91) and GenMMN (-29.41).
- Tractability vs. Approximation: Unlike SRBMs, which require slow approximations like Gibbs sampling for inference, SPNs provide exact answers instantly.
- Structural Strength: Even with simple or random structures, continuous SPNs proved competitive with more complex deep models, highlighting the inherent power of the architecture.
Conclusion
This paper demonstrates that SPNs can be effectively extended to continuous domains and trained in an online fashion. While the current work utilizes fixed or random structures, the results are highly promising. Future research will focus on automated structure learning for continuous variables to further enhance the modeling capacity of this architecture.
Summary updated