The Balanced Loss Curriculum Learning

Wei Qin, Zhenzhen Hu, Xueliang Liu, Weijie Fu, Jun He, Richang Hong

Abstract

In standard deep learning training, difficult samples near decision boundaries often generate disproportionately high loss values, forcing models to focus on complex noise before mastering the underlying data distribution. We present Balanced Loss Curriculum Learning (BLCL), a framework that utilizes a teacher-student architecture to implement a "soft" curriculum. By reweighting training samples based on the teacher's prediction confidence, BLCL prioritizes clear, "easy" examples early in training, gradually incorporating harder boundary cases to refine the decision surface.

Introduction: The Problem of Loss Imbalance

A significant challenge in training deep neural networks is "loss imbalance." Empirical evidence suggests that the most difficult 25% of samples can account for over 90% of the total loss during the early stages of training. When all samples are treated with equal importance, the model is effectively "bullied" by these high-loss, boundary-straddling examples. This premature focus on complexity can lead to slow convergence, overfitting to noise, and a failure to capture the "gross distribution" of the dataset.

Traditional Curriculum Learning (CL) attempts to solve this by manually scheduling the introduction of samples. However, these "hard" curricula often discard information or require complex, task-specific heuristics.

Methodology: Leveraging Boundary Information

BLCL addresses these issues through a simultaneous teacher-student training process. The teacher network, trained with standard Cross-Entropy loss, acts as a difficulty discriminator. Instead of using raw loss values—which can be noisy—BLCL utilizes the teacher's prediction vectors to identify sample difficulty.

Visualization of boundary information using prediction vectors. Samples with spread-out probabilities are identified as difficult boundary cases.

As shown in the figure above, a sample with a prediction vector like (0.6, 0.4, 0.0) is closer to a decision boundary than one with (0.6, 0.2, 0.2), even if the top-1 prediction is the same. BLCL uses this "boundary information" to weight the student's loss:

$$BLCLLoss = \sum_{i=1}^{n} \sum_{k=1}^{C} f_{\theta^*_t}(x_i)^r \mathcal{L}(f_{\theta_s}(x_i), T_k)$$

The hyperparameter $r$ (typically 1.5) controls the curriculum's softness. For easy samples, the teacher's high confidence maintains a high weight. For difficult samples, the lower, distributed probabilities significantly reduce their impact on the total loss early on.

The BLCL Curriculum in Action

The training process naturally evolves from a focus on global structure to local refinement.

Comparison of standard training (left) vs. the BLCL curriculum learning process (right). BLCL allows easy examples to dominate early before refining boundaries with difficult examples.

In the early stages, easy examples dominate the training, allowing the student to learn the general data distribution. As the teacher becomes more confident over time, the weights for difficult samples naturally increase, allowing the student to "pay more attention" to boundary cases and refine the final decision boundary.

Experimental Results

The BLCL framework was evaluated across multiple architectures (ResNet, Wide-ResNet, DenseNet, WordCNN) and datasets (CIFAR-10/100, MNIST, SVHN, MR).

  • Performance Gains: On CIFAR-100 with ResNet-32, BLCL achieved 73.26% accuracy, compared to 69.62% with conventional training.
  • Generalization: On the MR text classification dataset, accuracy improved from 69.50% to 71.29%.
  • Overfitting Mitigation: Analysis of loss curves indicates that BLCL prevents the model from overfitting to noise, as the training loss stabilizes at a non-zero value while achieving lower test loss than standard methods.

Conclusion

Balanced Loss Curriculum Learning provides a robust, automated way to implement curriculum learning without discarding data. By using a teacher network to provide a soft weighting based on boundary information, BLCL ensures that models learn fundamental patterns before tackling complex edge cases. While it requires additional computation for the teacher network, the significant gains in accuracy and generalization make it a compelling approach for diverse classification tasks.

Summary updated

BibTeX
@article{qin2020balanced,
  author = {Wei Qin and Zhenzhen Hu and Xueliang Liu and Weijie Fu and Jun He and Richang Hong},
  title = {{The Balanced Loss Curriculum Learning}},
  journal = {IEEE Access},
  year = {2020},
  doi = {10.1109/access.2020.2970726},
}
Figure