Introduction
Topic modeling is a cornerstone of text analysis, yet traditional methods like Latent Dirichlet Allocation (LDA) falter when applied to short texts such as tweets or search queries. This failure stems from document-level sparsity: with so few words per document, there is insufficient co-occurrence data to reliably infer topics. The Biterm Topic Model (BTM) addresses this by modeling word pairs ("biterms") across the entire corpus. However, existing inference methods for BTM—namely Gibbs Sampling and Stochastic Collapsed Variational Bayesian (SCVB0)—face a trade-off between computational efficiency and mathematical rigor.
Stochastic Divergence Minimization (SDM)
To bridge this gap, we introduce Stochastic Divergence Minimization (SDM), a deterministic inference algorithm for BTM. SDM treats inference as an optimization problem: minimizing the $\alpha$-divergence between the true posterior and a variational distribution.
A key theoretical contribution of this work is the proof that the widely used SCVB0 algorithm is actually a specific, heuristic case of $\alpha$-divergence minimization. Unlike SCVB0, which relies on crude estimations that lose information, SDM-BTM utilizes a stochastic approximation framework that preserves sufficient statistics. This ensures numerical stability and prevents "arithmetic underflow"—a common issue in large-scale data processing where probabilities become infinitesimally small.
As shown in the table above, SDM-BTM maintains the low computational complexity of $O(K)$ per iteration while uniquely ensuring the preservation of sufficient statistics, a property shared only by the much slower Gibbs sampling methods.
Experimental Evaluation
The performance of SDM-BTM was evaluated using the Tweets2011 dataset, comprising 3.5 million documents and 95 million biterms. We compared SDM-BTM against online Gibbs sampling (oBTM), incremental Gibbs sampling (iBTM), and SCVB0.
Accuracy and Data Efficiency
The most significant finding is the exceptional data efficiency of SDM-BTM. By correctly preserving sufficient statistics, the model extracts more information from each biterm.
As illustrated in the figure above, SDM-BTM trained on just 30% of the dataset achieves a higher predictive log-likelihood than competing state-of-the-art methods trained on the full 100%. This "30% rule" highlights the algorithm's ability to converge rapidly to a superior solution.
Speed and Scalability
Beyond accuracy, SDM-BTM is orders of magnitude faster than sampling-based approaches. While Gibbs sampling methods (oBTM and iBTM) struggle with the noise inherent in the sampling process, the deterministic nature of SDM allows for smooth, rapid convergence. It processes millions of biterms in a fraction of the time required by traditional methods, making it highly suitable for real-time "Big Data" applications.
Conclusion
Stochastic Divergence Minimization provides a robust mathematical foundation for Biterm Topic Models. By framing inference as a divergence minimization problem and applying stochastic approximation, SDM-BTM achieves a rare combination of high accuracy, rapid convergence, and computational efficiency. Future work will explore the sensitivity of the algorithm to hyperparameters like step-size and investigate its performance across a broader range of topic scales and document types.
Summary updated