Abstract
Importance weighting is a classic technique to handle distribution shifts. However, prior work has presented strong empirical and theoretical evidence demonstrating that importance weights can have little to no effect on overparameterized neural networks. Is importance weighting truly incompatible with the training of overparameterized neural networks? Our paper answers this in the negative. We show that importance weighting fails not because of the overparameterization, but instead, as a result of using exponentially-tailed losses like the logistic or cross-entropy loss. As a remedy, we show that polynomially-tailed losses restore the effects of importance reweighting in correcting distribution shift in overparameterized models. We characterize the behavior of gradient descent on importance weighted polynomially-tailed losses with overparameterized linear models, and theoretically demonstrate the advantage of using polynomially-tailed losses in a label shift setting. Surprisingly, our theory shows that using weights that are obtained by exponentiating the classical unbiased importance weights can improve performance. Finally, we demonstrate the practical value of our analysis with neural network experiments on a subpopulation shift and a label shift dataset. When reweighted, our loss function can outperform reweighted cross-entropy by as much as 9% in test accuracy. Our loss function also gives test accuracies comparable to, or even exceeding, well-tuned state-of-the-art methods for correcting distribution shifts.
Introduction
In traditional machine learning, importance weighting (IW) is a standard tool for addressing distribution shifts. By upweighting rare training examples that are more prevalent in the test set, models can be guided to learn features that generalize better to the target distribution. However, modern deep learning faces a "weighting problem." Because overparameterized models can perfectly fit (interpolate) every training point, recent studies have suggested that importance weights often have negligible impact on the final classifier. Whether a point is weighted 1x or 100x, the model eventually reaches zero training error, often resulting in the same decision boundary.
This paper investigates whether importance weighting is fundamentally incompatible with modern AI or if the issue lies in the choice of loss functions used during training.
The Role of Loss Function Tails
The authors identify the culprit as exponentially-tailed loss functions, such as logistic or cross-entropy loss. In overparameterized regimes, gradient descent on these losses exhibits an "implicit bias" toward the maximum-margin classifier. This bias effectively causes the model to "forget" importance weights once the training loss becomes sufficiently small, as the boundary is determined primarily by the geometry of the data points nearest to it.
To restore the efficacy of IW, the authors propose using polynomially-tailed losses. Unlike exponential losses, these "fat-tailed" losses (e.g., $1/z^\alpha$) drop off more slowly. Theoretically, the authors prove that for these losses, the final decision boundary remains dependent on importance weights even when the model perfectly fits the data.
Experimental Evaluation
The theory was validated using two primary benchmarks:
- Imbalanced Binary CIFAR-10: A modified image dataset with a 10:1 imbalance between classes (e.g., cats vs. dogs).
- Subsampled CelebA: A facial attribute dataset used to test subpopulation shift, where models must overcome spurious correlations (e.g., hair color correlated with gender in training but not in test).
Key Insights: Gradient Balancing and Weight Exponentiation
A significant finding is that the failure of IW is a consequence of the loss function's shape rather than model complexity. By changing how small errors are penalized, the model can be made to "remember" group importance.
Furthermore, the authors discovered that in the interpolating regime, gradients from the majority group can still overwhelm the minority. To counteract this, they suggest exponentiating the weights (e.g., using $w^3$ instead of $w$). This "biased" weighting is necessary to maintain balanced gradients throughout the entire training process, steering the interpolation toward a more robust solution.
Performance and Stability
The proposed polynomially-tailed loss demonstrated significant improvements over standard methods:
- Accuracy Gains: On imbalanced CIFAR-10, the poly-tailed loss outperformed reweighted cross-entropy by up to 9% in test accuracy.
- State-of-the-Art Results: On CelebA, the method achieved 86.7% accuracy when combined with Distributionally Robust Optimization (DRO), matching or exceeding well-tuned methods like Vector-Scaling (VS) loss.
- Long-term Stability: Unlike cross-entropy, which stagnates after reaching 100% training accuracy, the poly-tailed loss maintained its corrective effect even with extended training.
Discussion and Future Directions
While the mathematical proofs are centered on linear classifiers, empirical results suggest the theory holds for deep ResNets. However, a full theoretical characterization for non-linear networks remains an open challenge. Additionally, the method introduces new hyperparameters, such as the polynomial power ($\alpha$) and the weight exponent ($c$), which require careful tuning. Future work may focus on making these fat-tailed losses more stable and "plug-and-play" for a wider variety of architectures and optimization settings.
Summary updated