Calibration by Distribution Matching: Trainable Kernel Calibration Metrics

Charles Marx, Sofian Zalouk, Stefano Ermon
2/12/2026

No official code found. Best implementation: kernel-calibration/kernel-calibration (6 stars, MIT, last commit 2024-03-12).

Abstract

Calibration ensures that probabilistic forecasts meaningfully capture uncertainty by requiring that predicted probabilities align with empirical frequencies. However, many existing calibration methods are specialized for post-hoc recalibration, which can worsen the sharpness of forecasts. Drawing on the insight that calibration can be viewed as a distribution matching task, we introduce kernel-based calibration metrics that unify and generalize popular forms of calibration for both classification and regression. These metrics admit differentiable sample estimates, making it easy to incorporate a calibration objective into empirical risk minimization. Furthermore, we provide intuitive mechanisms to tailor calibration metrics to a decision task, and enforce accurate loss estimation and no regret decisions. Our empirical evaluation demonstrates that employing these metrics as regularizers enhances calibration, sharpness, and decision-making across a range of regression and classification tasks, outperforming methods relying solely on post-hoc recalibration.

View on arXivView PDF

Code Implementations(1)

MIT

Code to reproduce the experiments from the Neurips 2023 paper "Calibration by Distribution Matching: Trainable Kernel Calibration Metrics"

61PythonOct 26, 20232 years agoMIT

Similar Papers

Cite this paper

@article{marx2026calibration,
  title  = {Calibration by Distribution Matching: Trainable Kernel Calibration Metrics},
  author = {Charles Marx and Sofian Zalouk and Stefano Ermon},
  year   = {2026},
  eprint = {2310.20211},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.20211},
  journal = {NEURIPS 2023 2023}
}

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

Discussion