JOURNAL ARTICLE

Large Language Models Enable Few-Shot Clustering

Vijay ViswanathanKiril GashteovskiKiril GashteovskiCarolin LawrenceTongshuang WuGraham Neubig

Year: 2024 Journal:   Transactions of the Association for Computational Linguistics Vol: 12 Pages: 321-333   Publisher: Association for Computational Linguistics

Abstract

Abstract Unlike traditional unsupervised clustering, semi-supervised clustering allows users to provide meaningful structure to the data, which helps the clustering algorithm to match the user’s intent. Existing approaches to semi-supervised clustering require a significant amount of feedback from an expert to improve the clusters. In this paper, we ask whether a large language model (LLM) can amplify an expert’s guidance to enable query-efficient, few-shot semi-supervised text clustering. We show that LLMs are surprisingly effective at improving clustering. We explore three stages where LLMs can be incorporated into clustering: before clustering (improving input features), during clustering (by providing constraints to the clusterer), and after clustering (using LLMs post-correction). We find that incorporating LLMs in the first two stages routinely provides significant improvements in cluster quality, and that LLMs enable a user to make trade-offs between cost and accuracy to produce desired clusters. We release our code and LLM prompts for the public to use.1

Keywords:
Cluster analysis Computer science Code (set theory) Correlation clustering Machine learning Data mining Artificial intelligence Constrained clustering Fuzzy clustering Brown clustering CURE data clustering algorithm

Metrics

42
Cited By
26.19
FWCI (Field Weighted Citation Impact)
47
Refs
0.99
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Topic Modeling
Physical Sciences →  Computer Science →  Artificial Intelligence
Natural Language Processing Techniques
Physical Sciences →  Computer Science →  Artificial Intelligence
Text and Document Classification Technologies
Physical Sciences →  Computer Science →  Artificial Intelligence

Related Documents

JOURNAL ARTICLE

Few-Shot Learning with Large Language Models

Chandrakanth Lekkala

Journal:   Zenodo (CERN European Organization for Nuclear Research) Year: 2024
JOURNAL ARTICLE

Few-Shot Learning with Large Language Models

Chandrakanth Lekkala

Journal:   Zenodo (CERN European Organization for Nuclear Research) Year: 2024
JOURNAL ARTICLE

Few-Shot Image Classification Guided by Large Language Models

Pinzhe ChenHao ChenYanxi LiuLirong Han

Journal:   Applied and Computational Engineering Year: 2025 Vol: 151 (1)Pages: 118-124
JOURNAL ARTICLE

Large Language Models for Few-Shot Named Entity Recognition

Yufei ZhaoXiaoshi ZhongErik CambriaJagath C. Rajapakse

Journal:   AI Computer Science and Robotics Technology Year: 2025 Vol: 4
© 2026 ScienceGate Book Chapters — All rights reserved.