arrow
Return

Large language models for efficient topic modeling

delete2025-09-05
delete0
PRE
AI
P
Panagiotis C. Theocharopoulos *
P
Panagiotis Anagnostou
S
Spiros V. Georgakopoulos
S
Sotiris K. Tasoulis
V
Vassilis P. Plagianakos
DOI:10.1007/s00521-025-11593-9delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
The utilization of large language models (LLMs) in research is becoming increasingly prevalent, as they offer advanced capabilities in processing and generating human-like text. However, this advancement comes with a significant trade-off in terms of time and computational costs. In this paper, we demonstrate that analyzing large text datasets with the use of LLMs can be performed efficiently in terms of both time and energy. For this purpose, we utilize the Llama pre-trained model. In more detail, we study the topic modeling task where the goal is to discover and identify topics in large text corpora. The basis of our approach is a hierarchical divisive clustering technique that clusters the data based on their semantic similarity, after employing a Sentence-BERT encoder, pre-trained on a variety of data across different tasks. Then, using an LLM, we identify topics for representative samples from each cluster. Additionally, we introduce a new evaluation method that leverages the capabilities of LLMs to assess the alignment between discovered topics and ground truth labels, providing a robust validation metric. Our findings indicate that it is possible to effectively reduce the computational cost of the topic modeling process compared to the direct application of LLMs and BERTopic, while simultaneously enhancing inference time and overall efficiency, thereby surpassing the current state-of-the-art capabilities of BERTopic.
Keywords:
Large language models
Hierarchical divisive clustering
Llama 3.1
BERTopic

Journal

Neural Computing and Applications cover
Neural Computing and Applications
IF:
4.5
Papers:
954
Citations:
3.2W

Organization

D
Department of Mathematics
Scholars:
1.5K
Papers: 927
Citations: 1
Cited Papers

Cited Papers

Efficient Memory Management for Large Language Model Serving with PagedAttention
err2023-10-23
err0
errOAAI
errWoosuk Kwon; Zhuohan Li; Siyuan Zhuang; Ying Sheng; Lianmin Zheng; Cody Hao Yu; Joseph Gonzalez; Hao Zhang; Ion Stoica
errShare
errSave
Hierarchical Deep Document Model
err2025-01-01
err0
PREAI
errYang, Yi; Lalor, John P.; Abbasi, Ahmed; Zeng, Daniel Dajun
errShare
errSave
Hipart: hierarchical divisive clustering toolbox
err
IF0
err2023-04-18
err0
PREAI
errPanagiotis Anagnostou; Sotiris Tasoulis; Vassilis P. Plagianakos; Dimitris Tasoulis
errShare
errSave
errShare
errSave
ChatGPT for good? On opportunities and challenges of large language models for education
err2023-04-01
err1.4K
errOAAI
errKasneci, Enkelejda; Sessler, Kathrin; Kuechemann, Stefan; Bannert, Maria; Dementieva, Daryna; Fischer, Frank; Gasser, Urs; Groh, Georg; Guennemann, Stephan; Huellermeier, Eyke; Krusche, Stepha; Kutyniok, Gitta; Michaeli, Tilman; Nerdel, Claudia; Pfeffer, Juergen; Poquet, Oleksandra; Sailer, Michael; Schmidt, Albrecht; Seidel, Tina; Stadler, Matthias; Weller, Jochen; Kuhn, Jochen; Kasneci, Gjergji
errShare
errSave
BTM: Topic Modeling over Short Texts
err2014-12-01
err322
PREAI
errCheng, Xueqi; Yan, Xiaohui; Lan, Yanyan; Guo, Jiafeng
errShare
errSave
researcher View more