Discriminative Nearest Neighbor Few-Shot Intent Detection by Transferring Natural Language Inference
Jian-Guo Zhang, Kazuma Hashimoto, Wenhao Liu, Chien-Sheng Wu, Yao Wan, Philip S. Yu, Richard Socher, Caiming Xiong
Abstract
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 BERTstyle 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 embeddingbased 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.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 3f10993c-837c-4b7c-af11-e75bd6812c11Cited by top-tier papers9
- New Intent Discovery with Pre-training and Contrastive LearningYuwei Zhang, Haode Zhang, Li-Ming Zhan, Xiao-Ming Wu et al.ACL 2022 · 55 citations
- Label Semantic Aware Pre-training for Few-shot Text ClassificationAaron Mueller, Jason Krone, Salvatore Romeo, Saab Mansour et al.ACL 2022 · 41 citations
- ConvFiT: Conversational Fine-Tuning of Pretrained Language ModelsIvan Vulic, Pei-Hao Su, Samuel Coope, Daniela Gerz et al.EMNLP 2021 · 30 citations
- Learning to Select from Multiple OptionsJiangshu Du, Wenpeng Yin, Congying Xia, Philip S. YuAAAI 2023 · 8 citations
- Liberating Seen Classes: Boosting Few-Shot and Zero-Shot Text Classification via Anchor Generation and Classification ReframingHan Liu, Siyang Zhao, Xiaotong Zhang, Feng Zhang et al.AAAI 2024 · 7 citations
Builds on1
Related papers
- QAID: Question Answering Inspired Few-shot Intent DetectionAsaf Yehudai, Matan Vetzler, Yosi Mass, Koren Lazar et al.ICLR 2023 · 1 citation
- Simple and Effective Few-Shot Named Entity Recognition with Structured Nearest Neighbor LearningYi Yang, Arzoo KatiyarEMNLP 2020 · 198 citations
- Enhancing the generalization for Intent Classification and Out-of-Domain Detection in SLUYilin Shen, Yen-Chang Hsu, Avik Ray, Hongxia JinACL 2021
- Revisiting Mahalanobis Distance for Transformer-Based Out-of-Domain DetectionAlexander Podolskiy, Dmitry Lipin, Andrey Bout, Ekaterina Artemova et al.AAAI 2021 · 100 citations
- Out-of-Scope Intent Detection with Self-Supervision and Discriminative TrainingLi-Ming Zhan, Haowen Liang, Bo Liu, Lu Fan et al.ACL 2021
