Unlocking Patch-Level Features for CLIP-Based Class-Incremental Learning
About
Class-Incremental Learning (CIL) enables models to continuously integrate new knowledge while mitigating catastrophic forgetting. Driven by the remarkable generalization of CLIP, leveraging pre-trained vision-language models has become a dominant paradigm in CIL. However, current work primarily focuses on aligning global image embeddings (i.e., [CLS] token) with their corresponding text prompts (i.e., [EOS] token). Despite their good performance, we find that they discard the rich patch-level semantic information inherent in CLIP's encoders. For instance, when recognizing a rabbit, local patches may encode its distinctive cues, such as long ears and a fluffy tail, which can provide complementary evidence for recognition. Based on the above observation, we propose SPA (Semantic-guided Patch-level Alignment) for CLIP-based CIL, which aims to awaken long-neglected local representations within CLIP. Specifically, for each class, we first construct representative and diverse visual samples and feed them to GPT-5 as visual guidance to generate class-wise semantic descriptions. These descriptions are used to guide the selection of discriminative patch-level visual features. Building upon these selected patches, we further employ optimal transport to align selected patch tokens with semantic tokens from class-wise descriptions, yielding a structured cross-modal alignment that improves recognition. Furthermore, we introduce task-specific projectors for effective adaptation to downstream incremental tasks, and sample pseudo-features from stored class-wise Gaussian statistics to calibrate old-class representations, thereby mitigating catastrophic forgetting. Extensive experiments demonstrate that SPA achieves state-of-the-art performance.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Class-incremental learning | CIFAR-100 | Average Accuracy88.53 | 150 | |
| Class-incremental learning | ImageNet-R | Last Accuracy79.5 | 147 | |
| Class-incremental learning | CIFAR-100 B0_Inc10 | Avg Accuracy88.53 | 60 | |
| Class-incremental learning | ObjectNet | Average Accuracy59.98 | 60 | |
| Class-incremental learning | CIFAR-100 B50Inc10 | Avg Accuracy0.8501 | 41 | |
| Class-incremental learning | FGVC Aircraft | Accuracy Last63.01 | 41 | |
| Class-incremental learning | CUB200 (100-20) | Avg Accuracy84.43 | 32 | |
| Class-incremental learning | ImageNet-R B0 Inc20 (test) | Average Performance (A-bar)85.63 | 23 | |
| Class-incremental learning | Cars | Average Accuracy94.43 | 20 | |
| Class-incremental learning | UCF | Average Accuracy95.63 | 20 |