Abstract
Topic models are prevalent in many fields (e.g. context analysis), which are applied to discovering the latent topics. In document modeling, conventional topic models (e.g. latent Dirichlet allocation and its variants) do well for normal documents. However, the severe data sparsity problem makes the topic modeling in short texts difficult and unreliable. To tackle this problem, an effective approach (biterm topic model) has been proposed recently which learns topics by directly modeling the generation of word co-occurrence patterns at corpus-level rather than at document-level. But it requires human intervention for determining the number of topics. In this paper, we propose a Dirichlet process based on word cooccurrence to make topic mining from short texts more automatically. Meanwhile, we design a Markov chain Monte Carlo sampling scheme for posterior inference in our model which is an extension of the sampling algorithm based on Chinese restaurant process. Finally, we conduct experiments on real data. The results show that our method outperforms the baseline on quality of topic and perplexity and it is more flexible.
Introduction
Traditional topic models, most notably Latent Dirichlet Allocation (LDA), rely on document-level word co-occurrences. This works well for long-form content like news articles or research papers. However, short texts—such as tweets, SMS, or product reviews—suffer from severe data sparsity. A single tweet rarely contains enough context or enough words to establish meaningful internal co-occurrence patterns.
A recent solution, the Biterm Topic Model (BTM), addressed this by modeling "biterms" (unordered word pairs) across the entire corpus rather than looking at documents individually. While effective, BTM is a parametric model, meaning the user must manually specify the number of topics ($K$) beforehand. In dynamic environments like social media, where the number of trending topics changes rapidly, pre-defining $K$ is inefficient and often inaccurate.
Methodology: The BDP Model
The authors introduce the Biterm-based Dirichlet Process (BDP), which merges the biterm approach with a Dirichlet Process (DP) to automate topic discovery.
Biterm Generation
Instead of treating a document as a "bag of words," the model breaks every document into all possible unordered word pairs (biterms). For example, a tweet "I love machine learning" generates biterms like (love, machine), (love, learning), and (machine, learning). By pooling all biterms into a single corpus-level set, the model captures global semantic relationships that document-level models miss. This approach significantly increases the available "signal" for the model, as a document of $n$ words yields $n(n-1)/2$ biterms.
Nonparametric Clustering and Inference
The model applies a Dirichlet Process mixture model to these biterms. To perform posterior inference, the authors adapt the Chinese Restaurant Process (CRP). In this metaphor, "customers" (biterms) sit at "tables" (topics). If a biterm sits at an existing table, it reinforces that topic; it can also choose to start a new table, allowing the number of topics to grow or shrink based on the data.
The authors designed a Markov chain Monte Carlo (MCMC) sampling scheme to estimate the global topic distribution and topic-word distributions, extending the standard CRP sampling algorithm. This allows the model to discover the optimal number of topics automatically without human intervention.
Experimental Evaluation
The model was evaluated using the Tweets2011 dataset, a collection of approximately 16 million tweets. After preprocessing, the training set consisted of 164,121 tweets and over 5.6 million biterms with a vocabulary of 16,021 distinct words.
Key Results
The authors compared BDP against LDA, BTM, and Hierarchical Dirichlet Process (HDP) using topic coherence and perplexity.
- Topic Coherence: This measures the semantic relatedness of top words in a topic. BDP achieved an average score of -711.42, significantly outperforming BTM (-758.86), HDP (-765.29), and LDA (-897.72). Note that scores closer to zero indicate better coherence.
- Automatic Topic Discovery: As shown in the experimental results, BDP automatically identifies a higher number of topics (approximately 52 in the test case) compared to the fixed or lower-performing settings of baseline models, providing a more granular and accurate representation of the corpus.
Qualitatively, BDP consistently produced more distinct and human-readable word clusters for events like the "2011 Egyptian Revolution" or the "Super Bowl" compared to LDA or HDP. It also showed lower (better) perplexity, indicating a superior fit for held-out test data.
Conclusion and Future Work
BDP successfully addresses the data sparsity of short texts while removing the need for manual topic count specification. By treating the entire corpus as a single set of biterms, it captures global semantic relationships that traditional models miss. However, the MCMC sampling process remains computationally intensive and memory-heavy. Future work could focus on scaling the model through parallelization or incorporating external knowledge bases (like Wikipedia or WordNet) to further enrich the sparse representations of short texts.
Summary updated