Efficient Nearest Neighbor based Uncertainty Estimation for Natural Language Processing Tasks
Trustworthy prediction in Deep Neural Networks (DNNs), including Pre-trained Language Models (PLMs) is important for safety-critical applications in the real world. However, DNNs often suffer from uncertainty estimation, such as miscalibration. In particular, approaches that require multiple stochastic inference can mitigate this problem, but the expensive cost of inference makes them impractical. In this study, we propose $k$-Nearest Neighbor Uncertainty Estimation ($k$NN-UE), which is an uncertainty estimation method that uses the distances from the neighbors and label-existence ratio of neighbors. Experiments on sentiment analysis, natural language inference, and named entity recognition show that our proposed method outperforms the baselines or recent density-based methods in confidence calibration, selective prediction, and out-of-distribution detection. Moreover, our analyses indicate that introducing dimension reduction or approximate nearest neighbor search inspired by recent $k$NN-LM studies reduces the inference overhead without significantly degrading estimation performance when combined them appropriately.
Code (0)
등록된 구현이 없습니다.
Tasks
Dimensionality Reductionnamed-entity-recognitionNamed Entity RecognitionNatural Language InferenceOut-of-Distribution DetectionSentiment AnalysisSimilar Papers 제목 키워드 기반
Reservoir Static Property Estimation Using Nearest-Neighbor Neural Network
This note presents an approach for estimating the spatial distribution of static properties in reservoir modeling using a nearest-neighbor neural network. The method leverages the strengths of neural networks in approxim…
Spatial InterpolationUncertainty QuantificationRandom Forests for Adaptive Nearest Neighbor Estimation of Information-Theoretic Quantities
Information-theoretic quantities, such as conditional entropy and mutual information, are critical data summaries for quantifying uncertainty. Current widely used approaches for computing such quantities rely on nearest …
A Framework for Uncertainty Quantification Based on Nearest Neighbors Across Layers
Neural Networks have high accuracy in solving problems where it is difficult to detect patterns or create a logical model. However, these algorithms sometimes return wrong solutions, which become problematic in high-risk…
Autonomous DrivingMedical DiagnosisUncertainty QuantificationNearest neighbor density functional estimation from inverse Laplace transform
A new approach to $L_2$-consistent estimation of a general density functional using $k$-nearest neighbor distances is proposed, where the functional under consideration is in the form of the expectation of some function …
When to Trust the Answer: Question-Aligned Semantic Nearest Neighbor Entropy for Safer Surgical VQA
Safety and reliability are critical for deploying visual question answering (VQA) systems in surgery, where incorrect or ambiguous responses can cause patient harm. A key limitation of existing uncertainty estimation met…
Visual Question Answering