NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Steering Prototypes with Prompt-tuning for Rehearsal-free Continual Learning

Zhuowei Li, Long Zhao, Zizhao Zhang, Han Zhang, Di Liu, Ting Liu, Dimitris N. Metaxas

Abstract

Contrastive Prototypical Prompt (CPP) is a novel rehearsal-free continual learning framework designed to mitigate catastrophic forgetting without storing old raw images. By leveraging a frozen Transformer backbone combined with task-specific learnable prompts and a contrastive prototypical loss, CPP effectively manages semantic drift and inter-class interference. Experimental results demonstrate that CPP outperforms existing state-of-the-art methods by 4% to 6% on major benchmarks like Split CIFAR-100 and ImageNet-R.

1. Introduction

Continual Learning (CL) requires models to learn a sequence of tasks incrementally. A primary challenge is "catastrophic forgetting," where learning new tasks degrades performance on previous ones. While prototype-based methods offer a memory-efficient alternative to storing raw images, they are often plagued by two issues: semantic drift and prototype interference.

2. Problem Formulation

As a model adapts to new tasks, the underlying embedding space shifts, leading to semantic drift—where old data samples no longer align with their stored prototypes. Furthermore, prototype interference occurs when new classes overlap with old ones in the embedding space, causing classification errors. CPP aims to solve these issues in a rehearsal-free manner, preserving privacy and reducing memory consumption.

Illustration of semantic drift and prototype interference across sequential tasks.

3. The Contrastive Prototypical Prompt (CPP) Framework

CPP addresses these challenges through a three-pronged approach:

  • Task-Specific Prompt-Tuning: The model utilizes a frozen pre-trained Vision Transformer (ViT). Instead of updating the backbone, it learns task-specific "prompts" (learnable tokens). This architecture balances stability (frozen backbone) and plasticity (learnable prompts).
  • Contrastive Prototypical Loss (CPL): To prevent interference, CPL encourages samples to cluster near their class prototypes while pushing them away from prototypes of previous classes. These stored prototypes act as "negative anchors," enabling contrastive learning without a rehearsal buffer.
  • Multi-Centroid Prototypes: Rather than a single mean vector, CPP uses spectral clustering to represent each class with multiple centroids, better capturing complex, non-isotropic data distributions.
The CPP architecture showing training with push/pull forces in the embedding space and the two-step inference process.

4. Inference Mechanism

At inference time, CPP employs a two-step retrieval process to ensure accurate classification:

  1. Coarse Retrieval: A query vector identifies the most relevant task-specific prompts from a memory bank.
  2. Fine-Grained Matching: The model performs a nearest-neighbor search against the candidate class prototypes to determine the final prediction.

5. Experiments and Results

CPP was evaluated on four benchmarks: Split CIFAR-100, 5-datasets, Split ImageNet-subset, and Split ImageNet-R.

  • Accuracy: CPP achieved 91.12% average accuracy on Split CIFAR-100, surpassing the previous state-of-the-art (DualPrompt) by 4.6%.
  • Forgetting: On the 5-datasets benchmark, the forgetting rate was nearly zero (0.19%), essentially solving the task sequence.
  • Efficiency: CPP is highly memory-efficient, requiring only 0.035 MB of extra memory per task on CIFAR-100, compared to ~71 MB for buffer-based methods like DER++.

6. Conclusion

CPP provides a robust, rehearsal-free solution for continual learning by "steering" prototypes in a stable embedding space. While it introduces some inference latency due to its two-step retrieval, its performance gains and privacy-preserving nature make it a significant advancement in the field. Future work may explore scaling to open-vocabulary scenarios and handling blurred task boundaries.

Summary updated

BibTeX
@inproceedings{li2024steering,
  author = {Zhuowei Li and Long Zhao and Zizhao Zhang and Han Zhang and Di Liu and Ting Liu and Dimitris N. Metaxas},
  title = {{Steering Prototypes with Prompt-tuning for Rehearsal-free Continual Learning}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2024},
  doi = {10.1109/wacv57701.2024.00251},
}
Figure