Efficient Nearest Neighbor based Uncertainty Estimation for Natural Language Processing Tasks

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Hashimoto, Wataru, Kamigaito, Hidetaka, Watanabe, Taro
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866915140701519872
author Hashimoto, Wataru
Kamigaito, Hidetaka
Watanabe, Taro
author_facet Hashimoto, Wataru
Kamigaito, Hidetaka
Watanabe, Taro
contents Trustworthiness in model predictions is crucial for safety-critical applications in the real world. However, deep neural networks often suffer from the issues of uncertainty estimation, such as miscalibration. In this study, we propose $k$-Nearest Neighbor Uncertainty Estimation ($k$NN-UE), which is a new uncertainty estimation method that uses not only the distances from the neighbors, but also the ratio of labels in the neighbors. Experiments on sentiment analysis, natural language inference, and named entity recognition show that our proposed method outperforms the baselines and recent density-based methods in several calibration and uncertainty metrics. Moreover, our analyses indicate that approximate nearest neighbor search techniques reduce the inference overhead without significantly degrading the uncertainty estimation performance when they are appropriately combined.
format Preprint
id arxiv_https___arxiv_org_abs_2407_02138
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Efficient Nearest Neighbor based Uncertainty Estimation for Natural Language Processing Tasks
Hashimoto, Wataru
Kamigaito, Hidetaka
Watanabe, Taro
Computation and Language
Artificial Intelligence
Machine Learning
Trustworthiness in model predictions is crucial for safety-critical applications in the real world. However, deep neural networks often suffer from the issues of uncertainty estimation, such as miscalibration. In this study, we propose $k$-Nearest Neighbor Uncertainty Estimation ($k$NN-UE), which is a new uncertainty estimation method that uses not only the distances from the neighbors, but also the ratio of labels in the neighbors. Experiments on sentiment analysis, natural language inference, and named entity recognition show that our proposed method outperforms the baselines and recent density-based methods in several calibration and uncertainty metrics. Moreover, our analyses indicate that approximate nearest neighbor search techniques reduce the inference overhead without significantly degrading the uncertainty estimation performance when they are appropriately combined.
title Efficient Nearest Neighbor based Uncertainty Estimation for Natural Language Processing Tasks
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2407.02138