[论文解读] CASP: Few-Shot Class-Incremental Learning with CLS Token Attention Steering Prompts
CASP 引入 CLS Token Attention Steering Prompts,通过对 ViT 自注意力的调制实现 FSCIL,采用对称提示注入、注意力丢弃、领域自适应提示和单峰混合令牌以在极少可训练参数且无需增量微调的情况下达到最先进效果。
Few-shot class-incremental learning (FSCIL) presents a core challenge in continual learning, requiring models to rapidly adapt to new classes with very limited samples while mitigating catastrophic forgetting. Recent prompt-based methods, which integrate pretrained backbones with task-specific prompts, have made notable progress. However, under extreme few-shot incremental settings, the model's ability to transfer and generalize becomes critical, and it is thus essential to leverage pretrained knowledge to learn feature representations that can be shared across future categories during the base session. Inspired by the mechanism of the CLS token, which is similar to human attention and progressively filters out task-irrelevant information, we propose the CLS Token Attention Steering Prompts (CASP). This approach introduces class-shared trainable bias parameters into the query, key, and value projections of the CLS token to explicitly modulate the self-attention weights. To further enhance generalization, we also design an attention perturbation strategy and perform Manifold Token Mixup in the shallow feature space, synthesizing potential new class features to improve generalization and reserve the representation capacity for upcoming tasks. Experiments on the CUB200, CIFAR100, and ImageNet-R datasets demonstrate that CASP outperforms state-of-the-art methods in both standard and fine-grained FSCIL settings without requiring fine-tuning during incremental phases and while significantly reducing the parameter overhead.
研究动机与目标
- 通过解决极端少样本类增量学习挑战来推动 FSCIL 研究。
- 通过 CLS-token 驱动的注意力调制来实现基/未来任务之间的知识迁移。
- Develop parameter-efficient prompting mechanisms that avoid backbone fine-tuning during incremental phases.
- Enhance generalization and reserve representation space for unseen future classes.
- Demonstrate state-of-the-art performance on standard FSCIL benchmarks with efficient training.
提出的方法
- 在每个 MSA 层引入 CLS Token Attention-Guided Prompts,以调制 CLS token 的查询、键和值投影。
- 应用带丢弃的 Perturbed CLS Token Attention-Guided Prompts 以正则化注意力并提升泛化能力(PCAP)。
- 添加 CLS Domain Adaptation Prompt,通过引入一个可学习的领域解耦向量(CDAP)来对抗预训练 CLS token 的领域偏差。
- 纳入 Manifold Token Mixup,通过在基线训练阶段混合浅层 ViT token 特征来合成鲁棒特征表示(MTM)。
- 在分类时使用余弦原型,并在增量阶段保持参数高效的骨干更新最小化。
实验结果
研究问题
- RQ1CASP 能否在 FSCIL 中将知识迁移从基会话改进到极低样本的新类?
- RQ2对称提示注入在 CLS token 投影中的是否能以提升自注意力,从而提升对未来任务的一般化?
- RQ3注意力扰动和流形令牌混合是否进一步提升鲁棒性并保留未见类别的容量?
- RQ4是否可以在显著减少可训练参数且不进行增量微调的情况下,超越最先进的 FSCIL 方法?
主要发现
- CASP 在 FSCIL 设置下在 CUB200、CIFAR100 和 ImageNet-R 基准上实现了最先进的结果。
- CASP 在增量阶段无需微调,同时对基线方法带来显著的准确度提升。
- CASP 在参数效率方面表现出显著优势,在 CUB200 的 ViT-B/16-1K 设置下仅有 0.027 MB 的可训练骨干参数,总可训练参数为 0.1 MB。
- 消融研究表明每个 CASP 子组件(CAGP、PCAP、CDAP、MTM)均对性能有贡献,整模型获得最佳结果。
- 可视化结果显示,与基线相比,CASP 产生了更聚焦的类别激活图和在嵌入空间中更好的可分离性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。