A statistical theory of overfitting for imbalanced classification
Jingyang Lyu, Kangjie Zhou, Yiqiao Zhong
TL;DR
This work develops a statistical theory for high-dimensional imbalanced classification, focusing on linear classifiers such as SVM and logistic regression under a two-component Gaussian mixture model. It reveals that, in high dimensions, the empirical logit distribution on training data undergoes a truncation/rectification (a rectified Gaussian effect) that causes severe overfitting for the minority class, while the test logit distribution remains closer to a Gaussian. Margin rebalancing is shown to be essential for mitigating the minority accuracy drop, with explicit analyses of optimal margin ratios in proportional and high-imbalance regimes. The paper also connects overfitting to calibration metrics, providing monotone relationships and showing how optimal transport maps explain miscalibration, thus offering practical guidance for improving minority performance and uncertainty quantification in imbalanced, high-dimensional settings.
Abstract
Classification with imbalanced data is a common challenge in data analysis, where certain classes (minority classes) account for a small fraction of the training data compared with other classes (majority classes). Classical statistical theory based on large-sample asymptotics and finite-sample corrections is often ineffective for high-dimensional data, leaving many overfitting phenomena in empirical machine learning unexplained. In this paper, we develop a statistical theory for high-dimensional imbalanced classification by investigating support vector machines and logistic regression. We find that dimensionality induces truncation or skewing effects on the logit distribution, which we characterize via a variational problem under high-dimensional asymptotics. In particular, for linearly separable data generated from a two-component Gaussian mixture model, the logits from each class follow a normal distribution $\mathsf{N}(0,1)$ on the testing set, but asymptotically follow a rectified normal distribution $\max\{κ, \mathsf{N}(0,1)\}$ on the training set -- which is a pervasive phenomenon we verified on tabular data, image data, and text data. This phenomenon explains why the minority class is more severely affected by overfitting. Further, we show that margin rebalancing, which incorporates class sizes into the loss function, is crucial for mitigating the accuracy drop for the minority class. Our theory also provides insights into the effects of overfitting on calibration and other uncertain quantification measures.
