A Novel Framework for Uncertainty Quantification via Proper Scores for Classification and Beyond

Sebastian G. Gruber · DOI

Introduction

In modern machine learning, the ability to quantify a model's confidence is as critical as the accuracy of its predictions. Uncertainty Quantification (UQ) serves as the primary mechanism for establishing trust in automated systems, particularly in high-stakes domains like medical imaging or autonomous driving. However, the field of UQ has historically been fragmented, with disparate techniques developed for specific tasks—such as classification—that do not naturally extend to generative modeling or natural language processing.

This research introduces a mathematically rigorous, unified framework for UQ that bridges these gaps. By leveraging the axiomatic foundation of "proper scores," the framework provides a consistent set of tools to decompose model errors into aleatoric uncertainty (inherent randomness) and epistemic uncertainty (model ignorance), offering a reliable path toward detecting out-of-distribution (OOD) samples and hallucinations in large language models (LLMs).

Theoretical Foundation: Proper Scoring Rules

The core of this framework is built upon Proper Scoring Rules. A scoring rule is considered "proper" if the expected loss is minimized when the model’s predicted distribution perfectly matches the true underlying data distribution. This property ensures that the model is incentivized to be both accurate and well-calibrated.

General Bias-Variance Decomposition

Central to the methodological contribution is the use of functional Bregman divergences to perform a generalized bias-variance decomposition. This allows the total error of any prediction to be partitioned into three distinct, interpretable components:

  1. Bias: The distance between the average model prediction and the ground truth.
  2. Variance (Epistemic Uncertainty): The variability in predictions resulting from limited training data.
  3. Noise/Entropy (Aleatoric Uncertainty): The irreducible uncertainty inherent in the data itself.

By applying this decomposition, practitioners can identify whether a model is failing due to a lack of capacity (bias), a lack of data (variance), or simply because the task is inherently unpredictable (noise).

Extending UQ to Generative and High-Dimensional Models

Traditional UQ metrics, such as Expected Calibration Error (ECE), are often restricted to simple probability vectors in classification. To address complex outputs like images, audio, or text, this framework introduces Kernel-Based Proper Scores.

By "kernelizing" these scores, the framework can assess uncertainty in high-dimensional spaces without requiring access to a model’s internal weights or gradients. This is particularly valuable for black-box generative models. Furthermore, the research introduces a "disentanglement" technique that allows researchers to localize errors within specific regions of generated content—for example, determining if an image generator is struggling with foreground objects versus background textures.

Empirical Validation and Key Insights

The framework was validated across a diverse range of benchmarks, including MNIST, CIFAR-10/100, ImageNet, and medical datasets like ChestMNIST. Key findings include:

  • Superior OOD Detection: On the ImageNet-C benchmark, the proposed "Bregman Information" metric demonstrated significantly higher robustness in detecting corrupted or out-of-distribution samples compared to standard confidence scores, which frequently become overconfident under domain drift.
  • LLM Reliability: In question-answering tasks using models like OPT on the TriviaQA and CoQA datasets, kernel-based entropy—calculated from a small set of generated samples—outperformed existing semantic and lexical baselines in predicting answer correctness. This suggests a more effective way to mitigate LLM hallucinations.
  • Diagnosing Mode Collapse: In generative modeling (GANs and Diffusion models), the framework reveals that "mode collapse" is reflected primarily in the bias term, while overfitting is captured by the variance term. This provides a new diagnostic "thermometer" for monitoring model training.
  • Logit Space Efficiency: For deep learning classifiers, the research demonstrates that epistemic uncertainty can be measured directly in the logit space (the raw outputs before softmax), simplifying the mathematical implementation for practitioners.

Limitations and Future Directions

While the framework offers a powerful unification of UQ, several challenges remain. The current proofs for bias-variance decomposition rely on strictly proper scores; it remains to be seen if these results hold for non-strictly proper scores. Additionally, kernel-based methods carry a computational complexity of $O(n^2)$, which may necessitate more efficient debiasing strategies for massive datasets.

Future work will focus on extending these principles to even more complex modalities, such as video and graph generation, and exploring non-injective transformations to improve model calibration without sacrificing the informativeness (sharpness) of predictions.

Conclusion

By establishing a unified theory of uncertainty through proper scores, this work moves UQ from a collection of ad-hoc heuristics to a rigorous science. Whether applied to image classifiers or large-scale generative agents, this framework provides the necessary tools to understand when—and why—we should trust the machine.

Summary updated

BibTeX
@misc{gruber2025novel,
  author = {Sebastian G. Gruber},
  title = {{A Novel Framework for Uncertainty Quantification via Proper Scores for Classification and Beyond}},
  year = {2025},
  eprint = {2508.18001},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.18001},
}
Figure