Rethinking Class-Incremental Learning From a Dynamic Imbalanced Learning Perspective

Leyuan Wang, Liuyu Xiang, Yunlong Wang, Huijia Wu, Huafeng Yang, Jingqian Liu, Zhaofeng He

TL;DR

This paper reframes Class-Incremental Learning (CIL) as a problem of dynamic data imbalance, where the growing gap between new data and limited old "exemplars" causes catastrophic forgetting. The authors introduce Uniform Prototype Contrastive Learning (UPCL), a method that uses fixed, uniformly distributed prototypes and a statistical dynamic margin to ensure feature spaces remain balanced, compact, and ready for future classes.

What Problem Does This Paper Address?

In the world of AI, we want models that learn like humans—continuously acquiring new skills without forgetting old ones. However, deep neural networks suffer from catastrophic forgetting: when trained on new tasks, they overwrite the weights necessary for old ones.

Standard "replay-based" solutions keep a tiny subset of old data (exemplars) to remind the model of the past. The authors of this paper argue that this creates a massive data imbalance problem. As the model learns more tasks, the "Imbalance Ratio" (the ratio of new samples to old exemplars) skyrockets. This imbalance biases the decision boundaries toward new classes, crushing the model's performance on anything it learned previously. The challenge is: how do we maintain a stable feature space when the training data is constantly shifting and becoming more lopsided?

Methods

The authors propose Uniform Prototype Contrastive Learning (UPCL). Instead of letting the classifier weights wander freely (which leads to bias), they anchor the learning process using three key components:

  1. Non-Learnable Uniform Prototypes: Before a task begins, the system generates a set of fixed "prototypes" (target vectors) that are spread out as evenly as possible on a unit hypersphere using the Gram-Schmidt algorithm. This ensures "class uniformity," preventing any one class from crowding out others in the feature space.
  2. Heuristic Class Assignment: They use a modified Hungarian algorithm to match new classes to these fixed prototypes based on their current feature centers. This ensures that semantically similar classes stay in consistent areas of the feature space.
  3. Prototype Contrastive Learning with Dynamic Margin: This is the "secret sauce." They use a contrastive loss to pull features toward their assigned prototypes. Crucially, they introduce a dynamic margin ($m = -\log p(y)$) based on the frequency of the class in the training set. Minority (old) classes get a larger margin, forcing the model to learn more compact and distinct representations for them, which protects them from being "swallowed" by the majority (new) classes.

Datasets

The researchers evaluated UPCL on three standard computer vision benchmarks for incremental learning:

  • CIFAR100: 100 classes of small $32 \times 32$ images.
  • ImageNet100: A subset of 100 classes from the massive ImageNet dataset ($224 \times 224$ resolution).
  • TinyImageNet: 200 classes downsampled to $64 \times 64$.

They tested these across various "step" sizes (e.g., learning 5, 10, or 20 classes at a time) to simulate different levels of incremental difficulty.

Key Insights and Ideas

  • The Imbalance Ratio (IR) is the Culprit: The paper demonstrates a strong negative correlation between the IR and accuracy. As the memory for old classes becomes relatively smaller compared to the influx of new data, the model's "stability" collapses.
  • Uniformity vs. Compactness: An ideal feature space for CIL needs two things: Uniformity (classes should be spread out to avoid confusion) and Compactness (features for a single class should be tightly clustered). By using fixed prototypes, UPCL "reserves" space for future classes that haven't been seen yet.
  • Orthogonality as a Proxy for Uniformity: While perfectly equidistant points on a sphere (Simplex ETFs) are hard to calculate dynamically, the authors found that maintaining orthogonality via Gram-Schmidt is a computationally efficient and highly effective approximation.

Key Results

UPCL consistently outperformed state-of-the-art (SOTA) methods like iCaRL, WA, and NCCIL across all benchmarks:

  • CIFAR100: In a 10-task sequence, UPCL achieved an average accuracy of 69.41%, outperforming the second-best method (WA) by 1.19%. In the more difficult 20-task sequence, the lead grew to 3.88%.
  • ImageNet100: UPCL reached a final accuracy ($A_{last}$) of 48.88%, significantly higher than iCaRL's 36.42%.
  • Robustness to Memory Constraints: The "Ablation Studies" showed that the dynamic margin is particularly effective when memory is very limited (e.g., only 500 exemplars total), as it prevents the model from becoming overly biased toward the new, high-volume data.

Limitations and Future Work

The primary limitation acknowledged by the authors is the dimensionality bottleneck. The number of classes the model can support is currently limited by the dimensionality of the feature space (e.g., if your feature vector is 512-D, you can't easily have more than 512 orthogonal prototypes).

Future directions include:

  • Designing prototypes with dynamic dimensionality to allow the model to expand its "capacity" as it learns more classes.
  • Addressing the "open-set" problem where the total number of future classes is unknown at the start.

Summary updated

BibTeX
@article{wang2026rethinking,
  author = {Leyuan Wang and Liuyu Xiang and Yunlong Wang and Huijia Wu and Huafeng Yang and Jingqian Liu and Zhaofeng He},
  title = {{Rethinking Class-Incremental Learning From a Dynamic Imbalanced Learning Perspective}},
  journal = {IEEE Trans. Multimedia},
  year = {2026},
  url = {https://openreview.net/forum?id=T52goRjY6z},
}
Figure