Skip to main content
QUICK REVIEW

[Paper Review] Calibrated Prediction with Covariate Shift via Unsupervised Domain Adaptation

Sangdon Park, Osbert Bastani|arXiv (Cornell University)|Feb 29, 2020
Domain Adaptation and Few-Shot LearningComputer Science34 references17 citations
TL;DR

This paper proposes a novel method for calibrated uncertainty prediction under covariate shift by combining unsupervised domain adaptation with importance weighting to correct for distributional shift. The approach learns a shared feature space to align source and target distributions and uses importance-weighted calibration to improve reliability, outperforming baselines in both expected calibration error and over-confidence reduction on benchmark shifts like MNIST to SVHN and USPS.

ABSTRACT

Reliable uncertainty estimates are an important tool for helping autonomous agents or human decision makers understand and leverage predictive models. However, existing approaches to estimating uncertainty largely ignore the possibility of covariate shift--i.e., where the real-world data distribution may differ from the training distribution. As a consequence, existing algorithms can overestimate certainty, possibly yielding a false sense of confidence in the predictive model. We propose an algorithm for calibrating predictions that accounts for the possibility of covariate shift, given labeled examples from the training distribution and unlabeled examples from the real-world distribution. Our algorithm uses importance weighting to correct for the shift from the training to the real-world distribution. However, importance weighting relies on the training and real-world distributions to be sufficiently close. Building on ideas from domain adaptation, we additionally learn a feature map that tries to equalize these two distributions. In an empirical evaluation, we show that our proposed approach outperforms existing approaches to calibrated prediction when there is covariate shift.

Motivation & Objective

  • To address the problem of miscalibrated uncertainty in machine learning models when deployed under covariate shift—i.e., when test data distribution differs from training data.
  • To develop a calibrated prediction framework that leverages labeled source data and unlabeled target data without requiring target labels.
  • To improve model reliability by correcting for overconfidence caused by distributional shift, especially in safety-critical applications.
  • To formalize a new upper bound on calibration error under covariate shift that incorporates both importance weighting and domain adaptation.
  • To empirically validate that the proposed method outperforms standard calibration techniques under distributional shift.

Proposed method

  • The method uses a source-discriminator to estimate importance weights that reflect the likelihood of a sample being from the target (shifted) distribution.
  • It introduces a novel upper bound on expected calibration error (ECE) that combines importance-weighted ECE and the error of the source-discriminator.
  • A feature map is learned via adversarial domain adaptation to minimize the distinguishability between source and target features, satisfying the support containment assumption required for importance weighting.
  • The uncertainty predictor is trained by minimizing the proposed upper bound on ECE, using temperature scaling on the final classifier for calibration.
  • The approach integrates unsupervised domain adaptation (via domain discriminator) with uncertainty calibration, enabling robust performance on shifted distributions.
  • The algorithm is trained end-to-end using labeled source data and unlabeled target data, with no need for target labels.

Experimental results

Research questions

  • RQ1Can we improve uncertainty calibration in machine learning models when the test distribution differs from the training distribution (covariate shift) without access to target labels?
  • RQ2How can we leverage unlabeled target data to correct for distributional shift in uncertainty estimation?
  • RQ3Does combining domain adaptation with importance weighting lead to better calibration than standard methods like temperature scaling?
  • RQ4What is the impact of feature alignment and importance weighting on reducing overconfidence in predictions under covariate shift?
  • RQ5How does the proposed method perform across different levels of distributional shift, such as MNIST to SVHN versus MNIST to USPS?

Key findings

  • The proposed method, FL+IW+Temp., achieves significantly lower expected calibration error (ECE) than both the base classifier and temperature scaling baseline across multiple covariate shift benchmarks.
  • On the MNIST to SVHN shift, the method reduces ECE by a substantial margin, demonstrating effectiveness in high-shift scenarios.
  • The ablation study shows that importance weighting provides the largest ECE improvement, especially when the target distribution is more variable than the source.
  • Feature learning improves calibration performance overall, though gains are more pronounced in larger shifts; in small shifts like MNIST to USPS, importance weighting alone can outperform feature learning.
  • The method maintains good performance even when no shift is present (e.g., MNIST to MNIST), indicating robustness to distributional stability.
  • High variance in ECE estimates is observed in the MNIST to SVHN benchmark, primarily due to instability in the source-discriminator's training, which affects importance weight estimation.

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.