Multimodal Parameter-Efficient Few-Shot Class Incremental Learning

Marco D'Alessandro, Alberto Alonso, Enrique Calabrés, Mikel GalarWorkshops @ ICCV 2023 · DOI

Abstract

Few-Shot Class Incremental Learning (FSCIL) requires models to learn new classes from limited data without forgetting previously acquired knowledge. This paper introduces CPE-CLIP, a framework that leverages the pre-trained multimodal capabilities of CLIP alongside a parameter-efficient prompting strategy. By using learnable "G-Prompts" and a novel regularization mechanism, CPE-CLIP achieves state-of-the-art performance, improving accuracy by nearly 20% on key benchmarks while utilizing less than 0.3% of total model parameters and significantly reducing training time.

Introduction

The ability to learn incrementally from sparse data is a hallmark of human intelligence but remains a significant challenge for artificial intelligence. In the context of Few-Shot Class Incremental Learning (FSCIL), models must adapt to new classes using only a few examples while maintaining performance on "base" classes. Traditional approaches often suffer from catastrophic forgetting (overwriting old knowledge) and overfitting (memorizing noise in small datasets).

CPE-CLIP addresses these issues by repurposing the Contrastive Language-Image Pre-training (CLIP) model. Instead of full fine-tuning, it introduces a small set of learnable parameters that guide the frozen multimodal backbone, ensuring stability and efficiency.

The FSCIL Challenge

FSCIL scenarios, such as a robotic system learning new objects on the fly, present a dual hurdle. First, the model must not lose its foundational knowledge when exposed to new data. Second, with only a handful of images per new class, the risk of the model learning irrelevant features is high. Existing solutions often rely on complex architectural additions to standard vision models like ResNet, which are computationally heavy and often fail to bridge the accuracy gap between initial and incremental learning sessions.

Proposed Method: CPE-CLIP

The authors propose Continual Parameter-Efficient CLIP (CPE-CLIP), which rests on three architectural pillars:

  1. Frozen Multimodal Backbone: The entire CLIP backbone is frozen to preserve its extensive pre-trained knowledge of millions of image-text pairs.
  2. G-Prompts (Learnable Tokens): Learnable vectors are inserted into the encoders. The Language Encoder uses a "replacement" strategy per layer, while the Vision Encoder employs an "accumulation" strategy to build hierarchical representations.
  3. Prompt Regularization: A scaling factor ($\alpha_t$) is introduced to modulate gradient updates. As the model progresses through sessions, $\alpha_t$ decreases, acting as a "brake" to prevent drastic changes to the prompts and preserve existing knowledge.
Overview of the CPE-CLIP architecture and the prompt regularization mechanism across sessions.

Experimental Setup

The framework was evaluated on three standard benchmarks:

  • CIFAR100: 100 classes (60 base, 40 incremental).
  • miniImageNet: 100 classes derived from ImageNet.
  • CUB200-2011: 200 fine-grained bird species, testing the model's ability to distinguish subtle differences.

Key Results

CPE-CLIP significantly outperforms previous state-of-the-art (SOTA) methods across all benchmarks. On the miniImageNet dataset, it achieved an average accuracy of 86.13%, a substantial leap from the previous best of 68.24% (FeSSSS).

Comparison of CPE-CLIP against state-of-the-art FSCIL methods on the miniImageNet benchmark.

Beyond accuracy, the model demonstrates exceptional efficiency:

  • Reduced Forgetting: The Performance Drop (PD) across sessions is minimized compared to competitors.
  • Computational Efficiency: On CUB200, training took only 0.27 hours, compared to over 1 hour for some SOTA methods.
  • Parameter Efficiency: The model uses only 400K learnable parameters, making it highly resistant to overfitting.

Discussion and Insights

The success of CPE-CLIP highlights the advantage of multimodal learning. By utilizing the semantic meaning of class names via the language encoder, the model gains a more robust prior than vision-only approaches. Furthermore, the "braking" mechanism of prompt regularization ensures that the model remains stable as it scales, preventing the degradation of the base knowledge that often plagues incremental learners.

Limitations and Future Work

Despite its performance, CPE-CLIP is constrained by CLIP's pre-defined vocabulary. Ambiguous or unknown class names may hinder performance. Additionally, the regularization factor $\alpha_t$ eventually approaches zero, potentially making the model too rigid to adapt to significant distribution shifts in later sessions. Future research will focus on handling out-of-vocabulary terms and improving late-stage adaptability.

Summary updated

BibTeX
@inproceedings{dalessandro2023multimodal,
  author = {Marco D'Alessandro and Alberto Alonso and Enrique Calabrés and Mikel Galar},
  title = {{Multimodal Parameter-Efficient Few-Shot Class Incremental Learning}},
  booktitle = {Workshops @ ICCV},
  year = {2023},
  doi = {10.1109/iccvw60793.2023.00364},
}
Figure