Consistent Prompting for Rehearsal-Free Continual Learning

Zhanxin Gao, Jun Cen, Xiaobin Chang
3/13/2024
cs.CVcs.LG

No official code found. Best implementation: Zhanxin-Gao/CPrompt (34 stars, last commit 2025-06-12). 1 more below.

Abstract

Continual learning empowers models to adapt autonomously to the ever-changing environment or data streams without forgetting old knowledge. Prompt-based approaches are built on frozen pre-trained models to learn the task-specific prompts and classifiers efficiently. Existing prompt-based methods are inconsistent between training and testing, limiting their effectiveness. Two types of inconsistency are revealed. Test predictions are made from all classifiers while training only focuses on the current task classifier without holistic alignment, leading to Classifier inconsistency. Prompt inconsistency indicates that the prompt selected during testing may not correspond to the one associated with this task during training. In this paper, we propose a novel prompt-based method, Consistent Prompting (CPrompt), for more aligned training and testing. Specifically, all existing classifiers are exposed to prompt training, resulting in classifier consistency learning. In addition, prompt consistency learning is proposed to enhance prediction robustness and boost prompt selection accuracy. Our Consistent Prompting surpasses its prompt-based counterparts and achieves state-of-the-art performance on multiple continual learning benchmarks. Detailed analysis shows that improvements come from more consistent training and testing.

View on arXivView PDF

Code Implementations(2)

Zhanxin-Gao/CPromptCommunity100%

Consistent Prompting for Rehearsal-Free Continual Learning [CVPR2024]

343PythonMar 1, 20241 years ago
MIT

在LibContinual框架下复现持续学习论文:Consistent Prompting for Rehearsal-Free Continual Learning

00PythonDec 15, 202510 months agoMIT

Similar Papers

Cite this paper

@article{gao2024consistent,
  title  = {Consistent Prompting for Rehearsal-Free Continual Learning},
  author = {Zhanxin Gao and Jun Cen and Xiaobin Chang},
  year   = {2024},
  eprint = {2403.08568},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.08568v2},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.08568.svg)](https://codeofpaper.com/paper/2403.08568)

Discussion