Distribution Calibration for Out-of-Domain Detection with Bayesian Approximation

Yanan Wu, Zhiyuan Zeng, Keqing He, Yutao Mou, Pei Wang +1 more
9/14/2022
cs.CL
bayesian

Official code: pris-nlp/COLING2022_Bayesian-for-OOD (4 stars, Python, last commit 2023-02-24).

Abstract

Out-of-Domain (OOD) detection is a key component in a task-oriented dialog system, which aims to identify whether a query falls outside the predefined supported intent set. Previous softmax-based detection algorithms are proved to be overconfident for OOD samples.

Show full abstract

In this paper, we analyze overconfident OOD comes from distribution uncertainty due to the mismatch between the training and test distributions, which makes the model can't confidently make predictions thus probably causing abnormal softmax scores. We propose a Bayesian OOD detection framework to calibrate distribution uncertainty using Monte-Carlo Dropout. Our method is flexible and easily pluggable into existing softmax-based baselines and gains 33.33\% OOD F1 improvements with increasing only 0.41\% inference time compared to MSP. Further analyses show the effectiveness of Bayesian learning for OOD detection.

View on arXivView PDF

Code Implementations(1)

40Python, ShellSep 14, 20223 years ago

Similar Papers

Cite this paper

@article{wu2022distribution,
  title  = {Distribution Calibration for Out-of-Domain Detection with Bayesian Approximation},
  author = {Yanan Wu and Zhiyuan Zeng and Keqing He and Yutao Mou and Pei Wang and Weiran Xu},
  year   = {2022},
  eprint = {2209.06612},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.06612}
}

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/2209.06612.svg)](https://codeofpaper.com/paper/2209.06612)

Discussion