mlsanityData to 14 Oct 2026

Optimized Algorithms for Text Clustering with LLM-Generated Constraints

arXiv 2601.11118 ↗First posted 16 Jan 2026cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 7 of its 36 references that are in the map. First posted on arXiv 16 Jan 2026.

Builds on

7 of 36 references.

References · 7

  1. 2023Large Language Models Enable Few-Shot Clusteringcited by 72
  2. 2023ClusterLLM: Large Language Models as a Guide for Text Clusteringcited by 70
  3. 2024Text Clustering as Classification with LLMscited by 16
  4. 2020Bipartite Matching in Nearly-linear Time on Moderately Dense Graphscited by 11
  5. 2022An algorithm for clustering with confidence-based must-link and cannot-link constraintscited by 9
  6. 2018A Binary Optimization Approach for Constrained K-Means Clusteringcited by 4
  7. 2024A3S: A General Active Clustering Method with Pairwise Constraintscited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.