Uncertainty Estimation via Hyperspherical Confidence Mapping

Eunseo Choi, Ho-Yeon Kim, Jaewon Lee, Taeyong jo, Myungjun lee, Heejin Ahn

TL;DR

Hyperspherical Confidence Mapping (HCM) is a novel, sampling-free framework that treats neural network uncertainty as a geometric violation. By decomposing model outputs into a magnitude and a direction vector constrained to a unit hypersphere, uncertainty is measured by how far the predicted vector deviates from this surface. HCM provides deterministic, task-agnostic uncertainty estimates that match or exceed the performance of Deep Ensembles and Evidential Learning at a fraction of the computational cost.

The Challenge of Overconfident Networks

Neural networks are notoriously overconfident, frequently making highly "confident" but incorrect predictions. To mitigate this risk in high-stakes domains like autonomous driving or healthcare, researchers typically turn to two types of solutions:

  1. Sampling-based methods (e.g., Deep Ensembles, MC Dropout): These are highly effective but computationally expensive because they require running the model multiple times to generate a single prediction.
  2. Distribution-based methods (e.g., Evidential Learning): These are fast, requiring only one forward pass, but they rely on strict mathematical assumptions—such as assuming noise follows a Gaussian or Dirichlet distribution—which often fail to capture complex, real-world data distributions.

The authors identify a critical gap: the field needs a method that is sampling-free (fast), distribution-free (flexible), and task-agnostic (applicable to both classification and regression).

Rethinking Output Geometry with HCM

The core innovation of Hyperspherical Confidence Mapping (HCM) is rethinking the geometry of a model's output. Standard models produce an unconstrained vector. HCM instead decomposes the target $y$ into two distinct components:

  • Magnitude ($R$): A scalar representing the "scale" of the output.
  • Direction ($d$): A unit-norm vector (where $\|d\|_2 = 1$) constrained to lie on the surface of a hypersphere.

The "Aha" Moment: During training, the model learns to map familiar inputs to this hyperspherical structure. At inference time, if the model encounters an unfamiliar, out-of-distribution (OOD), or noisy input, the predicted direction vector $\hat{d}$ will naturally "drift" away from the unit norm.

The authors define the uncertainty score $u(x)$ as the degree of this geometric violation: $$u(x) := \hat{R}(x) | \|\hat{d}(x)\|_2 - 1 |$$

If the vector lies exactly on the sphere, the uncertainty is zero. The further it deviates, the higher the uncertainty. Because this is a deterministic calculation, it requires only a single forward pass.

HCM applied to the Two-Moons dataset. (a) Direction vectors deviating from the unit circle indicate uncertainty, (b) high uncertainty points (red) naturally cluster near the decision boundary, and (c) the relationship between margin distance and the HCM uncertainty score.

Key Insights and Advantages

  • Geometric Interpretation of Error: The paper provides a theoretical proof demonstrating that the HCM uncertainty score acts as a mathematical lower bound on the actual prediction error. This grounds the score in a physical, interpretable meaning rather than an arbitrary heuristic.
  • Task Agnosticism: Unlike many "similarity-based" uncertainty methods designed exclusively for classification, HCM treats classification as a regression toward one-hot vectors. This allows the exact same geometric logic to apply seamlessly across both classification and regression tasks.
  • Mixup Synergy: In classification, the authors found that using Mixup (interpolating between classes) significantly boosts HCM's performance. Because interpolated labels lie inside the hypersphere rather than on its surface, they provide a natural training signal that teaches the model to express varying levels of confidence.
  • Calibration over Confidence: While methods like Deep Ensembles often collapse their predictions into narrow, overconfident ranges, HCM maintains a broad spread across the [0, 1] interval. This allows for much better "sample-wise" separation of reliable versus unreliable predictions.
Distribution of confidence scores across different methods. HCM maintains a broader, more calibrated spread compared to baselines (like EDL or Ensembles) that overconfidently cluster near 1.0.

Experimental Validation

The authors validated HCM across a wide range of tasks, proving its versatility:

  • Efficiency: HCM's inference latency is nearly identical to a standard model (~0.19ms per image). In contrast, Deep Ensembles are roughly 2x slower, and MC Dropout is ~10x slower.
  • OOD Detection (Image Classification): On CIFAR-10, an HCM model trained with Mixup achieved an average AUROC of 89.44% across various OOD sets (like SVHN, Texture, and Places365), outperforming standard Softmax (87.85%) and approaching the performance of complex, computationally heavy distance-based methods.
  • Depth Estimation (Computer Vision Regression): In pixel-wise regression on the NYU-v2 dataset, HCM showed the strongest alignment between predicted uncertainty and actual error, achieving a Spearman correlation of 0.5425—nearly double that of MC Dropout (0.2580).
  • Real-world Industrial Impact: On a proprietary semiconductor manufacturing dataset used to predict the 3D geometry of etched wafer holes from spectral signals, HCM achieved a Pearson correlation of 0.8435 between confidence and error. Traditional Evidential Learning failed entirely here, showing a negative correlation (-0.2508) because it could not capture the complex noise structure of the spectral data.

Limitations and Future Work

While highly effective, HCM does have limitations. The uncertainty score can be sensitive to the Lagrange multiplier ($\lambda$) used to enforce the norm constraint during training; if $\lambda$ is set too high, it can destabilize the learning of the magnitude branch. Additionally, HCM currently only applies this geometric mapping to the final output layer. The authors suggest that extending this constraint to intermediate feature layers could capture even richer, hierarchical uncertainty signals in future iterations. Finally, adapting the method for intrinsically multi-modal output distributions remains an open area for exploration.

Summary updated

BibTeX
@inproceedings{choi2026uncertainty,
  author = {Eunseo Choi and Ho-Yeon Kim and Jaewon Lee and Taeyong jo and Myungjun lee and Heejin Ahn},
  title = {{Uncertainty Estimation via Hyperspherical Confidence Mapping}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=G4JYxxI23T},
}
Figure