General Quantification of Covariate and Concept Shifts
Abstract
Lay Summary
Machine learning systems are often trained in one setting but used in another. For example, a model trained on data from one hospital, country, or time period may be deployed in a different one, where both the distributions of inputs (covariate, X) and the labels (concept, Y|X) can change. Understanding how such changes affect prediction error is important, but existing theory usually works only in simplified cases and often cannot estimate these distribution shifts on real data. In this work, we develop a more practical way to analyze this problem. We show that a common way of describing Y|X shift can fail when the training and test data cover different regions. To address this, we use entropic optimal transport, a mathematical tool for comparing distributions, to define a more general notion of Y|X shift. We then derive learning error bounds and provide estimators of the X (inputs) and Y|X (labels) shifts that can be computed from samples. Our DataShifts algorithm offers a general tool for quantifying these shifts and explaining model performance under distribution shift.