Skip to main content
QUICK REVIEW

[Paper Review] Pre-training is a Hot Topic: Contextualized Document Embeddings Improve Topic Coherence

Federico Bianchi, Silvia Terragni|arXiv (Cornell University)|Apr 8, 2020
Topic ModelingComputer Science6 citations
TL;DR

This paper proposes integrating contextualized document embeddings from pre-trained language models (specifically SBERT) into neural topic models, specifically extending ProdLDA with sentence-level contextual representations. The method significantly improves topic coherence across multiple datasets, demonstrating that latent contextual information enhances topic quality beyond traditional bag-of-words models and existing neural topic models.

ABSTRACT

Topic models extract groups of words from documents, whose interpretation as a topic hopefully allows for a better understanding of the data. However, the resulting word groups are often not coherent, making them harder to interpret. Recently, neural topic models have shown improvements in overall coherence. Concurrently, contextual embeddings have advanced the state of the art of neural models in general. In this paper, we combine contextualized representations with neural topic models. We find that our approach produces more meaningful and coherent topics than traditional bag-of-words topic models and recent neural models. Our results indicate that future improvements in language models will translate into better topic models.

Motivation & Objective

  • Improve topic coherence in neural topic models by incorporating contextualized word and sentence representations.
  • Address the limitation of bag-of-words (BoW) representations, which ignore syntactic and semantic relationships crucial for coherence.
  • Investigate whether pre-trained contextual embeddings from models like SBERT can enhance topic modeling performance.
  • Demonstrate that advancements in language modeling directly benefit topic modeling through improved contextual understanding.
  • Provide a simple, extensible framework for integrating contextual embeddings into existing neural topic models.

Proposed method

  • Extend the ProdLDA neural topic model by replacing its bag-of-words input with contextualized document embeddings from SBERT.
  • Use SBERT to generate sentence embeddings for entire documents, capturing semantic and syntactic context.
  • Concatenate the SBERT embeddings with the original BoW representation as input to the neural topic model.
  • Train the model using black-box variational inference to optimize the variational lower bound on the log-likelihood.
  • Project the SBERT embeddings through a dense layer with size equal to the vocabulary to align with the topic model’s input dimension.
  • Ensure compatibility with any autoencoder-based topic model and any pre-trained sentence encoder, making the method modular and generalizable.

Experimental results

Research questions

  • RQ1Can contextualized document embeddings improve topic coherence in neural topic models compared to traditional bag-of-words inputs?
  • RQ2How does the integration of pre-trained contextual representations affect topic diversity and interpretability?
  • RQ3Does the choice of pre-trained sentence encoder (e.g., RoBERTa vs. BERT) impact topic coherence performance?
  • RQ4To what extent do improvements in language models translate into better topic modeling outcomes?
  • RQ5Can long documents be effectively represented using contextual embeddings despite the input length limitations of models like SBERT?

Key findings

  • The proposed CombinedTM model achieves significantly higher topic coherence than both traditional BoW-based models and recent neural topic models like MetaLDA, with p < 0.05 in t-tests on all datasets.
  • On the 20Newsgroups dataset, the model achieves a weighted mean coherence score of 0.12, outperforming MetaLDA’s 0.13 only in the best case, but showing consistent improvement on other datasets.
  • On Wiki20K, the model achieves a coherence score of 0.18 (with 100 topics), significantly outperforming MetaLDA’s 0.13 (p < 0.05).
  • Using RoBERTa-based SBERT (stsb-roberta-large) yields better coherence than BERT-based SBERT (bert-base-nli-mean), indicating that the quality of the contextual encoder matters.
  • The model maintains competitive topic diversity while significantly improving coherence, suggesting a balanced improvement in topic quality.
  • The results indicate that future advancements in pre-trained language models will directly benefit topic modeling through better contextual representation learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.