Make Domain Shift a Catastrophic Forgetting Alleviator in Class-Incremental Learning

Wei Chen, Yi ZhouarXiv 2024 · DOI

Abstract

In the realm of class-incremental learning (CIL), alleviating the catastrophic forgetting problem is a pivotal challenge. This paper discovers a counter-intuitive observation: by incorporating domain shift into CIL tasks, the forgetting rate is significantly reduced. Our comprehensive studies demonstrate that incorporating domain shift leads to a clearer separation in the feature distribution across tasks and helps reduce parameter interference during the learning process. Inspired by this observation, we propose a simple yet effective method named DisCo to deal with CIL tasks. DisCo introduces a lightweight prototype pool that utilizes contrastive learning to promote distinct feature distributions for the current task relative to previous ones, effectively mitigating interference across tasks. DisCo can be easily integrated into existing state-of-the-art class-incremental learning methods. Experimental results show that incorporating our method into various CIL methods achieves substantial performance improvements, validating the benefits of our approach in enhancing class-incremental learning by separating feature representation and reducing interference.

Introduction

Deep neural networks are notoriously susceptible to "catastrophic forgetting" in Class-Incremental Learning (CIL) scenarios. When a model is taught new classes sequentially, it tends to overwrite the weights optimized for previous tasks. Traditionally, researchers assumed that maintaining a consistent data distribution (domain) across tasks was the ideal scenario for learning.

This paper challenges that assumption with a provocative discovery: domain shift—typically viewed as a hurdle—actually acts as a "forgetting alleviator." By making tasks visually distinct (e.g., Task 1 consists of real photos while Task 2 consists of sketches), the model naturally develops clearer separations in its feature space, leading to significantly less parameter interference.

Conceptual overview: Class Incremental Learning (CIL) vs. CIL with Domain Shift (CILD). Domain shift helps the model distinguish between tasks, reducing interference.

The DisCo Method

To leverage this insight, the authors propose DisCo (Distinguishable feature for Continual Learning), a plug-and-play method that enforces domain-like separation within a model's internal feature representations. DisCo does not require actual domain-shifted input data; instead, it simulates this benefit through three core components:

  1. Task-level Regularization: Uses contrastive learning to push features of the current task toward a specific "task prototype" while distancing them from prototypes of previous tasks.
  2. Class-level Regularization: Ensures that classes within the current task remain distinct from one another.
  3. Cross-task Contrastive Distillation (CCD): Aligns the current "student" model with a frozen "teacher" model from the previous step, ensuring the model remembers old class representations while maintaining spatial separation in the feature map.

DisCo can utilize either image-based prototypes or text-based prototypes (generated via a frozen CLIP text encoder) to provide stable semantic anchors.

Experimental Setup and Datasets

The researchers evaluated DisCo on several benchmarks, including CIFAR-100, DomainNet, Fashion-MNIST, and Tiny-ImageNet. To rigorously test the domain shift hypothesis, they synthesized "DomainCIFAR-100" using style-transfer GANs to apply distinct visual styles (e.g., "brush strokes" or "candy") to different task sets.

Experimental setup: Creating DomainCIFAR-100 via style transfer (left) and the DomainNet multi-domain benchmark (right).

Key Results

Experimental results demonstrate that DisCo consistently improves major CIL baselines such as iCaRL, BiC, DER, and L2P:

  • Reduced Forgetting: On CIFAR-100, incorporating domain shift into the iCaRL algorithm slashed the Forgetting Measure (FM) from 59.42% to 25.98%.
  • Accuracy Gains: Adding DisCo to the iCaRL baseline on CIFAR-100 increased Average Accuracy (AA) by 5.87% and reduced forgetting by 17.38%.
  • Parameter Interference: The authors introduced a metric called Parameter Interference Value (PIV), finding that under domain shift, the specific weights updated for new tasks overlap much less with weights used for prior knowledge.

Conclusion

By reframing domain shift as a beneficial tool rather than a hindrance, this research provides a new perspective on mitigating catastrophic forgetting. While the performance boost is less pronounced in fine-grained datasets like CUB200—where classes are highly similar—DisCo proves to be a robust and easily integrated addition to existing CIL architectures, effectively separating feature representations and reducing task interference.

Summary updated

Abstract

In the realm of class-incremental learning (CIL), alleviating the catastrophic forgetting problem is a pivotal challenge. This paper discovers a counter-intuitive observation: by incorporating domain shift into CIL tasks, the forgetting rate is significantly reduced. Our comprehensive studies demonstrate that incorporating domain shift leads to a clearer separation in the feature distribution across tasks and helps reduce parameter interference during the learning process. Inspired by this observation, we propose a simple yet effective method named DisCo to deal with CIL tasks. DisCo introduces a lightweight prototype pool that utilizes contrastive learning to promote distinct feature distributions for the current task relative to previous ones, effectively mitigating interference across tasks. DisCo can be easily integrated into existing state-of-the-art class-incremental learning methods. Experimental results show that incorporating our method into various CIL methods achieves substantial performance improvements, validating the benefits of our approach in enhancing class-incremental learning by separating feature representation and reducing interference. These findings illustrate that DisCo can serve as a robust fashion for future research in class-incremental learning.
BibTeX
@misc{chen2024make,
  author = {Wei Chen and Yi Zhou},
  title = {{Make Domain Shift a Catastrophic Forgetting Alleviator in Class-Incremental Learning}},
  year = {2024},
  eprint = {2501.00237},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.00237},
}
Figure