A Variational Estimator for $L_p$ Calibration Errors

Eugène Berta, Sacha Braun, David Holzmüller, Francis Bach, Michael I. Jordan
2/27/2026
stat.MLcs.LG

Official code: dholzmueller/probmetrics (74 stars, Apache-2.0, last commit 2026-03-02).

Abstract

Calibration$\unicode{x2014}$the problem of ensuring that predicted probabilities align with observed class frequencies$\unicode{x2014}$is a basic desideratum for reliable prediction with machine learning systems. Calibration error is traditionally assessed via a divergence function, using the expected divergence between predictions and empirical frequencies. Accurately estimating this quantity is challenging, especially in the multiclass setting. Here, we show how to extend a recent variational framework for estimating calibration errors beyond divergences induced induced by proper losses, to cover a broad class of calibration errors induced by $L_p$ divergences. Our method can separate over- and under-confidence and, unlike non-variational approaches, avoids overestimation. We provide extensive experiments and integrate our code in the open-source package probmetrics (https://github.com/dholzmueller/probmetrics) for evaluating calibration errors.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Post-hoc calibration methods and metrics for classification

748PythonJan 31, 20257 months agoApache-2.0
calibrationclassificationmachine-learningmetrics

Similar Papers

Cite this paper

@article{berta2026variational,
  title  = {A Variational Estimator for $L_p$ Calibration Errors},
  author = {Eugène Berta and Sacha Braun and David Holzmüller and Francis Bach and Michael I. Jordan},
  year   = {2026},
  eprint = {2602.24230},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.24230v1}
}

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/2602.24230.svg)](https://codeofpaper.com/paper/2602.24230)

Discussion