Alleviate Representation Overlapping in Class Incremental Learning by Contrastive Class Concentration

Zixuan Ni, Haizhou Shi, Siliang Tang, Yueting Zhuang

Abstract

Although the concept of catastrophic forgetting is straightforward, there is a lack of study on its causes. In this paper, we systematically explore and reveal three causes for catastrophic forgetting in Class Incremental Learning (CIL). From the perspective of representation learning, (i) intra-phase forgetting happens when the learner fails to correctly align the same-phase data as training proceeds and (ii) inter-phase confusion happens when the learner confuses the current-phase data with the previous-phase. From the task-specific point of view, the CIL model suffers from the problem of (iii) classifier deviation. After investigating existing strategies, we observe that there is a lack of study on how to prevent the inter-phase confusion. To initiate the research on this specific issue, we propose a simple yet effective framework, Contrastive Class Concentration for CIL (C4IL). Our framework leverages the class concentration effect of contrastive learning, yielding a representation distribution with better intra-class compactibility and inter-class separability. Empirically, we observe that C4IL significantly lowers the probability of inter-phase confusion and as a result improves the performance on multiple CIL settings of multiple datasets.

Introduction

Class Incremental Learning (CIL) is a fundamental challenge in computer vision where a model must learn new classes sequentially without forgetting previously learned ones. The primary obstacle is "catastrophic forgetting," where the model's performance on old tasks drops sharply as it adapts to new data. While many rehearsal and regularization techniques exist, they often treat forgetting as a monolithic issue. This research decomposes forgetting into three distinct structural failures to better understand and mitigate the problem.

The Three Causes of Forgetting

The authors identify three primary mechanisms that lead to performance degradation in CIL:

  1. Intra-phase Forgetting: The model loses the ability to distinguish between classes within a single previous phase. This occurs because the representation space shifts during subsequent training phases.
  2. Inter-phase Confusion: This is identified as the most significant bottleneck. The model may correctly identify classes within their respective phases but fails to distinguish between classes across different phases (e.g., confusing a Phase 1 class with a Phase 2 class) due to overlapping embeddings.
  3. Classifier Deviation: A task-specific issue where the feature extractor (encoder) updates for new data while the classification weights for old classes remain static, leading to a mismatch.
Conceptual diagram of the three causes of forgetting: Intra-phase Forgetting, Inter-phase Confusion, and Classifier Deviation.

Quantifying the Impact

By isolating these components, the authors demonstrate that traditional distillation methods (like Learning without Forgetting, or LwF) are effective at mitigating intra-phase forgetting but struggle significantly with inter-phase confusion. As shown in the performance breakdown, inter-phase confusion accounts for the largest gap between the incremental model and the joint-learning upper bound.

Performance breakdown showing how Inter-phase Confusion, Classifier Deviation, and Intra-phase Forgetting contribute to the accuracy gap in CIL.

The C4IL Framework

To address these issues, specifically the bottleneck of inter-phase confusion, the authors introduce Contrastive Class Concentration (C4IL). The framework employs two key strategies:

  • Contrastive Class Concentration ($L_{con}$): Utilizing label-guided contrastive learning with aggressive data augmentation, the model "pulls" samples of the same class together and "pushes" different classes apart. This creates highly compact, concentrated clusters in the embedding space, leaving more "empty space" to accommodate future classes without overlap.
  • Representation-Level Distillation (RLD): Unlike standard distillation that focuses on output probabilities, RLD ensures the geometric structure of the representation distribution remains stable, providing a consistent foundation for new learning.

Key Results and Insights

The C4IL framework was evaluated on CIFAR-100 and ImageNet-100 across various incremental settings. Key findings include:

  • Superior Performance: C4IL consistently outperformed state-of-the-art baselines like iCaRL, LUCIR, and BiC. On ImageNet-100, C4IL achieved up to an 8% lead in accuracy over existing methods.
  • Compactness is Key: Empirical evidence suggests that forcing classes into tighter clusters reduces the likelihood of accidental overlap (inter-phase confusion) as the model grows.
  • Linear Separability: Using linear evaluation accuracy (retraining a linear head on a frozen encoder), the authors confirmed that C4IL maintains a much higher quality representation space than fine-tuning or standard distillation.

Conclusion

By systematically decomposing catastrophic forgetting, this work highlights inter-phase confusion as a critical, under-addressed problem in incremental learning. The proposed C4IL framework demonstrates that focusing on representation compactness through contrastive learning is a powerful strategy for building more robust and scalable CIL models.

Summary updated

BibTeX
@misc{ni2021alleviate,
  author = {Zixuan Ni and Haizhou Shi and Siliang Tang and Yueting Zhuang},
  title = {{Alleviate Representation Overlapping in Class Incremental Learning by Contrastive Class Concentration}},
  year = {2021},
  eprint = {2107.12308},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.12308},
}
Figure