Papers › Consistency-guided Prompt Learning for Vision-Language Models

Consistency-guided Prompt Learning for Vision-Language Models

1 Jun 2023arXiv:2306.01195archive 2025-07-28

Shuvendu Roy, Ali Etemad

We propose Consistency-guided Prompt learning (CoPrompt), a new fine-tuning method for vision-language models. Our approach improves the generalization of large foundation models when fine-tuned on downstream tasks in a few-shot setting. The basic idea of CoPrompt is to enforce a consistency constraint in the prediction of the trainable and pre-trained models to prevent overfitting on the downstream task. Additionally, we introduce the following two components into our consistency constraint to further boost the performance: enforcing consistency on two perturbed inputs and combining two dominant paradigms of tuning, prompting and adapter. Enforcing consistency on perturbed input serves to further regularize the consistency constraint, thereby improving generalization. Moreover, the integration of adapters and prompts not only enhances performance on downstream tasks but also offers increased tuning flexibility in both input and output spaces. This facilitates more effective adaptation to downstream tasks in a few-shot learning setting. Experiments show that CoPrompt outperforms existing methods on a range of evaluation suites, including base-to-novel generalization, domain generalization, and cross-dataset evaluation. On generalization, CoPrompt improves the state-of-the-art on zero-shot tasks and the overall harmonic mean over 11 datasets. Detailed ablation studies show the effectiveness of each of the components in CoPrompt. We make our code available at https://github.com/ShuvenduRoy/CoPrompt.

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

Code

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

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

shuvenduroy/coprompt officialmentioned in papermentioned on GitHubpytorchMIT 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

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

Licence: 0 of the 7 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 shuvenduroy/coprompt. “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 shuvenduroy/coprompt/clip/simple_tokenizer.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 98f385d847636a3e · report
get_pairs shuvenduroy/coprompt/clip/simple_tokenizer.py official repository ran · our draft was wrong MIT (permissive) · d919ae32e5e4e616 · report
whitespace_clean shuvenduroy/coprompt/clip/simple_tokenizer.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 9542161e9640b858 · report
build_model shuvenduroy/coprompt/clip/model_clip_original.py official repository unverified MIT (permissive) · c47aa9e5b049a11d · report
build_model shuvenduroy/coprompt/clip/model.py official repository unverified MIT (permissive) · 918dfac560aed1c9 · report
cosine_loss shuvenduroy/coprompt/trainers/coprompt.py official repository unverified MIT (permissive) · b45d4ac2bba7e906 · report
load shuvenduroy/coprompt/clip/clip.py official repository unverified MIT (permissive) · fbf8c0143d9c48e3 · report

Tasks

Domain GeneralizationFew-Shot LearningPrompt EngineeringPrompt Learning

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Prompt Engineering Caltech-101 CoPrompt Harmonic mean 96.55 #6 of 14 Archive leaderboard report
Prompt Engineering DTD CoPrompt Harmonic mean 72.79 #5 of 14 Archive leaderboard report
Prompt Engineering EuroSAT CoPrompt Harmonic mean 85.84 #5 of 14 Archive leaderboard report
Prompt Engineering FGVC-Aircraft CoPrompt Harmonic mean 39.76 #9 of 14 Archive leaderboard report
Prompt Engineering Food-101 CoPrompt Harmonic mean 91.40 #2 of 13 Archive leaderboard report
Prompt Engineering ImageNet CoPrompt Harmonic mean 74.33 #5 of 15 Archive leaderboard report
Prompt Engineering ImageNet-A CoPrompt Top-1 accuracy % 50.50 #8 of 9 Archive leaderboard report
Prompt Engineering ImageNet-R CoPrompt Top-1 accuracy % 77.51 #5 of 9 Archive leaderboard report
Prompt Engineering ImageNet-S CoPrompt Top-1 accuracy % 49.43 #3 of 9 Archive leaderboard report
Prompt Engineering Oxford 102 Flower CoPrompt Harmonic mean 85.71 #9 of 14 Archive leaderboard report
Prompt Engineering Oxford-IIIT Pet Dataset CoPrompt Harmonic mean 96.87 #3 of 14 Archive leaderboard report
Prompt Engineering SUN397 CoPrompt Harmonic mean 81.31 #2 of 14 Archive leaderboard report
Prompt Engineering Stanford Cars CoPrompt Harmonic mean 75.66 #7 of 14 Archive leaderboard report
Prompt Engineering UCF101 CoPrompt Harmonic mean 83.07 #7 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.

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