Abstract
Most uncertainty quantification (UQ) approaches provide a single scalar value as a measure of model reliability. However, different uncertainty measures could provide complementary information on the prediction confidence. Even measures targeting the same type of uncertainty may capture different failure modes. We take a multidimensional view on UQ by stacking complementary UQ measures into a vector. Such vectors are assigned with Monge-Kantorovich ranks produced by an optimal-transport-based ordering method. The resulting VecUQ-OT algorithm uses entropy-regularized optimal transport to learn a mapping on in-distribution data that applies to unseen inputs without retraining. Our framework supports flexible non-additive uncertainty fusion and yields a robust ordering for downstream tasks such as selective prediction, misclassification detection, and out-of-distribution (OOD) detection.
The Problem: The Scalar Blind Spot
In modern AI, uncertainty quantification acts as a safety net. However, practitioners often face a dilemma: which uncertainty measure to use? Some measures excel at spotting Out-of-Distribution (OOD) data, while others are better at predicting misclassifications on familiar data. Choosing one often means sacrificing performance on the other.
As shown in the figure above, standard measures like 1-MSP perform well for misclassification detection but fail significantly in OOD detection. Conversely, the Mahalanobis score is excellent for OOD detection but poor for catching misclassifications. This "no-free-lunch" scenario necessitates a method for uncertainty fusion—combining multiple signals into a single, reliable ranking.
Methodology: VecUQ-OT
The authors propose VecUQ-OT (Vector Uncertainty via Optimal Transport), which treats uncertainty as a multidimensional vector rather than a single scalar. The framework follows three primary steps:
- Vectorization: Multiple complementary measures (e.g., aleatoric risk, epistemic density, and ensemble disagreement) are stacked into a single vector $\mathbf{S}(x)$.
- Optimal Transport (OT) Mapping: Entropy-regularized optimal transport maps these vectors from the empirical distribution of a calibration set to a structured reference distribution (e.g., Beta or Exponential).
- Monge-Kantorovich Ranking: In the reference space, uncertainty is defined by a point's distance from the center, providing a principled way to order predictions by confidence.
To ensure stability with extreme OOD data, the method employs "outer anchors"—synthetic points at the corners of the score space that prevent mapping collapse during inference.
Key Insights and Results
The "No-Free-Lunch" Hedge
By treating uncertainty as a vector, VecUQ-OT effectively "hedges its bets." If at least one component measure identifies a failure mode, the overall rank reflects that uncertainty. This makes it a safer choice for general deployment than any single specialized measure.
Pareto Dominance
Analysis across various benchmarks shows that VecUQ-OT frequently lies on the "Pareto front" of performance. While it may not always be the absolute best in a single narrow task, it is rarely the worst, demonstrating superior stability across diverse failure modes.
Performance Across Domains
- Images: On OOD tasks (e.g., CIFAR-10 vs. SVHN), VecUQ-OT achieved a ROC-AUC of 0.957, matching or exceeding the best individual components.
- Large Language Models (LLMs): In selective generation tasks with models like LLaMA-3.1 and Mistral-7B, VecUQ-OT achieved the highest Prediction Rejection Ratio (PRR), outperforming state-of-the-art baselines like Semantic Entropy.
- Efficiency: The use of Sinkhorn iterations makes the mapping computationally lightweight and applicable to new inputs in real-time without retraining.
Conclusion
VecUQ-OT moves beyond the limitations of scalar uncertainty by leveraging the geometric properties of Optimal Transport. By fusing multiple signals, it provides a robust, label-free calibration method that excels in real-world scenarios where failure modes are unpredictable. Future work may explore preserving the directional signal of the uncertainty vector to provide more granular diagnostic information.
Summary updated