Context-Aware Clustering using Large Language Models
Not on the map. Why?
Abstract (arXiv)
Despite the remarkable success of Large Language Models (LLMs) in text understanding and generation, their potential for text clustering tasks remains underexplored. We observed that powerful closed-source LLMs provide good quality clusterings of entity sets but are not scalable due to the massive compute power required and the associated costs. Thus, we propose CACTUS (Context-Aware ClusTering with aUgmented triplet losS), a systematic approach that leverages open-source LLMs for efficient and effective supervised clustering of entity subsets, particularly focusing on text-based entities. Existing text clustering methods fail to effectively capture the context provided by the entity subset. Moreover, though there are several language modeling based approaches for clustering, very few are designed for the task of supervised clustering. This paper introduces a novel approach towards clustering entity subsets using LLMs by capturing context via a scalable inter-entity attention mechanism. We propose a novel augmented triplet loss function tailored for supervised clustering, which addresses the inherent challenges of directly applying the triplet loss to this problem. Furthermore, we introduce a self-supervised clustering task based on text augmentation techniques to improve the generalization of our model. For evaluation, we collect ground truth clusterings from a closed-source LLM and transfer this knowledge to an open-source LLM under the supervised clustering framework, allowing a faster and cheaper open-source model to perform the same task. Experiments on various e-commerce query and product clustering datasets demonstrate that our proposed approach significantly outperforms existing unsupervised and supervised baselines under various external clustering evaluation metrics.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 15 of its 37 references that are in the map. First posted on arXiv 2 May 2024.
Builds on
15 of 37 references.
References · 15
- 2023GPT-4 Technical Reportcited by 18,396
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2022Scaling Instruction-Finetuned Language Modelscited by 3,024
- 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,849
- 2020Reformer: The Efficient Transformercited by 1,668
- 2022BERTopic: Neural topic modeling with a class-based TF-IDF procedurecited by 801
- 2023Text Is All You Need: Learning Language Representations for Sequential Recommendationcited by 149
- 2021Supporting Clustering with Contrastive Learningcited by 90
- 2023Large Language Models Enable Few-Shot Clusteringcited by 72
- 2023ClusterLLM: Large Language Models as a Guide for Text Clusteringcited by 70
- 2020Discovering New Intents with Deep Aligned Clusteringcited by 68
- 2019Discovering New Intents via Constrained Deep Adaptive Clustering with Cluster Refinementcited by 56
Built on by
Citing papers per year: 2024: 4; 2025: 3; 2026: 2.
9 papers.
- 2024Tool-Planner: Task Planning with Clusters across Multiple Toolscited by 33
- 2024Organizing Unstructured Image Collections using Natural Languagecited by 7
- 2025Summaries as Centroids for Interpretable and Scalable Text Clusteringcited by 4
- 2025HERCULES: Hierarchical Embedding-based Recursive Clustering Using LLMs for Efficient Summarizationcited by 3
- 2026Cluster-R1: Large Reasoning Models Are Instruction-following Clustering Agentscited by 2
- 2024RWKV-edge: Deeply Compressed RWKV for Resource-Constrained Devicescited by 1
- 2024ERASMO: Leveraging Large Language Models for Enhanced Clustering Segmentationcited by 0
- 2025In-Context Clustering with Large Language Modelscited by 0
- 2026AudioLens: Multi-Perspective Speech Clustering with Reasoning Audio-Language Modelscited by 0
- 2026AudioLens: Multi-Perspective Speech Clustering with Reasoning Audio-Language Models25 Aug 2026
- 2026Cluster-R1: Large Reasoning Models Are Instruction-following Clustering Agents6 Mar 2026
- 2025In-Context Clustering with Large Language Models9 Oct 2025
- 2025HERCULES: Hierarchical Embedding-based Recursive Clustering Using LLMs for Efficient Summarization24 Jun 2025
- 2025Summaries as Centroids for Interpretable and Scalable Text Clustering12 Feb 2025
- 2024RWKV-edge: Deeply Compressed RWKV for Resource-Constrained Devices14 Dec 2024
- 2024Organizing Unstructured Image Collections using Natural Language7 Oct 2024
- 2024ERASMO: Leveraging Large Language Models for Enhanced Clustering Segmentation1 Oct 2024
- 2024Tool-Planner: Task Planning with Clusters across Multiple Tools6 Jun 2024