Introduction
Deep neural networks typically struggle with continual learning, where a model must learn a sequence of tasks without forgetting previous ones. This phenomenon, known as catastrophic forgetting, occurs because the network's weights shift to accommodate new data, often at the expense of performance on earlier tasks. Traditional class-incremental learning (CIL) research focuses on softmax-based classifiers, which suffer from architectural rigidity and a strong bias toward recently seen classes. This paper proposes a paradigm shift: moving from softmax classifiers to embedding networks and introducing Semantic Drift Compensation (SDC) to maintain the integrity of old class representations without requiring the storage of original images (exemplars).
The Shift to Embedding Networks
Instead of a standard output layer with a fixed number of neurons, the authors utilize an embedding network trained with a triplet loss. This approach maps images into a high-dimensional feature space where similar objects cluster together. Classification is then performed using a Nearest Class Mean (NCM) strategy, where a new image is assigned to the class whose prototype (the average vector of its training samples) is closest in the embedding space.
Embedding spaces are inherently more suitable for incremental learning because they do not require structural changes to add new classes; one simply computes a new mean vector. However, even in embedding networks, the feature space "warps" as the model learns new tasks, causing the prototypes of old classes to drift from their original positions.
Semantic Drift Compensation (SDC)
To address this drift without re-accessing old data, the authors introduce SDC. The core idea is to estimate the transformation of the entire feature space by observing how the current task's data points move during training.
SDC operates on three principles:
- Monitoring Current Drift: The model tracks the displacement of current data points in the feature space.
- Interpolation: It assumes that if a current data point near an old prototype moves in a specific direction, the old prototype would likely have moved similarly.
- Weighted Correction: Using a Gaussian kernel, the method applies a weighted average of the observed drift to "nudge" old prototypes toward their corrected positions in the updated space.
Experimental Evaluation and Results
The proposed method was evaluated on several benchmarks, including CUB-200-2011, CIFAR100, and ImageNet-Subset. The results demonstrate that embedding-based networks are significantly more robust to forgetting than their softmax counterparts.
Key findings include:
- Massive Gains over Softmax: On the ImageNet-Subset, switching from a fine-tuned softmax (FT) to a fine-tuned embedding network (E-FT) resulted in an absolute accuracy gain of 42.9%.
- Outperforming Non-Exemplar State-of-the-Art: The combination of embedding regularization and SDC (E-EWC + SDC) significantly outperformed existing methods that do not store old images.
- Rivaling Exemplar Methods: Remarkably, SDC-enhanced models often performed as well as or better than popular exemplar-based methods like iCaRL, despite the latter having the advantage of re-training on a subset of old images.
Conclusion
Semantic Drift Compensation offers a powerful, memory-efficient alternative for class-incremental learning. By leveraging the natural flexibility of embedding spaces and approximating the drift field from current data, the method effectively mitigates catastrophic forgetting. While SDC relies on an assumption of local drift consistency, its ability to rival exemplar-based methods without storing sensitive or memory-intensive data marks a significant step forward for privacy-preserving and resource-constrained continual learning.
Summary updated