Introduction
Topic modeling—the task of discovering latent themes in a collection of documents—has long been dominated by Latent Dirichlet Allocation (LDA). While effective, LDA relies on probabilistic inference that can be computationally expensive at scale. Recent "neural" topic models have attempted to use Variational Autoencoders (VAEs) or Generative Adversarial Networks (GANs) to improve performance. However, these often come with heavy baggage: high computational costs, unrealistic mathematical priors, and limited contextual understanding from single word co-occurrences.
Presented at EMNLP 2021, the Self-Supervised Neural Topic Model (SNTM) is a lightweight architecture that addresses these issues. It learns topics by predicting the cluster labels of word triplets within their document contexts, outperforming state-of-the-art models in topic coherence and document clustering while remaining efficient enough to train on a standard laptop.
Methodology
SNTM takes a three-step, self-supervised approach to discover latent themes:
- Seed Word Identification: The authors use a novel Shifted Normalized Point-wise Mutual Information (SNPMI) metric to identify "seed words." These words are highly representative and strongly connected to others in the corpus, filtering out outliers that do not contribute to clear themes.
- Initial Clustering: Seed words are represented as feature vectors based on their SNPMI with other seeds and grouped into $k$ clusters using K-Means. These clusters serve as the "pseudo-labels" for training.
- Self-Supervised Training: The core innovation is a simple feed-forward neural network. During training, the model is given an input document and a triplet of seed words that appear in that document. The model’s task is to predict which cluster label that triplet belongs to.
By training the network to associate triplets with their document context, the model learns a "rich context" representation. At inference time, the model can produce topic distributions for individual words or entire documents.
Experimental Setup
The authors evaluated SNTM on four widely used benchmarks:
- 20 News Group: A standard dataset for document clustering and topic discovery.
- The New York Times News Dataset: A large-scale collection of 100,000 articles.
- The Grolier Dataset: Encyclopedia articles covering a diverse range of topics.
- The AGNews Dataset: Used specifically for evaluating document clustering accuracy.
Key Results and Discussion
SNTM consistently achieved higher coherence scores ($C_{NPMI}$ and $C_{UCI}$) than all baselines, including LDA and the GAN-based Gaussian-BAT. This indicates that the topics generated by SNTM are more human-interpretable and semantically consistent.
On the 20 News Group dataset, SNTM achieved 42.16% clustering accuracy, outperforming the next best model (Gaussian-BAT) at 41.25%. On AGNews, it reached 86.37%, significantly beating W-LDA (83.87%).
Insights
- Triplets vs. Pairs: Training on word triplets captures higher-order interactions, exposing the network to a denser web of co-occurrence patterns.
- Classification as Proxy: Framing topic modeling as a classification task (predicting K-Means labels) allows the use of stable cross-entropy loss, avoiding the instability of VAE reconstruction or GAN adversarial losses.
- Efficiency: SNTM is "light-weight" and can be trained on commodity hardware like a standard laptop, unlike many neural models requiring high-end GPUs.
Limitations and Future Work
The model relies on a threshold ($q$) to filter word correlations; if set too high, it may discard useful information. Future work could explore larger word combinations (quadruplets) or hierarchical structures by adjusting the $q$ variable to generate topics at different levels of granularity.
Summary updated