NILC: Discovering New Intents with LLM-assisted Clustering

Hongtao Wang, Renchi Yang, Wenqing Lin

TL;DR

NILC breaks the traditional rigid, one-way pipeline of New Intent Discovery (NID) by introducing an iterative framework that pairs text embeddings with the semantic reasoning of Large Language Models (LLMs). By dynamically updating cluster definitions with LLM-generated summaries and rewriting ambiguous user queries on the fly, NILC achieves state-of-the-art performance across both unsupervised and semi-supervised settings.

What Problem Does This Paper Address?

In practical dialogue systems like chatbots or customer service platforms, user needs constantly evolve. New Intent Discovery (NID) is the task of automatically identifying both known and entirely new user goals (intents) from unlabeled conversational data.

Traditionally, NID relies on a cascaded architecture:

  1. A text encoder maps user utterances into a semantic embedding space.
  2. A standard clustering algorithm (like $K$-Means) groups these embeddings into distinct intent categories.
The traditional decoupled cascaded architecture for NID.

However, this decoupled approach has a major flaw: it is a one-way street. The clustering step cannot provide feedback to fix poorly generated embeddings. Furthermore, embedding-only clustering often misses nuanced textual semantics and struggles heavily with ambiguous, terse, or jargon-heavy user queries (e.g., classifying "Confusion regarding laziness" in a programming dataset).

Methods

To bridge this gap, the authors propose NILC (New Intent Discovery LLM-assisted Clustering), an iterative framework that allows cluster assignments and text embeddings to mutually optimize each other using LLMs.

NILC introduces two core mechanisms:

1. Dual Centroid Scheme (DCS)

Instead of relying solely on a standard Euclidean centroid (the mathematical average of embeddings in a cluster), NILC introduces a semantic centroid. The framework selects a diverse subset of representative utterances (exemplars) from a cluster and prompts an LLM to generate a concise textual summary of the cluster's core theme. This summary is then encoded back into a vector, providing a precise semantic anchor that helps correct misassigned utterances.

The Dual Centroid Scheme combining Euclidean and LLM-semantic centroids.

2. Hard Sample Refinement (HSR)

NILC identifies "hard samples"—utterances sitting on cluster boundaries with high assignment uncertainty—using Shannon entropy. Instead of leaving them ambiguous, NILC uses a "judge-then-rewrite" LLM paradigm. The LLM reviews the context of the current cluster and its neighboring clusters, then rewrites the vague utterance into a clear, unambiguous exemplar. Crucially, NILC only updates the utterance's embedding if the rewrite successfully reduces the overall clustering cost.

The Hard Sample Refinement pipeline for resolving ambiguous data points.

Semi-Supervised Optimizations

When a small amount of labeled data is available, NILC injects supervision directly into the clustering stage via:

  • Seeding: Aligning initial cluster centroids with known intents using the Hungarian algorithm.
  • Soft Must-Links: Dynamically mapping clusters to known intents during iterations to pull relevant unlabeled samples toward them.

Datasets

The framework was evaluated across six diverse benchmark datasets:

  • CLINC: A general multi-domain dataset (22,500 utterances, 150 intents).
  • BANKING: A fine-grained banking domain dataset (13,083 utterances, 77 intents).
  • StackOverflow: A technical question dataset (20,000 samples, 20 classes).
  • M-CID: A specialized COVID-19 user query dataset (1,745 utterances, 16 intents).
  • SNIPS: A personal voice assistant dataset (14,484 utterances, 7 intents).
  • DBPedia: An ontology classification dataset (14,000 samples, 14 classes).

Key Insights and Ideas

  • Surgical, Cost-Effective LLM Usage: Fully processing massive utterance datasets with LLMs is financially and computationally prohibitive. NILC bypasses this by only calling the LLM for cluster summaries and a small subset of highly uncertain "hard samples."
  • Rewriting over Re-embedding: Editing and contextualizing ambiguous text via an LLM is highly effective at correcting the underlying data manifold, preventing the "centroid shift" that degrades standard $K$-Means.
  • Model Agnosticism: NILC acts as a wrapper framework. It successfully boosts performance regardless of the underlying text encoder (e.g., SentenceBERT, Instructor) or the chosen LLM (e.g., GPT-4o-Mini, DeepSeek-V3, Gemini-1.5-Pro).

Key Results

NILC consistently outperformed all embedding-based and LLM-driven baselines in both unsupervised and semi-supervised settings:

  • Unsupervised NID: On the challenging M-CID dataset, NILC achieved a massive performance leap over the strongest baseline (USNID), improving Normalized Mutual Information (NMI) by 7.22%, Adjusted Rand Score (ARI) by 7.72%, and Clustering Accuracy (ACC) by 11.38%.
  • Semi-Supervised NID: On the general CLINC dataset, NILC surpassed competitive baselines (including LLM-aided ones like LANID and IntentGPT), improving NMI by 0.41%, ARI by 1.76%, and ACC by 1.67% over the runner-up.

Limitations and Future Work

The authors note that while NILC is highly effective, occasional inaccuracies can still occur when processing extremely noisy data, which can negatively impact downstream system functionality. They recommend applying rigorous data cleaning and preprocessing before deploying the method. Advanced strategies for handling highly corrupted text data remain an open direction for future work.

Summary updated

BibTeX
@misc{wang2025nilc,
  author = {Hongtao Wang and Renchi Yang and Wenqing Lin},
  title = {{NILC: Discovering New Intents with LLM-assisted Clustering}},
  year = {2025},
  eprint = {2511.05913},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.05913},
}
Figure