Skip to main content
QUICK REVIEW

[Paper Review] Calibration tests in multi-class classification: A unifying framework

David Widmann, Fredrik Lindsten|arXiv (Cornell University)|Oct 24, 2019
Advanced Statistical Methods and ModelsMathematics27 citations
TL;DR

This paper proposes a unifying framework for calibration testing in multi-class classification using matrix-valued kernel-based calibration measures, introducing consistent and unbiased estimators with interpretable p-value bounds and approximations under the null hypothesis of calibration. The key contribution is improved interpretability of calibration error estimates, with empirical results showing modern deep neural networks are consistently miscalibrated, as indicated by p-value approximations near zero.

ABSTRACT

In safety-critical applications a probabilistic model is usually required to be calibrated, i.e., to capture the uncertainty of its predictions accurately. In multi-class classification, calibration of the most confident predictions only is often not sufficient. We propose and study calibration measures for multi-class classification that generalize existing measures such as the expected calibration error, the maximum calibration error, and the maximum mean calibration error. We propose and evaluate empirically different consistent and unbiased estimators for a specific class of measures based on matrix-valued kernels. Importantly, these estimators can be interpreted as test statistics associated with well-defined bounds and approximations of the p-value under the null hypothesis that the model is calibrated, significantly improving the interpretability of calibration measures, which otherwise lack any meaningful unit or scale.

Motivation & Objective

  • To address the lack of interpretable and statistically sound calibration measures in multi-class classification, especially beyond the most confident predictions.
  • To generalize existing calibration metrics like ECE, MCE, and MMCE to a unified framework applicable to multi-class settings.
  • To develop consistent and unbiased estimators for calibration measures based on matrix-valued kernels.
  • To provide theoretically grounded p-value approximations and bounds to enhance interpretability of calibration error estimates.
  • To empirically evaluate the calibration of modern deep neural networks using the proposed framework, revealing widespread miscalibration.

Proposed method

  • Proposes a general class of calibration measures based on matrix-valued kernels, enabling a unified treatment of existing metrics like ECE and MMCE.
  • Introduces estimators for the SKCE (Spherical Kernel Calibration Error) that are consistent and unbiased under mild regularity conditions.
  • Employs consistency resampling and asymptotic distribution approximations to estimate p-values under the null hypothesis of model calibration.
  • Derives distribution-free bounds for p-values to provide conservative inference when asymptotic approximations are unreliable.
  • Uses controlled experiments with generative models to validate the statistical properties of the estimators and p-value approximations.
  • Employs a Julia-based implementation to evaluate computational efficiency and scalability across varying numbers of classes and samples.

Experimental results

Research questions

  • RQ1Can existing calibration measures in binary and top-prediction settings be generalized to a unified framework for multi-class classification?
  • RQ2Do the proposed kernel-based estimators for calibration error provide consistent and unbiased estimates under finite sample conditions?
  • RQ3Can p-value approximations and bounds derived from resampling and asymptotic theory improve the interpretability of calibration error estimates?
  • RQ4How do modern deep neural networks perform in terms of calibration when evaluated with the proposed framework?
  • RQ5Are the proposed estimators computationally feasible for large-scale multi-class problems with high-dimensional probability simplices?

Key findings

  • The proposed estimators for the SKCE are consistent and unbiased, with strong empirical performance in controlled experiments using generative models.
  • P-value approximations based on the asymptotic distribution of the estimator $\widehat{\mathrm{SKCE}}_{\mathrm{uq}}$ accurately approximate the true p-value on average, yielding powerful statistical tests.
  • For all evaluated modern neural networks on CIFAR-10, the p-value approximations using $\widehat{\mathrm{SKCE}}_{\mathrm{uq}}$ were zero, indicating strong evidence against the null hypothesis of calibration.
  • The p-value approximations using $\widehat{\mathrm{SKCE}}_{\mathrm{ul}}$ ranged from 0.18 (ResNet18) to 0.91 (GoogLeNet), reflecting varying degrees of empirical calibration error.
  • Distribution-free bounds for p-values were generally loose, lying between 0.99 and 1, indicating they are conservative but not practically useful for inference.
  • Computational evaluation shows that estimators like $\widehat{\mathrm{SKCE}}_{\mathrm{b}}$ and $\widehat{\mathrm{SKCE}}_{\mathrm{uq}}$ can be evaluated in under 0.1 seconds even for 1000 classes and 1000 samples, demonstrating scalability.

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.