TL;DR
This paper introduces two new, more realistic benchmarks for Class Incremental Learning (CIL) that account for long-tailed data distributions, a common phenomenon in the real world. They propose a novel two-stage learning approach with a learnable weight scaling layer that significantly improves performance on these long-tailed scenarios and even benefits standard CIL by mitigating the effects of imbalanced data due to limited memory.
What Problem Does This Paper Address?
Class Incremental Learning (CIL) aims to train models to learn new classes sequentially without forgetting previously learned ones. A major hurdle is "catastrophic forgetting." However, most existing CIL research assumes that data for each new task is balanced across classes. This is a significant oversimplification, as real-world datasets often exhibit a "long-tailed" distribution, where a few classes have many samples (head classes) and many classes have very few samples (tail classes). This imbalance can severely degrade the performance of CIL models, making them forget tail classes even more readily. This paper addresses this gap by proposing realistic CIL scenarios that incorporate long-tailed distributions and developing a method to tackle this challenge.
Methods
The core contribution is the introduction of two new CIL scenarios:
- Ordered LT-CIL: Classes are ordered by sample count, and tasks are constructed such that earlier tasks have more head classes, while later tasks progressively include more tail classes. This mimics scenarios where easier-to-collect data comes first.
- Shuffled LT-CIL: Classes are randomly assigned to tasks, with each task potentially having a different degree of imbalance. This represents a more general and unpredictable real-world data arrival.
To address the performance degradation caused by these long-tailed distributions, the authors propose a two-stage learning strategy:
- Stage 1 (Representation Learning): A feature extractor is trained using an instance-balanced sampler (random sampling) to learn robust representations. This stage also incorporates a method-specific auxiliary loss to combat forgetting.
- Stage 2 (Classifier Learning): A class-balanced sampler is used to retrain the classifier. Crucially, a learnable weight scaling (LWS) layer is introduced. This layer learns weights for each class, effectively balancing the influence of head and tail classes during classification. The LWS layer is applied after the feature extractor and before the classifier output. To prevent representation drift, previous classifiers are frozen in this stage.
This two-stage approach can be integrated with existing CIL methods.
Datasets
The experiments were conducted on two standard datasets:
- CIFAR-100: A widely used dataset for image classification.
- ImageNet-Subset: A subset of ImageNet, also with 100 classes.
The paper also mentions experiments on the iNaturalist dataset to evaluate performance on a real-world, naturally long-tailed dataset.
Key Insights and Ideas
- Long-tailed distributions are a critical challenge for CIL: Existing CIL methods, designed for balanced data, perform significantly worse when faced with long-tailed distributions, highlighting a major gap in current research.
- Two distinct long-tailed CIL scenarios are needed: The "Ordered" and "Shuffled" LT-CIL scenarios capture different but plausible ways long-tailed data can arrive in an incremental learning setting.
- A two-stage approach with LWS is effective: Decoupling representation learning from classifier learning, and specifically using a learnable weight scaling layer, is a powerful strategy to mitigate the bias introduced by long-tailed data.
- LWS helps balance head and tail classes: The LWS layer learns to assign higher weights to tail classes, compensating for their low sample count and improving overall accuracy.
- The proposed method benefits standard CIL: Surprisingly, the two-stage approach also improves performance in conventional CIL settings, likely by addressing the inherent data imbalance that arises from limited memory replay.
Key Results
- Significant performance drop in LT-CIL: Conventional CIL methods experienced substantial performance degradation on the proposed LT-CIL scenarios compared to standard CIL. For example, joint training accuracy dropped from 68.64% to 36.94% on CIFAR-100 for the Ordered LT-CIL scenario.
- Proposed method achieves superior performance: The two-stage approach with LWS consistently boosted the performance of baseline methods (EEIL, LUCIR, PODNET) across both CIFAR-100 and ImageNet-Subset.
- On CIFAR-100, improvements of up to 6.44 points in average incremental accuracy were observed.
- On ImageNet-Subset, improvements of up to 6.28 points were seen for LUCIR.
- Robustness across imbalance ratios: The proposed method showed consistent benefits across different imbalance ratios (p=0.01, 0.05, 0.1) in both Ordered and Shuffled LT-CIL scenarios.
- Effectiveness of components: Ablation studies showed that both fixing previous classifiers and using the LWS layer were crucial for performance gains, with their combined effect being the most significant.
- Improved performance with longer sequences: The two-stage method demonstrated increased gains and robustness on longer sequences of tasks (25 tasks).
Limitations and Future Work
- Dataset limitations: While CIFAR-100 and ImageNet-Subset are standard, the paper could benefit from evaluation on even larger and more diverse real-world datasets.
- Computational cost: The two-stage approach, particularly the second stage retraining, might increase computational overhead compared to single-stage methods.
- Future work: The authors suggest that their work provides a solid foundation for future research in long-tailed CIL. Further exploration into more sophisticated ways to handle class imbalance within incremental learning, potentially by adapting other long-tailed learning techniques, would be valuable. Investigating the theoretical underpinnings of why the two-stage method benefits conventional CIL could also be an interesting direction.
Summary updated