CASP: 基于CLS标记注意力引导提示的少样本类增量学习
CASP: Few-Shot Class-Incremental Learning with CLS Token Attention Steering Prompts
AI总结:
CASP通过引入CLS标记注意力引导提示,提升少样本类增量学习的泛化能力和效率,减少参数开销。
摘要:
少样本类增量学习(FSCIL)在持续学习中是一个核心挑战,要求模型在非常有限的样本下快速适应新类别,同时缓解灾难性遗忘。最近基于提示的方法,将预训练骨干网络与任务特定提示相结合,取得了显著进展。然而,在极端少样本增量设置下,模型的迁移和泛化能力变得至关重要,因此必须利用预训练知识来学习可以在基础会话中跨未来类别共享的特征表示。受CLS标记机制的启发,该机制类似于人类注意力,逐步过滤掉任务无关的信息,我们提出了CLS标记注意力引导提示(CASP)。该方法在查询、键和值投影中引入了类共享的可训练偏置参数,以显式调节自注意力权重。为进一步增强泛化能力,我们还设计了注意力扰动策略,并在浅层特征空间中执行Manifold Token Mixup,合成潜在的新类别特征以提高泛化能力和保留后续任务的表示能力。在CUB200、CIFAR100和ImageNet-R数据集上的实验表明,CASP在标准和细粒度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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。