Vector Quantization Prompting for Continual Learning

Li Jiao, Qiuxia Lai, Yu Li, Qiang Xu
10/27/2024
cs.LGcs.CV

Official code: jiaolifengmi/VQ-Prompt (11 stars, MIT, last commit 2024-10-16).

Abstract

Continual learning requires to overcome catastrophic forgetting when training a single model on a sequence of tasks. Recent top-performing approaches are prompt-based methods that utilize a set of learnable parameters (i.e., prompts) to encode task knowledge, from which appropriate ones are selected to guide the fixed pre-trained model in generating features tailored to a certain task. However, existing methods rely on predicting prompt identities for prompt selection, where the identity prediction process cannot be optimized with task loss. This limitation leads to sub-optimal prompt selection and inadequate adaptation of pre-trained features for a specific task. Previous efforts have tried to address this by directly generating prompts from input queries instead of selecting from a set of candidates. However, these prompts are continuous, which lack sufficient abstraction for task knowledge representation, making them less effective for continual learning. To address these challenges, we propose VQ-Prompt, a prompt-based continual learning method that incorporates Vector Quantization (VQ) into end-to-end training of a set of discrete prompts. In this way, VQ-Prompt can optimize the prompt selection process with task loss and meanwhile achieve effective abstraction of task knowledge for continual learning. Extensive experiments show that VQ-Prompt outperforms state-of-the-art continual learning methods across a variety of benchmarks under the challenging class-incremental setting. The code is available at \href{https://github.com/jiaolifengmi/VQ-Prompt}{this https URL}.

View on arXivView PDF

Code Implementations(1)

MIT

Official PyTorch code for "Vector Quantization Prompting for Continual Learning (NeurIPS2024)".

114Shell, PythonOct 16, 20242 years agoMIT

Similar Papers

Cite this paper

@article{jiao2024vector,
  title  = {Vector Quantization Prompting for Continual Learning},
  author = {Li Jiao and Qiuxia Lai and Yu Li and Qiang Xu},
  year   = {2024},
  eprint = {2410.20444},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2410.20444},
  url    = {http://arxiv.org/abs/2410.20444v2},
  journal = {NEURIPS 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/2410.20444.svg)](https://codeofpaper.com/paper/2410.20444)

Discussion