arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.13009cs.CLcs.AI
收藏

基于自然语言推理的判别最近邻Few-Shot意图检测

Discriminative Nearest Neighbor Few-Shot Intent Detection by Transferring Natural Language Inference

University of Illinois at Chicago(伊利诺伊大学芝加哥分校);Salesforce Research(Salesforce研究中心);Huazhong University of Science and Technology(华中科技大学)

Jian-Guo Zhang, Kazuma Hashimoto, Wenhao Liu, Chien-Sheng Wu, Yao Wan, Philip S. Yu, Richard Socher, Caiming Xiong

摘要:

意图检测是面向目标的对话系统的核心组成部分之一,而检测范围外(OOS)意图也是一项重要的实用技能。少样本学习在缓解数据稀缺方面吸引了很多关注,但OOS检测变得更具挑战性。在本文中,我们提出了一个简单而有效的方法,歧视性最近邻分类与深自我关注。与softmax分类器不同,我们利用BERT风格的成对编码来训练二进制分类器,该二进制分类器估计用户输入的最佳匹配训练样本。我们提出了通过转移一个自然语言推理(NLI)模型来提高区分能力。我们在大规模多领域意图检测任务上的大量实验表明,我们的方法比基于RoberTa的分类器和基于嵌入的最近邻方法实现了更稳定和准确的域内和OOS检测精度。更值得注意的是,NLI传输使我们的10次模型能够与50次甚至全次分类器竞争,同时我们可以通过利用更快的嵌入检索模型来保持推理时间恒定。

英文摘要:

Intent detection is one of the core components of goal-oriented dialog systems, and detecting out-of-scope (OOS) intents is also a practically important skill. Few-shot learning is attracting much attention to mitigate data scarcity, but OOS detection becomes even more challenging. In this paper, we present a simple yet effective approach, discriminative nearest neighbor classification with deep self-attention. Unlike softmax classifiers, we leverage BERT-style pairwise encoding to train a binary classifier that estimates the best matched training example for a user input. We propose to boost the discriminative ability by transferring a natural language inference (NLI) model. Our extensive experiments on a large-scale multi-domain intent detection task show that our method achieves more stable and accurate in-domain and OOS detection accuracy than RoBERTa-based classifiers and embedding-based nearest neighbor approaches. More notably, the NLI transfer enables our 10-shot model to perform competitively with 50-shot or even full-shot classifiers, while we can keep the inference time constant by leveraging a faster embedding retrieval model.

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

↑