[Paper Review] textTOvec: Deep Contextualized Neural Autoregressive Topic Models of Language with Distributed Compositional Prior
This paper proposes ctx-DocNADE and ctx-DocNADEe, neural autoregressive topic models that integrate LSTM-based language models and word embeddings to capture word order, syntax, semantics, and long-range dependencies—overcoming the bag-of-words limitation of traditional topic models. The models significantly improve perplexity, topic coherence, and performance in retrieval and classification, especially on short or sparse text datasets.
We address two challenges of probabilistic topic modelling in order to better estimate the probability of a word in a given context, i.e., P(word|context): (1) No Language Structure in Context: Probabilistic topic models ignore word order by summarizing a given context as a "bag-of-word" and consequently the semantics of words in the context is lost. The LSTM-LM learns a vector-space representation of each word by accounting for word order in local collocation patterns and models complex characteristics of language (e.g., syntax and semantics), while the TM simultaneously learns a latent representation from the entire document and discovers the underlying thematic structure. We unite two complementary paradigms of learning the meaning of word occurrences by combining a TM (e.g., DocNADE) and a LM in a unified probabilistic framework, named as ctx-DocNADE. (2) Limited Context and/or Smaller training corpus of documents: In settings with a small number of word occurrences (i.e., lack of context) in short text or data sparsity in a corpus of few documents, the application of TMs is challenging. We address this challenge by incorporating external knowledge into neural autoregressive topic models via a language modelling approach: we use word embeddings as input of a LSTM-LM with the aim to improve the word-topic mapping on a smaller and/or short-text corpus. The proposed DocNADE extension is named as ctx-DocNADEe. We present novel neural autoregressive topic model variants coupled with neural LMs and embeddings priors that consistently outperform state-of-the-art generative TMs in terms of generalization (perplexity), interpretability (topic coherence) and applicability (retrieval and classification) over 6 long-text and 8 short-text datasets from diverse domains.
Motivation & Objective
- To address the limitation of traditional topic models in ignoring word order and language structure by incorporating neural language modeling.
- To improve topic model performance in low-resource settings with sparse or short text by integrating pre-trained word embeddings as an external knowledge prior.
- To unify neural autoregressive topic modeling with contextual language modeling in a single probabilistic framework for enhanced semantic representation.
- To evaluate the proposed models on diverse long-text and short-text datasets across retrieval, classification, and coherence metrics.
Proposed method
- Integrates a DocNADE-based neural autoregressive topic model with an LSTM-based language model (LSTM-LM) to jointly model local collocation patterns and global document-level semantics.
- Uses the hidden states of the LSTM-LM to condition word probability estimation in the topic model, enabling context-aware word generation.
- Incorporates pre-trained word embeddings as input priors to improve word-topic mapping in low-resource settings.
- Extends the framework to ctx-DocNADEe by using word embeddings as a compositional prior to enhance generalization on sparse or short-text corpora.
- Employs a unified probabilistic framework where topic assignments and language modeling are jointly optimized via maximum likelihood estimation.
- Leverages hierarchical representations from the LSTM-LM, with lower layers capturing syntax and higher layers capturing semantics, to enrich topic modeling.
Experimental results
Research questions
- RQ1Can integrating a neural language model into a topic model improve the estimation of P(word|context) by capturing word order and semantic structure?
- RQ2How does the integration of word embeddings as a prior improve topic model performance in low-resource or short-text settings?
- RQ3Does combining a topic model with a contextual language model lead to better generalization, as measured by perplexity, compared to state-of-the-art models?
- RQ4To what extent do the proposed models improve topic interpretability and downstream NLP tasks like retrieval and classification?
- RQ5Can the model maintain performance gains when only a small fraction of the training data is available?
Key findings
- ctx-DocNADEe achieves an IR-precision of 0.580 at 20% training data fraction, outperforming DocNADE’s 0.444 on the TMNtitle dataset.
- On the same dataset, ctx-DocNADEe achieves a macro-F1 score of 0.711 at 20% training data, compared to DocNADE’s 0.615.
- ctx-DocNADEe reports a 0.595 IR-precision and 0.726 macro-F1 at 100% training data, surpassing DocNADE’s 0.525 and 0.688, respectively.
- The model improves topic coherence and interpretability, with ctx-DocNADEe extracting more coherent topics than DocNADE on the 20NS dataset.
- In text retrieval, ctx-DocNADEe retrieves relevant documents with no unigram overlap to the query, demonstrating robust semantic generalization.
- The proposed models consistently outperform state-of-the-art generative topic models across 7 long-text and 8 short-text datasets in perplexity, coherence, retrieval, and classification tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.