Enhancing BERTopic with Intermediate Layer Representations
Koterwa, Dominik, Świtała, Maciej
–arXiv.org Artificial Intelligence
BERTopic is a topic modeling algorithm that leverages transformer-based embeddings to create dense clusters, enabling the estimation of topic structures and the extraction of valuable insights from a corpus of documents. This approach allows users to efficiently process large-scale text data and gain meaningful insights into its structure. While BERTopic is a powerful tool, embedding preparation can vary, including extracting representations from intermediate model layers and applying transformations to these embeddings. In this study, we evaluate 18 different embedding representations and present findings based on experiments conducted on three diverse datasets. To assess the algorithm's performance, we report topic coherence and topic diversity metrics across all experiments. Our results demonstrate that, for each dataset, it is possible to find an embedding configuration that performs better than the default setting of BERTopic. Additionally, we investigate the influence of stop words on different embedding configurations.
arXiv.org Artificial Intelligence
May-13-2025
- Country:
- Asia
- China > Hong Kong (0.04)
- Middle East > Jordan (0.04)
- Europe
- North America
- Mexico (0.04)
- United States
- California > Los Angeles County
- Los Angeles (0.14)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- California > Los Angeles County
- Oceania > Australia
- New South Wales > Sydney (0.04)
- Asia
- Genre:
- Research Report > New Finding (1.00)
- Industry:
- Government (0.95)
- Technology: