Abstract
Spectral topic models are prized for their speed and theoretical guarantees, but they historically struggle to reconstruct individual document compositions once the global model is trained. We introduce two new algorithms, PADD and PAMI, which leverage learned topic correlations as a flexible prior to reconstruct document-specific topic mixtures with high accuracy. Our methods demonstrate superior stability over existing linear techniques and achieve performance comparable to traditional Bayesian inference methods like Gibbs sampling, particularly on challenging short-text data.
Introduction
Topic modeling involves two primary outputs: global themes (topics) and document-specific theme distributions (compositions). While traditional probabilistic models like Latent Dirichlet Allocation (LDA) learn both simultaneously, they scale poorly to massive datasets. Spectral topic models solve the scaling issue by analyzing word co-occurrence matrices rather than individual documents. However, this efficiency creates a "blind spot": once topics are learned, the model lacks an inherent mechanism to determine what a specific document is about.
The Problem: Brittle Inference
The existing solution, Thresholded Linear Inverse (TLI), is mathematically elegant but practically brittle. It is a linear method that ignores the fact that topics are often correlated (e.g., "Politics" and "Economics" often co-occur) and is prone to numerical instability. As the number of topics ($K$) increases, TLI frequently fails on real-world data, leading to inaccurate or invalid results.
Methodology: PADD and PAMI
We propose treating document inference as an optimization problem that respects the prior structure of the data. We introduce two primary algorithms that utilize the Topic Correlation Matrix ($A$)—a piece of information spectral models already calculate but previously ignored during document-level inference.
- Prior-Aware Dual Decomposition (PADD): This method treats inference as a balancing act, finding a topic composition that fits the document's words while ensuring the overall distribution matches the learned correlation matrix $A$.
- Prior-Aware Manifold Iteration (PAMI): This approach strictly enforces the correlation structure by solving the problem on a Stiefel manifold. This acts as a powerful regularizer, preventing the model from getting "lost" in the noise of short documents.
Experimental Evaluation
We evaluated PADD and PAMI against TLI and Gibbs sampling across various datasets, including NeurIPS papers, NYTimes articles, music playlists (Songs), and Yelp reviews.
Key Results
- Superiority over TLI: In almost every test, TLI failed significantly as the number of topics increased due to numerical instability. PADD and PAMI remained stable and accurate.
- Matching Gibbs Sampling: On the NeurIPS and NYTimes datasets, PADD and PAMI performed nearly as well as Gibbs sampling—the gold standard for accuracy—despite Gibbs sampling being much slower and requiring more hyper-parameter tuning.
- The Yelp Win: On the Yelp dataset, which consists of notably short text, PAMI outperformed PADD. This demonstrates that enforcing the manifold structure is particularly beneficial when data is sparse.
Conclusion
This work effectively bridges the gap between the speed of spectral methods and the nuanced document-level understanding of probabilistic Bayesian models. By leveraging the "free" prior information in topic correlations, PADD and PAMI provide a scalable and robust solution for document-level inference in large-scale topic modeling.
Summary updated