mlsanityData to 14 Oct 2026

Topic Modeling with Fine-tuning LLMs and Bag of Sentences

arXiv 2408.03099 ↗First posted 6 Aug 2024cs.CL cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) are increasingly used for topic modeling, outperforming classical topic models such as LDA. Commonly, pre-trained LLM encoders such as BERT are used out-of-the-box despite the fact that fine-tuning is known to improve LLMs considerably. The challenge lies in obtaining a suitable labeled dataset for fine-tuning. In this paper, we build on the recent idea of using bags of sentences as the elementary unit for computing topics. Based on this idea, we derive an approach called FT-Topic to perform unsupervised fine-tuning, relying primarily on two steps for constructing a training dataset in an automatic fashion. First, a heuristic method identifies pairs of sentence groups that are assumed to belong either to the same topic or to different topics. Second, we remove sentence pairs that are likely labeled incorrectly. The resulting dataset is then used to fine-tune an encoder LLM, which can be leveraged by any topic modeling approach that uses embeddings. In this work, we demonstrate its effectiveness by deriving a novel state-of-the-art topic modeling method called SenClu. The method achieves fast inference through an expectation-maximization algorithm and hard assignments of sentence groups to a single topic, while allowing users to encode prior knowledge about the topic-document distribution. Code is available at https://github.com/JohnTailor/FT-Topic

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 25 of its 77 references that are in the map. First posted on arXiv 6 Aug 2024.

Builds on

25 of 77 references.

References · 25

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  4. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
  5. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  6. 2022BERTopic: Neural topic modeling with a class-based TF-IDF procedurecited by 801
  7. 2019Topic Modeling in Embedding Spacescited by 224
  8. 2017Autoencoding Variational Inference For Topic Modelscited by 169
  9. 2023Explainable Artificial Intelligence (XAI) 2.0: A Manifesto of Open Challenges and Interdisciplinary Research Directionscited by 125
  10. 2020Pre-training is a Hot Topic: Contextualized Document Embeddings Improve Topic Coherencecited by 121
  11. 2015Neural Variational Inference for Text Processingcited by 111
  12. 2021Topic Modelling Meets Deep Neural Networks: A Surveycited by 51
13 more
  1. 2020PySBD: Pragmatic Sentence Boundary Disambiguationcited by 38
  2. 2022Representing Mixtures of Word Embeddings with Mixtures of Topic Embeddingscited by 36
  3. 2022Topic Discovery via Latent Space Clustering of Pretrained Language Model Representationscited by 34
  4. 2020Improving Neural Topic Models using Knowledge Distillationcited by 25
  5. 2024Explainable Generative AI (GenXAI): A Survey, Conceptualization, and Research Agendacited by 22
  6. 2023DeTiME: Diffusion-Enhanced Topic Modeling using Encoder-decoder based LLMcited by 16
  7. 2013Integrating Document Clustering and Topic Modelingcited by 9
  8. 2015Topic2Vec: Learning Distributed Representations of Topicscited by 6
  9. 2023A Survey of Deep Learning: From Activations to Transformerscited by 5
  10. 2023PromptMTopic: Unsupervised Multimodal Topic Modeling of Memes using Large Language Modelscited by 5
  11. 2016On a Topic Model for Sentencescited by 4
  12. 2017Topic Modeling based on Keywords and Contextcited by 3
  13. 2023Efficient and Flexible Topic Modeling using Pretrained Embeddings and Bag of Sentencescited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.