CWTM: Leveraging Contextualized Word Embeddings from BERT for Neural Topic Modeling

Zheng Fang, Yulan He, Rob Procter
5/16/2023
cs.CLcs.AI

No official code found. Best implementation: Fitz-like-coding/CWTM (3 stars, last commit 2024-09-03).

Abstract

Most existing topic models rely on bag-of-words (BOW) representation, which limits their ability to capture word order information and leads to challenges with out-of-vocabulary (OOV) words in new documents. Contextualized word embeddings, however, show superiority in word sense disambiguation and effectively address the OOV issue. In this work, we introduce a novel neural topic model called the Contextlized Word Topic Model (CWTM), which integrates contextualized word embeddings from BERT. The model is capable of learning the topic vector of a document without BOW information. In addition, it can also derive the topic vectors for individual words within a document based on their contextualized word embeddings. Experiments across various datasets show that CWTM generates more coherent and meaningful topics compared to existing topic models, while also accommodating unseen words in newly encountered documents.

View on arXivView PDF

Code Implementations(1)

30PythonFeb 28, 20242 years ago

Cite this paper

@article{fang2023cwtm,
  title  = {CWTM: Leveraging Contextualized Word Embeddings from BERT for Neural Topic Modeling},
  author = {Zheng Fang and Yulan He and Rob Procter},
  year   = {2023},
  eprint = {2305.09329},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.09329v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.09329.svg)](https://codeofpaper.com/paper/2305.09329)

Discussion