Introduction
In high-stakes machine learning applications, a model's ability to quantify its own uncertainty is as critical as its predictive accuracy. Traditional Uncertainty Quantification (UQ) distinguishes between two primary types of uncertainty: aleatoric (inherent noise in the data) and epistemic (uncertainty stemming from a lack of model knowledge, reducible with more data).
While UQ is essential for tasks like selective prediction (knowing when to "abstain") and active learning (identifying which data to label), current standards often rely on a "one-size-fits-all" approach. Specifically, information-theoretic measures like Shannon Entropy and Mutual Information are frequently used regardless of the actual downstream task. This paper argues that uncertainty measures should instead be tailored to the specific task loss function used in the application.
The Framework of Proper Scoring Rules
The authors propose a flexible framework built upon Proper Scoring Rules. A scoring rule is a loss function where the minimum expected loss is achieved only when the model predicts the true underlying probability distribution.
A key mathematical property of any proper scoring rule is its ability to be decomposed into two distinct components: an entropy term (representing aleatoric uncertainty) and a divergence term (representing epistemic uncertainty). By selecting different scoring rules, researchers can derive uncertainty measures that are intrinsically aligned with specific evaluation metrics.
The framework focuses on three primary loss types:
- Log-loss: Corresponds to traditional Shannon entropy and Mutual Information.
- Brier-loss: Leads to measures based on Gini impurity.
- Zero-one loss: Results in measures based on the model's confidence in the most likely class.
To capture these uncertainties, the authors utilize second-order distributions (distributions over distributions), which are typically generated through model ensembles or Bayesian approximations like Monte Carlo Dropout.
Task-Specific Alignment
The central insight of this work is that alignment is everything. In tasks like selective prediction, the uncertainty measure used to rank and reject instances should match the loss function used to evaluate the final performance. For example, if a system is evaluated on classification accuracy (zero-one loss), the uncertainty measure derived from that same zero-one loss will theoretically and empirically provide the best signal for rejection.
Empirical Evaluation: Selective Prediction
The researchers tested this alignment principle across various domains, including tabular data (CoverType, Poker Hand) and diverse image datasets (MNIST, CIFAR-10, MedMNIST).
In selective prediction experiments on the CoverType dataset, the results clearly demonstrated that matching the uncertainty measure to the task loss consistently minimized the Area Under the Loss-Rejection Curve (AULC). As shown in the figures below, when the task is evaluated using zero-one loss, the zero-one-based uncertainty measure (purple line) outperforms the others. Similarly, log-based measures perform best when the task loss is log-loss.
Key Findings in Active Learning and OoD Detection
Beyond selective prediction, the framework revealed specialized strengths for different measures:
- Active Learning: The epistemic component of the zero-one loss proved to be a powerful signal for active learning. Across medical imaging datasets (MedMNIST), it consistently outperformed log-loss and Brier-loss measures, identifying the most informative samples to label and reaching high accuracy more efficiently.
- Out-of-Distribution (OoD) Detection: Conversely, for the task of detecting samples from a different distribution (e.g., identifying CIFAR-100 images when trained on CIFAR-10), the log-loss-based Mutual Information remains the superior metric, achieving significantly higher AUROC scores than zero-one alternatives.
Conclusion
This research demonstrates that uncertainty is not a monolithic property. By leveraging proper scoring rules, practitioners can move beyond generic entropy measures and develop uncertainty quantification strategies that are mathematically and empirically optimized for their specific goals. Future work remains to be done on how the loss function used during initial model training interacts with these downstream measures, and how different Bayesian approximations might further influence these task-specific alignments.
Summary updated