NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Mitigating Catastrophic Forgetting in Task-Incremental Continual Learning with Adaptive Classification Criterion

Yun Luo, Xiaotian Lin, Zhen Yang, Fandong Meng, Jie Zhou, Yue ZhangarXiv 2023 · DOI

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 architecture, illustrating the training pipeline from data encoding to kNN inference.

The SCCL framework is built upon four pillars:

  1. 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.
  2. 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.
  3. Instance-wise Relation Distillation (IRD): This acts as a regularizer, ensuring that the relative similarity between data points remains consistent with previous model versions.
  4. 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.

Heatmaps showing performance across sequential tasks. SCCL maintains significantly higher accuracy on earlier tasks compared to baselines.

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

BibTeX
@misc{luo2023mitigating,
  author = {Yun Luo and Xiaotian Lin and Zhen Yang and Fandong Meng and Jie Zhou and Yue Zhang},
  title = {{Mitigating Catastrophic Forgetting in Task-Incremental Continual Learning with Adaptive Classification Criterion}},
  year = {2023},
  eprint = {2305.12270},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.12270},
}
Figure