Abstract
Class Incremental Learning (CIL) aims to enable AI agents to learn new classes over time without forgetting previously acquired knowledge. A major hurdle in CIL is catastrophic forgetting, often driven by classification score bias due to data imbalance between new classes and old exemplars. This paper introduces SS-IL (Separated Softmax for Incremental Learning), which addresses the root cause of this bias: the global softmax layer. By separating softmax calculations for old and new classes and utilizing task-wise knowledge distillation, SS-IL effectively preserves old knowledge while learning new tasks. Evaluations on large-scale datasets like ImageNet-1K and Google Landmarks demonstrate that SS-IL achieves state-of-the-art performance without complex post-processing.
Introduction
In Class Incremental Learning, models are trained on a sequence of tasks, each containing a new set of classes. The primary challenge is catastrophic forgetting, where the model's performance on earlier tasks degrades sharply upon learning new ones. Most existing methods utilize an "exemplar memory" to store a subset of old data. However, the extreme imbalance between the abundant new data and sparse old exemplars leads to a significant classification bias, where the model favors recently learned classes. While prior work has attempted to mitigate this through post-processing, SS-IL seeks to resolve the issue during the training phase itself.
Methodology
The authors identify the global softmax layer as a key driver of forgetting. Mathematical analysis of the cross-entropy loss gradient reveals that when training on new classes, the gradient for old classes is consistently positive. In gradient descent, this forces the model to decrease the scores of old classes, effectively "bullying" them out of the model's memory.
SS-IL introduces three core components to eliminate training-time bias:
- Separated Softmax (SS) Layer: Instead of a single global softmax, the SS layer computes probabilities for old and new classes independently. This decoupling prevents the negative gradient flow from new data to old class scores, ensuring that learning new information does not automatically penalize old knowledge.
- Task-wise Knowledge Distillation (TKD): Traditional General Knowledge Distillation (GKD) can inadvertently preserve the biases of the teacher model. TKD performs distillation independently for each task, allowing the student to inherit task-specific features without the global classification bias.
- Experience Replay (ER): A balanced mini-batch strategy is employed, ensuring a consistent ratio of new data and old exemplars during every training step.
Experiments and Results
The performance of SS-IL was evaluated on large-scale benchmarks, including ImageNet-1K and the highly imbalanced Google Landmark Dataset v2 (1K and 10K versions). These datasets represent significantly more difficult and "long-tailed" challenges than typical CIL research.
Key Findings
- Superior Accuracy: SS-IL consistently outperformed state-of-the-art baselines like iCaRL, BiC, and LUCIR. For instance, on ImageNet-1K with 10 tasks, SS-IL achieved 64.5% Top-1 accuracy, a significant improvement over the 59.4% achieved by the next best method, EEIL.
- Robustness to Memory Constraints: Unlike many competitors, SS-IL maintains high performance even when the exemplar memory is extremely limited, showing stability where other models' accuracies plummet.
- Balanced Predictions: Qualitative analysis via confusion matrices confirmed that SS-IL produces balanced predictions across all tasks, avoiding the typical bias toward the most recent task.
Conclusion and Future Work
SS-IL provides a simple yet effective solution to catastrophic forgetting by addressing the architectural bias of the global softmax layer. By decoupling class probabilities and employing task-wise distillation, it achieves state-of-the-art results on massive, real-world datasets. While highly effective, the method still relies on exemplar memory. Future work may explore extending these principles to exemplar-free settings or scenarios with undefined task boundaries.
Summary updated