Papers › Memory-Space Visual Prompting for Efficient Vision-Language Fine-Tuning

Memory-Space Visual Prompting for Efficient Vision-Language Fine-Tuning

9 May 2024arXiv:2405.05615archive 2025-07-28

Shibo Jie, Yehui Tang, Ning Ding, Zhi-Hong Deng, Kai Han, Yunhe Wang

Current solutions for efficiently constructing large vision-language (VL) models follow a two-step paradigm: projecting the output of pre-trained vision encoders to the input space of pre-trained language models as visual prompts; and then transferring the models to downstream VL tasks via end-to-end parameter-efficient fine-tuning (PEFT). However, this paradigm still exhibits inefficiency since it significantly increases the input length of the language models. In this paper, in contrast to integrating visual prompts into inputs, we regard visual prompts as additional knowledge that facilitates language models in addressing tasks associated with visual information. Motivated by the finding that Feed-Forward Network (FFN) of language models acts as "key-value memory", we introduce a novel approach termed memory-space visual prompting (MemVP), wherein visual prompts are concatenated with the weights of FFN for visual knowledge injection. Experimental results across various VL tasks and language models reveal that MemVP significantly reduces the training time and inference latency of the finetuned VL models and surpasses the performance of previous PEFT methods. Code: https://github.com/JieShibo/MemVP

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 16 code samples harvested from 1 repository linked to this paper: 14 ran (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 3 honoured, 1 violated, 1 with no contract checked; 9 where Syntology's instrument failed) · 2 unverified. Where Syntology's instrument failed: 7 where our contract draft was wrong; 2 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 16 samples from 1 repository, 14 ran (5 with no instrument failure; 9 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-25 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed. 2 of the 14 samples that ran have no recorded date.

jieshibo/memvp officialmentioned in papermentioned on GitHubpytorchSyntology: 16 samples, 14 ran (9 instrument-failed) · 2 unverified 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

16 samples harvested: 14 ran (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 3 honoured, 1 violated, 1 with no contract checked; 9 where Syntology's instrument failed) · 2 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

3ran · honoured contract
1ran · violated contract
7ran · our draft was wrong
2ran; the contract check could not run
1ran
2unverified

Licence: 16 of the 16 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 jieshibo/memvp. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

jieshibo/memvp official repository 16 samples, 14 ran (9 instrument-failed) · 2 unverified
adjust_learning_rate in 125 papers util/lr_sched.py ran · honoured contract no licence file found · pointer only · bd3578806ecf5ac2 · report fixture: signature optimizer:SGD/0/?, epoch:int/0/int, args:Args/0/? · returned float · level recorded, date not recorded
all_reduce_mean in 27 papers util/misc.py ran · honoured contract fingerprinted no licence file found · pointer only · 3dc19396537db789 · report fixture: signature x:float/0/float · returned float · level recorded 2026-09-24
apply_rotary_emb in 121 papers memvp/model.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant no licence file found · pointer only · b47d48e431b34acd · report fixture: signature xq:Tensor/4/float, xk:Tensor/4/float, freqs_cis:Tensor/2/complex · returned tuple · level recorded 2026-09-22
basic_clean in 217 papers clip/simple_tokenizer.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 98f385d847636a3e · report fixture: signature text:str/0/str · returned str · level recorded 2026-09-22
forward_clip memvp/adapter.py ran · our draft was wrong no licence file found · pointer only · a753e5742dbbb24b · report fixture: signature self:callable/0/?, x:Tensor/2/float · returned Tensor · level recorded 2026-09-24
forward_llama memvp/adapter.py ran no licence file found · pointer only · 92ae708bcae9023e · report fixture: signature self:callable/0/?, x:Tensor/2/float, start_pos:int/0/int, freqs_cis:Tensor/2/float, mask:Tensor/2/float, vis_weight:Tensor/1/float · returned Tensor · level recorded 2026-09-24
get_choice_text in 7 papers util/base_prompt.py ran · our draft was wrong no licence file found · pointer only · 7a8dffc83d89cedd · report fixture: signature probelm:dict/0/?, options:list/1/str · returned str · level recorded 2026-09-22
get_context_text in 7 papers util/base_prompt.py ran · our draft was wrong no licence file found · pointer only · 85f084f6054a421e · report fixture: signature problem:dict/0/?, use_caption:bool/0/bool · returned str · level recorded 2026-09-22
get_grad_norm_ in 22 papers util/misc.py ran · honoured contract no licence file found · pointer only · ba1356e8ceb654d2 · report fixture: signature parameters:list/1/Tensor, norm_type:float/0/float · returned Tensor · level recorded 2026-09-25
get_pairs in 260 papers clip/simple_tokenizer.py ran · our draft was wrong no licence file found · pointer only · d919ae32e5e4e616 · report fixture: signature word:tuple/1/str · returned set · level recorded 2026-09-22
get_question_text in 5 papers util/base_prompt.py ran · our draft was wrong no licence file found · pointer only · c86a79e229253816 · report fixture: signature problem:dict/0/? · returned str · level recorded 2026-09-22
precompute_freqs_cis in 112 papers memvp/model.py ran · violated contract no licence file found · pointer only · 14a84c2cbfebc413 · report fixture: signature dim:int/0/int, end:int/0/int, theta:float/0/float · returned Tensor · level recorded 2026-09-22
reshape_for_broadcast in 90 papers
census: 6 implementations from 10 papers, 1 distinct output on one shared input
memvp/model.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant fingerprinted no licence file found · pointer only · 70bf6ebaafd266c4 · report fixture: signature freqs_cis:Tensor/2/float, x:Tensor/4/float · returned Tensor · level recorded, date not recorded
whitespace_clean in 230 papers clip/simple_tokenizer.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 9542161e9640b858 · report fixture: signature text:str/0/str · returned str · level recorded 2026-09-22
build_model in 469 papers clip/model.py unverified no licence file found · pointer only · e8286348138c7ef6 · report
load in 392 papers clip/clip.py unverified no licence file found · pointer only · f6f30e41636ae569 · report

Tasks

Visual Promptingparameter-efficient fine-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