Abstract
Deep neural networks perform remarkably well in close-world scenarios. However, novel classes emerged continually in real applications, making it necessary to learn incrementally. Class-incremental learning (CIL) aims to gradually recognize new classes while maintaining the discriminability of old ones. Existing CIL methods have two limitations: a heavy reliance on preserving old data for forgetting mitigation and the need for vast labeled data for knowledge adaptation. To overcome these issues, we propose a non-exemplar semi-supervised CIL framework with contrastive learning and semi-supervised incremental prototype classifier (Semi-IPC). On the one hand, contrastive learning helps the model learn rich representations, easing the trade-off between learning representations of new classes and forgetting that of old classes. On the other hand, Semi-IPC learns a prototype for each class with unsupervised regularization, enabling the model to incrementally learn from partially labeled new data while maintaining the knowledge of old classes. Experiments on benchmark datasets demonstrate the strong performance of our method: without storing any old samples and only using less than 1% of labels, Semi-IPC outperforms advanced exemplar-based methods.
Introduction
Standard deep learning models often suffer from "catastrophic forgetting" when tasked with learning new classes incrementally. Traditional Class-Incremental Learning (CIL) methods mitigate this by storing a subset of old data (exemplars) and requiring fully labeled new datasets. However, these "crutches" present significant privacy, memory, and labeling cost challenges.
This paper addresses the Non-Exemplar Semi-Supervised Class-Incremental Learning (Semi-CIL) gap. The goal is to develop a system capable of continual learning without storing any previous images and utilizing mostly unlabeled data for new tasks.
Methodology
The proposed framework consists of two primary stages designed to maximize representation richness and maintain decision boundaries without raw data storage.
1. Contrastive Representation Learning
Instead of standard supervised pre-training, the model employs self-supervised contrastive learning (specifically BYOL). This approach trains the model to recognize general features without being constrained by a specific label set. The resulting feature space has a higher intrinsic dimension (PC-ID), making it more flexible and adaptable for future, unseen classes compared to the "compressed" feature space of supervised learning.
2. Semi-supervised Incremental Prototype Classifier (Semi-IPC)
Following the initial training, the feature extractor is frozen, and a prototype-based classifier is utilized to manage incremental tasks.
- Prototypes: Each class is represented by its mean vector (center point) in the feature space. Prototypes are more robust than standard linear classifiers in incremental settings, which often become biased toward recent classes.
- Prototype Resampling: To prevent forgetting without storing old images, the model generates "pseudo-features" by adding Gaussian noise to old class prototypes. This simulates old data to maintain stable decision boundaries.
- Unsupervised Regularization: A dual-augmentation strategy leverages unlabeled data. The model generates a "pseudo-label" for a weakly augmented image and enforces consistency for a strongly augmented version of the same image using a specific loss ($L_u$).
Experimental Evaluation
The framework was evaluated on CIFAR-100, ImageNet-100, miniImageNet, and CUB-200. In the semi-supervised setting, only 5 labeled samples per class were typically used.
Key Results
- Superiority over Exemplar-based Methods: On the miniImageNet 10-task benchmark, Semi-IPC outperformed the state-of-the-art exemplar-based method (DER) by 10.86%, despite DER storing 1,000 old images while Semi-IPC stores none.
- Label Efficiency: The model demonstrated remarkable efficiency; with only 1 labeled sample per class, it achieved 55.82% average accuracy on ImageNet-100, comparable to traditional methods using 500 labels.
- Robustness: The system remained resilient to Out-of-Distribution (OOD) unlabeled data, maintaining performance even when the unlabeled pool contained unknown classes.
Discussion and Conclusion
A key insight of this work is that contrastive learning produces a "richer" feature space than supervised learning. Furthermore, the results suggest that replaying noisy versions of class centers (prototypes) in the feature space is a remarkably effective alternative to storing original pixels for mitigating catastrophic forgetting.
While the frozen feature extractor successfully eliminates forgetting in the backbone, it limits the model's ability to adapt to radically different data distributions over time. Future research will explore methods for incrementally adapting feature representations using unlabeled data streams without inducing forgetting.
Summary updated