Introduction
Traditional topic models, such as Latent Dirichlet Allocation (LDA), typically treat documents as static collections of words. This approach overlooks two vital dimensions: time and metadata. While Dynamic Topic Models (DTM) were developed to track topic evolution, they often suffer from high computational complexity due to non-conjugate priors and an "offline" nature that requires entire datasets upfront, making them unsuitable for streaming data like social media feeds.
To address these limitations, we introduce mDTM (metadata-incorporated Dynamic Topic Model). This framework leverages document metadata—such as hashtags, authorship, or location—to improve topic prediction accuracy and efficiency in streaming environments without sacrificing human interpretability.
Methodology
The mDTM framework reimagines LDA through the lens of Markov Chains, specifically modifying the transition probability used in Gibbs sampling. In standard LDA, a word's topic is selected based on document content and global topic popularity. mDTM introduces a third component: a metadata preference vector $g(h, t)$. This vector represents the likelihood of specific metadata (e.g., a hashtag) being associated with a specific topic at time $t$.
The model proposes two primary evolution patterns for updating metadata preferences:
- Time-decay Weighted Evolution: Assigns higher influence to recent data.
- Bayesian Posterior Evolution: Uses a Dirichlet prior based on the previous time step’s estimate to update current beliefs.
By "inheriting" information from previous time steps, mDTM requires fewer sampling iterations to converge, facilitating faster processing than running independent LDA models on new data batches.
Experimental Setup
The authors evaluated mDTM using two distinct benchmarks:
- Twitter (July - August 2009): A noisy dataset of millions of tweets using hashtags as metadata. This represents a challenging real-time streaming scenario.
- NIPS Paper Corpus (1987 - 2003): Scientific abstracts using authors as metadata to track shifting research interests over decades.
Key Results and Insights
Experimental results demonstrate that metadata serves as a powerful "warm start." Even when metadata is sparse (present in only ~10% of documents), it provides a sufficient signal to improve the modeling of the entire corpus.
Performance Metrics
- Predictive Accuracy: mDTM consistently achieved lower negative log-likelihood (indicating better predictive performance) compared to "Independent LDA" and "Pooled LDA" across both datasets.
- Efficiency: mDTM-2 completed processing in 39 minutes, significantly faster than the 58 minutes required for standard independent LDA, thanks to state inheritance.
- Interpretability: Mechanical Turk experiments confirmed that mDTM maintains or improves human interpretability. Qualitatively, the model successfully tracked the evolution of the "US Politics" topic on Twitter, aligning with real-world events and Google Trends.
Conclusion
mDTM provides a robust framework for incorporating metadata into dynamic topic analysis. While the current model assumes a fixed number of topics ($K$), it offers a scalable, efficient solution for streaming data. Future work may incorporate nonparametric priors, such as the Hierarchical Dirichlet Process (HDP), to allow for the automatic discovery and retirement of topics as they emerge and fade in data streams.
Summary updated