HERCULES: Hierarchical Embedding-based Recursive Clustering Using LLMs for Efficient Summarization

Read full text
Authors: Gábor Petneházi, Bernadett Aradi
Cited by: 0

Abstract

The explosive growth of complex datasets across various modalities necessitates advanced analytical tools that not only group data effectively but also provide human-understandable insights into the discovered structures. We introduce HERCULES (Hierarchical Embedding-based Recursive Clustering Using LLMs for Efficient Summarization), a modality-agnostic software architecture that natively supports hierarchical k-means clustering of diverse data types, including text, images, and numeric data (processed one modality per run). HERCULES constructs a cluster hierarchy by recursively applying k-means clustering, starting from individual data points at level 0. A key innovation is its deep integration of Large Language Models (LLMs) to generate semantically rich titles and descriptions for clusters at each level of the hierarchy, significantly enhancing interpretability. The algorithm supports two main representation modes: ‘direct’ mode, which clusters based on original data embeddings or scaled numeric features, and ‘description’ mode, which clusters based on embeddings derived from LLM-generated summaries. Users can provide a ‘topic_seed’ to guide LLM-generated summaries towards specific themes. An interactive visualization tool facilitates thorough analysis and understanding of the clustering results. We demonstrate HERCULES’s capabilities and discuss its potential for extracting meaningful, hierarchical knowledge from complex datasets.

Fields of Study & Subjects

Topic Modeling Data Mining Algorithms and Applications Advanced Text Analysis Techniques

Publication details

Journal / source
International Journal of Cognitive Computing in Engineering
Volume
7
Pages
445–456
Publication date
27 April 2026
Language
EN