Abstract
Topic models and all their variants analyse text by learning meaningful representations through word co-occurrences. As pointed out by previous work, such models implicitly assume that the probability of a topic to be active and its proportion within each document are positively correlated. This correlation can be strongly detrimental in the case of documents created over time, simply because recent documents are likely better described by new and hence rare topics. In this work we leverage recent advances in neural variational inference and present an alternative neural approach to the dynamic Focused Topic Model. Indeed, we develop a neural model for topic evolution which exploits sequences of Bernoulli random variables in order to track the appearances of topics, thereby decoupling their activities from their proportions. We evaluate our model on three different datasets (the UN general debates, the collection of NeurIPS papers, and the ACL Anthology dataset) and show that it (i) outperforms state-of-the-art topic models in generalization tasks and (ii) performs comparably to them on prediction tasks, while employing roughly the same number of parameters, and converging about two times faster.
Introduction
Traditional topic models, such as Latent Dirichlet Allocation (LDA), operate on the assumption that a topic's activity within a document is positively correlated with its overall proportion. This coupling poses a significant challenge for dynamic datasets—collections that evolve over time, such as scientific literature or news archives. In these contexts, emerging "hot" topics are initially rare across the corpus but may constitute the primary focus of the specific documents where they appear. Standard models often fail to capture these nuances, "washing out" rare topics in favor of more frequent, general ones. To address this, there is a critical need to decouple topic activity (whether a topic is present) from its proportion (how much of the document it covers).
Methodology
The Neural Dynamic Focused Topic Model (NDF-TM) addresses this coupling issue through a neural architecture that leverages variational inference and Deep Kalman Filters. The model introduces two primary innovations:
- Explicit Activity Modeling: NDF-TM utilizes a sequence of Bernoulli random variables ($b_{t,d}$) to serve as a "mask." This mechanism determines which topics are active for a specific document at a given time, independent of the topic's global frequency.
- Neural Dynamics: Instead of relying on linear state-space models, NDF-TM employs Deep Kalman Filters and LSTMs to track the evolution of topic proportions and activities. This allows the model to capture complex, non-linear transitions as themes emerge, peak, and fade.
By employing neural variational inference, the model avoids the computational complexity of traditional non-parametric models like the Indian Buffet Process (IBP), resulting in sparser and more interpretable document representations.
Experimental Results
The NDF-TM was evaluated against state-of-the-art baselines, including D-ETM and DTM-REP, across three large-scale datasets: the UN General Debates (1970–2016), NeurIPS Papers (1987–2016), and the ACL Anthology (1973–2006).
Performance and Convergence
NDF-TM consistently outperformed baselines in generalization tasks, specifically in Perplexity on Document Completion (PPL-DC). This metric demonstrates the model's superior ability to predict the latter half of a document given the first half. Furthermore, the model achieved higher scores in Topic Coherence (TC) and Topic Diversity (TD), indicating the discovery of more semantically meaningful and distinct topics.
As shown in Figure 3, NDF-TM converges approximately twice as fast as the D-ETM baseline while maintaining a similar parameter count. Ablation studies further confirmed that the non-linear neural transitions are vital for performance, significantly outperforming linear alternatives.
Conclusion
The NDF-TM provides a robust solution for modeling topic evolution by decoupling activity from proportion. Its ability to capture emergent trends and produce sparse representations makes it highly effective for analyzing dynamic corpora. Future work may explore integrating NDF-TM with Variational Autoencoders (VAEs) for topic-guided text generation, potentially allowing for the creation of synthetic documents that reflect specific historical or predicted thematic trajectories.
Summary updated