用大模型提升对话意图识别,兼顾准确率与速度
Intent Detection in the Age of LLMs
- 融合大模型与句向量模型,通过不确定性路由动态选择
- 实现接近大模型精度(差2%)且延迟降低50%
- 适合需要高精度和低延迟的实时对话系统
意图检测是任务导向对话系统的核心,用于在每轮对话中识别用户请求的合适动作。传统方法依赖高效但需大量训练数据的监督式句向量编码器,难以处理未定义意图(OOS)识别。生成式大语言模型(LLM)因其内在世界知识,为解决此问题带来新可能。本文采用7种前沿LLM,结合自适应上下文学习与思维链提示,对比其与对比微调的句向量模型(SetFit)在预测质量与延迟间的权衡。提出一种基于不确定性的混合路由策略,并引入负样本增强,使系统在仅50%延迟下达到接近原生LLM性能(误差<2%)。通过受控实验发现,LLM的OOS检测能力显著受意图标签范围与标签空间大小影响。进一步提出利用内部表示的两步法,使Mistral-7B模型在OOS检测准确率与F1分数上提升超5%。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。