计算机科学 > 计算与语言
[提交于 2025年2月7日]
标题:Efficient Nearest Neighbor based Uncertainty Estimation for Natural Language Processing Tasks
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Wataru Hashimoto[v1] 2025年2月7日 星期五 00:00:00 UTC