paper-with-me

홈 › Papers

Revisiting Mahalanobis Distance for Transformer-Based Out-of-Domain Detection

2021-01-11 · Alexander Podolskiy, Dmitry Lipin, Andrey Bout, Ekaterina Artemova, Irina Piontkovskaya

Real-life applications, heavily relying on machine learning, such as dialog systems, demand out-of-domain detection methods. Intent classification models should be equipped with a mechanism to distinguish seen intents from unseen ones so that the dialog agent is capable of rejecting the latter and avoiding undesired behavior. However, despite increasing attention paid to the task, the best practices for out-of-domain intent detection have not yet been fully established. This paper conducts a thorough comparison of out-of-domain intent detection methods. We prioritize the methods, not requiring access to out-of-domain data during training, gathering of which is extremely time- and labor-consuming due to lexical and stylistic variation of user utterances. We evaluate multiple contextual encoders and methods, proven to be efficient, on three standard datasets for intent classification, expanded with out-of-domain utterances. Our main findings show that fine-tuning Transformer-based encoders on in-domain data leads to superior results. Mahalanobis distance, together with utterance representations, derived from Transformer-based encoders, outperforms other methods by a wide margin and establishes new state-of-the-art results for all datasets. The broader analysis shows that the reason for success lies in the fact that the fine-tuned Transformer is capable of constructing homogeneous representations of in-domain utterances, revealing geometrical disparity to out of domain utterances. In turn, the Mahalanobis distance captures this disparity easily. The code is available in our GitHub repo: https://github.com/huawei-noah/noah-research/tree/master/Maha_OOD .

📄 PDF Abstract BibTeX arXiv:2101.03778

Code (1)

huawei-noah/noah-research 공식 구현 pytorch

Tasks

intent-classificationIntent ClassificationIntent DetectionOut of Distribution (OOD) Detection

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Multi-Head Attention 설명 없음
Attention 설명 없음

Similar Papers 제목 키워드 기반

A Deep Generative Distance-Based Classifier for Out-of-Domain Detection with Mahalanobis Space

2020-12-01 · COLING 2020 8 · Hong Xu, Keqing He, Yuanmeng Yan, Sihong Liu 외

Detecting out-of-domain (OOD) input intents is critical in the task-oriented dialog system. Different from most existing methods that rely heavily on manually labeled OOD samples, we focus on the unsupervised OOD detecti…

Out of Distribution (OOD) Detection

On the use of Mahalanobis distance for out-of-distribution detection with neural networks for medical imaging

2023-09-04 · Harry Anthony, Konstantinos Kamnitsas

Implementing neural networks for clinical use in medical applications necessitates the ability for the network to detect when input data differs significantly from the training data, with the aim of preventing unreliable…

Out-of-Distribution DetectionOut of Distribution (OOD) Detection

A Simple Fix to Mahalanobis Distance for Improving Near-OOD Detection

2021-06-16 · Jie Ren, Stanislav Fort, Jeremiah Liu, Abhijit Guha Roy 외

Mahalanobis distance (MD) is a simple and popular post-processing method for detecting out-of-distribution (OOD) inputs in neural networks. We analyze its failure modes for near-OOD detection and propose a simple fix cal…

Intent DetectionOut-of-Distribution DetectionOut of Distribution (OOD) Detection

Infinite-dimensional Mahalanobis Distance with Applications to Kernelized Novelty Detection

2024-07-16 · Nikita Zozoulenko, Thomas Cass, Lukas Gonon

The Mahalanobis distance is a classical tool used to measure the covariance-adjusted distance between points in $\bbR^d$. In this work, we extend the concept of Mahalanobis distance to separable Banach spaces by reinterp…

Anomaly DetectionNovelty DetectionSemi-supervised Anomaly DetectionSupervised Anomaly Detection+2

Rotated Object Detection via Scale-invariant Mahalanobis Distance in Aerial Images

2022-04-02 · Siyang Wen, Wei Guo, Yi Liu, Ruijie Wu

Rotated object detection in aerial images is a meaningful yet challenging task as objects are densely arranged and have arbitrary orientations. The eight-parameter (coordinates of box vectors) methods in rotated object d…

Objectobject-detectionObject DetectionObject Detection In Aerial Images