CLUE: Neural Networks Calibration via Learning Uncertainty-Error alignment

Pedro Mendes, Paolo Romano, David Garlan
5/28/2025
cs.LGcs.AI

No official code found. Best implementation: pedrogbmendes/CLUE (1 star, last commit 2025-10-10).

Abstract

Reliable uncertainty estimation is critical for deploying neural networks (NNs) in real-world applications. While existing calibration techniques often rely on post-hoc adjustments or coarse-grained binning methods, they remain limited in scalability, differentiability, and generalization across domains. In this work, we introduce CLUE (Calibration via Learning Uncertainty-Error Alignment), a novel approach that explicitly aligns predicted uncertainty with observed error during training, grounded in the principle that well-calibrated models should produce uncertainty estimates that match their empirical loss. CLUE adopts a novel loss function that jointly optimizes predictive performance and calibration, using summary statistics of uncertainty and loss as proxies. The proposed method is fully differentiable, domain-agnostic, and compatible with standard training pipelines. Through extensive experiments on vision, regression, and language modeling tasks, including out-of-distribution and domain-shift scenarios, we demonstrate that CLUE achieves superior calibration quality and competitive predictive performance with respect to state-of-the-art approaches without imposing significant computational overhead.

View on arXivView PDF

Code Implementations(1)

pedrogbmendes/CLUECommunity70%

CLUE: Neural Networks Calibration via Learning Uncertainty–Error alignment

10Oct 10, 20251 years ago

Similar Papers

Cite this paper

@article{mendes2025clue,
  title  = {CLUE: Neural Networks Calibration via Learning Uncertainty-Error alignment},
  author = {Pedro Mendes and Paolo Romano and David Garlan},
  year   = {2025},
  eprint = {2505.22803},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.22803v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.22803.svg)](https://codeofpaper.com/paper/2505.22803)

Discussion