mlsanityData to 14 Oct 2026

Context-Aware Clustering using Large Language Models

arXiv 2405.00988 ↗First posted 2 May 2024cs.CL cs.LGcited by 9

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

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2020Longformer: The Long-Document Transformercited by 3,413
  3. 2022Scaling Instruction-Finetuned Language Modelscited by 3,024
  4. 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,849
  5. 2020Reformer: The Efficient Transformercited by 1,668
  6. 2022BERTopic: Neural topic modeling with a class-based TF-IDF procedurecited by 801
  7. 2023Text Is All You Need: Learning Language Representations for Sequential Recommendationcited by 149
  8. 2021Supporting Clustering with Contrastive Learningcited by 90
  9. 2023Large Language Models Enable Few-Shot Clusteringcited by 72
  10. 2023ClusterLLM: Large Language Models as a Guide for Text Clusteringcited by 70
  11. 2020Discovering New Intents with Deep Aligned Clusteringcited by 68
  12. 2019Discovering New Intents via Constrained Deep Adaptive Clustering with Cluster Refinementcited by 56
3 more
  1. 2022Generalized Category Discovery with Decoupled Prototypical Networkcited by 35
  2. 2022Topic Discovery via Latent Space Clustering of Pretrained Language Model Representationscited by 34
  3. 2022New Intent Discovery with Pre-training and Contrastive Learningcited by 28

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 4; 2025: 3; 2026: 2.

9 papers.