SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2501.18936 · ICLR · 2025

Revisit Visual Prompt Tuning: The Expressiveness of Prompt Experts

Nhat Ho, Huy Nguyen, Anh Nguyen, Anh Tran, Minh Le, Chau Nguyen

arXiv · PDF · Open in the Atlas

Code that ran

7 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (6 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 0 failures of our instrument; 5 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2501.18936.json · badge: /api/ran/2501.18936.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Minhchuyentoancbn/VAPT community
Papers with Code archive
7 ran · 5 no recorded run
FunctionStatusWhere it lives
Attention Ran
ran on a synthesized input · constructed an object; no result was computed
Minhchuyentoancbn/VAPT/src/models/vit_prompt/vit.py
pointer only (licence: NOASSERTION) · get_code("0dd334991598ccbc")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Minhchuyentoancbn/VAPT (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Block Ran
ran on a synthesized input
Minhchuyentoancbn/VAPT/src/models/vit_prompt/vit.py
pointer only (licence: NOASSERTION) · get_code("e51dc2d64fc3c533")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Minhchuyentoancbn/VAPT (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ChannelWiseConv2d Ran
ran on a synthesized input · constructed an object; no result was computed
Minhchuyentoancbn/VAPT/src/models/vit_prompt/vit.py
pointer only (licence: NOASSERTION) · get_code("154841e65d6c1b50")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Minhchuyentoancbn/VAPT (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Mlp Ran
ran on a synthesized input · constructed an object; no result was computed
Minhchuyentoancbn/VAPT/src/models/vit_prompt/vit.py
pointer only (licence: NOASSERTION) · get_code("0498c7765ac40058")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Minhchuyentoancbn/VAPT (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

PreActBottleneck Ran
ran on a synthesized input · constructed an object; no result was computed
Minhchuyentoancbn/VAPT/src/models/vit_prompt/vit.py
pointer only (licence: NOASSERTION) · get_code("6a3e067070499183")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Minhchuyentoancbn/VAPT (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

PromptDownSample Ran
ran on a synthesized input · constructed an object; no result was computed
Minhchuyentoancbn/VAPT/src/models/vit_prompt/vit.py
pointer only (licence: NOASSERTION) · get_code("60e12c45a4b7f153")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Minhchuyentoancbn/VAPT (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

PromptMLP Ran
ran on a synthesized input · constructed an object; no result was computed
Minhchuyentoancbn/VAPT/src/models/vit_prompt/vit.py
pointer only (licence: NOASSERTION) · get_code("4a78cd4620c50018")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Minhchuyentoancbn/VAPT (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Embeddings Not yet run
unverified (harvested, no recorded run)
Minhchuyentoancbn/VAPT/src/models/vit_prompt/vit.py
pointer only (licence: NOASSERTION) · get_code("47f5376080d21919")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Minhchuyentoancbn/VAPT (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Encoder Not yet run
unverified (harvested, no recorded run)
Minhchuyentoancbn/VAPT/src/models/vit_prompt/vit.py
pointer only (licence: NOASSERTION) · get_code("e1eae54076bf5404")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Minhchuyentoancbn/VAPT (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

PromptedTransformerAdaptive Not yet run
unverified (harvested, no recorded run)
Minhchuyentoancbn/VAPT/src/models/vit_prompt/vit.py
pointer only (licence: NOASSERTION) · get_code("51b8d6937dece2a5")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Minhchuyentoancbn/VAPT (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

ResNetV2 Not yet run
unverified (harvested, no recorded run)
Minhchuyentoancbn/VAPT/src/models/vit_prompt/vit.py
pointer only (licence: NOASSERTION) · get_code("36e99294b13668ca")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Minhchuyentoancbn/VAPT (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Transformer Not yet run
unverified (harvested, no recorded run)
Minhchuyentoancbn/VAPT/src/models/vit_prompt/vit.py
pointer only (licence: NOASSERTION) · get_code("07235216ba68394b")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, Minhchuyentoancbn/VAPT (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 7 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 6 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
Mlp
brick of this paper's assembly: helper
4 other papers
3 dated earlier, 1 later · 2 only as an assembly brick
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2103.12091 (2021-03)
Transformer-Based Attention Networks for Continuous Pixel-Wise Prediction
2103.15691 (2021-03)
ViViT: A Video Vision Transformer
and 1 more not named here
PreActBottleneck
brick of this paper's assembly: helper
4 other papers
3 dated earlier, 1 later · 2 only as an assembly brick
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2103.12091 (2021-03)
Transformer-Based Attention Networks for Continuous Pixel-Wise Prediction
2203.08243 (2022-03)
Unified Visual Transformer Compression
and 1 more not named here
Attention
brick of this paper's assembly: helper
3 other papers
3 dated earlier · 1 only as an assembly brick
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2103.12091 (2021-03)
Transformer-Based Attention Networks for Continuous Pixel-Wise Prediction
2103.15691 (2021-03)
ViViT: A Video Vision Transformer
ResNetV2
brick of this paper's assembly: helper
3 other papers
2 dated earlier, 1 later
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2203.08243 (2022-03)
Unified Visual Transformer Compression
2510.16446 (2025-10)
VIPAMIN: Visual Prompt Initialization via Embedding Selection and Subspace Expansion
Embeddings
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 later
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2510.16446 (2025-10)
VIPAMIN: Visual Prompt Initialization via Embedding Selection and Subspace Expansion
Encoder
brick of this paper's assembly: helper
1 other paper
1 later
2510.16446 (2025-10)
VIPAMIN: Visual Prompt Initialization via Embedding Selection and Subspace Expansion
Transformer
brick of this paper's assembly: helper
1 other paper
1 later
2510.16446 (2025-10)
VIPAMIN: Visual Prompt Initialization via Embedding Selection and Subspace Expansion

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Visual Prompt Tuning (VPT) has proven effective for parameter-efficient adaptation of pre-trained vision models to downstream tasks by inserting task-specific learnable prompt tokens. Despite its empirical success, a comprehensive theoretical understanding of VPT remains an active area of research. Building on the recently established connection between Mixture of Experts (MoE) and prompt-based methods, wherein each attention head can be conceptualized as a composition of multiple MoE models, we reinterpret VPT as the introduction of new prompt experts into these MoE structures. We identify a key limitation in existing VPT frameworks: the restricted functional expressiveness of prompt experts, which remain static and thus limited in their adaptability. To address this, we propose Visual Adaptive Prompt Tuning (VAPT), a novel method that endows prompt experts with enhanced expressiveness while preserving parameter efficiency. Empirical evaluations on VTAB-1K and FGVC demonstrate that VAPT achieves substantial performance improvements, surpassing fully fine-tuned baselines by 7.34% and 1.04%, respectively. Moreover, VAPT consistently outperforms VPT while requiring fewer additional parameters. Furthermore, our theoretical analysis indicates that VAPT achieves optimal sample efficiency. Collectively, these results underscore the theoretical grounding and empirical advantages of our approach. Our code is publicly available at https://github.com/Minhchuyentoancbn/VAPT. Recently, Le et al. (2024) established a formal connection between attention mechanisms (Vaswani, 2017), prompt-based methods, and Mixture of Experts (MoE) models (Jacobs et al., 1991;Shazeer et al., 2017), yielding new insights into the design and optimization of prompting strategies. Their analysis demonstrates that each attention head in a transformer can be equivalently interpreted as a composition of multiple MoE models stacked together. Within this framework, VPT corresponds to fine-tuning these implicit, pre-trained MoE structures by introducing new, learnable prompt experts. These prompt experts collaborate with the pre-trained experts to facilitate effective task adaptation.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2501.18936")
get_code_for_paper("2501.18936")
have("2501.18936")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2501.18936.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2501.18936.svg)](https://syntology.ai/paper/2501.18936)

Connect an agent — have() is free.