A non-parametric mixture model for topic modeling over time

Avinava Dubey, Ahmed Hefny, Sinead A. Williamson, Eric P. Xing · DOI

Abstract

A single, stationary topic model such as latent Dirichlet allocation is inappropriate for modeling corpora that span long time periods, as the popularity of topics is likely to change over time. A number of models that incorporate time have been proposed, but in general they either exhibit limited forms of temporal variation, or require computationally expensive inference methods. In this paper we propose non-parametric Topics over Time (npTOT), a model for time-varying topics that allows an unbounded number of topics and flexible distribution over the temporal variations in those topics' popularity. We develop a collapsed Gibbs sampler for the proposed model and compare against existing models on synthetic and real document sets.

Introduction: The Ebb and Flow of Ideas

Standard topic models like Latent Dirichlet Allocation (LDA) treat a collection of documents as "exchangeable," assuming the order of creation is irrelevant. However, the thematic content of a newspaper from 1920 differs fundamentally from one published in 2024. While previous "Topics over Time" (TOT) models attempted to address this by assigning timestamp distributions to topics, they were limited by two major flaws: rigidity and manual tuning. They assumed topic popularity followed a unimodal (single-peak) distribution and required researchers to pre-specify the number of topics ($K$).

The researchers propose npTOT (non-parametric Topics over Time) to overcome these hurdles. This model automatically learns the number of topics while allowing them to rise and fall in popularity multiple times, capturing complex, recurring temporal patterns.

Methods: Flexible Non-parametric Modeling

The npTOT framework builds on the original TOT model but replaces rigid components with more flexible, non-parametric alternatives.

Plate notation of the npTOT model, incorporating Hierarchical Dirichlet Processes and Gaussian mixtures.

Key innovations include:

  • Hierarchical Dirichlet Process (HDP): Instead of a fixed $K$, the HDP allows the model to "spawn" new topics as needed to explain the data.
  • Infinite Mixture of Gaussians: To model time, npTOT uses a mixture of Gaussians with a Dirichlet Process prior. This allows a topic to have an unbounded number of popularity "peaks," unlike the unimodal Beta distributions used in standard TOT.
  • Joint Modeling: The model treats words and timestamps as a joint pair $(w, t)$, making time a random variable that helps define the topic itself.
  • Inference: Parameters are estimated using a collapsed Gibbs sampler based on the "Chinese Restaurant Franchise" metaphor.

Key Results and Insights

The model was evaluated on synthetic data, Twitter feeds during the Arab Spring, State of the Union (SOTU) addresses, and NIPS research papers.

Quantitative Performance

In terms of Perplexity and Joint Log-Likelihood, npTOT consistently outperformed original TOT and LDA-based baselines. On synthetic data, npTOT automatically discovered 27 out of 30 true topics without manual tuning.

Capturing Historical Complexity

On the SOTU dataset, npTOT demonstrated superior historical modeling. While traditional TOT models are forced to pick a single peak for a topic, npTOT can identify recurring relevance.

Comparison of TOT (blue) and npTOT (red) on the State of the Union dataset, highlighting npTOT's ability to capture multiple peaks of interest.

As shown in the figure above, for a topic related to US-Britain conflict, npTOT (red line) correctly identified a major peak during the War of 1812 while also capturing the rising tensions in the years leading up to it (e.g., the Embargo Act of 1807). In contrast, the standard TOT model (blue line) is restricted to a single, less informative peak.

Conclusion and Future Work

npTOT provides a robust framework for modeling the "waxing and waning" of ideas over time. By allowing for multi-modal temporal distributions, it captures the realistic "slow decay" of public interest and recurring seasonal or historical themes.

Future work may address the current model's reliance on symmetric Gaussian distributions, which can struggle with the sharp rise and gradual tail of breaking news events. Extending the framework to higher dimensions, such as geographic variations, remains a promising avenue for research.

Summary updated

Abstract

A single, stationary topic model such as latent Dirichlet allocation is inappropriate for modeling corpora that span long time periods, as the popularity of topics is likely to change over time. A number of models that incorporate time have been proposed, but in general they either exhibit limited forms of temporal variation, or require computationally expensive inference methods. In this paper we propose non-parametric Topics over Time (npTOT), a model for time-varying topics that allows an unbounded number of topics and exible distribution over the temporal variations in those topics' popularity. We develop a collapsed Gibbs sampler for the proposed model and compare against existing models on synthetic and real document sets.
BibTeX
@inproceedings{dubey2013non,
  author = {Avinava Dubey and Ahmed Hefny and Sinead A. Williamson and Eric P. Xing},
  title = {{A non-parametric mixture model for topic modeling over time}},
  booktitle = {SDM},
  year = {2013},
  doi = {10.1137/1.9781611972832.59},
}
Figure