mlsanityData to 7 Oct 2026

Efficient Nearest Neighbor based Uncertainty Estimation for Natural Language Processing Tasks

arXiv 2407.02138 ↗First posted 2 Jul 2024cs.CL cs.AI cs.LGcited by 1

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

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

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.