CASP: Few-Shot Class-Incremental Learning with CLS Token Attention Steering Prompts
Shuai Huang, Xuhan Lin, Yuwu Lu
TL;DR
Few-shot class-incremental learning (FSCIL) requires rapidly incorporating new classes from scarce data while avoiding catastrophic forgetting of earlier classes. The authors present CASP, a prompt-based framework that steers the Vision Transformer's CLS token via symmetric prompt injections, attentional perturbation, CLS-domain adaptation, and Manifold Token Mixup to produce domain-generalizable representations without incremental fine-tuning. Empirical results on CUB200, CIFAR100, and ImageNet-R show state-of-the-art performance with dramatically reduced parameter overhead, validating improved generalization and robustness. The work offers a practical, efficient route to continual learning in vision, with potential extensions to multimodal FSCIL and related transfer-learning contexts.
Abstract
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.
