Balancing Complexity and Informativeness in LLM-Based Clustering: Finding the Goldilocks Zone
Justin Miller, Tristram Alexander
TL;DR
This study addresses how to balance cluster granularity and interpretability in short-text clustering using LLM-generated cluster names. It applies Gaussian Mixture Models on embeddings produced by an LLM and evaluates cluster quality with semantic density, Adjusted Mutual Information, and accuracy to locate a Goldilocks zone. The results identify an optimal range of $K$ around $16$–$22$ where clusters remain distinct yet interpretable, driven by the semantic alignment between bios and cluster names. The findings offer practical guidance for selecting cluster counts and naming strategies, and highlight the importance of reliability considerations such as locally hosted LLMs for reproducible, interpretable clustering in real-world deployments.
Abstract
The challenge of clustering short text data lies in balancing informativeness with interpretability. Traditional evaluation metrics often overlook this trade-off. Inspired by linguistic principles of communicative efficiency, this paper investigates the optimal number of clusters by quantifying the trade-off between informativeness and cognitive simplicity. We use large language models (LLMs) to generate cluster names and evaluate their effectiveness through semantic density, information theory, and clustering accuracy. Our results show that Gaussian Mixture Model (GMM) clustering on embeddings generated by a LLM, increases semantic density compared to random assignment, effectively grouping similar bios. However, as clusters increase, interpretability declines, as measured by a generative LLM's ability to correctly assign bios based on cluster names. A logistic regression analysis confirms that classification accuracy depends on the semantic similarity between bios and their assigned cluster names, as well as their distinction from alternatives. These findings reveal a "Goldilocks zone" where clusters remain distinct yet interpretable. We identify an optimal range of 16-22 clusters, paralleling linguistic efficiency in lexical categorization. These insights inform both theoretical models and practical applications, guiding future research toward optimising cluster interpretability and usefulness.
