Saved in:
Bibliographic Details
Main Authors: Jia, Chaoqi, Wu, Weihong, Guo, Longkun, Lu, Zhigang, Chen, Chao, Ong, Kok-Leong
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2601.11118
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909992190214144
author Jia, Chaoqi
Wu, Weihong
Guo, Longkun
Lu, Zhigang
Chen, Chao
Ong, Kok-Leong
author_facet Jia, Chaoqi
Wu, Weihong
Guo, Longkun
Lu, Zhigang
Chen, Chao
Ong, Kok-Leong
contents Clustering is a fundamental tool that has garnered significant interest across a wide range of applications including text analysis. To improve clustering accuracy, many researchers have incorporated background knowledge, typically in the form of must-link and cannot-link constraints, to guide the clustering process. With the recent advent of large language models (LLMs), there is growing interest in improving clustering quality through LLM-based automatic constraint generation. In this paper, we propose a novel constraint-generation approach that reduces resource consumption by generating constraint sets rather than using traditional pairwise constraints. This approach improves both query efficiency and constraint accuracy compared to state-of-the-art methods. We further introduce a constrained clustering algorithm tailored to the characteristics of LLM-generated constraints. Our method incorporates a confidence threshold and a penalty mechanism to address potentially inaccurate constraints. We evaluate our approach on five text datasets, considering both the cost of constraint generation and the overall clustering performance. The results show that our method achieves clustering accuracy comparable to the state-of-the-art algorithms while reducing the number of LLM queries by more than 20 times.
format Preprint
id arxiv_https___arxiv_org_abs_2601_11118
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Optimized Algorithms for Text Clustering with LLM-Generated Constraints
Jia, Chaoqi
Wu, Weihong
Guo, Longkun
Lu, Zhigang
Chen, Chao
Ong, Kok-Leong
Machine Learning
Clustering is a fundamental tool that has garnered significant interest across a wide range of applications including text analysis. To improve clustering accuracy, many researchers have incorporated background knowledge, typically in the form of must-link and cannot-link constraints, to guide the clustering process. With the recent advent of large language models (LLMs), there is growing interest in improving clustering quality through LLM-based automatic constraint generation. In this paper, we propose a novel constraint-generation approach that reduces resource consumption by generating constraint sets rather than using traditional pairwise constraints. This approach improves both query efficiency and constraint accuracy compared to state-of-the-art methods. We further introduce a constrained clustering algorithm tailored to the characteristics of LLM-generated constraints. Our method incorporates a confidence threshold and a penalty mechanism to address potentially inaccurate constraints. We evaluate our approach on five text datasets, considering both the cost of constraint generation and the overall clustering performance. The results show that our method achieves clustering accuracy comparable to the state-of-the-art algorithms while reducing the number of LLM queries by more than 20 times.
title Optimized Algorithms for Text Clustering with LLM-Generated Constraints
topic Machine Learning
url https://arxiv.org/abs/2601.11118