Efficient Nearest Neighbor based Uncertainty Estimation for Natural Language Processing Tasks
Not on the map. Why?
Abstract (arXiv)
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 (kNN-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.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 38 of its 60 references that are in the map. First posted on arXiv 2 Jul 2024.
Builds on
38 of 60 references.
References · 38
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2017On Calibration of Modern Neural Networkscited by 4,860
- 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,416
- 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,888
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2015Variational Inference with Normalizing Flowscited by 2,161
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
- 2016Density estimation using Real NVPcited by 2,029
- 2015A large annotated corpus for learning natural language inferencecited by 1,837
- 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,479
26 more
- 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,219
- 2019Aleatoric and Epistemic Uncertainty in Machine Learning: An Introduction to Concepts and Methodscited by 903
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
- 2018Evidential Deep Learning to Quantify Classification Uncertaintycited by 728
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 596
- 2017Regularizing Neural Networks by Penalizing Confident Output Distributionscited by 461
- 2020Simple and Principled Uncertainty Estimation with Deterministic Deep Learning via Distance Awarenesscited by 389
- 2020Calibration of Pre-trained Transformerscited by 307
- 2020Nearest Neighbor Machine Translationcited by 209
- 2021Deep Deterministic Uncertainty: A Simple Baselinecited by 200
- 2020Posterior Network: Uncertainty Estimation without OOD Samples via Density-Based Pseudo-Countscited by 163
- 2023LM-Polygraph: Uncertainty Estimation for Language Modelscited by 130
- 2018Bias-Reduced Uncertainty Estimation for Deep Neural Classifierscited by 106
- 2022Uncertainty Quantification with Pre-trained Language Models: A Large-Scale Empirical Analysiscited by 104
- 2021Efficient Nearest Neighbor Language Modelscited by 93
- 2022Stop Measuring Calibration When Humans Disagreecited by 70
- 2022Nonparametric Uncertainty Quantification for Single Deterministic Neural Networkcited by 36
- 2023What Can We Learn From The Selective Prediction And Uncertainty Estimation Performance Of 523 Imagenet Classifierscited by 35
- 2023Why do Nearest Neighbor Language Models Work?cited by 29
- 2022Exploring Predictive Uncertainty and Calibration in NLP: A Study on the Impact of Method & Data Scarcitycited by 24
- 2022An Empirical Study of Memorization in NLPcited by 21
- 2023Beyond In-Domain Scenarios: Robust Density-Aware Calibrationcited by 14
- 2023Density-Softmax: Efficient Test-time Model for Uncertainty Estimation and Robustness under Distribution Shiftscited by 12
- 2023Uncertainty Estimation on Sequential Labeling via Uncertainty Transmissioncited by 10
- 2024Density-Regression: Efficient and Distance-Aware Deep Regressor for Uncertainty Estimation under Distribution Shiftscited by 7
- 2023INK: Injecting kNN Knowledge in Nearest Neighbor Machine Translationcited by 6
Built on by
Citing papers per year: 2025: 1.
1 paper.