Abstract
Latent Dirichlet Allocation (LDA) models discrete data as a mixture of discrete distributions, using Dirichlet beliefs over the mixture weights. We study a variation of this concept, the Kernel Topic Model (KTM), in which document-topic proportions are modeled using Gaussian Processes (GPs). This framework allows for the direct integration of complex, non-linear metadata—such as time, geography, or social networks—into topic discovery via the power of kernels, providing a unified non-parametric approach to context-aware modeling.
Introduction
Standard topic models like LDA typically treat documents as "bags of words" in isolation. However, real-world documents are inextricably linked to their context: authorship, publication date, and geographic origin. While specialized extensions of LDA exist for specific metadata types (e.g., Dynamic Topic Models for time-series), these are often ad-hoc solutions. They frequently rely on linear regressions or point estimates that fail to capture non-linear relationships or provide a full Bayesian account of uncertainty. The Kernel Topic Model (KTM) addresses this by replacing standard Dirichlet priors with Gaussian Processes, creating a flexible framework capable of handling any metadata structure—Euclidean or otherwise.
Methodology
The Hilbert Space Approach
The core innovation of the KTM is the marriage of topic modeling and Gaussian Processes. Instead of relying on fixed, low-dimensional features, KTM associates documents with elements of a Reproducing Kernel Hilbert Space (RKHS). By employing kernels, the model can account for complex structures like social graphs or non-linear temporal trends without requiring manual feature engineering.
The Laplace Bridge
A significant technical hurdle in combining LDA and GPs is that LDA relies on Dirichlet distributions, while GPs produce Gaussian distributions. These distributions are analytically incompatible. The authors resolve this by deriving a "Laplace Bridge"—a fast, numerically lightweight Laplace approximation that maps Dirichlet beliefs into a "squashed" Gaussian space (specifically, the softmax basis).
Performing the approximation in the softmax basis is a key insight; unlike the standard simplex basis, the Dirichlet distribution does not diverge at the boundaries in the softmax basis, allowing for a significantly higher-quality Gaussian approximation.
Experimental Evaluation
The authors evaluated KTM across three distinct data types to demonstrate its versatility:
- State of the Union (SOTU) Addresses: Using a corpus of US presidential speeches (1790–2011), the KTM used a Rational Quadratic kernel to capture both long-term historical trends and short-term spikes. It achieved a perplexity score approximately 12% lower than the previous state-of-the-art, Dirichlet-Multinomial Regression (DMR).
- Wikipedia "Probability Topics": By using the graph structure of article links as metadata, the KTM proved its ability to discover topics on non-Euclidean manifolds.
- NIPS Dataset: This standard collection was used to demonstrate the model's capacity for automatic hyperparameter tuning via maximum evidence, optimizing kernel parameters like temporal "smoothness" without manual trial-and-error.
Discussion and Conclusion
KTM provides a powerful, Bayesian framework for context-aware topic modeling, offering superior predictive power and the ability to quantify uncertainty. However, the reliance on Gaussian Processes introduces a computational cost of $O(D^3)$, where $D$ is the number of documents. This complexity necessitates the use of sparse GP approximations for scaling to massive datasets. Future work may also focus on refining the Laplace bridge for extremely sparse settings where the Dirichlet concentration parameter is near zero.
Summary updated