Abstract
Bayesian nonparametric (BNP) models are theoretically well-suited for streaming data due to their ability to adapt model complexity as more data is observed. However, practical inference for these models in a streaming context remains challenging. This paper introduces a scalable, streaming inference algorithm for a flexible class of BNP models known as Normalized Random Measures (NRMs). By utilizing Assumed Density Filtering (ADF), the proposed framework enables models to learn from data streams in a single pass while allowing the number of clusters to grow naturally. Experimental results demonstrate that this approach outperforms standard Dirichlet Process models on both synthetic and large-scale real-world text datasets, capturing power-law behaviors that traditional models often miss.
Introduction: The Challenge of Streaming BNP
In unsupervised learning, a recurring goal is to develop models that adapt their complexity to the data. Bayesian Nonparametric (BNP) models are particularly suited for this, as they do not require a pre-specified number of clusters. Instead, they allow the number of latent components to grow as more evidence arrives.
Despite their theoretical appeal, existing inference methods for BNP models face significant hurdles in streaming environments. Stochastic Variational Inference (SVI) often requires knowing the total dataset size a priori to correctly scale updates, which is impossible in true streaming scenarios. Meanwhile, Streaming Variational Bayes (SVB) is difficult to extend to the "infinite" nature of BNP models. Furthermore, most existing tools are tailored for the Dirichlet Process (DP), which assumes logarithmic cluster growth. This often fails to capture the "power-law" behavior—characterized by many small, niche clusters—seen in real-world data like text or social networks.
Methodology: ADF-NRM
The authors propose a general framework called ADF-NRM to address these limitations.
Moving Beyond the Dirichlet Process
The framework utilizes Normalized Random Measures (NRMs), specifically the Normalized Generalized Gamma Process (NGGP). Unlike the DP, the NGGP offers finer control over cluster creation and growth, allowing for power-law behavior. This flexibility is crucial for capturing the long-tail distributions found in natural language.
Assumed Density Filtering (ADF)
The core of the algorithm is Assumed Density Filtering, a sequential inference technique. As each data point arrives, the algorithm updates its posterior belief and then projects it back into a simpler, tractable family of distributions. This updated belief then serves as the "prior" for the subsequent data point.
Tractability via Auxiliary Variables
A major hurdle in NRM inference is the computational instability of predictive rules. The authors overcome this by introducing an auxiliary variable ($U_n$) that renders updates for cluster assignments and global parameters tractable in a streaming setting. Furthermore, they demonstrate that this streaming ADF approach can be extended into a multi-pass batch algorithm using Expectation Propagation (EP), providing a robust bridge between streaming and large-scale batch learning.
Experimental Evaluation
The authors evaluated ADF-NRM across four distinct scenarios:
- Synthetic Bars: $8 \times 8$ images used to verify the recovery of known latent components.
- Synthetic Power-Law Clusters: 10,000 documents generated from a Pitman-Yor process to test non-DP growth handling.
- KOS Blog Corpus: 3,430 blog posts, comparing the streaming algorithm against "gold standard" batch MCMC (Gibbs sampling).
- New York Times Corpus: 266,000 articles, demonstrating performance on data too large for traditional batch methods.
Key Results and Insights
Flexibility and Accuracy
The "Inverse Gaussian" (IG) model—a specific type of NGGP—consistently outperformed the standard Dirichlet Process. On synthetic power-law data, the IG model tracked the true number of clusters much more accurately than the DP, which tended to underestimate the latent structure.
Scalability to Large Streams
The algorithm successfully processed the 266,000 NYT articles in a single pass, a task that is computationally prohibitive for standard batch MCMC. The IG model discovered approximately 300 clusters, compared to the DP's 200. These additional clusters represented more nuanced, interpretable topics, proving that the IG model's flexibility translates to better real-world discovery.
Efficiency
The per-observation complexity of the algorithm is $O(K_n)$, where $K_n$ is the number of active clusters. Although NGGPs grow faster than DPs, the complexity remains sub-linear relative to the total number of observations ($n$), ensuring computational feasibility for massive data streams.
Conclusion and Future Work
The ADF-NRM framework provides a scalable and flexible solution for streaming BNP inference. By moving beyond the Dirichlet Process, it captures the complex growth patterns of real-world data. Future work includes addressing the memory overhead of the EP extension for massive datasets, implementing parallelized versions of the algorithm, and extending the framework to hierarchical models like the Hierarchical Dirichlet Process (HDP).
Summary updated