Abstract
We propose a stochastic variational inference algorithm for training large-scale Bayesian networks, where noisy-OR conditional distributions are used to capture higher-order relationships. By exploiting data sparsity to create document-specific "local models," our approach achieves significant speedups over traditional methods, enabling the analysis of millions of documents across thousands of topics while maintaining high accuracy.
Introduction: The Curse of Dimensionality in Bayesian Networks
Probabilistic graphical models, particularly Bayesian networks, are powerful tools for capturing complex relationships in high-dimensional data. However, they face a significant "curse of dimensionality." In a standard network, the number of parameters grows exponentially with the number of "parent" nodes influencing a variable.
The Noisy-OR distribution is a classic solution that reduces this cost to linear growth, making it popular for medical diagnosis and text mining. Despite this, standard training methods still struggle with "web-scale" data. Most existing algorithms are restricted to simple two-layer (bipartite) structures and cannot handle the computational demands of processing millions of observations. The challenge lies in training deep hierarchies of noisy-OR nodes on massive datasets without losing mathematical rigor or performance.
Methodology: Scaling Deep Hierarchies
The proposed approach introduces three primary technical innovations to overcome these scaling hurdles:
- Deep Variational Bounds: We generalize prior variational bounds to support arbitrary directed acyclic graphs (DAGs). This allows for "deep" networks that can capture multi-level hierarchies of topics, moving beyond simple bipartite structures.
- Variational Model Pruning (Local Models): In text data, most words are absent in any given document. We mathematically justify "pruning" the network for each document, performing inference only on the small sub-graph of topics directly related to the active (present) words. This makes the computational cost proportional to the number of active observations rather than the total size of the massive model.
- Stochastic Weight Optimization: Instead of processing the entire dataset at once, we use stochastic gradient updates. By interleaving variational inference on small "mini-batches" with quick weight updates, the model converges much faster and requires significantly less memory.
Experimental Setup
The framework was evaluated on three datasets of increasing scale:
- 20 Newsgroups: A small dataset used to validate the accuracy of variational bounds against ground-truth Monte Carlo simulations.
- DBLP: Approximately 430,000 scientific paper titles and abstracts.
- Yelp: Approximately 483,000 restaurant reviews.
For the larger datasets, we constructed four-layer topic graphs containing tens of thousands of topics and hundreds of thousands of edges.
Key Insights
- Sparsity as a Computational Advantage: By recognizing that most nodes are "inactive" for a specific data point, we turn a scaling nightmare into a performance benefit.
- Stability and Convergence: Unlike "loopy belief propagation," our variational updates are guaranteed to converge, making them robust for noisy, real-world data.
- Contextual Disambiguation: The deep hierarchy allows the model to handle polysemy. For example, the word "program" is disambiguated by the surrounding context of other active words to "turn on" the correct hierarchical path (e.g., space science vs. computer science).
Results
The "Local-model VI" approach proved to be the only feasible option for large-scale datasets, completing inference iterations in under a minute, compared to 25–45 minutes for full-model methods. Furthermore, the noisy-OR model demonstrated superior accuracy compared to standard Latent Dirichlet Allocation (LDA) models of similar size.
Conclusion and Future Work
While the current algorithm assumes a fixed graph structure and is restricted to binary data, it represents a significant step forward in training deep Bayesian networks at scale. Future work will explore learning the graph structure and parameters simultaneously, as well as extending the framework to "noisy-AND" networks for applications like educational assessment.
Summary updated