Adaptive Uncertainty Estimation via High-Dimensional Testing on Latent Representations

Tsai Hor Chan, Kin Wai Lau, Jiajun Shen, Guosheng Yin, Lequan Yu
2/12/2026

Official code: HKU-MedAI/bnn_uncertainty (8 stars, last commit 2023-11-22).

Abstract

Uncertainty estimation aims to evaluate the confidence of a trained deep neural network. However, existing uncertainty estimation approaches rely on low-dimensional distributional assumptions and thus suffer from the high dimensionality of latent features. Existing approaches tend to focus on uncertainty on discrete classification probabilities, which leads to poor generalizability to uncertainty estimation for other tasks. Moreover, most of the literature requires seeing the out-of-distribution (OOD) data in the training for better estimation of uncertainty, which limits the uncertainty estimation performance in practice because the OOD data are typically unseen. To overcome these limitations, we propose a new framework using data-adaptive high-dimensional hypothesis testing for uncertainty estimation, which leverages the statistical properties of the feature representations. Our method directly operates on latent representations and thus does not require retraining the feature encoder under a modified objective. The test statistic relaxes the feature distribution assumptions to high dimensionality, and it is more discriminative to uncertainties in the latent representations. We demonstrate that encoding features with Bayesian neural networks can enhance testing performance and lead to more accurate uncertainty estimation. We further introduce a family-wise testing procedure to determine the optimal threshold of OOD detection, which minimizes the false discovery rate (FDR). Extensive experiments validate the satisfactory performance of our framework on uncertainty estimation and task-specific prediction over a variety of competitors. The experiments on the OOD detection task also show satisfactory performance of our method when the OOD data are unseen in the training. Codes are available at https://github.com/HKU-MedAI/bnn_uncertainty.

View on arXivView PDF

Code Implementations(1)

[NeurIPS'23] Adaptive Uncertainty Estimation via High-Dimensional Testing on Latent Representations

80Python, Jupyter NotebookSep 30, 20232 years ago
bayesian-neural-networkuncertainty-estimation

Similar Papers

Cite this paper

@article{chan2026adaptive,
  title  = {Adaptive Uncertainty Estimation via High-Dimensional Testing on Latent Representations},
  author = {Tsai Hor Chan and Kin Wai Lau and Jiajun Shen and Guosheng Yin and Lequan Yu},
  year   = {2026},
  eprint = {2310.16587},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.16587},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.16587.svg)](https://codeofpaper.com/paper/2310.16587)

Discussion