Improving Contextualized Topic Models with Negative Sampling

Suman Adhya, Avishek Lahiri, Debarshi Kumar Sanyal, Partha Pratim Das
3/27/2023
cs.CLcs.LG

No official code found. Best implementation: AdhyaSuman/CTMNeg (2 stars, last commit 2025-06-15).

Abstract

Topic modeling has emerged as a dominant method for exploring large document collections. Recent approaches to topic modeling use large contextualized language models and variational autoencoders. In this paper, we propose a negative sampling mechanism for a contextualized topic model to improve the quality of the generated topics. In particular, during model training, we perturb the generated document-topic vector and use a triplet loss to encourage the document reconstructed from the correct document-topic vector to be similar to the input document and dissimilar to the document reconstructed from the perturbed vector. Experiments for different topic counts on three publicly available benchmark datasets show that in most cases, our approach leads to an increase in topic coherence over that of the baselines. Our model also achieves very high topic diversity.

View on arXivView PDF

Code Implementations(1)

AdhyaSuman/CTMNegCommunity100%

CTMNeg introduced negative sampling in Contextualized Topic Model to improve the generated topic quality in terms of topic coherence and topic diversity.

21CSS, HTMLNov 23, 20221 years ago

Similar Papers

Cite this paper

@article{adhya2023improving,
  title  = {Improving Contextualized Topic Models with Negative Sampling},
  author = {Suman Adhya and Avishek Lahiri and Debarshi Kumar Sanyal and Partha Pratim Das},
  year   = {2023},
  eprint = {2303.14951},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.14951v1}
}

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/2303.14951.svg)](https://codeofpaper.com/paper/2303.14951)

Discussion