Papers › Vector Quantization Prompting for Continual Learning

Vector Quantization Prompting for Continual Learning

27 Oct 2024arXiv:2410.20444archive 2025-07-28

Li Jiao, Qiuxia Lai, Yu Li, Qiang Xu

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}.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2410.20444")

Code

Syntology Ran 3 of 15 code samples harvested from 1 repository linked to this paper; 12 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · our draft was wrong; 1 ran · fixture could not drive it.

By repository: official repository: 15 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

jiaolifengmi/vq-prompt officialmentioned in paperpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 3 ran; 1 honoured the contract we drafted; 12 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · our draft was wrong
1ran · fixture could not drive it
12unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from jiaolifengmi/vq-prompt. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

interpolate_pos_embed jiaolifengmi/vq-prompt/models/vit.py official repository ran · our draft was wrong MIT (permissive) · c6ec173f19f5c34d · report
ortho_penalty jiaolifengmi/VQ-Prompt/models/zoo.py official repository ran · fixture could not drive it MIT (permissive) · a763dc6f8d5d1498 · report
tensor_prompt jiaolifengmi/VQ-Prompt/models/zoo.py official repository ran · honoured contract fingerprinted MIT (permissive) · 3f33843b601c8d4d · report
CosineSchedulerIter jiaolifengmi/vq-prompt/learners/prompt.py official repository unverified MIT (permissive) · fe7f9a1f5cd3c429 · report
NormalNN jiaolifengmi/vq-prompt/learners/prompt.py official repository unverified MIT (permissive) · a447093382d3a413 · report
Prompt jiaolifengmi/vq-prompt/learners/prompt.py official repository unverified MIT (permissive) · 677d8160bcc4ebc6 · report
VQPrompt jiaolifengmi/vq-prompt/learners/prompt.py official repository unverified MIT (permissive) · 6ffe4ffedcac064a · report
_LRSchedulerIter jiaolifengmi/vq-prompt/learners/prompt.py official repository unverified MIT (permissive) · 23f35d8ff6184ceb · report
accuracy jiaolifengmi/VQ-Prompt/utils/metric.py official repository unverified MIT (permissive) · 0c4bbcb160a04955 · report
build_cifar_transform jiaolifengmi/VQ-Prompt/dataloaders/utils.py official repository unverified MIT (permissive) · f83acd2eda10d232 · report
build_transform jiaolifengmi/VQ-Prompt/dataloaders/utils.py official repository unverified MIT (permissive) · aa97aea5d1c8ffb8 · report
calc_forgetting jiaolifengmi/VQ-Prompt/utils/calc_forgetting.py official repository unverified MIT (permissive) · 4e39da6c733f9f2c · report
get_transform jiaolifengmi/VQ-Prompt/dataloaders/utils.py official repository unverified MIT (permissive) · b682650616ae4f66 · report
jpg_image_to_array jiaolifengmi/VQ-Prompt/dataloaders/dataloader.py official repository unverified MIT (permissive) · e1da3ea75e559fb9 · report
parse_txt jiaolifengmi/VQ-Prompt/dataloaders/dataloader.py official repository unverified MIT (permissive) · cdf0934ebf6a93cd · report

Tasks

Continual LearningQuantization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SET

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections