Metric Learning and Adaptive Boundary for Out-of-Domain Detection

Petr Lorenc, Tommaso Gargiani, Jan Pichl, Jakub Konrád, Petr Marek +2 more
4/22/2022
cs.CL

Official code: tgargiani/Adaptive-Boundary (8 stars, Python, last commit 2022-11-18).

Abstract

Conversational agents are usually designed for closed-world environments. Unfortunately, users can behave unexpectedly.

Show full abstract

Based on the open-world environment, we often encounter the situation that the training and test data are sampled from different distributions. Then, data from different distributions are called out-of-domain (OOD). A robust conversational agent needs to react to these OOD utterances adequately. Thus, the importance of robust OOD detection is emphasized. Unfortunately, collecting OOD data is a challenging task. We have designed an OOD detection algorithm independent of OOD data that outperforms a wide range of current state-of-the-art algorithms on publicly available datasets. Our algorithm is based on a simple but efficient approach of combining metric learning with adaptive decision boundary. Furthermore, compared to other algorithms, we have found that our proposed algorithm has significantly improved OOD performance in a scenario with a lower number of classes while preserving the accuracy for in-domain (IND) classes.

View on arXivView PDF

Code Implementations(1)

Metric Learning and Adaptive Boundary for Out-of-Domain Detection (NLDB 2022)

80PythonMay 11, 20214 years ago
conversational-agentintent-classificationmetric-learningnatural-language-processingnldb2022+2 more

Similar Papers

Cite this paper

@article{lorenc2022metric,
  title  = {Metric Learning and Adaptive Boundary for Out-of-Domain Detection},
  author = {Petr Lorenc and Tommaso Gargiani and Jan Pichl and Jakub Konrád and Petr Marek and Ondřej Kobza and Jan Šedivý},
  year   = {2022},
  eprint = {2204.10849},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.10849}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2204.10849.svg)](https://codeofpaper.com/paper/2204.10849)

Discussion