Abstract
Correlated topic modeling has been limited to small model and problem sizes due to their high computational cost and poor scaling. In this paper, we propose a new model which learns compact topic embeddings and captures topic correlations through the closeness between the topic vectors. Our method enables efficient inference in the low-dimensional embedding space, reducing previous cubic or quadratic time complexity to linear w.r.t the topic size. We further speedup variational inference with a fast sampler to exploit sparsity of topic occurrence. Extensive experiments show that our approach is capable of handling model and data scales which are several orders of magnitude larger than existing correlation results, without sacrificing modeling quality by providing competitive or superior performance in document classification and retrieval.
Introduction
Traditional topic models like Latent Dirichlet Allocation (LDA) assume that topics occur independently within a document. However, real-world data contradicts this: a document discussing "Genetic Engineering" is far more likely to mention "Medicine" than "Sports." While the classic Correlated Topic Model (CTM) was designed to capture these relationships using a logistic-normal prior and a covariance matrix, it suffers from severe scalability issues. CTM's inference complexity scales cubically ($O(K^3)$) with the number of topics ($K$), typically limiting models to a few hundred topics. In contrast, modern industrial applications often require "long-tail" semantics involving millions of topics. This paper bridges this gap by providing the expressive power of CTM with the scalability of LDA.
Methodology: Topic Embedding
The authors propose a Topic Embedding Model that moves away from modeling every pairwise correlation explicitly in a massive matrix. Instead, they assign a compact, low-dimensional vector (an embedding) to each topic and each document.
- Correlation via Geometry: The affinity between a document and a topic is calculated using the inner product of their respective embedding vectors. If two topics have similar vectors, they are semantically related and more likely to co-occur.
- Low-Rank Approximation: This approach effectively acts as a low-rank decomposition of the CTM covariance matrix, drastically reducing the number of parameters to estimate.
- Sparsity-Aware Inference: To further boost speed, the authors developed a stochastic variational inference algorithm with a "fast sampler." This sampler exploits the observation that a single document usually contains only a few topics, and a single topic is defined by a few key words.
- Linear Complexity: These innovations bring the inference cost down to $O(K)$, making it feasible to run on massive datasets.
Experimental Evaluation
The model was evaluated on three diverse corpora: 20Newsgroups (~18,000 documents), NYTimes (1.8 million articles), and PubMed (8.2 million biomedical abstracts).
Key Results
- Massive Scale: The authors successfully discovered 100,000 topics on the 8.2 million PubMed documents. Previous state-of-the-art correlation models were limited to roughly 1,000 topics.
- Speed and Efficiency: On the NYTimes dataset, the proposed model was orders of magnitude faster than previous CTM variants. While vanilla CTM failed to finish within two days, this model converged in a few hours, matching the performance of the much simpler LDA.
- Modeling Quality: In document classification tasks, the embedding model outperformed both LDA and the original CTM, proving that the low-rank approximation does not sacrifice modeling power.
Discussion and Future Work
By treating topics as points in a geometric space, topic correlations gain an intuitive interpretation. The model maintains Bayesian rigor while leveraging the efficiency of distributed representation learning. A key insight is that sparsity is a feature: by ignoring irrelevant topics during sampling, the model achieves massive speedups without losing accuracy.
Future work may involve integrating this framework with Neural Topic Models by replacing variational distributions with neural inference networks (Amortized Inference). Additionally, combining this approach with advanced deep text generation models like VAEs could lead to even more coherent and semantically rich topic extractions.
Summary updated