Abstract
Reliably estimating the uncertainty of a prediction throughout the model lifecycle is crucial in many safety-critical applications. The most common way to measure this uncertainty is via the predicted confidence. While this tends to work well for in-domain samples, these estimates are unreliable under domain drift and restricted to classification. Alternatively, proper scores can be used for most predictive tasks but a bias-variance decomposition for model uncertainty does not exist in the current literature. In this work we introduce a general bias-variance decomposition for strictly proper scores, giving rise to the Bregman Information as the variance term. We discover how exponential families and the classification log-likelihood are special cases and provide novel formulations. Surprisingly, we can express the classification case purely in the logit space. We showcase the practical relevance of this decomposition on several downstream tasks, including model ensembles and confidence regions. Further, we demonstrate how different approximations of the instance-level Bregman Information allow out-of-distribution detection for all degrees of domain drift.
Introduction
In safety-critical machine learning, knowing when a model is uncertain is as important as the prediction itself. Traditionally, practitioners rely on "confidence scores"—the maximum probability from a softmax output. However, these scores are notoriously unreliable when data "drifts," such as when a model trained on clean images is suddenly presented with corrupted or noisy inputs.
While "proper scores" (loss functions where the minimum is achieved by the true distribution) are the gold standard for training, they have lacked a clear bias-variance decomposition. This work bridges that gap, introducing a mathematically principled way to isolate model uncertainty (variance) from inherent error (bias).
Methods: Bregman Information as Variance
The authors derive a novel general bias-variance decomposition for any strictly proper score. They prove that the "variance" term in this decomposition is the Bregman Information (BI), generated by the convex conjugate of the score’s negative entropy. This generalizes the familiar notion of variance to a wide array of distributions.
The Logit-Space Shortcut
For classification tasks, the authors demonstrate a major practical breakthrough: the Bregman Information for log-likelihood can be calculated directly using raw logits and the LogSumExp function. This allows uncertainty to be measured without normalizing outputs into probabilities, preserving the "spread" of the raw model outputs which is often more informative.
Visualizing Uncertainty Boundaries
In toy tasks, the decomposition reveals how different classifiers perceive uncertainty. While models like SVMs may only feel uncertain near the decision boundary, Neural Networks using BI show increasing uncertainty as samples move further away from the training data—a property known as an "open" boundary, which is vital for safe out-of-distribution (OOD) detection.
Key Results
Robustness to Domain Drift
The approach was evaluated on benchmarks like CIFAR-10-C and ImageNet-C, which include various image corruptions (blur, noise, weather). Standard confidence scores degrade quickly as corruption severity increases. In contrast, Bregman Information remains stable, providing a more reliable "alarm system" for real-world deployment.
Selective Classification
On ImageNet-C, the authors tested "selective classification"—discarding the most uncertain samples to maintain high accuracy. Using BI allowed the model to reach target accuracy while discarding significantly fewer samples than standard methods. For example, on severely corrupted data, BI required discarding only ~7% of samples compared to ~14% for confidence-based methods.
OOD Detection
BI-based detection proved highly robust to the type of corruption. Whether an image was distorted by glass blur or snow, the BI metric consistently flagged samples where the model was likely to fail. This was achieved by calculating BI for a validation set and flagging any new instance exceeding a specific quantile threshold.
Conclusion and Future Work
By linking proper scores to Bregman Divergences, this research moves uncertainty estimation from a heuristic to a rigorous mathematical framework. While the method currently requires model ensembles (increasing computational cost), it provides a much more robust metric for detecting domain drift than standard softmax-based approaches. Future research may focus on reducing the computational footprint and further exploring the balance between logit-space and probability-space averaging.
Summary updated