Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

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

About

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.

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

Related benchmarks

TaskDatasetResultRank
Intent ClassificationHINT3 5-shot
Accuracy59.73
23
Intent ClassificationHINT3 10-shot
Accuracy65.12
23
Intent ClassificationMCID 10-shot
Accuracy75.2
23
Intent ClassificationBANKING77 10-shot
Accuracy79.51
20
Intent ClassificationHWU64 10-shot
Accuracy78.12
20
Intent ClassificationBANKING77 5-shot (test)
Accuracy68.48
20
Intent DetectionBANKING 10-shot (test)
Accuracy86.71
16
Intent DetectionCLINC 10-shot (test)
Accuracy93.76
16
Intent DetectionHWU 10-shot (test)
Accuracy84.72
16
Intent DetectionBANKING 5-shot (test)
Accuracy80.4
12
Showing 10 of 19 rows

Other info

Follow for update