English

BERTopic: Neural topic modeling with a class-based TF-IDF procedure

Computation and Language 2022-03-14 v1

Abstract

Topic models can be useful tools to discover latent topics in collections of documents. Recent studies have shown the feasibility of approach topic modeling as a clustering task. We present BERTopic, a topic model that extends this process by extracting coherent topic representation through the development of a class-based variation of TF-IDF. More specifically, BERTopic generates document embedding with pre-trained transformer-based language models, clusters these embeddings, and finally, generates topic representations with the class-based TF-IDF procedure. BERTopic generates coherent topics and remains competitive across a variety of benchmarks involving classical models and those that follow the more recent clustering approach of topic modeling.

Keywords

Cite

@article{arxiv.2203.05794,
  title  = {BERTopic: Neural topic modeling with a class-based TF-IDF procedure},
  author = {Maarten Grootendorst},
  journal= {arXiv preprint arXiv:2203.05794},
  year   = {2022}
}

Comments

BERTopic has a python implementation, see https://github.com/MaartenGr/BERTopic

R2 v1 2026-06-24T10:09:40.704Z