LGAIJun 24, 2025

A Framework for Uncertainty Quantification Based on Nearest Neighbors Across Layers

arXiv:2506.19895v1h-index: 5ICANN
Originality Incremental advance
AI Analysis

This work addresses uncertainty quantification for neural networks in critical applications like medical diagnosis and autonomous driving, though it is incremental as it builds on existing nearest-neighbor and post-hoc methods.

The paper tackles the problem of unreliable neural network decisions in high-risk domains by introducing a post-hoc framework that uses nearest neighbors across layers to quantify uncertainty, showing improved uncertainty estimation over softmax-based confidence on CIFAR-10 and MNIST datasets.

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 domains like medical diagnosis or autonomous driving. One strategy to detect and mitigate these errors is the measurement of the uncertainty over neural network decisions. In this paper, we present a novel post-hoc framework for measuring the uncertainty of a decision based on retrieved training cases that have a similar activation vector to the query for each layer. Based on these retrieved cases, we propose two new metrics: Decision Change and Layer Uncertainty, which capture changes in nearest-neighbor class distributions across layers. We evaluated our approach in a classification model for two datasets: CIFAR-10 and MNIST. The results show that these metrics enhance uncertainty estimation, especially in challenging classification tasks, outperforming softmax-based confidence.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes