Skip to main content
QUICK REVIEW

[Paper Review] Maximum Likelihood with Bias-Corrected Calibration is Hard-To-Beat at Label Shift Adaptation

Amr M. Alexandari, Anshul Kundaje|arXiv (Cornell University)|Jan 21, 2019
Machine Learning and Data ClassificationComputer Science19 references32 citations
TL;DR

This paper proposes a hybrid method combining bias-corrected calibration with maximum likelihood estimation for label shift adaptation, demonstrating that it outperforms state-of-the-art methods like BBSL and RLLS across diverse datasets. The approach achieves superior accuracy by correcting systematic miscalibration in neural network predictions before applying label shift adaptation via EM, with theoretical guarantees of convergence due to the concavity of the likelihood function.

ABSTRACT

Label shift refers to the phenomenon where the prior class probability p(y) changes between the training and test distributions, while the conditional probability p(x|y) stays fixed. Label shift arises in settings like medical diagnosis, where a classifier trained to predict disease given symptoms must be adapted to scenarios where the baseline prevalence of the disease is different. Given estimates of p(y|x) from a predictive model, Saerens et al. proposed an efficient maximum likelihood algorithm to correct for label shift that does not require model retraining, but a limiting assumption of this algorithm is that p(y|x) is calibrated, which is not true of modern neural networks. Recently, Black Box Shift Learning (BBSL) and Regularized Learning under Label Shifts (RLLS) have emerged as state-of-the-art techniques to cope with label shift when a classifier does not output calibrated probabilities, but both methods require model retraining with importance weights and neither has been benchmarked against maximum likelihood. Here we (1) show that combining maximum likelihood with a type of calibration we call bias-corrected calibration outperforms both BBSL and RLLS across diverse datasets and distribution shifts, (2) prove that the maximum likelihood objective is concave, and (3) introduce a principled strategy for estimating source-domain priors that improves robustness to poor calibration. This work demonstrates that the maximum likelihood with appropriate calibration is a formidable and efficient baseline for label shift adaptation; notebooks reproducing experiments available at https://github.com/kundajelab/labelshiftexperiments

Motivation & Objective

  • To address label shift in machine learning where class priors change between training and test distributions, especially when models produce poorly calibrated probabilities.
  • To evaluate whether combining maximum likelihood with improved calibration can outperform existing state-of-the-art methods like BBSL and RLLS.
  • To develop a principled method for estimating source-domain priors that enhances robustness to systematic bias in calibrated predictions.
  • To prove the concavity of the maximum likelihood objective under the proposed calibration framework, ensuring global convergence.

Proposed method

  • Apply a variant of Temperature Scaling with class-specific bias parameters to correct systematic miscalibration in model predictions.
  • Use the calibrated probabilities $ p(y|\bm{x}) $ from a pre-trained model as input to the maximum likelihood estimation framework for label shift.
  • Implement an Expectation-Maximization (EM) algorithm to estimate the target domain class priors $ q(y) $, leveraging the assumption $ p(\bm{x}|y) = q(\bm{x}|y) $.
  • Introduce a principled strategy for estimating source-domain priors using a held-out validation set to improve robustness under poor calibration.
  • Prove that the likelihood function is concave and bounded, enabling convergence to a global maximum using standard convex optimization techniques.

Experimental results

Research questions

  • RQ1Can combining maximum likelihood with bias-corrected calibration outperform existing state-of-the-art methods like BBSL and RLLS in label shift adaptation?
  • RQ2Does the use of class-specific bias correction in calibration significantly improve adaptation performance compared to standard Temperature Scaling?
  • RQ3Is the maximum likelihood objective under the proposed calibration framework concave, ensuring global convergence?
  • RQ4Can a principled method for estimating source-domain priors improve robustness to systematic bias in calibrated probabilities?

Key findings

  • The proposed method of maximum likelihood with bias-corrected calibration consistently outperforms BBSL and RLLS across MNIST, CIFAR10/CIFAR100, and Diabetic Retinopathy Detection datasets under various distribution shifts.
  • Standard Temperature Scaling does not yield optimal results for label shift adaptation due to persistent systematic biases in calibrated probabilities.
  • Class-specific bias correction in calibration leads to significantly better adaptation performance than standard calibration techniques.
  • The maximum likelihood objective is proven to be concave and bounded, guaranteeing convergence to a global maximum under the proposed framework.
  • The method achieves state-of-the-art performance without requiring model retraining or hyperparameter tuning, unlike BBSL and RLLS.

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.