A prompt regularization approach to enhance few-shot class-incremental learning with Two-Stage Classifier

Meilan Hao, Yizhan Gu, Kejian Dong, Prayag Tiwari, Xiaoqing Lv, Xin Ning

Abstract

With a limited number of labeled samples, Few-Shot Class-Incremental Learning (FSCIL) seeks to efficiently train and update models without forgetting previously learned tasks. Because pre-trained models can learn extensive feature representations from big existing datasets, they offer strong knowledge foundations and transferability, which makes them useful in both few-shot and incremental learning scenarios. Additionally, Prompt Learning improves pre-trained deep learning models’ performance on downstream tasks, particularly in large-scale language or vision models. In this paper, we propose a novel Prompt Regularization (PrRe) approach to maximize the fusion of prompts by embedding two different prompts, the Task Prompt and the Global Prompt, inside a pre-trained Vision Transformer (ViT). In the classification phase, we propose a Two-Stage Classifier (TSC), utilizing K-Nearest Neighbors for base session and a Prototype Classifier for incremental sessions, integrated with a global self-attention module. Through experiments on multiple benchmark tests, we demonstrate the effectiveness and superiority of our method. The code is available at https://github.com/gyzzzzzzzz/PrRe.
BibTeX
@inproceedings{hao2025prompt,
  author = {Meilan Hao and Yizhan Gu and Kejian Dong and Prayag Tiwari and Xiaoqing Lv and Xin Ning},
  title = {{A prompt regularization approach to enhance few-shot class-incremental learning with Two-Stage Classifier}},
  booktitle = {Neural Networks},
  year = {2025},
  url = {https://openreview.net/forum?id=D8esPSXGAR},
}

Loading related content...

Figure