Covariate Shift Adaptation in High-Dimensional and Divergent Distributions

Felipe Maia Polo, Renato Vicente · DOI

TL;DR

This paper bridges the gap between effective sample size (ESS), data dimensionality, and generalization in covariate shift adaptation. The authors propose a unified theory showing that high dimensionality can lead to small ESS and poor generalization, and demonstrate that dimensionality reduction or feature selection can mitigate this by increasing ESS, suggesting it's a beneficial preprocessing step.

What Problem Does This Paper Address?

In machine learning, we often assume that the data used to train a model comes from the same distribution as the data the model will encounter in the real world. However, this assumption is frequently violated in practice, a phenomenon known as "covariate shift." This occurs when the distribution of input features changes between training and testing, but the relationship between features and labels remains the same. A common technique to handle covariate shift is importance weighting, which re-weights training samples to better match the target distribution.

A major challenge with importance weighting is that it can fail when the "effective sample size" (ESS) is small. Intuitively, a small ESS means that even with many training samples, only a few are truly informative for the target distribution. This problem is exacerbated in high-dimensional settings, where the number of features is large. While previous work has hinted at these connections, a unified theoretical framework explaining how ESS, dimensionality, and generalization are formally linked in covariate shift adaptation has been missing. This paper aims to fill that void.

Methods

The core of this paper lies in developing a unified theoretical framework. The authors:

  • Formalize the relationship between ESS and generalization: They derive a generalization bound for covariate shift adaptation that explicitly depends on the ESS. A larger ESS leads to a tighter bound, meaning better expected performance on the target distribution.
  • Introduce Rényi Divergence: They show that the population-level ESS is directly related to the Rényi Divergence of order 2 between the source and target feature distributions. Specifically, ESS is an exponential function of the negative Rényi Divergence.
  • Connect dimensionality to ESS: A key theoretical result demonstrates that the Rényi Divergence between two distributions does not decrease as dimensionality increases. This implies that the population ESS decreases with increasing dimensionality.
  • Propose dimensionality reduction/feature selection as a solution: The authors prove that linear dimensionality reduction and feature selection (even when data-dependent) can decrease the Rényi Divergence between the transformed source and target distributions, thereby increasing the effective sample size.

Datasets

The paper uses a combination of synthetic and real-world datasets for its experiments:

  • Synthetic Data: A toy experiment is used to illustrate the theoretical findings, involving Gaussian distributions with varying dimensionality and a specific covariate shift.
  • Real-world Datasets: For empirical validation, the authors select 10 regression datasets from standard repositories (e.g., UCI Machine Learning Repository, Regression Datasets). These datasets are augmented with synthetic features (Gaussian noise) to create high-dimensional scenarios. Both regression and classification tasks are performed on these datasets.

Key Insights and Ideas

  • High dimensionality is the enemy of ESS: The paper provides a formal link showing that as the number of features increases, the divergence between source and target distributions grows, leading to a smaller effective sample size. This explains why importance weighting struggles in high-dimensional covariate shift scenarios.
  • ESS is a direct predictor of generalization: The derived generalization bound clearly shows that a larger ESS translates to a more reliable prediction of model performance on unseen data from the target distribution.
  • Dimensionality reduction is not just about efficiency, but also effectiveness: The theoretical results strongly suggest that reducing dimensionality or selecting features before applying covariate shift adaptation techniques is not just a way to speed up computation but a crucial step to improve the effectiveness of the adaptation itself by boosting ESS.
  • Feature selection can be more effective than just reducing dimensions: The paper's theorems cover both linear dimensionality reduction and feature selection, showing that both can increase ESS. The experimental results further highlight the benefits of feature selection.

Key Results

  • Theoretical: The paper establishes a formal connection between ESS, dimensionality, and generalization bounds in covariate shift adaptation. It proves that increasing dimensionality leads to a decrease in ESS and that dimensionality reduction/feature selection can increase ESS.
  • Experimental:
    • The toy experiment visually confirms that as dimensionality increases, Rényi Divergence grows, ESS decreases, and the performance of a decision tree regressor deteriorates.
  • Real-world experiments show that feature selection significantly increases the effective sample size compared to using all features.
  • The proposed approach (feature selection followed by importance weighting) consistently outperforms other methods, including using true weights or estimated weights with all features, demonstrating substantial improvements in predictive performance (average test errors are significantly lower).

Limitations and Future Work

  • Assumptions: The theoretical results rely on certain assumptions, such as the importance function being known up to a constant, the sample ESS being close to its population version, and independent samples. The authors acknowledge that the assumption of a known importance function is often unrealistic in practice.
  • Data-dependent transformations: While the theorems address data-dependent dimensionality reduction and feature selection, they are limited to linear transformations. Extending these results to non-linear or more general data-dependent transformations is a key direction for future work.
  • Sufficient Dimension Reduction (SDR): The paper mentions SDR as a supervised approach that could potentially overcome some limitations of unsupervised methods, but it's not the primary focus.
  • Sample independence: The paper notes that if the transformed samples are not independent, the theoretical results might not hold. Investigating how to handle dependent samples is also suggested.

Summary updated

BibTeX
@article{polo2023covariate,
  author = {Felipe Maia Polo and Renato Vicente},
  title = {{Covariate Shift Adaptation in High-Dimensional and Divergent Distributions}},
  journal = {Neural Computing and Applications},
  year = {2023},
  doi = {10.1007/s00521-021-06615-1},
}
Figure