Improving predictive inference under covariate shift by weighting the log-likelihood function

Hidetoshi ShimodairaJournal of Statistical Planning and Inference 2000

TL;DR

This paper introduces a method to improve predictive inference when the distribution of explanatory variables (covariates) in future data differs from the observed data (covariate shift), especially when the statistical model is misspecified. The core idea is to weight the log-likelihood function based on the ratio of the future covariate distribution to the observed one, leading to a more robust and accurate prediction.

What Problem Does This Paper Address?

In many real-world scenarios, such as sample surveys or experimental design, the data we collect for training a predictive model might not perfectly reflect the distribution of data we'll encounter in the future. This discrepancy is known as "covariate shift." Compounding this issue, the statistical model we choose to describe the relationship between variables might not be perfectly accurate (model misspecification). Traditional methods like Maximum Likelihood Estimation (MLE) can perform poorly under these conditions, leading to suboptimal predictions. The authors aim to develop a method that explicitly addresses both covariate shift and model misspecification to enhance predictive inference.

Methods

The paper proposes a Weighted Maximum Likelihood Estimate (MWLE). Instead of uniformly weighting all observed data points in the log-likelihood function, MWLE assigns weights based on the covariate's distribution. Specifically, the optimal weight function, derived asymptotically, is the ratio of the density of the covariate in the "future" or "population" distribution ($q_1(x)$) to the density in the observed data ($q_0(x)$). This weighting scheme is inspired by importance sampling.

For practical applications, especially with moderate sample sizes where asymptotic optimality might not fully hold, the authors introduce an information criterion (ICw). This criterion helps select an appropriate weight function by balancing the bias and variance of the estimator. They also explore a class of weights that smoothly interpolates between the standard MLE (uniform weight) and the asymptotically optimal weighted approach. The method is also extended to Bayesian predictive densities.

Datasets

The paper uses a simulated dataset for a polynomial regression example. The data is generated from a specified true model and covariate distribution, and then used to evaluate the performance of the proposed MWLE against standard MLE. No new benchmarks or datasets are introduced.

Key Insights and Ideas

  • Covariate Shift is a Common Problem: The paper highlights that covariate shift isn't an obscure theoretical issue but arises in practical settings like sample surveys and experimental design.
  • Weighting as a Solution: The core insight is that by strategically weighting observations based on their covariate distribution, we can significantly improve predictive performance when covariate shift is present, especially under model misspecification.
  • Asymptotic Optimality vs. Practical Performance: While the ratio $q_1(x)/q_0(x)$ is asymptotically optimal, a more nuanced approach (using the information criterion) is needed for moderate sample sizes to balance bias and variance.
  • Information Criterion for Weight Selection: The proposed ICw provides a practical way to select the optimal weight function, effectively acting as a model selection criterion for the weight rather than the model parameters themselves.
  • Robustness: The MWLE approach can be interpreted as a form of robust estimation, downweighting observations that are less representative of the target distribution.

Key Results

  • Improved Prediction: In numerical examples and simulations, MWLE with the proposed weighting scheme consistently outperforms standard MLE, especially when the covariate shift is significant and the model is misspecified. For instance, in a polynomial regression example, the expected loss of MWLE was substantially lower than that of MLE.
  • Effective Weight Selection: The information criterion (ICw) successfully identified near-optimal weights, leading to better predictive performance than simply choosing between the extreme cases of uniform weighting or the asymptotically optimal weighting.
  • Model and Weight Selection: The ICw can be used to simultaneously select both the model order (degree of polynomial) and the optimal weight parameter, demonstrating a unified approach.

Limitations and Future Work

  • Assumption of Known Distributions: The paper assumes that the covariate distributions $q_0(x)$ and $q_1(x)$ are known or can be reasonably estimated in advance. In practice, estimating these densities can be challenging and might impact the performance of MWLE. The authors briefly discuss robustness to estimation of these densities.
  • Computational Cost: While not a primary focus, the paper mentions that a global search for optimal weights across all data points would be computationally expensive. The proposed method of connecting weights via a parameter $\lambda$ offers a more tractable approach.
  • Unified Approach: The authors suggest that developing a unified information criterion for various sampling schemes and data scenarios remains a future research direction.
  • Bayesian Extension: The paper shows that the weighting approach can also improve Bayesian predictive densities, but further exploration of this connection is implied.

Summary updated

BibTeX
@article{shimodaira2000improving,
  author = {Hidetoshi Shimodaira},
  title = {{Improving predictive inference under covariate shift by weighting the log-likelihood function}},
  journal = {Journal of Statistical Planning and Inference},
  year = {2000},
  doi = {10.1016/s0378-3758(00)00115-4},
}
Figure