Distance Matters For Improving Performance Estimation Under Covariate Shift

Mélanie Roschewitz, Ben Glocker
8/14/2023
cs.CVcs.LG

Official code: melanibe/distance_matters_performance_estimation (4 stars, MIT, last commit 2025-06-16).

Abstract

Performance estimation under covariate shift is a crucial component of safe AI model deployment, especially for sensitive use-cases. Recently, several solutions were proposed to tackle this problem, most leveraging model predictions or softmax confidence to derive accuracy estimates. However, under dataset shifts, confidence scores may become ill-calibrated if samples are too far from the training distribution. In this work, we show that taking into account distances of test samples to their expected training distribution can significantly improve performance estimation under covariate shift. Precisely, we introduce a "distance-check" to flag samples that lie too far from the expected distribution, to avoid relying on their untrustworthy model outputs in the accuracy estimation step. We demonstrate the effectiveness of this method on 13 image classification tasks, across a wide-range of natural and synthetic distribution shifts and hundreds of models, with a median relative MAE improvement of 27% over the best baseline across all tasks, and SOTA performance on 10 out of 13 tasks. Our code is publicly available at https://github.com/melanibe/distance_matters_performance_estimation.

View on arXivView PDF

Code Implementations(1)

MIT

Code for "Distance Matters for Improving Performance Estimation Under Covariate Shift", ICCV Workshop on Uncertainty Quantification 2023, Roschewitz & Glocker.

40Python, Jupyter NotebookAug 14, 20231 years agoMIT
covariate-shiftdataset-shiftimage-classificationperformance-estimationuncertainty-quantification

Similar Papers

Cite this paper

@article{roschewitz2023distance,
  title  = {Distance Matters For Improving Performance Estimation Under Covariate Shift},
  author = {Mélanie Roschewitz and Ben Glocker},
  year   = {2023},
  eprint = {2308.07223},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.07223v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.07223.svg)](https://codeofpaper.com/paper/2308.07223)

Discussion