Skip to main content
QUICK REVIEW

[Paper Review] The Calibration Generalization Gap

A. Michael Carrell, Neil Mallinar|arXiv (Cornell University)|Oct 5, 2022
Machine Learning and Data ClassificationComputer Science5 citations
TL;DR

This paper introduces a novel decomposition of calibration error into training calibration error and the calibration generalization gap, analogous to standard generalization theory. Empirically, it finds that deep neural networks are nearly always well-calibrated on their training data (TrainECE ≈ 0), and that the calibration generalization gap is upper-bounded by the standard generalization gap, implying that models with small generalization gaps are well-calibrated.

ABSTRACT

Calibration is a fundamental property of a good predictive model: it requires that the model predicts correctly in proportion to its confidence. Modern neural networks, however, provide no strong guarantees on their calibration -- and can be either poorly calibrated or well-calibrated depending on the setting. It is currently unclear which factors contribute to good calibration (architecture, data augmentation, overparameterization, etc), though various claims exist in the literature. We propose a systematic way to study the calibration error: by decomposing it into (1) calibration error on the train set, and (2) the calibration generalization gap. This mirrors the fundamental decomposition of generalization. We then investigate each of these terms, and give empirical evidence that (1) DNNs are typically always calibrated on their train set, and (2) the calibration generalization gap is upper-bounded by the standard generalization gap. Taken together, this implies that models with small generalization gap (|Test Error - Train Error|) are well-calibrated. This perspective unifies many results in the literature, and suggests that interventions which reduce the generalization gap (such as adding data, using heavy augmentation, or smaller model size) also improve calibration. We thus hope our initial study lays the groundwork for a more systematic and comprehensive understanding of the relation between calibration, generalization, and optimization.

Motivation & Objective

  • To clarify the inconsistent empirical findings on deep neural network calibration across different architectures and settings.
  • To address the lack of a systematic framework for understanding what factors influence calibration in DNNs.
  • To propose a decomposition of calibration error analogous to generalization theory, separating optimization (train set) and generalization (test set) components.
  • To empirically investigate the behavior of training and test calibration error across diverse model architectures and training regimes.
  • To unify disparate observations about calibration (e.g., data augmentation, model size) under the lens of generalization.

Proposed method

  • Proposes a decomposition of test calibration error into training calibration error (TrainECE) and the calibration generalization gap (|TestECE - TrainECE|), mirroring standard generalization theory.
  • Uses Expected Calibration Error (ECE) as the primary metric for quantifying calibration error on both train and test sets.
  • Empirically evaluates TrainECE and the calibration generalization gap across diverse setups: architectures, model sizes, training durations, data augmentation, and dataset sizes.
  • Compares overparameterized and underparameterized models to study the role of effective parameterization in calibration.
  • Analyzes the relationship between error generalization gap and calibration generalization gap, showing the latter is upper-bounded by the former.
  • Conducts experiments across multiple datasets and model families to validate robustness of findings.

Experimental results

Research questions

  • RQ1Under what conditions are deep neural networks well-calibrated on their training data?
  • RQ2Is the calibration generalization gap bounded by the standard generalization gap in terms of error?
  • RQ3How do architectural choices such as overparameterization or data augmentation affect the calibration generalization gap?
  • RQ4To what extent do interventions that reduce the standard generalization gap (e.g., data augmentation, smaller models) also improve calibration?
  • RQ5Can the calibration behavior of DNNs be systematically understood through the lens of generalization theory?

Key findings

  • Deep neural networks trained with cross-entropy loss are empirically well-calibrated on their training sets, with TrainECE ≈ 0 across diverse architectures, model sizes, and training stages—even when training error is high.
  • The calibration generalization gap (|TestECE - TrainECE|) is empirically upper-bounded by the standard generalization gap (|TestError - TrainError|) throughout training.
  • Overparameterized models exhibit a growing calibration generalization gap during training, which correlates with increasing test error, while underparameterized models maintain low calibration error and gap.
  • The calibration generalization gap emerges early in training and remains stable, with overparameterized models showing a significant divergence from underparameterized models in test ECE.
  • The linear relationship between error generalization gap and calibration generalization gap holds across diverse architectures and training batches.
  • Interventions that reduce the standard generalization gap—such as data augmentation, increased data, or smaller model size—are expected to improve calibration, unifying previously disparate observations.

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.