Lune

AAAI2026Top-tier venue

Optimized Algorithms for Text Clustering with LLM-Generated Constraints

Chaoqi Jia, Weihong Wu, Longkun Guo, Zhigang Lu, Chao Chen, Kok-Leong Ong

Abstract

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 LLMgenerated 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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • ClusterLLM: Large Language Models as a Guide for Text Clustering cites Goal-Driven Explainable Clustering via Language Descriptions
  • Goal-Driven Explainable Clustering via Language Descriptions cites One Embedder, Any Task: Instruction-Finetuned Text Embeddings
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on7

  1. One Embedder, Any Task: Instruction-Finetuned Text EmbeddingsHongjin Su, Weijia Shi, Jungo Kasai, Yizhong Wang et al.ACL Findings 2023 · 134 citations
  2. Bipartite Matching in Nearly-linear Time on Moderately Dense GraphsJan van den Brand, Yin Tat Lee, Danupon Nanongkai, Richard Peng et al.FOCS 2020 · 72 citations
  3. ClusterLLM: Large Language Models as a Guide for Text ClusteringYuwei Zhang, Zihan Wang, Jingbo ShangEMNLP 2023 · 43 citations
  4. Goal-Driven Explainable Clustering via Language DescriptionsZihan Wang, Jingbo Shang, Ruiqi ZhongEMNLP 2023 · 19 citations
  5. Unraveling Privacy Risks of Individual Fairness in Graph Neural NetworksHe Zhang, Xingliang Yuan, Shirui PanICDE 2024 · 9 citations

Related papers

  1. Co-Evolving LLMs and Embedding Models via Density-Guided Preference Optimization for Text ClusteringZetong Li, Qinliang Su, Minhua Huang, Yin YangEMNLP 2025
  2. Information-Theoretic Generative Clustering of DocumentsXin Du, Kumiko Tanaka-IshiiAAAI 2025 · 1 citation
  3. Hierarchical Textual Knowledge for Enhanced Image ClusteringYijie Zhong, Yunfan Gao, Weipeng Jiang, Haofen WangCVPR Findings 2026
  4. Unlocking Anticipatory Text Generation: A Constrained Approach for Large Language Models DecodingLifu Tu, Semih Yavuz, Jin Qu, Jiacheng Xu et al.EMNLP 2024 · 2 citations
  5. ZeroDL: Zero-shot Distribution Learning for Text Clustering via Large Language ModelsHwiyeol Jo, Hyunwoo Lee, Kang Min Yoo, Taiwoo ParkACL Findings 2025 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines