Generative Multi-modal Models are Good Class-Incremental Learners

Xusheng Cao, Haori Lu, Linlan Huang, Xialei Liu, Ming-Ming Cheng · DOI

Abstract: In class-incremental learning (CIL) scenarios, the phenomenon of catastrophic forgetting caused by the classifier's bias towards the current task has long posed a significant challenge. It is mainly caused by the characteristic of discriminative models. With the growing popularity of the generative multi-modal models, we would explore replacing discriminative models with generative ones for CIL. However, transitioning from discriminative to generative models requires addressing two key challenges. The primary challenge lies in transferring the generated textual information into the classification of distinct categories. Additionally, it requires formulating the task of CIL within a generative framework. To this end, we propose a novel generative multi-modal model (GMM) framework for class-incremental learning. Our approach directly generates labels for images using an adapted generative model. After obtaining the detailed text, we use a text encoder to extract text features and employ feature matching to determine the most similar label as the classification prediction. In the conventional CIL settings, we achieve significantly better results in long-sequence task scenarios. Under the Few-shot CIL setting, we have improved by at least 14% accuracy over all the current state-of-the-art methods with significantly less forgetting.

The Challenge of Incremental Learning

Class-Incremental Learning (CIL) is a critical area of research aimed at developing AI models that can learn new information over time without losing previously acquired knowledge. The most significant hurdle in this field is catastrophic forgetting, where a model's performance on older tasks degrades as it learns new ones.

Traditional CIL methods predominantly rely on discriminative models. These architectures typically utilize a softmax classification head that must expand to accommodate new categories. This expansion inherently introduces a "recency bias," where the model favors the most recently seen classes, leading to the forgetting of earlier data. While techniques like rehearsal (storing old samples) or regularization have been used to mitigate this, the architectural bias of the discriminative head remains a fundamental bottleneck.

Comparison of discriminative models vs. generative multi-modal models in class-incremental learning.

Rethinking Classification as Generation

To overcome these limitations, we propose a paradigm shift: the Generative Multi-modal Model (GMM) framework. Instead of treating classification as a selection from a growing list of labels, we frame it as a text generation task. This approach leverages the inherent stability of generative architectures to bypass the need for an expanding classification head.

The GMM Framework

Our framework is built upon a foundation of large-scale pre-trained models, specifically utilizing a frozen image encoder and a frozen Large Language Model (LLM) decoder.

  1. Architecture: The only learnable component during incremental tasks is a small linear projection layer that aligns visual features with the LLM's embedding space. This ensures that the model's core knowledge remains intact while it learns to associate new visual concepts with textual descriptions.
  2. Generative Training: During training, the model is prompted to generate a descriptive sentence for each image, such as: "This is a photo of [CLS]," where [CLS] represents the category name.
  3. Similarity Matching for Inference: To convert generated text back into a classification prediction, we employ a CLIP text encoder. The model generates a description, and we extract its features to compare them against the features of all known category names using cosine similarity. The category with the highest similarity is selected as the prediction.

Experimental Results

We evaluated the GMM framework across standard benchmarks, including CIFAR100, Tiny-ImageNet, and ImageNet-R for conventional CIL, as well as mini-ImageNet for Few-shot CIL (FSCIL).

Key Results and Performance

The GMM approach demonstrated exceptional stability and performance, particularly in long-sequence and few-shot scenarios:

  • Few-shot CIL: On the mini-ImageNet benchmark, GMM achieved a breakthrough, improving final accuracy by at least 14% over existing state-of-the-art methods.
  • Conventional CIL: In long-sequence tasks (e.g., splitting 100 classes into 20 tasks), GMM outperformed the leading CODA-Prompt method by 10 percentage points on CIFAR100.
  • Reduced Forgetting: The Performance Drop (PD) metric was significantly lower for GMM compared to traditional discriminative models, indicating a much higher resistance to catastrophic forgetting.
Performance comparison across CIFAR100 and TinyImageNet benchmarks.

Conclusion

By removing the biased classification head and leveraging the powerful priors of generative multi-modal models, we have shown that CIL can be made significantly more robust. The GMM framework's simplicity—requiring only the training of a single linear layer—belies its effectiveness in mitigating catastrophic forgetting and setting new standards for incremental learning performance.

Summary updated

BibTeX
@inproceedings{cao2024generative,
  author = {Xusheng Cao and Haori Lu and Linlan Huang and Xialei Liu and Ming-Ming Cheng},
  title = {{Generative Multi-modal Models are Good Class-Incremental Learners}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.02712},
}
Figure