Rethinking Early Stopping: Refine, Then Calibrate

Eugène Berta, David Holzmüller, Michael I. Jordan, Francis Bach
1/31/2025
cs.LGcs.AI

No official code found. Best implementation: dholzmueller/pytabkit (397 stars, Apache-2.0, last commit 2026-01-06). 3 more below.

Abstract

Machine learning classifiers often produce probabilistic predictions that are critical for accurate and interpretable decision-making in various domains. The quality of these predictions is generally evaluated with proper losses, such as cross-entropy, which decompose into two components: calibration error assesses general under/overconfidence, while refinement error measures the ability to distinguish different classes. In this paper, we present a novel variational formulation of the calibration-refinement decomposition that sheds new light on post-hoc calibration, and enables rapid estimation of the different terms. Equipped with this new perspective, we provide theoretical and empirical evidence that calibration and refinement errors are not minimized simultaneously during training. Selecting the best epoch based on validation loss thus leads to a compromise point that is suboptimal for both terms. To address this, we propose minimizing refinement error only during training (Refine,...), before minimizing calibration error post hoc, using standard techniques (...then Calibrate). Our method integrates seamlessly with any classifier and consistently improves performance across diverse classification tasks.

View on arXivView PDF

Code Implementations(4)

Apache-2.0

ML models + benchmark for tabular data classification and regression

39739Shell, PythonJul 4, 20249 months agoApache-2.0
deep-learningdeep-neural-networksdeeplearningmachine-learningtabular+4 more
Apache-2.0

Post-hoc calibration methods and metrics for classification

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

Computer vision benchmark for the paper "Rethinking Early Stopping: Refine, Then Calibrate"

90Python, Jupyter NotebookJan 31, 20251 years ago

Solver and experiments for the theoretical sections of the paper "Rethinking Early Stopping: Refine, Then Calibrate".

50Python, Jupyter NotebookJan 31, 20251 years ago

Similar Papers

Cite this paper

@article{berta2025rethinking,
  title  = {Rethinking Early Stopping: Refine, Then Calibrate},
  author = {Eugène Berta and David Holzmüller and Michael I. Jordan and Francis Bach},
  year   = {2025},
  eprint = {2501.19195},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.19195v2}
}

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

Discussion