A Learning Based Hypothesis Test for Harmful Covariate Shift

Tom Ginsberg, Zhongyuan Liang, Rahul G. Krishnan
12/6/2022
30 citations
cs.LG

Official code: rgklab/detectron (10 stars, Python, GPL-3.0, last commit 2024-01-22). 1 more implementation below.

Abstract

The ability to quickly and accurately identify covariate shift at test time is a critical and often overlooked component of safe machine learning systems deployed in high-risk domains. While methods exist for detecting when predictions should not be made on out-of-distribution test examples, identifying distributional level differences between training and test time can help determine when a model should be removed from the deployment setting and retrained.

Show full abstract

In this work, we define harmful covariate shift (HCS) as a change in distribution that may weaken the generalization of a predictive model. To detect HCS, we use the discordance between an ensemble of classifiers trained to agree on training data and disagree on test data. We derive a loss function for training this ensemble and show that the disagreement rate and entropy represent powerful discriminative statistics for HCS. Empirically, we demonstrate the ability of our method to detect harmful covariate shift with statistical certainty on a variety of high-dimensional datasets. Across numerous domains and modalities, we show state-of-the-art performance compared to existing methods, particularly when the number of observed test samples is small.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
rgklab/detectronOfficial10PythonGPL-3.02024-01-22
tomginsberg/deeptstOfficial6PythonGPL-3.02023-02-17
rgklab/detectronOfficial100%
GPL-3.0

Official repository for the ICLR 2023 paper "A Learning Based Hypothesis Test for Harmful Covariate Shift"

103PythonFeb 11, 20232 years agoGPL-3.0
distribution-shiftmachine-learningpytrochtwo-sample-testxgboost
GPL-3.0

A library for neural network and other model based two sample tests

60Python, Jupyter NotebookAug 1, 20223 years agoGPL-3.0

Similar Papers

Cite this paper

@article{ginsberg2022learning,
  title  = {A Learning Based Hypothesis Test for Harmful Covariate Shift},
  author = {Tom Ginsberg and Zhongyuan Liang and Rahul G. Krishnan},
  year   = {2022},
  eprint = {2212.02742},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.02742}
}

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/2212.02742.svg)](https://codeofpaper.com/paper/2212.02742)

Discussion