Label smoothed embedding hypothesis for out-of-distribution detection

D Bahri, H Jiang, Y Tay, D Metzler - arXiv preprint arXiv:2102.05131, 2021 - arxiv.org
arXiv preprint arXiv:2102.05131, 2021arxiv.org
Detecting out-of-distribution (OOD) examples is critical in many applications. We propose an
unsupervised method to detect OOD samples using a $ k $-NN density estimate with respect
to a classification model's intermediate activations on in-distribution samples. We leverage a
recent insight about label smoothing, which we call the\emph {Label Smoothed Embedding
Hypothesis}, and show that one of the implications is that the $ k $-NN density estimator
performs better as an OOD detection method both theoretically and empirically when the …
Detecting out-of-distribution (OOD) examples is critical in many applications. We propose an unsupervised method to detect OOD samples using a -NN density estimate with respect to a classification model's intermediate activations on in-distribution samples. We leverage a recent insight about label smoothing, which we call the \emph{Label Smoothed Embedding Hypothesis}, and show that one of the implications is that the -NN density estimator performs better as an OOD detection method both theoretically and empirically when the model is trained with label smoothing. Finally, we show that our proposal outperforms many OOD baselines and also provide new finite-sample high-probability statistical results for -NN density estimation's ability to detect OOD examples.
arxiv.org
Showing the best result for this search. See all results