arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.01627cs.CL
收藏

大语言模型时代的意图检测

Intent Detection in the Age of LLMs

Amazon(亚马逊);IIT Jammu(贾姆穆印度理工学院)

Gaurav Arora, Shreya Jain, Srujana Merugu

AI总结:

本文面向任务导向对话中的意图与OOS检测,结合SetFit、LLM提示、不确定性路由和内部表示,提出低延迟高准确率的混合方案。

摘要:

意图检测是任务导向对话系统(TODS)的关键组成部分,用于在每个对话轮次识别适合处理用户话语的动作。传统方法依赖计算高效的有监督句子Transformer编码器模型,但这类模型需要大量训练数据,并且在域外(OOS)检测方面表现困难。具备内在世界知识的生成式大语言模型(LLM)的出现,为应对这些挑战带来了新机遇。在本研究中,我们采用自适应上下文学习和思维链提示,对7个SOTA LLM进行意图检测适配,并将其性能与经过对比微调的句子Transformer(SetFit)模型进行比较,以突出预测质量与延迟之间的权衡。我们提出一种使用基于不确定性的路由策略来结合两种方法的混合系统;结合负数据增强后,该系统实现了两全其美的效果,即准确率与原生LLM相差不超过2%,同时延迟降低50%。为更好地理解LLM的OOS检测能力,我们开展了受控实验,结果表明这种能力会显著受到意图标签范围和标签空间大小的影响。我们还提出一种利用LLM内部表示的两步方法,实验证明在Mistral-7B模型上,OOS检测准确率和F1分数提升超过5%。

英文摘要:

Intent detection is a critical component of task-oriented dialogue systems (TODS) which enables the identification of suitable actions to address user utterances at each dialog turn. Traditional approaches relied on computationally efficient supervised sentence transformer encoder models, which require substantial training data and struggle with out-of-scope (OOS) detection. The emergence of generative large language models (LLMs) with intrinsic world knowledge presents new opportunities to address these challenges. In this work, we adapt 7 SOTA LLMs using adaptive in-context learning and chain-of-thought prompting for intent detection, and compare their performance with contrastively fine-tuned sentence transformer (SetFit) models to highlight prediction quality and latency tradeoff. We propose a hybrid system using uncertainty based routing strategy to combine the two approaches that along with negative data augmentation results in achieving the best of both worlds ( i.e. within 2% of native LLM accuracy with 50% less latency). To better understand LLM OOS detection capabilities, we perform controlled experiments revealing that this capability is significantly influenced by the scope of intent labels and the size of the label space. We also introduce a two-step approach utilizing internal LLM representations, demonstrating empirical gains in OOS detection accuracy and F1-score by >5% for the Mistral-7B model.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑