Long-Tailed Class Incremental Learning

Xialei Liu, Yusong Hu, Xu-Sheng Cao, Andrew D. Bagdanov, Ke Li, Ming-Ming Cheng

Introduction

Class Incremental Learning (CIL) aims to develop models that can learn new categories sequentially without forgetting previously acquired knowledge. However, most existing CIL research assumes a perfectly balanced data stream, which rarely occurs in real-world applications. In practice, data often follows a long-tailed distribution where a few "head" classes are over-represented and many "tail" classes are under-represented. This paper introduces Long-Tailed Class Incremental Learning (LT-CIL) to address this gap.

Comparison of different CIL scenarios, including the proposed Shuffled and Ordered Long-tailed CIL.

The LT-CIL Challenge

In LT-CIL, the model faces a dual challenge: catastrophic forgetting of old tasks and a severe classification bias toward majority classes within the current imbalanced task. Existing state-of-the-art CIL methods, such as LUCIR and PODNET, often fail to maintain performance when subjected to these long-tailed distributions. The authors observe that even "balanced" CIL is inherently long-tailed because the small memory of exemplars for old classes creates a massive imbalance relative to the new task's data.

Proposed Methodology: Two-Stage Training

To mitigate classification bias while preserving feature quality, the authors propose a decoupled two-stage training strategy that separates feature learning from classifier calibration.

The proposed two-stage training framework featuring representation learning followed by classifier re-balancing with Learnable Weight Scaling (LWS).
  1. Stage 1: Representation Learning. The model is trained on the current task using standard instance-balanced sampling. A combination of Cross-Entropy loss ($L_{CE}$) and auxiliary distillation losses ($L_{aux}$) is used to learn new features while minimizing forgetting.
  2. Stage 2: Classifier Re-balancing. The feature extractor and previous classification heads are frozen to prevent representation drift. A Learnable Weight Scaling (LWS) layer is introduced and trained using a class-balanced sampler. This stage specifically calibrates the classification heads to ensure fair treatment of tail classes without damaging the underlying features.

Experimental Evaluation

The method was evaluated on three major benchmarks: CIFAR-100, ImageNet-Subset, and the naturally long-tailed iNaturalist dataset. The authors introduced two specific scenarios for testing:

  • Ordered LT-CIL: Tasks are presented starting from head classes down to tail classes.
  • Shuffled LT-CIL: Classes are randomly distributed across tasks, creating a mix of head and tail categories in each incremental step.

Key Results and Insights

The proposed two-stage approach yields significant improvements across various settings:

  • Accuracy Gains: On the Shuffled LT-CIL scenario for ImageNet-Subset, the method improved the LUCIR baseline by 6.28 points and the EEIL baseline by 6.44 points in average incremental accuracy.
  • Robustness: The LWS-enhanced models showed more consistent performance across different datasets compared to standard CIL baselines. For instance, while LUCIR normally outperforms PODNET on CIFAR but loses on ImageNet, the LWS-enhanced versions remained competitive across both.
  • Real-World Validation: On the naturally imbalanced iNaturalist dataset, the two-stage training provided a steady 1.46% improvement over the strong LUCIR baseline.

Conclusion

By decoupling representation learning from classifier calibration, this work provides a robust framework for real-world incremental learning. The introduction of LT-CIL benchmarks and the LWS layer marks a significant step toward deploying AI systems that can handle the natural imbalances of the physical world. Future work may focus on automating hyperparameter tuning for the second stage and exploring purely online, boundary-free data streams.

Summary updated

BibTeX
@inproceedings{liu2022long,
  author = {Xialei Liu and Yusong Hu and Xu-Sheng Cao and Andrew D. Bagdanov and Ke Li and Ming-Ming Cheng},
  title = {{Long-Tailed Class Incremental Learning}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19827-4\_29},
}
Figure