Skip to main content
QUICK REVIEW

[Paper Review] When Does Optimizing a Proper Loss Yield Calibration?

Jarosław Błasiok, Parikshit Gopalan|arXiv (Cornell University)|May 30, 2023
Adversarial Robustness in Machine LearningComputer Science3 citations
TL;DR

This paper establishes that optimizing a proper loss function over a restricted family of predictors yields calibrated models when the predictor is locally optimal with respect to post-processing via Lipschitz functions. It proves that local optimality implies smooth calibration, and conversely, near-calibration implies near-local-optimality, offering a theoretical explanation for the empirical calibration of deep neural networks trained via proper loss minimization.

ABSTRACT

Optimizing proper loss functions is popularly believed to yield predictors with good calibration properties; the intuition being that for such losses, the global optimum is to predict the ground-truth probabilities, which is indeed calibrated. However, typical machine learning models are trained to approximately minimize loss over restricted families of predictors, that are unlikely to contain the ground truth. Under what circumstances does optimizing proper loss over a restricted family yield calibrated models? What precise calibration guarantees does it give? In this work, we provide a rigorous answer to these questions. We replace the global optimality with a local optimality condition stipulating that the (proper) loss of the predictor cannot be reduced much by post-processing its predictions with a certain family of Lipschitz functions. We show that any predictor with this local optimality satisfies smooth calibration as defined in Kakade-Foster (2008), Błasiok et al. (2023). Local optimality is plausibly satisfied by well-trained DNNs, which suggests an explanation for why they are calibrated from proper loss minimization alone. Finally, we show that the connection between local optimality and calibration error goes both ways: nearly calibrated predictors are also nearly locally optimal.

Motivation & Objective

  • To resolve the theoretical gap between optimizing proper losses and achieving model calibration in realistic settings with restricted predictor families.
  • To formalize under what conditions minimizing a proper loss leads to calibrated predictors when the global optimum is unattainable.
  • To provide a rigorous connection between local optimality in loss minimization and smooth calibration error.
  • To explain the empirical success of deep neural networks in achieving calibration through proper loss optimization alone.

Proposed method

  • Introduce a local optimality condition: the predictor's loss cannot be significantly reduced by post-processing its outputs using Lipschitz functions.
  • Define smooth calibration using the framework of Kakade and Foster (2008), measuring calibration error via a Lipschitz-regularized loss function.
  • Prove that any predictor satisfying the local optimality condition is smoothly calibrated, with calibration error bounded by the local optimality gap.
  • Establish a reverse connection: nearly calibrated predictors are also nearly locally optimal, showing a bidirectional relationship.
  • Use convex duality and properties of Lipschitz functions to derive bounds on the loss improvement via post-processing.
  • Analyze the trade-off between model complexity and calibration through a parameterized loss function with a regularization term.

Experimental results

Research questions

  • RQ1Under what conditions does minimizing a proper loss over a restricted family of predictors yield a calibrated model?
  • RQ2Can local optimality in loss minimization guarantee smooth calibration, even when the global optimum is not achieved?
  • RQ3Is there a reverse relationship: do nearly calibrated models also exhibit near-local-optimality?
  • RQ4Why do deep neural networks trained with proper losses like cross-entropy often achieve good calibration despite model capacity limitations?

Key findings

  • Local optimality with respect to Lipschitz post-processing implies smooth calibration, with calibration error bounded by the square root of the local optimality gap.
  • The paper establishes a bidirectional relationship: nearly calibrated predictors are also nearly locally optimal, and vice versa.
  • The theoretical framework explains why deep neural networks trained via SGD on proper losses (e.g., cross-entropy) are empirically well-calibrated.
  • The calibration error is quantitatively bounded by the extent to which the loss can be reduced via post-processing with Lipschitz functions.
  • The analysis shows that even without reaching the global optimum, local optimality in loss minimization suffices for strong calibration guarantees.

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.