Skip to main content
QUICK REVIEW

[Paper Review] A Consistent and Differentiable Lp Canonical Calibration Error Estimator

Teodora Popordanoska, Raphael Sayer|arXiv (Cornell University)|Oct 13, 2022
Adversarial Robustness in Machine LearningComputer Science9 citations
TL;DR

This paper proposes a consistent, differentiable, and tractable estimator for the $L_p$ canonical calibration error in multiclass probabilistic classifiers using Dirichlet kernel density estimation. The method achieves asymptotic consistency with $\mathcal{O}(n^2)$ complexity and $\mathcal{O}(n^{-1/2})$ convergence rate, enabling efficient mini-batch training and regularization, while outperforming existing estimators in consistency and scalability for full distribution calibration.

ABSTRACT

Calibrated probabilistic classifiers are models whose predicted probabilities can directly be interpreted as uncertainty estimates. It has been shown recently that deep neural networks are poorly calibrated and tend to output overconfident predictions. As a remedy, we propose a low-bias, trainable calibration error estimator based on Dirichlet kernel density estimates, which asymptotically converges to the true $L_p$ calibration error. This novel estimator enables us to tackle the strongest notion of multiclass calibration, called canonical (or distribution) calibration, while other common calibration methods are tractable only for top-label and marginal calibration. The computational complexity of our estimator is $\mathcal{O}(n^2)$, the convergence rate is $\mathcal{O}(n^{-1/2})$, and it is unbiased up to $\mathcal{O}(n^{-2})$, achieved by a geometric series debiasing scheme. In practice, this means that the estimator can be applied to small subsets of data, enabling efficient estimation and mini-batch updates. The proposed method has a natural choice of kernel, and can be used to generate consistent estimates of other quantities based on conditional expectation, such as the sharpness of a probabilistic classifier. Empirical results validate the correctness of our estimator, and demonstrate its utility in canonical calibration error estimation and calibration error regularized risk minimization.

Motivation & Objective

  • To address the lack of consistent, differentiable, and scalable estimators for canonical (distribution) calibration in multiclass settings.
  • To overcome the limitations of existing methods like binned estimators (inconsistent), MMCE (inconsistent), and Mix-n-Match (intractable in high dimensions).
  • To enable end-to-end training with calibration error regularization by providing a differentiable and consistent loss.
  • To develop a geometric series-based debiasing scheme that reduces bias to $\mathcal{O}(n^{-2})$ for improved finite-sample performance.
  • To demonstrate the estimator’s utility in calibration-regularized risk minimization across diverse architectures and datasets.

Proposed method

  • Uses Dirichlet kernel density estimation (KDE) with a natural kernel choice for probability simplex domains, enabling accurate density estimation of conditional class probabilities.
  • Employs a geometric series-based debiasing scheme to reduce bias from $\mathcal{O}(n^{-1})$ to $\mathcal{O}(n^{-2})$, improving finite-sample accuracy.
  • Derives a differentiable $L_p$ canonical calibration error estimator by integrating the $L_p$ norm of the difference between predicted and true conditional probabilities over the simplex.
  • Applies leave-one-out maximum likelihood for bandwidth selection and Doane’s formula for binning in comparisons, ensuring fair evaluation.
  • Enables mini-batch updates via the estimator’s differentiability, supporting stochastic optimization in calibration-regularized training.
  • Extends the framework to estimate related quantities like sharpness using conditional expectation-based formulations.

Experimental results

Research questions

  • RQ1Can a consistent and differentiable estimator for $L_p$ canonical calibration error be constructed that scales to high-dimensional probability simplices?
  • RQ2How does the proposed KDE-based estimator compare in bias and convergence rate to standard binned estimators like $ECE^{bin}$?
  • RQ3To what extent does the geometric series debiasing scheme improve finite-sample performance of the calibration error estimator?
  • RQ4Can the estimator be effectively used in calibration-regularized risk minimization to improve model calibration without sacrificing accuracy?
  • RQ5Is the estimator robust and reliable across diverse deep learning architectures and multiclass datasets?

Key findings

  • The proposed $ECE^{KDE}$ estimator achieves asymptotic consistency and $\mathcal{O}(n^{-1/2})$ convergence rate, matching theoretical expectations.
  • The estimator exhibits similar bias and convergence behavior to $ECE^{bin}$, but with the added advantage of differentiability and scalability to high dimensions.
  • The geometric series debiasing scheme reduces bias to $\mathcal{O}(n^{-2})$, significantly improving finite-sample accuracy.
  • Empirical results show that $ECE^{KDE}$ provides consistent estimates across multiple datasets, including CIFAR-10 and CIFAR-100, with stable performance under varying sample sizes.
  • In calibration-regularized training, the method improves model calibration (e.g., reducing $ECE$ from 12.769 to 8.969 on CIFAR-100 with ResNet-110) while maintaining high accuracy.
  • The estimator enables effective mini-batch updates, making it suitable for end-to-end training in deep learning pipelines.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.