Abstract
The rehearsal strategy is widely used to alleviate the catastrophic forgetting problem in class incremental learning (CIL) by preserving limited exemplars from previous tasks. With imbalanced sample numbers between old and new classes, the classifier learning can be biased. Existing CIL methods exploit long-tailed (LT) recognition techniques to handle data imbalance within each increment task. In this work, we highlight the dynamic nature of data imbalance in CIL and propose a novel Dynamic Residual Classifier (DRC) to handle this challenging scenario. DRC is built upon a recent residual classifier with branch layer merging to handle the model-growing problem. DRC is compatible with different CIL pipelines and substantially improves them. Combining DRC with the model adaptation and fusion (MAF) pipeline, our method achieves state-of-the-art results on both conventional CIL and LT-CIL benchmarks.
Introduction: The Challenge of Dynamic Imbalance
Deep learning models often suffer from catastrophic forgetting when learning tasks in sequence. Rehearsal strategies, which maintain a small buffer of samples from previous tasks, are a common countermeasure. However, this approach introduces a significant data imbalance: new classes arrive with thousands of samples, while old classes are represented by only a handful of exemplars.
This paper identifies that this imbalance is not static but dynamic. As incremental learning progresses, the fixed-size memory buffer must be shared among an increasing number of classes. Consequently, the data for each individual old class becomes scarcer over time, making the "long-tail" of the distribution longer and thinner. Standard long-tailed recognition techniques often fail to account for this shifting ratio.
Proposed Method: Dynamic Residual Classifier (DRC)
To address dynamic imbalance, we propose the Dynamic Residual Classifier (DRC). DRC builds upon the concept of a Residual Classifier (RC) by introducing a multi-branch architecture that can adapt to new tasks without uncontrolled parameter growth.
Branch Layer Architecture and Fusion
DRC inserts a lightweight $1 \times 1$ convolutional layer, termed a "branch," before the final fully connected layer. The model maintains two primary branches: one representing accumulated "old" knowledge and one for the "current" task. The outputs (logits) of these branches are fused using a residual connection, allowing the model to explicitly correct the bias inherent in the imbalanced data distribution.
Branch Layer Merging
A significant challenge in multi-branch CIL models is the linear growth of parameters as new tasks are added. DRC overcomes this through Branch Layer Merging. Instead of keeping a separate branch for every task, the weights of previous branch layers are merged into a single representative "old" branch using iterative averaging. This ensures the model size remains constant regardless of the number of incremental steps.
Pipeline Integration
DRC is designed as a modular, "drop-in" replacement for standard classifiers. It can be integrated into various CIL frameworks, including Model Direct Transfer (MDT), Model Expansion and Compression (MEC), and Model Adaptation and Fusion (MAF). The combination of the MAF pipeline with DRC (MAFDRC) proves particularly effective, ensuring smooth knowledge transitions through logit consistency.
Experimental Evaluation
We evaluated DRC across several benchmarks, including CIFAR100, ImageNet100, and the full ImageNet1000 dataset. We also tested it on a Long-Tailed CIL (LT-CIL) setting, where the incoming data for each new task is itself imbalanced.
- State-of-the-Art Performance: On ImageNet100 (10-step protocol), MAFDRC achieved an average accuracy of 79.66%, significantly outperforming strong baselines like FOSTER (76.22%) and DER (78.30%).
- Efficiency: Unlike methods like DER that expand the entire feature extractor for every task, DRC maintains a fixed-size backbone. The additional parameters in the classifier head are negligible, making it highly scalable.
- Robustness to LT-CIL: In the challenging LT-CIL setting, MAFDRC showed substantial gains, often improving accuracy by over 10-15% compared to the standard MAF pipeline.
Conclusion
The Dynamic Residual Classifier (DRC) effectively addresses the evolving data imbalance in class incremental learning. By utilizing lightweight branch layers and a novel weight-merging technique, DRC achieves state-of-the-art accuracy while maintaining a constant and efficient model footprint. Future work will explore the integration of DRC with alternative architectures, such as Vision Transformers, and its application in exemplar-free incremental learning scenarios.
Summary updated