Learning Prompt with Distribution-Based Feature Replay for Few-Shot Class-Incremental Learning

Authors:

Abstract
Few-shot Class-Incremental Learning (FSCIL) seeks to incrementally learn new classes from only a few examples while preserving knowledge of previously learned ones. While prior works rely solely on visual networks, we tackle FSCIL by harnessing pretrained vision-language models and introduce a simple yet effective framework called L earning P rompt with Di stribution-based F eature Replay (LP-DiF). We first observe that applying CLIP in a zero-shot manner already surpasses existing state-of-the-art methods significantly. To enhance adaptation across learning sessions, we employ prompt tuning to capture session-specific knowledge continuously. To mitigate catastrophic forgetting of past classes in the learnable prompt, we propose a pseudo-feature replay strategy: for each old class, we model its feature distribution as a Gaussian with a diagonal covariance matrix, estimated from both real training features and synthetic features generated by a VAE. During each new session, pseudo-features sampled from these stored distributions are combined with current-session data to jointly optimize the prompt, enabling simultaneous retention of old knowledge and acquisition of new concepts. Extensive experiments on standard benchmarks—CIFAR100, mini-ImageNet, CUB-200—as well as more challenging ones introduced in this work, namely SUN-397 and CUB-200\((^*)\), demonstrate that LP-DiF achieves new state-of-the-art performance in FSCIL. Code is publicly available at https://github.com/1170300714/LP-DiF.

This publication has 66 references indexed in Scilit: