[Paper Review] Nonparametric Uncertainty Quantification for Single Deterministic Neural Network
This paper proposes Nonparametric Uncertainty Quantification (NUQ), a fast, scalable method for uncertainty estimation in single deterministic neural networks. By leveraging Nadaraya-Watson kernel smoothing on latent representations to estimate conditional label distributions, NUQ provides principled disentanglement of aleatoric and epistemic uncertainty, outperforming baselines like MaxProb and DDU—especially in low-data regimes—on image and text benchmarks including ImageNet, MNIST, and GLUE datasets.
This paper proposes a fast and scalable method for uncertainty quantification of machine learning models' predictions. First, we show the principled way to measure the uncertainty of predictions for a classifier based on Nadaraya-Watson's nonparametric estimate of the conditional label distribution. Importantly, the proposed approach allows to disentangle explicitly aleatoric and epistemic uncertainties. The resulting method works directly in the feature space. However, one can apply it to any neural network by considering an embedding of the data induced by the network. We demonstrate the strong performance of the method in uncertainty estimation tasks on text classification problems and a variety of real-world image datasets, such as MNIST, SVHN, CIFAR-100 and several versions of ImageNet.
Motivation & Objective
- Address the lack of principled, scalable uncertainty quantification methods for single deterministic neural networks.
- Overcome limitations of existing approaches that rely on strong assumptions (e.g., normality in latent space) or suffer from high computational cost.
- Enable reliable uncertainty estimation in low-resource settings where model uncertainty is most critical.
- Provide a unified framework that disentangles aleatoric and epistemic uncertainty without requiring ensembles or Bayesian inference.
- Ensure applicability to diverse deep learning models by operating directly in the feature space of any trained network.
Proposed method
- Formulate uncertainty as the pointwise Bayes risk (probability of wrong prediction), derived from the Nadaraya-Watson estimator of the conditional label distribution.
- Use a kernel-based nonparametric estimate of the class probability at a test point using training embeddings in the latent space.
- Apply an asymptotic Gaussian approximation to the Nadaraya-Watson estimator to derive an upper bound on the Bayes risk, serving as the total uncertainty estimate.
- Disentangle total uncertainty into aleatoric and epistemic components by decomposing the risk bound into data-ambiguity (aleatoric) and model-uncertainty (epistemic) terms.
- Implement the method efficiently using approximate nearest neighbors for scalability, enabling application to large datasets like ImageNet.
- Apply the method to any neural network by using its learned feature representations as input to the kernel-based uncertainty estimation.
Experimental results
Research questions
- RQ1Can a nonparametric method based on kernel smoothing in latent space provide reliable uncertainty estimates without ensembling or Bayesian inference?
- RQ2How well can the proposed method disentangle aleatoric and epistemic uncertainty in comparison to existing baselines?
- RQ3Does the method maintain strong performance under low-data regimes where distributional assumptions of prior methods often fail?
- RQ4Can the method achieve state-of-the-art OOD detection performance on standard benchmarks like ImageNet-O and ImageNet-R?
- RQ5How does the method scale to large-scale datasets such as ImageNet, and what is its computational efficiency relative to ensemble or Monte Carlo methods?
Key findings
- NUQ achieves ROC-AUC scores of 59.1 on ImageNet-O and 76.1 on ImageNet-R for OOD detection using ensembles, outperforming MaxProb and other baselines.
- On the Two Moons toy dataset, NUQ correctly identifies high uncertainty in ambiguous regions even with only 200 training points, while DDU fails to detect such uncertainty.
- For text classification on GLUE benchmarks, NUQ achieves state-of-the-art performance, with accuracy scores up to 0.995 on ROSTD and 0.979 on CLINC using ELECTRA-based models.
- The method demonstrates robustness in low-resource settings: it maintains high uncertainty estimation quality when training data is scarce, unlike methods relying on normality assumptions.
- NUQ's uncertainty disentanglement allows identifying both ambiguous in-distribution samples (high aleatoric uncertainty) and out-of-distribution instances (high epistemic uncertainty), enabling better active learning and human-in-the-loop decision-making.
- The method scales efficiently to large datasets such as ImageNet, with computational cost comparable to inference time, making it practical for real-world deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.