Abstract
Real-world datasets are typically imbalanced in the sense that only a few classes have numerous samples, while many classes are associated with only a few samples. As a result, a naïve ERM learning process will be biased towards the majority classes, making it difficult to generalize to the minority classes. To address this issue, one simple but effective approach is to modify the loss function to emphasize the learning on minority classes, such as re-weighting the losses or adjusting the logits via class-dependent terms. However, existing generalization analysis of such losses is still coarse-grained and fragmented, failing to explain some empirical results. To bridge this gap, we propose a novel technique named data-dependent contraction to capture how these modified losses handle different classes. On top of this technique, a fine-grained generalization bound is established for imbalanced learning, which helps reveal the mystery of re-weighting and logit-adjustment in a unified manner. Furthermore, a principled learning algorithm is developed based on the theoretical insights. Finally, the empirical results on benchmark datasets not only validate the theoretical results but also demonstrate the effectiveness of the proposed method.
Introduction
In many practical machine learning applications, from rare disease diagnosis to autonomous driving, data is rarely distributed evenly across classes. This "long-tailed" distribution poses a significant challenge for standard Empirical Risk Minimization (ERM), which tends to over-optimize for majority classes while neglecting the minority. To mitigate this, researchers often employ loss-oriented strategies: re-weighting (assigning higher importance to minority class errors) or logit-adjustment (shifting model outputs to favor minority classes).
Despite their empirical success, the theoretical understanding of these methods has remained limited. Previous analyses often relied on "global" properties that averaged behavior across the entire dataset, failing to explain why certain techniques—such as delaying re-weighting until late in the training process—actually improve performance. This paper introduces a localized theoretical framework to bridge this gap, providing a unified view of re-weighting and logit-adjustment.
The Localization Framework
The authors propose a shift from global metrics to a localized perspective, focusing on how model properties behave for each specific class. This approach centers on two key concepts:
- Localized Calibration: While a model may appear well-calibrated on average, it is often significantly miscalibrated for minority classes. By introducing class-specific assumptions regarding the slopes of reliability diagrams, the authors can better account for these disparities.
- Localized Lipschitz Continuity: The researchers refine generalization theory by defining a "local" Lipschitz constant for each class. This allows for the derivation of a much tighter, fine-grained generalization bound that reflects the unique learning dynamics of imbalanced data.
Consistent Vector-Scaling (CVS) Loss
Based on these localized theoretical insights, the paper introduces the Consistent Vector-Scaling (CVS) Loss. This unified loss function integrates three distinct components to address imbalanced learning:
- $\alpha_y$ (Re-weighting): A term to adjust the relative importance of each class.
- $\beta_y$ (Multiplicative Logit-Adjustment): A scaling term that corrects for class-specific calibration slopes.
- $\Delta_y$ (Additive Logit-Adjustment): A shift term to manage class margins.
To optimize these terms effectively, the authors propose a two-stage training strategy. In the early phase, the model utilizes Multiplicative Logit-Adjustment (MLA). In the terminal phase, it switches to Consistent Logit-Adjustment (CLA) combined with a new Aligned Deferred Re-Weighting (ADRW) scheme. This transition is crucial because the theory suggests that multiplicative adjustments can become counterproductive if used simultaneously with re-weighting in the final stages of training.
Experimental Results
The proposed CVS+ADRW method was evaluated against state-of-the-art baselines on several standard long-tailed benchmarks, including CIFAR-10/100 LT, ImageNet-LT, and iNaturalist 2018.
Key findings include:
- Superior Accuracy: On CIFAR-100 LT with an imbalance ratio of 100, the method achieved 44.4% balanced accuracy, surpassing LDAM+DRW (42.7%) and standard VS loss (41.8%).
- Scalability to Foundation Models: The framework remains effective when fine-tuning modern architectures. Using a ViT-B/16 on the iNaturalist dataset, the method reached 80.9% accuracy.
- Theoretical Validation: The results provide a formal explanation for the "Deferred Re-Weighting" trick. Training without weights initially allows the model to learn high-quality features from the majority classes, which ultimately tightens the generalization bounds for all classes once weights are applied later.
Conclusion and Future Work
By moving toward a localized analysis of calibration and generalization, this research provides a principled foundation for imbalanced learning. The resulting CVS loss and ADRW scheme offer a robust, unified approach that performs well across both traditional ResNets and modern Vision Transformers. Future work may involve integrating these localized loss functions with orthogonal techniques like multi-expert ensembling or advanced data augmentation to further improve performance on extremely rare classes.
Summary updated