Abstract
これまで,教師付き学習は訓練用の標本がテスト時に用いる標本と同じ規則に従って生成されるという大前提のもとで研究されてきた.しかし,現実的な場面ではこの前提が成り立たないことも多く,そのような場合は従来の教師付き学習法では良い学習結果が得られない.このような背景のもと,共変量シフトと呼ばれる状況下での学習法が近年盛んに研究されている.共変量シフトとは,与えられた入力に対する出力の生成規則は訓練時とテスト時で変わらないが,入力(共変量)の分布が訓練時とテスト時で異なるという状況である.本稿では,共変量シフト下での教師付き学習の最近の研究成果を概説する.
Introduction
Standard supervised learning algorithms typically rely on the "i.i.d. assumption," which posits that training samples and future test samples are independent and identically distributed. However, in many real-world scenarios—such as non-stationary systems or models applied across different geographic regions—this assumption is violated.
This paper addresses the specific problem of covariate shift. In this setting, the marginal distribution of inputs $P(x)$ changes between training and testing, while the conditional distribution of outputs $P(y|x)$ remains invariant. Under such conditions, standard Empirical Risk Minimization (ERM) loses its consistency, often leading to poor generalization, particularly in extrapolation tasks.
Methodological Framework
The primary strategy for mitigating covariate shift is Importance Weighting. By weighting training samples according to how well they represent the test distribution, we can align the training objective with actual test performance. Key methods include:
- Importance Weighted ERM (IWERM): Weights each training sample $(x_i, y_i)$ by the density ratio $w(x_i) = P_{test}(x_i) / P_{train}(x_i)$, restoring estimator consistency.
- Adaptive IWERM (AIWERM): Introduces a smoothing parameter $\lambda \in [0, 1]$ to weight samples by $[P_{test}(x_i) / P_{train}(x_i)]^\lambda$. This manages the high variance often associated with extreme importance weights by allowing a controlled bias-variance tradeoff.
- Importance Weighted Cross-Validation (IWCV): Standard cross-validation is heavily biased under covariate shift. IWCV applies importance weights to validation loss, providing a nearly unbiased estimate of the true test error.
- ALICE (Active Learning using IWLS): An active learning approach that optimizes the training input distribution to minimize expected test error under importance-weighted least squares.
Experimental Evaluation
The efficacy of these methods is demonstrated through synthetic 1D regression tasks, such as fitting a $sinc(x)$ function where training data is concentrated in a different region than the test data.
As illustrated in the figure above, standard Ordinary Least Squares (OLS) fits the training data well but fails significantly on the test data (indicated by 'x' marks). In contrast, Importance Weighted Least Squares (IWLS) and its adaptive variant (AIWLS) significantly reduce the generalization error ($G$).
Model Selection and Validation
One of the critical findings is that standard model selection criteria fail under covariate shift. Conventional Cross-Validation consistently selects sub-optimal models because it assumes the validation set mirrors the training distribution rather than the test distribution.
Importance-weighted criteria like IWCV and IWAIC track the true test error much more closely, allowing for the identification of optimal hyperparameters even in the presence of significant distribution shift.
Conclusion and Future Directions
While importance weighting provides a robust mathematical foundation for handling covariate shift, several challenges remain. The methods assume the density ratio $P_{test}(x) / P_{train}(x)$ is known or can be accurately estimated, which is difficult in high-dimensional spaces. Furthermore, future research is required to address more complex scenarios, such as "concept drift," where the relationship $P(y|x)$ also changes over time, or shifts in class priors for classification tasks.
Summary updated