High Dimensional Binary Classification under Label Shift: Phase Transition and Regularization

Jiahui Cheng, Minshuo Chen, Hao Liu, Tuo Zhao, Wenjing LiaoarXiv 2022

Abstract

Label Shift has been widely believed to be harmful to the generalization performance of machine learning models. Researchers have proposed many approaches to mitigate the impact of the label shift, e.g., balancing the training data. However, these methods often consider the underparametrized regime, where the sample size is much larger than the data dimension. The research under the overparametrized regime is very limited. To bridge this gap, we propose a new asymptotic analysis of the Fisher Linear Discriminant classifier for binary classification with label shift. Specifically, we prove that there exists a phase transition phenomenon: Under certain overparametrized regime, the classifier trained using imbalanced data outperforms the counterpart with reduced balanced data. Moreover, we investigate the impact of regularization to the label shift: The aforementioned phase transition vanishes as the regularization becomes strong.

Introduction

In machine learning, label shift occurs when the distribution of classes changes between training and testing environments, while the feature distributions within each class remain consistent. The conventional remedy is to balance the training data, typically by downsampling the majority class. While this heuristic is effective in the underparametrized regime (where samples $n$ far exceed features $p$), its validity in the overparametrized regime ($p > n$) is less understood. This paper challenges the assumption that imbalance is always harmful, identifying a "phase transition" where imbalanced data can actually improve performance in high-dimensional settings.

Methodology

The authors analyze Fisher Linear Discriminant Analysis (LDA) using a Gaussian Mixture Model (GMM). They employ Random Matrix Theory to study the "proportional limit," where both the number of samples $n$ and features $p$ grow to infinity such that their ratio $p/n \to \gamma$ remains constant.

Key technical components include:

  • Asymptotic Error Derivation: Providing closed-form expressions for misclassification error in the high-dimensional limit.
  • Marchenko-Pastur Law: Analyzing the behavior of the empirical covariance matrix, which becomes singular in overparametrized regimes.
  • Regularization Study: Evaluating how $\ell_2$ (ridge) regularization affects the error landscape.

Key Insights: The Peaking Phenomenon and Phase Transitions

A critical observation in high-dimensional classification is the peaking phenomenon: the error of the LDA classifier reaches a maximum when $p \approx n$ ($\gamma \approx 1$). This occurs because the empirical covariance matrix becomes extremely poorly conditioned, leading to large estimation errors.

Asymptotic error vs. $\gamma$ for balanced ($n_1/n_0=1$) and imbalanced ($n_1/n_0=8$) data, highlighting the peaking phenomenon at the interpolation threshold $\gamma=1$.

The research identifies three distinct phases of how classifiers respond to increasing imbalance (adding more majority-class samples):

  1. Phase I (Underparametrized): Imbalance is generally harmful, and downsampling provides a slight benefit.
  2. Phase II (Lightly Overparametrized): Downsampling the majority class significantly improves performance.
  3. Phase III (Highly Overparametrized): Counter-intuitively, adding more majority-class samples helps, even if it increases label shift. In this regime, the benefit of improved covariance estimation from more data outweighs the bias introduced by the shifted priors.
Asymptotic error as a function of the training data ratio $n_1/n_0$, demonstrating the phase transitions across different overparametrization levels ($\gamma_0$).

The Role of Regularization

The study further explores how regularization affects these dynamics. Strong $\ell_2$ regularization acts as a "phase killer," smoothing the error curve and eliminating both the peaking phenomenon and the complex phase transitions. Under heavy regularization, the classifier's behavior reverts to a more classical pattern where the negative impacts of label shift are more predictable.

Conclusion

This work provides a theoretical foundation for understanding label shift in high dimensions. By proving the existence of a phase transition, the authors show that "balancing" data can be counterproductive in overparametrized models. Empirical tests on MNIST and CIFAR-10 datasets using simple neural networks support these theoretical findings, suggesting that the information content of additional samples can be more critical than maintaining class balance in modern machine learning contexts.

Summary updated

BibTeX
@misc{cheng2022high,
  author = {Jiahui Cheng and Minshuo Chen and Hao Liu and Tuo Zhao and Wenjing Liao},
  title = {{High Dimensional Binary Classification under Label Shift: Phase Transition and Regularization}},
  year = {2022},
  eprint = {2212.00700},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.00700},
}
Figure