Abstract
Dynamic topic models (DTMs) model the evolution of prevalent themes in literature, online media, and other forms of text over time. DTMs assume that word co-occurrence statistics change continuously, allowing for the tracking of thematic shifts. However, traditional DTMs are often computationally expensive and restricted to simple random-walk dynamics. This paper introduces Scalable Generalized Dynamic Topic Models, which utilize Gaussian Processes (GPs) to incorporate rich temporal patterns and leverage sparse inducing points for massive scalability.
Introduction
Probabilistic topic models, such as Latent Dirichlet Allocation (LDA), typically assume that topics are static. This assumption fails to capture how a "technology" topic in 1900 differs significantly from one in 2020. Dynamic Topic Models (DTMs) were developed to allow topic vocabularies to drift over time.
Despite their utility, existing DTMs face two primary challenges:
- Limited Flexibility: They rely on Wiener processes (Brownian motion), which assume continuous, unbounded change. This makes it difficult to model phenomena like long-term memory, mean-reverting behavior, or sudden, localized events.
- Poor Scalability: Inference usually depends on the forward-backward algorithm, requiring a full pass through the data per iteration. This becomes computationally prohibitive for datasets with thousands of unique time stamps.
Methodology: Generalized Priors and Scalable Inference
The authors address these limitations through two key innovations:
Generalized Priors via Gaussian Processes
Instead of a restricted Wiener process, the model employs a generic Gaussian Process prior on topic evolution. This allows for the selection of various kernel functions to match specific temporal dynamics:
- Ornstein-Uhlenbeck (OU) kernels: Introduce mean-reverting forces, ideal for detecting localized events.
- Squared Exponential (SE) kernels: Provide smooth trajectories with short-term memory.
- Cauchy kernels: Offer long-term memory with polynomial decay, suitable for smoothing trajectories over long horizons.
Scalability via Sparse GPs and SVI
To overcome the $O(T^3)$ complexity of standard GPs, the authors utilize inducing points. This technique approximates the full timeline using a smaller set of artificial time stamps. Combined with Stochastic Variational Inference (SVI) and closed-form natural gradients, the model can be trained efficiently on large-scale mini-batches.
Experimental Evaluation
The model was evaluated on three diverse time-stamped corpora:
- The New York Times Annotated Corpus (NYT): 100,000 articles (1987–2007) with 7,475 time stamps.
- NIPS Dataset: 2,711 machine learning papers (1987–2006).
- State of the Union (SoU): U.S. presidential addresses spanning over two centuries, chunked into 4,428 documents.
Results and Discussion
Quantitative Performance
Generalized DTMs using OU, Cauchy, or RBF kernels consistently outperformed the classic Wiener-based DTM in per-word predictive perplexity across all datasets. The Cauchy kernel performed best on the NIPS and SoU datasets, while the OU kernel was superior for the NYT corpus.
Qualitative Historical Insights
The choice of kernel significantly impacts the historical trends uncovered. For instance, in the State of the Union dataset, the baseline Wiener model produces a generic probability "blob" for the "war" topic. In contrast, the Cauchy and OU kernels provide "super-resolution," accurately pinpointing peaks corresponding to the Mexican-American War, WWII, and the Vietnam War.
Conclusion
Scalable Generalized Dynamic Topic Models offer a flexible and efficient framework for tracking thematic evolution in large text corpora. By allowing practitioners to choose kernels that match the expected temporal dynamics of their data, the model uncovers nuanced trends that traditional methods miss. Future work may explore periodic kernels for repeating events and extending the framework to geo-spatial domains.
Summary updated