Abstract
Topic models traditionally analyze text by learning representations through word co-occurrences. However, many models implicitly assume that the probability of a topic being active and its proportion within a document are positively correlated. This assumption is particularly detrimental for dynamic datasets, where emerging or rare topics may be highly significant within specific documents despite low global prevalence. This paper introduces the Neural Dynamic Focused Topic Model (NDF-TM), which leverages neural variational inference and Bernoulli random variables to decouple topic activity from proportion. Evaluated on the UN General Debates, NeurIPS papers, and the ACL Anthology, NDF-TM outperforms state-of-the-art models in generalization and interpretability while converging twice as fast.
Introduction
In the analysis of time-stamped document collections—such as news archives or scientific journals—tracking the evolution of topics is critical. Traditional dynamic topic models often suffer from a "coupling" flaw: they assume that for a topic to be important in a specific document, it must also be relatively common across the entire corpus. This makes it difficult for models to identify "focused" topics—those that appear rarely but dominate the content when they do occur (e.g., a specific scientific breakthrough or a localized geopolitical crisis).
The Coupling Problem
As identified by Williamson et al. (2010), standard models like Latent Dirichlet Allocation (LDA) and its dynamic variants link the probability of a topic's presence to its weight. In a dynamic context, this is problematic because recent documents are often best described by new, and therefore rare, topics. If a model requires high global activity to assign high local proportion, these emerging trends are often smoothed over or ignored in favor of more persistent, general topics.
The NDF-TM Framework
NDF-TM addresses this by modeling topic evolution through two distinct latent sequences, effectively creating a "focused" architecture:
- Activity ($\xi_t$): A sequence of Bernoulli random variables that acts as a binary mask. This determines whether a topic is "on" or "off" for a document at time $t$.
- Proportion ($\eta_t$): A continuous sequence modeling the intensity or weight of the topics.
By multiplying these two variables, the model can assign a high proportion to a topic even if its global activity is low.
Technical Innovations
- Deep Kalman Filters: The model utilizes Deep Kalman Filters to track the Markovian evolution of these latent states over time, allowing for complex, non-linear transitions.
- Neural Variational Inference: Unlike previous focused models that relied on slow, non-parametric Bayesian sampling (such as the Indian Buffet Process), NDF-TM uses the reparameterization trick and LSTMs. This allows the model to scale to large datasets and perform inference efficiently.
- Dynamic Embeddings: Topics are represented as dynamic embeddings, allowing the semantic meaning of a topic to shift as the vocabulary evolves over decades.
Experimental Evaluation
The authors evaluated NDF-TM against state-of-the-art baselines, including the Dynamic Embedded Topic Model (D-ETM) and DTM-REP, across three major datasets:
- UN General Debates (1970–2016): 231,000 documents of international discourse.
- NeurIPS Papers (1987–2016): 6,500 documents tracking AI research trends.
- ACL Anthology (1973–2006): 10,500 documents from computational linguistics.
Results and Discussion
Generalization and Interpretability
NDF-TM consistently outperformed baselines in Perplexity on Document Completion (PPL-DC), suggesting a superior understanding of document structure. Furthermore, the model achieved higher Topic Coherence (TC) and Topic Diversity (TD). For example, on the NeurIPS dataset, NDF-TM reached a TD score of 0.85, compared to 0.82 for D-ETM. The Bernoulli "mask" allows the model to exclude noise, preventing it from forcing common topics into documents where they do not belong.
Historical Sensitivity
The model demonstrates a unique ability to capture "spiky" historical events. In the UN dataset, the topic "Middle East" showed significant spikes in activity during the 1990 Gulf War and the 2011 Syrian Civil War. While the global proportion of words dedicated to the topic remained relatively stable, the activity variable correctly identified its increased relevance during these periods.
Computational Efficiency
A significant advantage of the neural approach is speed. NDF-TM converged 2x to 2.8x faster than D-ETM. While performing comparably on future document prediction tasks (Predictive Negative Log-Likelihood), it did so with a similar parameter count, proving that the added complexity of the Bernoulli latent variables does not come at a prohibitive computational cost.
Conclusion
The Neural Dynamic Focused Topic Model successfully decouples topic activity from proportion, providing a more accurate reflection of how topics emerge and dominate specific documents over time. By combining the strengths of focused topic modeling with the efficiency of neural variational inference, NDF-TM offers a scalable and interpretable solution for analyzing large-scale dynamic corpora. Future work may involve integrating this architecture with Variational Autoencoders for topic-guided text generation and further optimizing the parameterization of Bag-of-Words vectors.
Summary updated