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

Code

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

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

jieshibo/memvp officialmentioned in papermentioned on GitHubpytorch 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; 13 ran; 1 honoured the contract we drafted; 3 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 · violated contract
6ran · our draft was wrong
2ran · fixture could not drive it
3ran
3unverified

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

adjust_learning_rate jieshibo/memvp/util/lr_sched.py official repository ran · honoured contract no licence file found · pointer only · bd3578806ecf5ac2 · report
all_reduce_mean jieshibo/memvp/util/misc.py official repository ran fingerprinted no licence file found · pointer only · 3dc19396537db789 · report
apply_rotary_emb jieshibo/memvp/memvp/model.py official repository ran · fixture could not drive it no licence file found · pointer only · b47d48e431b34acd · report
basic_clean jieshibo/memvp/clip/simple_tokenizer.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 98f385d847636a3e · report
forward_clip jieshibo/memvp/memvp/adapter.py official repository ran no licence file found · pointer only · a753e5742dbbb24b · report
forward_llama jieshibo/memvp/memvp/adapter.py official repository ran no licence file found · pointer only · 92ae708bcae9023e · report
get_choice_text jieshibo/memvp/util/base_prompt.py official repository ran · our draft was wrong no licence file found · pointer only · 7a8dffc83d89cedd · report
get_context_text jieshibo/memvp/util/base_prompt.py official repository ran · our draft was wrong no licence file found · pointer only · 85f084f6054a421e · report
get_pairs jieshibo/memvp/clip/simple_tokenizer.py official repository ran · our draft was wrong no licence file found · pointer only · d919ae32e5e4e616 · report
get_question_text jieshibo/memvp/util/base_prompt.py official repository ran · our draft was wrong no licence file found · pointer only · c86a79e229253816 · report
precompute_freqs_cis jieshibo/memvp/memvp/model.py official repository ran · violated contract no licence file found · pointer only · 14a84c2cbfebc413 · report
reshape_for_broadcast jieshibo/memvp/memvp/model.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · 70bf6ebaafd266c4 · report
whitespace_clean jieshibo/memvp/clip/simple_tokenizer.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 9542161e9640b858 · report
build_model jieshibo/memvp/clip/model.py official repository unverified no licence file found · pointer only · e8286348138c7ef6 · report
get_grad_norm_ jieshibo/memvp/util/misc.py official repository unverified no licence file found · pointer only · ba1356e8ceb654d2 · report
load jieshibo/memvp/clip/clip.py official repository 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