Abstract
Few-Shot Class-Incremental Learning (FSCIL) requires models to learn new concepts from minimal data without forgetting previously learned classes. This paper introduces LP-DiF (Learning Prompt with Distribution-based Feature Replay), a framework that leverages pre-trained Vision-Language (V-L) models like CLIP. LP-DiF employs learnable prompt tuning to adapt to new sessions while maintaining stability through a novel feature replay mechanism. By modeling class-specific Gaussian distributions in the feature space and enhancing them with a Variational Autoencoder (VAE), the method achieves state-of-the-art performance on standard benchmarks, significantly closing the gap with the theoretical upper bound of joint training.
Introduction
In real-world applications, AI systems must continuously learn new information without overwriting existing knowledge—a challenge known as Class-Incremental Learning (CIL). When new classes are introduced with only a few examples, the task becomes Few-Shot Class-Incremental Learning (FSCIL). This setting intensifies the "stability-plasticity" dilemma: the model must be plastic enough to learn from sparse data while remaining stable enough to prevent "catastrophic forgetting" of old classes.
Traditional FSCIL methods often rely on pure vision backbones (e.g., ResNet) and struggle to maintain high accuracy across multiple incremental sessions. LP-DiF addresses this by utilizing the robust, pre-existing knowledge embedded in Vision-Language models like CLIP, shifting the focus from weight fine-tuning to prompt optimization and statistical feature replay.
Methods
The LP-DiF framework is built upon three core components designed to balance adaptation and retention:
- Prompt Tuning on CLIP: Rather than fine-tuning the entire CLIP model, which would lead to significant forgetting, LP-DiF keeps the image and text encoders frozen. It introduces a small set of learnable prompt vectors that are optimized during each incremental session, allowing the model to adapt its conceptual understanding using minimal parameters.
- Old-Class Distribution (OCD) Modeling: To avoid the memory and privacy issues associated with storing raw images, LP-DiF models each class as a Gaussian distribution in the feature space. Only the mean vector and a diagonal covariance matrix are stored for each class, requiring as little as 1.15 KB per class.
- VAE-Enhanced Feature Replay: Estimating a distribution from only a few samples (e.g., 5-shot) is often inaccurate. LP-DiF utilizes a Variational Autoencoder (VAE) to synthesize additional features based on available images and text descriptions. These synthetic features refine the Gaussian distributions, providing a more robust basis for "pseudo-feature" replay during training.
Experimental Evaluation
The researchers evaluated LP-DiF on several benchmarks, including CIFAR-100, mini-ImageNet, and CUB-200. They also introduced more challenging scenarios: SUN-397, which tests performance over 21 incremental sessions, and CUB-200*, a variant designed to test incremental learning without a large initial base training session.
Key Results
LP-DiF demonstrates a significant performance leap over existing state-of-the-art methods. On the mini-ImageNet benchmark, it achieved an average accuracy of 93.76%, compared to the previous best of 62.06% (BDF). Furthermore, the performance gap between LP-DiF and the theoretical "Joint-LP" upper bound (where all data is available at once) is narrowed to just 1.05% to 1.42%.
Discussion and Conclusion
The success of LP-DiF highlights the potential of Vision-Language models as a foundation for incremental learning. By using frozen encoders and learnable prompts, the model avoids the catastrophic forgetting typical of weight-tuning approaches. The use of VAE-enhanced distribution modeling proves to be a highly efficient alternative to exemplar-based replay, offering both better performance and lower memory overhead.
While the reliance on large backbones like CLIP ViT-B/16 may present deployment challenges for edge devices, the framework's ability to nearly match joint training performance marks a major milestone in FSCIL. Future work may explore more complex distribution modeling and the application of these techniques to tasks like object detection and segmentation.
Summary updated