KNN-Contrastive Learning for Out-of-Domain Intent Classification

91Citations
Citations of this article
90Readers
Mendeley users who have this article in their library.

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 simply-connected 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.

Cite

CITATION STYLE

APA

Zhou, Y., Liu, P., & Qiu, X. (2022). KNN-Contrastive Learning for Out-of-Domain Intent Classification. In Proceedings of the Annual Meeting of the Association for Computational Linguistics (Vol. 1, pp. 5129–5141). Association for Computational Linguistics (ACL). https://doi.org/10.18653/v1/2022.acl-long.352

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free