KNN-Contrastive Learning for Out-of-Domain Intent Classification
Yunhua Zhou, Peiju Liu, Xipeng Qiu
Abstract
The Out-of-Domain (OOD) intent classification is a basic and challenging task for dialogue systems. Previous methods commonly restrict the region (in feature space) of In-domain (IND) intent features to be compact or simplyconnected implicitly, which assumes no OOD intents reside, to learn discriminative semantic features. Then the distribution of the IND intent features is often assumed to obey a hypothetical distribution (Gaussian mostly) and samples outside this distribution are regarded as OOD samples. In this paper, we start from the nature of OOD intent classification and explore its optimization objective. We further propose a simple yet effective method, named KNN-contrastive learning. Our approach utilizes K-Nearest Neighbors (KNN) of IND intents to learn discriminative semantic features that are more conducive to OOD detection. Notably, the density-based novelty detection algorithm is so well-grounded in the essence of our method that it is reasonable to use it as the OOD detection algorithm without making any requirements for the feature distribution. Extensive experiments on four public datasets show that our approach can not only enhance the OOD detection performance substantially but also improve the IND intent classification while requiring no restrictions on feature distribution. Code is available. 1 1 https://github.com/zyh190507/KnnContrastiveForOOD . Schedule me a table at Hilton Hotel OK, what is the specific time? Book a flight from London to Paris I found the following flight information for you. When will the COVID-19 pandemic end ?
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
12 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Contextual Augmented Global Contrast for Multimodal Intent Recognition cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
- Contextual Augmented Global Contrast for Multimodal Intent Recognition cites Supervised Contrastive Learning
- MIntRec2.0: A Large-scale Benchmark Dataset for Multimodal Intent Recognition and Out-of-scope Detection in Conversations cites Unknown Intent Detection Using Gaussian Mixture Model with an Application to Zero-shot Intent Classification
- Watch the Neighbors: A Unified K-Nearest Neighbor Contrastive Learning Framework for OOD Intent Discovery cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
- Watch the Neighbors: A Unified K-Nearest Neighbor Contrastive Learning Framework for OOD Intent Discovery cites Supervised Contrastive Learning
- Estimating Soft Labels for Out-of-Domain Intent Detection cites Unknown Intent Detection Using Gaussian Mixture Model with an Application to Zero-shot Intent Classification
- Estimating Soft Labels for Out-of-Domain Intent Detection cites Supervised Contrastive Learning
- Supervised Contrastive Learning cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
- With a Little Help from My Friends: Nearest-Neighbor Contrastive Learning of Visual Representations cites Supervised Contrastive Learning
Cited by top-tier papers12
- CoNT: Contrastive Neural Text GenerationChenxin An, Jiangtao Feng, Kai Lv, Lingpeng Kong et al.NeurIPS 2022 · 37 citations
- MIntRec2.0: A Large-scale Benchmark Dataset for Multimodal Intent Recognition and Out-of-scope Detection in ConversationsHanlei Zhang, Xin Wang, Hua Xu, Qianrui Zhou et al.ICLR 2024 · 29 citations
- Contextual Augmented Global Contrast for Multimodal Intent RecognitionKaili Sun, Zhiwen Xie, Mang Ye, Huyin ZhangCVPR 2024 · 19 citations
- Estimating Soft Labels for Out-of-Domain Intent DetectionHao Lang, Yinhe Zheng, Jian Sun, Fei Huang et al.EMNLP 2022 · 12 citations
- Watch the Neighbors: A Unified K-Nearest Neighbor Contrastive Learning Framework for OOD Intent DiscoveryYutao Mou, Keqing He, Pei Wang, Yanan Wu et al.EMNLP 2022 · 9 citations
Builds on6
- Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
- Understanding Contrastive Representation Learning through Alignment and Uniformity on the HypersphereTongzhou Wang, Phillip IsolaICML 2020 · 2,360 citations
- With a Little Help from My Friends: Nearest-Neighbor Contrastive Learning of Visual RepresentationsDebidatta Dwibedi, Yusuf Aytar, Jonathan Tompson, Pierre Sermanet et al.ICCV 2021 · 542 citations
- Revisiting Mahalanobis Distance for Transformer-Based Out-of-Domain DetectionAlexander Podolskiy, Dmitry Lipin, Andrey Bout, Ekaterina Artemova et al.AAAI 2021 · 100 citations
- Unknown Intent Detection Using Gaussian Mixture Model with an Application to Zero-shot Intent ClassificationGuangfeng Yan, Lu Fan, Qimai Li, Han Liu et al.ACL 2020 · 69 citations
Related papers
- Pseudo-Label Enhanced Prototypical Contrastive Learning for Uniformed Intent DiscoveryYimin Deng, Yuxia Wu, Guoshuai Zhao, Li Zhu et al.EMNLP Findings 2024 · 2 citations
- Out-of-Scope Intent Detection with Self-Supervision and Discriminative TrainingLi-Ming Zhan, Haowen Liang, Bo Liu, Lu Fan et al.ACL 2021
- Towards Open Environment Intent PredictionYunhua Zhou, Jiawei Hong, Xipeng QiuACL Findings 2023 · 1 citation
- Effective Open Intent Classification with K-center Contrastive Learning and Adjustable Decision BoundaryXiaokang Liu, Jianquan Li, Jingjing Mu, Min Yang et al.AAAI 2023 · 11 citations
- Discriminative Nearest Neighbor Few-Shot Intent Detection by Transferring Natural Language InferenceJian-Guo Zhang, Kazuma Hashimoto, Wenhao Liu, Chien-Sheng Wu et al.EMNLP 2020 · 65 citations
