Powered by OpenAIRE graph
Found an issue? Give us feedback
addClaim

From Topic Modeling to Semantic Labels: Efficient Topic Labeling with Small Language Models

Authors: Salma Mekaoui; Hiba SOFYAN; Imane AMAAZ; Imane BENCHRIF; Arsalane ZARGHILI; Ilham chaker; Nikola Nikolov;

From Topic Modeling to Semantic Labels: Efficient Topic Labeling with Small Language Models

Abstract

Large language models (LLMs) demonstrate strong capabilities in understanding textual data and performing related tasks. However, a major challenge with LLMs is their high computational resource requirement, which makes them expensive to use. Small language models (SLMs) have been proposed as a more efficient alternative, showing promising results in handling textual data. Nevertheless, SLMs struggle when processing very large texts due to limitations in analyzing long inputs. In this paper, we propose using topic modeling (TM) to condense large texts into smaller, focused topic representations, which are then input to SLMs to extract overall topics from large documents. While TM produces topic distributions that often lack semantic interpretability, SLMs can assist by assigning meaningful labels to these topic clusters of words. Additionally, we investigate enriching the topic representations with knowledge graphs to provide more semantic context to the SLMs. We compare three proposed algorithms under consistent conditions to demonstrate that SLMs enhanced with structured information can achieve results comparable to LLMs. Experimental results show that the proposed approach balances computational efficiency and semantic accuracy, making it suitable for resource constrained environments. For instance, our method achieved a cosine similarity of 0.65 using an SLM performance previously reached only by models like ChatGPT-3.5 (OpenAI 2023). These findings suggest that combining topic modeling with lightweight language models is a promising direction for scalable semantic text analysis.

  • BIP!
    Impact byBIP!
    selected citations
    These citations are derived from selected sources.
    This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    0
    popularity
    This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
    Average
    influence
    This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    Average
    impulse
    This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
    Average
Powered by OpenAIRE graph
Found an issue? Give us feedback
selected citations
These citations are derived from selected sources.
This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Citations provided by BIP!
popularity
This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
BIP!Popularity provided by BIP!
influence
This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Influence provided by BIP!
impulse
This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
BIP!Impulse provided by BIP!
0
Average
Average
Average
Upload OA version
Are you the author of this publication? Upload your Open Access version to Zenodo!
It’s fast and easy, just two clicks!