Semantic-Guided Global-Local Collaborative Prompt Learning for Few-Shot Class Incremental Learning

Yongxin Yan, Weisen Chen, Xingye Chen, Yuanjie Shao, Zhengrong Zuo, Wenming Tan, Wenqi Ren, Changxin Gao, Nong SangCVPR 2026

TL;DR

The paper introduces SGLC, a novel framework for Few-Shot Class-Incremental Learning (FSCIL) that adapts pre-trained Vision-Language Models (VLMs) using a global-local collaborative prompt learning strategy. By incorporating Large Language Models (LLMs) to generate rich semantic descriptions, SGLC effectively guides prompt tuning through knowledge distillation, mitigating both catastrophic forgetting and few-shot overfitting. The method achieves state-of-the-art performance across multiple benchmarks while training less than 0.5% of the model's total parameters.

What Problem Does This Paper Address?

In real-world applications like autonomous robotics or dynamic recommendation engines, machine learning models must continuously integrate new classes without losing proficiency in old ones. This setup is known as Few-Shot Class-Incremental Learning (FSCIL).

FSCIL introduces a brutal double-whammy challenge:

  1. Catastrophic Forgetting: Sequentially updating a network on new data causes it to overwrite previously learned knowledge.
  2. Few-Shot Overfitting: New classes typically come with very few labeled examples (e.g., only 5 images per class), making it incredibly easy for the model to overfit to irrelevant details like backgrounds.

While large pre-trained Vision-Language Models (VLMs) like CLIP offer strong foundational representations, standard fine-tuning methods still struggle to balance stability (retaining old knowledge) with plasticity (learning new concepts).

Methods

The authors propose the Semantic-Guided Global-Local Collaborative Prompt Learning (SGLC) framework, which builds on a frozen CLIP backbone.

Figure 2. An overview of our SGLC. We first perform semantic description generation: leveraging LLMs to output a set of universal inter-class attributes (e.g., color, shape) that best distinguish all categories. Based on these attributes, we design targeted queries to the LLM to generate both global descriptions and attribute-specific local descriptions for each category. These textual descriptions are used to guide the learning of the corresponding textual prompts to alleviate overfitting (Semantic-Guided). To promote multimodal alignment, we introduce a collaborative global-local prompt learning. The global visual features are aligned with their corresponding vision-language prototypes (Global-Level), while the local attribute text features are aligned with multi-view visual features via optimal transport (Local- Level). During the base training phase, all prompts and the adapter are jointly optimized. In the incremental learning phase, only the global textual prompts of current classes, multi-view local visual prompts, and local textual prompts are updated to prevent catastrophic forgetting.

The core architecture relies on three main pillars:

  • Global-Level Prompt Learning: Instead of using class-agnostic prompts shared across all categories, SGLC introduces category-specific prompts. During incremental learning sessions, the prompts for previously learned classes are frozen, locking in old knowledge and preventing catastrophic forgetting.
  • Local-Level Prompt Learning: When humans learn an unfamiliar object, we look at its distinctive parts (e.g., "yellow beak", "pointy wings"). SGLC mimics this by breaking down classes into local textual attributes. It injects multiple visual prompts to generate multi-view image features and aligns them with these textual attributes using Optimal Transport (OT), which maps the distributions robustly rather than relying on naive pairwise matching.
  • Semantic Guidance via LLMs: To prevent overfitting to scarce visual data, the authors query an LLM to generate detailed global and attribute-specific text descriptions. SGLC then uses a distillation loss to transfer this rich contextual knowledge from the LLM directly into the learnable global and local prompts.

Additionally, a visual modality diversity loss is introduced to ensure that the multi-view local visual features remain distinct and do not collapse into a single representation.

Datasets

The framework was evaluated on three widely used image classification benchmarks under standard FSCIL split protocols:

  • miniImageNet: 100 classes total (60 base classes, 40 novel classes introduced in 5-way 5-shot increments).
  • CIFAR-100: 100 classes total (60 base classes, 40 novel classes introduced in 5-way 5-shot increments).
  • CUB200: A fine-grained dataset of 200 bird species (100 base classes, 100 novel classes introduced in 10-way 5-shot increments).

Key Insights and Ideas

  • Freezing Category-Specific Prompts is Key: Traditional prompt learning updates a shared set of tokens, which inadvertently degrades old class performance. By making prompts category-specific and freezing historical ones, the authors create a natural barrier against catastrophic forgetting.
  • Optimal Transport for Attribute Alignment: Aligning local image patches directly to text attributes can be noisy. Framing this as an Optimal Transport problem allows the model to find the global minimal cost of matching visual regions to semantic attributes, making it highly robust to background noise.
  • LLMs as Regularizers: Instead of using cumbersome text ensembles during inference, the LLM is only used during training as a "teacher" to regularize prompt learning. This keeps the deployment pipeline lightweight and clean.

Key Results

SGLC consistently outperformed existing state-of-the-art (SOTA) methods across all sessions on all three benchmarks.

Figure 3. Performance curve of each session on (a) miniImagenet, (b) CUB200, and (c) CIFAR100.
  • Accuracy Improvements: SGLC achieved a top-1 average accuracy ($A_{avg}$) of 95.12% on miniImageNet (+1.60% over the previous best), 80.18% on CUB200 (+1.06%), and 84.57% on CIFAR-100 (+3.19%).
  • Parameter Efficiency: SGLC is exceptionally lightweight. It only optimizes 0.71M parameters (a trainable ratio of just 0.47%), compared to other competitive methods like Approxima, which fine-tunes the entire backbone (86.68M parameters).

Qualitative t-SNE visualizations also confirmed that the features extracted by SGLC are significantly more distinct and well-separated compared to zero-shot CLIP.

Figure 7. Visual feature space visualization on CUB200 to verify the validity of the learnable deep-layer prompts and adapter-based visual feature corrections. Our method yields image features that are more discriminative than those extracted by the original zero- shot image encoder.

Limitations and Future Work

Not explicitly discussed in the paper.

Summary updated

BibTeX
@inproceedings{yan2026semantic,
  author = {Yongxin Yan and Weisen Chen and Xingye Chen and Yuanjie Shao and Zhengrong Zuo and Wenming Tan and Wenqi Ren and Changxin Gao and Nong Sang},
  title = {{Semantic-Guided Global-Local Collaborative Prompt Learning for Few-Shot Class Incremental Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=dF94M0hMys},
}
Figure