Skip to main content
QUICK REVIEW

[论文解读] IntentGPT: Few-shot Intent Discovery with Large Language Models

Juan Rodriguez, Nicholas Botzer|arXiv (Cornell University)|Nov 16, 2024
Topic ModelingComputer Science被引用 5
一句话总结

IntentGPT 是一个无需训练的框架,利用大语言模型的就地学习在开放式对话场景中发现新的用户意图,使用自动提示生成、语义少样本采样,以及即时 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.

研究动机与目标

  • 激发对话系统中不断出现新意图的开放世界意图发现。
  • 通过利用预训练的LLM进行提示设计和推理时学习,消除对领域特定数据的依赖和多阶段训练的需求。
  • 开发一个模块化管线,自动生成提示、选择有信息量的少样本,并在运行时整合新发现的意图。
  • 在标准意图发现基准(如 CLINC 和 BANKING)上评估该方法,并在少样本 ICL 设置下分析超参数敏感性。

提出的方法

  • 引入一个 In-Context Prompt Generator (ICPG),使用冻结的 LLM 自主地从一个小型带标签子集和领域上下文中构建任务提示。
  • 使用具备语义少样本采样(SFS)机制的少样本采样器,通过 SBERT 嵌入和余弦相似性选择语义相关的就地示例。
  • 实现 Known Intent Feedback (KIF),将已知意图和新发现的意图注入提示中,使冻结的 LLM 在推理过程中学习。
  • 可选地应用 Semantic Known Intent Feedback (SKIF),在不影响性能的前提下限制注入到上下文中的意图数量以提高效率。
  • 使用以生成的提示为条件的意图预测 LLM 来对测试话语进行分类并发现新意图,随后对 SBERT 嵌入进行聚类(K-Means)以评估分组质量。
  • 探索消融实验,以评估 ICPG、SFS、KIF/SKIF 以及提示特征对聚类基准指标(NMI、ARI、ACC)和发现指标的影响。
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

实验结果

研究问题

  • RQ1在极少标注数据的情况下,是否可以通过无需训练、基于提示的方法与 LLMs 实现具有竞争力的开放世界意图发现?
  • RQ2提示设计、少样本示例选择以及即时的已知/新发现意图反馈如何影响 CLINC 和 BANKING 的聚类基准指标?
  • RQ3语义少样本采样和已知意图反馈在减少误发现和提升整体意图聚类方面的相对收益是什么?
  • RQ4在不同的 LLM 主干(GPT-3.5、GPT-4、Llama-2)和不同的先验知识水平(KIR)下,该方法的表现如何?

主要发现

  • IntentGPT(尤其是使用 GPT-4 时)在 CLINC 和 BANKING 上在零样本、少样本(10/50 次)设置下表现出色,常常超越需要训练和领域特定数据的方法。
  • Known Intent Feedback (KIF) 通过复用意图并减少错误发现显著提升指标,消融实验显示移除 KIF 时性能下降。
  • Semantic Few-Shot Sampling (SFS) 通过将语义相关的示例注入提示中进一步提升结果,在与少样本提示结合时尤为有益。
  • Prompt design via the In-Context Prompt Generator (ICPG) 进行的提示设计显著提升预测质量,其在多语言或领域自适应提示中的使用有助于鲁棒性。
  • 在各 KIR 设置下,GPT-4 始终优于 GPT-3.5 和 Llama-2,表明规模和提示质量对开放世界意图发现有强烈影响。
  • 该方法在无监督和半监督基线下实现具有竞争力或优越的结果,而无需多阶段训练。
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.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。