Papers › MaPLe: Multi-modal Prompt Learning

MaPLe: Multi-modal Prompt Learning

6 Oct 2022CVPR 2023 1arXiv:2210.03117archive 2025-07-28

Muhammad Uzair Khattak, Hanoona Rasheed, Muhammad Maaz, Salman Khan, Fahad Shahbaz Khan

Pre-trained vision-language (V-L) models such as CLIP have shown excellent generalization ability to downstream tasks. However, they are sensitive to the choice of input text prompts and require careful selection of prompt templates to perform well. Inspired by the Natural Language Processing (NLP) literature, recent CLIP adaptation approaches learn prompts as the textual inputs to fine-tune CLIP for downstream tasks. We note that using prompting to adapt representations in a single branch of CLIP (language or vision) is sub-optimal since it does not allow the flexibility to dynamically adjust both representation spaces on a downstream task. In this work, we propose Multi-modal Prompt Learning (MaPLe) for both vision and language branches to improve alignment between the vision and language representations. Our design promotes strong coupling between the vision-language prompts to ensure mutual synergy and discourages learning independent uni-modal solutions. Further, we learn separate prompts across different early stages to progressively model the stage-wise feature relationships to allow rich context learning. We evaluate the effectiveness of our approach on three representative tasks of generalization to novel classes, new target datasets and unseen domain shifts. Compared with the state-of-the-art method Co-CoOp, MaPLe exhibits favorable performance and achieves an absolute gain of 3.45% on novel classes and 2.72% on overall harmonic-mean, averaged over 11 diverse image recognition datasets. Our code and pre-trained models are available at https://github.com/muzairkhattak/multimodal-prompt-learning.

PaperPDFConference PDFCodeCode 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="2210.03117")

Code

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

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

muzairkhattak/multimodal-prompt-learning officialmentioned in papermentioned on GitHubpytorchMIT report
gyukai/i2vc mentioned on GitHubpytorch report
htyao89/kgcoop mentioned 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

6 samples harvested; 4 ran; 0 honoured the contract we drafted; 2 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
1ran
2unverified

Licence: 0 of the 6 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 muzairkhattak/multimodal-prompt-learning. “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.

basic_clean muzairkhattak/multimodal-prompt-learning/clip/simple_tokenizer.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 98f385d847636a3e · report
compute_ci95 muzairkhattak/multimodal-prompt-learning/parse_test_res.py official repository ran fingerprinted MIT (permissive) · ba26afd892405335 · report
get_pairs muzairkhattak/multimodal-prompt-learning/clip/simple_tokenizer.py official repository ran · our draft was wrong MIT (permissive) · d919ae32e5e4e616 · report
whitespace_clean muzairkhattak/multimodal-prompt-learning/clip/simple_tokenizer.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 9542161e9640b858 · report
build_model muzairkhattak/multimodal-prompt-learning/clip/model.py official repository unverified MIT (permissive) · 48ac2bd4dcbfb717 · report
load muzairkhattak/multimodal-prompt-learning/clip/clip.py official repository unverified MIT (permissive) · fbf8c0143d9c48e3 · report

Tasks

Prompt EngineeringPrompt Learning

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Prompt Engineering Caltech-101 MaPLe Harmonic mean 96.02 #12 of 14 Archive leaderboard report
Prompt Engineering DTD MaPLe Harmonic mean 68.16 #12 of 14 Archive leaderboard report
Prompt Engineering EuroSAT MaPLe Harmonic mean 82.35 #10 of 14 Archive leaderboard report
Prompt Engineering FGVC-Aircraft MaPLe Harmonic mean 36.50 #11 of 14 Archive leaderboard report
Prompt Engineering Food-101 MaPLe Harmonic mean 91.38 #3 of 13 Archive leaderboard report
Prompt Engineering ImageNet MaPLe Harmonic mean 73.47 #13 of 15 Archive leaderboard report
Prompt Engineering ImageNet V2 MaPLe Top-1 accuracy % 64.07 #5 of 8 Archive leaderboard report
Prompt Engineering ImageNet-A MaPLe Top-1 accuracy % 50.90 #4 of 9 Archive leaderboard report
Prompt Engineering ImageNet-R MaPLe Top-1 accuracy % 76.98 #7 of 9 Archive leaderboard report
Prompt Engineering ImageNet-S MaPLe Top-1 accuracy % 49.15 #7 of 9 Archive leaderboard report
Prompt Engineering Oxford 102 Flower MaPLe Harmonic mean 82.56 #12 of 14 Archive leaderboard report
Prompt Engineering Oxford-IIIT Pet Dataset MaPLe Harmonic mean 96.58 #6 of 14 Archive leaderboard report
Prompt Engineering SUN397 MaPLe Harmonic mean 79.75 #11 of 14 Archive leaderboard report
Prompt Engineering Stanford Cars MaPLe Harmonic mean 73.47 #12 of 14 Archive leaderboard report
Prompt Engineering UCF101 MaPLe Harmonic mean 80.82 #11 of 14 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

CLIP

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