Papers › Visual Prompt Tuning in Null Space for Continual Learning

Visual Prompt Tuning in Null Space for Continual Learning

9 Jun 2024arXiv:2406.05658archive 2025-07-28

Yue Lu, Shizhou Zhang, De Cheng, Yinghui Xing, Nannan Wang, Peng Wang, Yanning Zhang

Existing prompt-tuning methods have demonstrated impressive performances in continual learning (CL), by selecting and updating relevant prompts in the vision-transformer models. On the contrary, this paper aims to learn each task by tuning the prompts in the direction orthogonal to the subspace spanned by previous tasks' features, so as to ensure no interference on tasks that have been learned to overcome catastrophic forgetting in CL. However, different from the orthogonal projection in the traditional CNN architecture, the prompt gradient orthogonal projection in the ViT architecture shows completely different and greater challenges, i.e., 1) the high-order and non-linear self-attention operation; 2) the drift of prompt distribution brought by the LayerNorm in the transformer block. Theoretically, we have finally deduced two consistency conditions to achieve the prompt gradient orthogonal projection, which provide a theoretical guarantee of eliminating interference on previously learned knowledge via the self-attention mechanism in visual prompt tuning. In practice, an effective null-space-based approximation solution has been proposed to implement the prompt gradient orthogonal projection. Extensive experimental results demonstrate the effectiveness of anti-forgetting on four class-incremental benchmarks with diverse pre-trained baseline models, and our approach achieves superior performances to state-of-the-art methods. Our code is available at https://github.com/zugexiaodui/VPTinNSforCL.

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="2406.05658")

Code

Syntology Ran 12 of 19 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 3 ran · our draft was wrong; 9 ran with no contract checked.

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

zugexiaodui/vptinnsforcl 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

19 samples harvested; 12 ran; 0 honoured the contract we drafted; 7 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.

3ran · our draft was wrong
9ran
7unverified

Licence: 0 of the 19 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 zugexiaodui/vptinnsforcl. “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.

ClassIncrementalManager zugexiaodui/vptinnsforcl/train_eval.py official repository ran MIT (permissive) · 3268683b13ffdab4 · report
ImagePathDataset zugexiaodui/vptinnsforcl/train_eval.py official repository ran MIT (permissive) · 078149a1266f4078 · report
ImagePathDatasetClassManager zugexiaodui/vptinnsforcl/train_eval.py official repository ran MIT (permissive) · 96c050fd4ac91bfd · report
SDomainNetPath zugexiaodui/vptinnsforcl/train_eval.py official repository ran MIT (permissive) · 8cfe390097de1132 · report
basic_clean zugexiaodui/VPTinNSforCL/clip/simple_tokenizer.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 98f385d847636a3e · report
calc_accuracy zugexiaodui/VPTinNSforCL/utils/misc.py official repository ran MIT (permissive) · 971c46b0aa73eb28 · report
format_duration zugexiaodui/VPTinNSforCL/utils/misc.py official repository ran fingerprinted MIT (permissive) · d06fe57a613a4c54 · report
get_init_weights_vit zugexiaodui/VPTinNSforCL/utils/vit_builder.py official repository ran MIT (permissive) · 398c127f958b7a62 · report
get_pairs zugexiaodui/VPTinNSforCL/clip/simple_tokenizer.py official repository ran · our draft was wrong MIT (permissive) · d919ae32e5e4e616 · report
resize_pos_embed zugexiaodui/VPTinNSforCL/utils/vit_builder.py official repository ran MIT (permissive) · aba59faf86f45da9 · report
str2bool zugexiaodui/VPTinNSforCL/utils/misc.py official repository ran MIT (permissive) · 29848dd47d2443ef · report
whitespace_clean zugexiaodui/VPTinNSforCL/clip/simple_tokenizer.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 9542161e9640b858 · report
CIFAR100Path zugexiaodui/vptinnsforcl/train_eval.py official repository unverified MIT (permissive) · ff2fbb0ab73e96ea · report
GlobalVarsManager zugexiaodui/vptinnsforcl/train_eval.py official repository unverified MIT (permissive) · a8edf98dd5c2d59b · report
ImageNetRPath zugexiaodui/vptinnsforcl/train_eval.py official repository unverified MIT (permissive) · 474413fb5eedd59b · report
build_model zugexiaodui/VPTinNSforCL/clip/model.py official repository unverified MIT (permissive) · 6a720146b65b3fd6 · report
define_dataset zugexiaodui/VPTinNSforCL/utils/dataset_builder.py official repository unverified MIT (permissive) · 35a10325e8443f2e · report
get_update_projection_dict zugexiaodui/vptinnsforcl/train_eval.py official repository unverified MIT (permissive) · fc5d7b56e09282a5 · report
load zugexiaodui/VPTinNSforCL/clip/clip.py official repository unverified MIT (permissive) · fb0f7e6d8dacdf56 · report

Tasks

Continual LearningVisual Prompt Tuning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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