Abstract
Traditional topic models like Latent Dirichlet Allocation (LDA) rely on the "bag-of-words" (BoW) assumption, which ignores word order and treats words as discrete, unrelated entities. This paper presents the Gaussian Mixture Neural Topic Model (GMNTM), a novel approach that represents topics as Gaussian components in a continuous vector space. By jointly learning word embeddings and topic clusters, GMNTM captures semantic relationships and remains sensitive to local word ordering. Evaluations on standard benchmarks show that GMNTM achieves superior performance in perplexity, classification accuracy, and document retrieval compared to traditional and neural baselines.
Introduction
For over a decade, topic modeling has been dominated by models like Latent Dirichlet Allocation (LDA). While effective, LDA suffers from two primary limitations: the loss of word order and semantic blindness. By treating documents as unordered collections of discrete integers, LDA cannot distinguish between sentences with different meanings but identical word counts, nor can it recognize that "teacher" and "teach" are semantically related. While Neural Probabilistic Language Models (NPLMs) generate dense embeddings that capture such semantics, these embeddings are often difficult to interpret as distinct topics. The Gaussian Mixture Neural Topic Model (GMNTM) bridges this gap by integrating semantic-aware embeddings with an interpretable topic structure.
Methodology: The Gaussian Mixture Neural Topic Model
The core innovation of GMNTM is representing topics as components of a Gaussian Mixture Model (GMM) within a multi-dimensional vector space. Every word, sentence, and document is mapped to a $V$-dimensional vector.
Topic Representation
Each of the $T$ topics corresponds to a specific Gaussian component defined by a mean $\mu$ and covariance $\Sigma$. Words associated with a particular topic are expected to cluster around that topic's mean in the embedding space. This allows the model to group semantically similar words even if they rarely co-occur in the same document.
Contextual Prediction and Inference
To incorporate word order, GMNTM predicts a target word based on three distinct influences: the global document vector, the current sentence vector, and a local context window of $m$ preceding words. Inference is performed in two stages:
- Stage I: The Expectation-Maximization (EM) algorithm is used to estimate the GMM parameters, defining the "shape" and location of topics.
- Stage II: Stochastic Gradient Descent (SGD) is employed to learn the latent vectors for words, sentences, and documents.
Experimental Results
The model was evaluated on the 20 Newsgroups and Reuters Corpus Volume 1 (RCV1-v2) datasets.
Quantitative Performance
GMNTM consistently outperformed baselines such as LDA and Over-Replicated Softmax (ORS). On the RCV1-v2 dataset, GMNTM achieved a perplexity of 826, significantly lower than ORS (982) and LDA (1246). In classification tasks on 20 Newsgroups, GMNTM reached 73.1% accuracy, surpassing ORS's 66.8%.
Document Retrieval
In document retrieval tasks, GMNTM demonstrated superior precision-recall performance. The improvement is particularly notable on the larger Reuters dataset, where the model's ability to leverage word order provides a stronger signal for matching relevant documents.
Qualitative Analysis
A qualitative inspection of topic words reveals that GMNTM produces more coherent and semantically relevant clusters. For instance, in a "Religion" topic, LDA includes generic terms like "would" and "accept," whereas GMNTM identifies highly specific, semantically related terms.
Conclusion
The Gaussian Mixture Neural Topic Model successfully addresses the limitations of the bag-of-words assumption by combining the interpretability of topic models with the semantic richness of neural embeddings. While the model currently requires a pre-specified number of topics and entails higher computational costs than simpler models, its performance gains in classification and retrieval are substantial. Future work includes exploring non-parametric extensions to automatically determine topic counts and integrating the model with recurrent architectures for broader downstream applications.
Summary updated