TL;DR
This paper introduces a new family of neural topic models that move beyond the rigid constraints of traditional Bayesian inference. By parameterizing topic distributions with neural networks and training them via neural variational inference, the authors achieve state-of-the-art performance in document modeling while enabling the discovery of an unbounded number of topics through a novel recurrent stick-breaking process.
What Problem Does This Paper Address?
Topic modeling has long been dominated by probabilistic generative models like Latent Dirichlet Allocation (LDA). While effective, these models rely heavily on conjugate priors (like the Dirichlet distribution) to keep mathematical inference tractable. As researchers try to make these models more expressive—for example, by adding dependencies between topics—the math becomes increasingly complex, often requiring cumbersome approximations.
Furthermore, traditional models usually require you to pre-specify the number of topics ($K$). While Bayesian non-parametric models like the Hierarchical Dirichlet Process (HDP) can discover $K$ automatically, they are notoriously difficult to scale and implement. This paper seeks to bridge the gap between the flexibility of deep learning and the interpretability of discrete topic models.
Methods
The authors propose three neural architectures to construct topic distributions, all integrated into a Neural Variational Inference (NVI) framework. Instead of relying on Dirichlet conjugacy, they use a multivariate Gaussian as a prior and apply the "reparameterization trick" to allow for end-to-end training via backpropagation.
The three constructions for transforming a Gaussian draw into topic proportions ($\theta$) are:
- Gaussian Softmax (GSM): A simple linear projection followed by a softmax. This is the neural equivalent of a finite topic model.
- Gaussian Stick Breaking (GSB): Uses a "stick-breaking" construction (Figure 1) to transform Gaussian logits into proportions. This introduces a sparsity bias, where the model prefers to use fewer topics.
- Recurrent Stick Breaking (RSB): The most advanced variant, which uses a Recurrent Neural Network (RNN) to progressively "break the stick." This allows the model to dynamically increase the number of active topics during training, effectively creating a neural non-parametric model.
To handle the "unbounded" nature of topics in the RSB model, the authors also introduce RNNTopic, which dynamically generates new topic-word distributions ($\beta$) as needed.
Datasets
The models were evaluated on three standard text corpora:
- MXM Song Lyrics: A collection of lyrics from the Million Song Dataset (210k training samples).
- 20NewsGroups: A classic dataset of newsgroup posts categorized by subject.
- Reuters RCV1-v2: A large-scale collection of news stories (nearly 800k training samples).
Key Insights and Ideas
- Sparsity via Construction: The stick-breaking approach (GSB and RSB) naturally encourages the model to use a small subset of available topics. Figure 5 in the paper illustrates how GSB produces a "tail" of low-probability topics compared to the more even distribution of the standard GSM.
- Dynamic Topic Discovery: The RSB-TF (Truncation-Free) algorithm is a standout contribution. It monitors the likelihood increase brought by adding a new topic; if the improvement exceeds a threshold ($\gamma$), it "activates" another state in the RNN to create a new topic.
- Topic vs. Document Models: The authors distinguish between "document models" (which reconstruct the bag-of-words directly) and "topic models" (which explicitly model the word-to-topic assignment). They show that while document models often get better perplexity, explicit topic models provide better interpretability and topic coherence.
Key Results
The neural models consistently outperformed traditional baselines like Online LDA and HDP, as well as previous neural document models like NVDM.
- Perplexity: On the 20NewsGroups dataset ($K=50$), the GSM model achieved a perplexity of 822, significantly lower than Online LDA (893) and NVLDA (1073).
- Unbounded Discovery: The RSB-TF model achieved a perplexity of 825 on 20NewsGroups, vastly outperforming the traditional non-parametric HDP (937).
- Scalability: As shown in Figure 6, the GSB and RSB models remain stable even when the maximum number of topics is set very high (up to 1000), whereas the simple GSM model's performance begins to degrade as it overfits.
Limitations and Future Work
The authors note that while the RSB model is powerful, it can be slightly harder to train than the GSB model when the number of topics becomes very large (e.g., >400), likely due to the inherent difficulty of training RNNs on very long sequences.
Additionally, like many topic models, these can suffer from "redundant topics." The authors addressed this using a topic diversity regularization term, but finding more natural ways to ensure topic distinctness remains an open area for research. Future work could also explore applying these neural constructions to more complex hierarchical or temporal topic structures.
Summary updated