Introduction
Continual Learning (CL) aims to enable models to learn a sequence of tasks without forgetting previous knowledge. However, models often suffer from Catastrophic Forgetting (CF), where learning a new task (Task B) shifts internal weights and destroys the logic used for a previous task (Task A). While most research focuses on stabilizing representations, this paper identifies a critical flaw: the decision boundary (the final classification layer) often becomes obsolete as the model evolves, even if representations remain relatively stable.
The SCCL Framework
To address this, researchers developed SCCL (Supervised Contrastive Continual Learning), a framework that introduces an "adaptive" classification process.
The SCCL framework is built upon four pillars:
- Supervised Contrastive Training: Instead of standard Cross-Entropy loss, SCCL uses a contrastive objective to pull representations of the same label together and push different labels apart, creating robust clusters in the feature space.
- Adaptive Classification Criterion: Rather than a fixed linear head, SCCL saves representative "anchors" for each task via K-means clustering. At inference, these anchors are re-encoded by the current model, and a k-Nearest Neighbor (kNN) module classifies new data based on proximity to these updated anchors.
- Instance-wise Relation Distillation (IRD): This acts as a regularizer, ensuring that the relative similarity between data points remains consistent with previous model versions.
- Memory Replay (MR): A small buffer of old data is replayed during new task training to maintain historical knowledge.
Evaluation and Results
The authors evaluated SCCL on NLP classification tasks from the GLUE benchmark and MBPA++, including sentiment analysis, topic classification, and paraphrase detection across various task orders.
SCCL consistently outperformed state-of-the-art baselines like EWC, LwF, and Co2L:
- Accuracy: SCCL achieved Average Accuracy (ACC) scores between 78.36% and 80.24%, roughly 2.3% to 3.2% higher than the next best models.
- Mitigating Forgetting: Backward Transfer (BWT) metrics showed that while standard models lost 20-40% performance on old tasks, SCCL kept forgetting within a narrow range (-3% to 0.5%).
- Backward Transfer: In some sequences, SCCL exhibited positive backward transfer, where learning new tasks actually improved performance on older ones.
Key Insights
- Dynamic Decision Boundaries: By using kNN with re-encoded anchors, SCCL effectively "re-calibrates" its classification criteria during inference, overcoming the limitations of fixed decision boundaries.
- Representation Resilience: Contrastive learning focuses on relationships between data points, making the feature space more resilient to the drifts inherent in incremental training.
Limitations and Future Work
Currently, SCCL is optimized for task-incremental scenarios where the task ID is known during inference. Future work is needed to adapt the framework for class-incremental learning, where the model must distinguish between all classes across all tasks simultaneously. Additionally, while the anchor set is small (2.5% of training data), the reliance on a memory buffer may pose challenges for edge devices with extreme resource constraints.
Summary updated