Abstract: In this paper, we propose a balancing training method to address problems in imbalanced data learning. To this end, we derive a new loss used in the balancing training phase that alleviates the influence of samples that cause an overfitted decision boundary. The proposed loss efficiently improves the performance of any type of imbalance learning methods. In experiments on multiple benchmark data sets, we demonstrate the validity of our method and reveal that the proposed loss outperforms the state-of-the-art cost-sensitive loss methods. Furthermore, since our loss is not restricted to a specific task, model, or training method, it can be easily used in combination with other recent resampling, meta-learning, and cost-sensitive learning methods for class-imbalance problems.
Introduction
In real-world visual classification tasks, datasets often exhibit a "long-tailed" distribution where a few majority classes contain the bulk of the data, while many minority classes have very few samples. Standard training objectives like Cross-Entropy (CE) loss tend to favor majority classes, leading to models that perform poorly on the "tail" of the distribution. This is often because the model overfits to "hard" samples from majority classes that lie near the decision boundary, effectively "bullying" the minority classes by pushing the boundary deep into their feature space.
The Problem: The "Bully" Effect of Influential Samples
Existing solutions for class imbalance typically involve re-weighting classes or focusing on hard examples (e.g., Focal Loss). However, the authors of "Influence-Balanced Loss for Imbalanced Visual Classification" argue that these methods can be counterproductive. Specifically, sample-level re-weighting like Focal Loss can amplify the influence of majority-class outliers that have invaded the minority class territory. This results in a complex, overfitted decision boundary that generalizes poorly to minority classes.
Influence-Balanced (IB) Loss
To address this, the researchers propose Influence-Balanced (IB) Loss. The core idea is to down-weight training samples based on their "influence" on the model's parameters.
Measuring Influence via Gradients
Calculating the exact influence of a sample—how much the model's weights would change if that sample were removed—is computationally prohibitive as it requires inverting the Hessian matrix. The authors derive a simplified proxy: the magnitude ($L_1$ norm) of the gradient vector at the final fully connected layer. Samples with large gradients are considered highly influential and potentially harmful if they cause overfitting.
The IB Weighting Factor
The IB Loss ($L_{IB}$) modifies the standard loss by dividing it by an influence factor derived from these gradients. By reducing the weight of high-influence samples, the model is prevented from distorting its decision boundary to accommodate outliers, leading to a more robust and balanced classifier.
Two-Phase Training Strategy
The authors recommend a two-phase training schedule. In Phase 1, the model is trained normally using Cross-Entropy loss to learn a strong initial feature representation. In Phase 2, the training switches to IB Loss to refine the decision boundary and mitigate the bias toward majority classes.
Experimental Evaluation
The effectiveness of IB Loss was tested on several benchmarks, including CIFAR-10/100-LT (Long-Tailed), Tiny ImageNet, and the large-scale iNaturalist 2018 dataset.
- CIFAR-10-LT: With an imbalance ratio of 100, IB Loss achieved 78.26% accuracy, a significant improvement over the 70.87% achieved by standard Cross-Entropy.
- iNaturalist 2018: On this real-world dataset, IB Loss reached a Top-1 accuracy of 65.39%, outperforming other state-of-the-art methods like LDAM loss (64.58%).
- Minority Performance: Most importantly, IB Loss dramatically improved performance on the rarest classes. For instance, in CIFAR-10, accuracy for the smallest class jumped from 52% to over 81%.
Conclusion
Influence-Balanced Loss provides a computationally efficient and "plug-and-play" solution for long-tailed classification. By shifting the focus from "hardness" to "influence," it prevents majority-class samples from dominating the learning process and produces decision boundaries that respect the territory of minority classes. Its compatibility with existing re-weighting and meta-learning techniques makes it a versatile tool for addressing data imbalance in deep learning.
Source: Influence-Balanced Loss for Imbalanced Visual Classification
Summary updated