Skip to main content
QUICK REVIEW

[Paper Review] IntentGPT: Few-shot Intent Discovery with Large Language Models

Juan Rodriguez, Nicholas Botzer|arXiv (Cornell University)|Nov 16, 2024
Topic ModelingComputer Science5 citations
TL;DR

IntentGPT is a training-free framework that uses in-context learning with large language models to discover new user intents in open-world dialogue settings, using automatic prompt generation, semantic few-shot sampling, and on-the-fly Known Intent Feedback.

ABSTRACT

In today's digitally driven world, dialogue systems play a pivotal role in enhancing user interactions, from customer service to virtual assistants. In these dialogues, it is important to identify user's goals automatically to resolve their needs promptly. This has necessitated the integration of models that perform Intent Detection. However, users' intents are diverse and dynamic, making it challenging to maintain a fixed set of predefined intents. As a result, a more practical approach is to develop a model capable of identifying new intents as they emerge. We address the challenge of Intent Discovery, an area that has drawn significant attention in recent research efforts. Existing methods need to train on a substantial amount of data for correctly identifying new intents, demanding significant human effort. To overcome this, we introduce IntentGPT, a novel training-free method that effectively prompts Large Language Models (LLMs) such as GPT-4 to discover new intents with minimal labeled data. IntentGPT comprises an extit{In-Context Prompt Generator}, which generates informative prompts for In-Context Learning, an extit{Intent Predictor} for classifying and discovering user intents from utterances, and a extit{Semantic Few-Shot Sampler} that selects relevant few-shot examples and a set of known intents to be injected into the prompt. Our experiments show that IntentGPT outperforms previous methods that require extensive domain-specific data and fine-tuning, in popular benchmarks, including CLINC and BANKING, among others.

Motivation & Objective

  • Motivate open-world intent discovery where new intents continually emerge in dialogue systems.
  • Eliminate heavy domain-specific data and multi-stage training by leveraging pre-trained LLMs for prompt design and inference-time learning.
  • Develop a modular pipeline that auto-generates prompts, selects informative few-shot samples, and integrates newly discovered intents on the fly.
  • Evaluate the approach on standard intent-discovery benchmarks (e.g., CLINC and BANKING) and analyze hyperparameter sensitivity in a few-shot ICL setting.

Proposed method

  • Introduce an In-Context Prompt Generator (ICPG) that uses a frozen LLM to autonomously craft a task prompt from a small labeled subset and domain context.
  • Employ a Few-Shot Sampler with a Semantic Few-Shot Sampling (SFS) mechanism to select semantically relevant in-context examples via SBERT embeddings and cosine similarity.
  • Implement Known Intent Feedback (KIF) to inject both known and discovered intents into prompts, enabling the frozen LLM to learn during inference.
  • Optionally apply Semantic Known Intent Feedback (SKIF) to limit the number of intents injected for context efficiency without sacrificing performance.
  • Use an Intent Predictor LLM conditioned on the generated prompt to classify test utterances and discover new intents, followed by clustering (K-Means) over SBERT embeddings to evaluate grouping quality.
  • Explore ablations to assess the impact of ICPG, SFS, KIF/SKIF, and prompt features on clustering-based metrics (NMI, ARI, ACC) and discovery metrics.
Figure 1: IntentGPT architecture. The system consists of two frozen LLMs. The In-Context Prompt Generator receives a small subset of training data and is devoted to generating a task prompt using domain context. The generated prompt is filled with, few-shot samples, a list of known intents, and the
Figure 1: IntentGPT architecture. The system consists of two frozen LLMs. The In-Context Prompt Generator receives a small subset of training data and is devoted to generating a task prompt using domain context. The generated prompt is filled with, few-shot samples, a list of known intents, and the

Experimental results

Research questions

  • RQ1Can a training-free, prompt-based approach with LLMs achieve competitive open-world intent discovery with minimal labeled data?
  • RQ2How do prompt design, few-shot sample selection, and on-the-fly known/discovered-intent feedback affect clustering-based metrics in CLINC and BANKING?
  • RQ3What is the relative benefit of semantic few-shot sampling and known-intent feedback in reducing misdiscovery and improving overall intent clustering?
  • RQ4How does the method perform across different LLM backbones (GPT-3.5, GPT-4, Llama-2) and varying levels of prior knowledge (KIR)?

Key findings

  • IntentGPT (especially with GPT-4) achieves strong performance on CLINC and BANKING in zero-shot, few-shot (10/50 shots) settings, often outperforming methods that require training and domain-specific data.
  • Known Intent Feedback (KIF) significantly improves metrics by reusing intents and reducing erroneous discovery, with ablations showing performance drops when KIF is removed.
  • Semantic Few-Shot Sampling (SFS) further improves results by injecting semantically relevant examples into prompts, beneficial when combined with few-shot prompts.
  • Prompt design via the In-Context Prompt Generator (ICPG) markedly enhances predictive quality, and its use in multilingual or domain-adaptive prompts aids robustness.
  • Across KIR settings, GPT-4 consistently outperforms GPT-3.5 and Llama-2, indicating scale and prompting quality strongly influence open-world intent discovery.
  • The method achieves competitive or superior results relative to unsupervised and semi-supervised baselines, without requiring multi-stage training.
Figure 2: Pipeline of IntentGPT with real examples (CLINC). The top part displays the automatic prompt generation process. The bottom part shows the inference process, where we use the generated prompt and few-shot examples for discovering intents. We do not show the Few Shot Sampler for simplicity.
Figure 2: Pipeline of IntentGPT with real examples (CLINC). The top part displays the automatic prompt generation process. The bottom part shows the inference process, where we use the generated prompt and few-shot examples for discovering intents. We do not show the Few Shot Sampler for simplicity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.