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.
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:
- 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.
- Class-level Regularization: Ensures that classes within the current task remain distinct from one another.
- 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.
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