Defying Imbalanced Forgetting in Class Incremental Learning

Shixiong Xu, Gaofeng Meng, Xing Nie, Bolin Ni, Bin Fan, Shiming Xiang

Abstract

Class Incremental Learning (CIL) is plagued by catastrophic forgetting, where models lose previously acquired knowledge when learning new tasks. This research reveals that forgetting is not uniform across a task but is highly imbalanced at the class level, driven by semantic interference. We propose CLass-Aware Disentanglement (CLAD), a plug-and-play regularization method that predicts vulnerable old classes based on their similarity to new data and proactively disentangles their representations to mitigate forgetting.

Introduction

In the paradigm of Class Incremental Learning (CIL), AI models are tasked with learning new classes sequentially without full access to previous training data. The central challenge is catastrophic forgetting. While traditional research evaluates forgetting at the task level, this study identifies a critical nuance: imbalanced forgetting. Within a single task, certain classes remain robust while others suffer drastic performance drops.

The Root of the Problem: Semantic Interference

The authors hypothesize that imbalanced forgetting is caused by semantic interference. When a new class is semantically similar to an old one, the model's internal representations for these classes become "tangled," leading to confusion and the eventual overwriting of the older class's features.

Correlation between inter-class similarity and class-level forgetting across various tasks.

Empirical analysis confirms this hypothesis, showing a strong positive correlation (Pearson coefficient of ~0.6) between inter-class similarity and the degree of forgetting. This "Aha" moment suggests that if we can identify which classes are semantically similar to incoming data, we can predict and prevent their forgetting.

Methods: CLass-Aware Disentanglement (CLAD)

To address this, the researchers introduced CLass-Aware Disentanglement (CLAD). CLAD is a loss-based regularization term that can be integrated into existing replay-based CIL frameworks. It operates in two distinct phases:

  1. Forgetting Prediction (FP): Before training on new classes, the model calculates the similarity between new samples and old classes using mean logit vectors from the previous model state. This identifies "vulnerable" old classes likely to be forgotten.
  2. Representation Disentanglement (RD): During training, a specialized regularization loss is applied to maximize the distance (cosine similarity) between the representations of new classes and their identified "conflict" old classes.
Overview of the CLAD framework: (a) standard replay-based training vs. (b) the proposed CLAD approach incorporating Forgetting Prediction and Representation Disentanglement.

This disentanglement can be performed online (comparing new samples to old samples in the current batch) or offline (comparing new samples to old class exemplars in the memory buffer).

Experimental Results

CLAD was evaluated on standard benchmarks including CIFAR-100, ImageNet-100, and the full ImageNet dataset. Key findings include:

  • Performance Gains: On ImageNet-100, CLAD improved the average incremental accuracy of the LUCIR baseline by up to 2.65%.
  • Buffer Efficiency: The method is particularly robust when memory is limited. With only 5 exemplars per class, CLAD provided a 3.63% boost over the baseline.
  • Scalability: The method maintained consistent improvements on the full 1,000-class ImageNet dataset, demonstrating its applicability to large-scale problems.

Conclusion

CLAD offers a simple yet effective "plug-and-play" solution to imbalanced forgetting in CIL. By leveraging the model's own internal logic to predict and prevent semantic interference, it significantly enhances the stability of incremental learning. Future work will explore extending these principles to exemplar-free learning and other domains like NLP.

Summary updated

BibTeX
@inproceedings{xu2024defying,
  author = {Shixiong Xu and Gaofeng Meng and Xing Nie and Bolin Ni and Bin Fan and Shiming Xiang},
  title = {{Defying Imbalanced Forgetting in Class Incremental Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i14.29555},
}
Figure