Papers › Unlocking Few-Shot Capabilities in LVLMs via Prompt Conditioning and Head Selection

Unlocking Few-Shot Capabilities in LVLMs via Prompt Conditioning and Head Selection

25 Mar 2026arXiv:2603.24181added by Syntology

Adhemar de Senneville, Xavier Bou, Jérémy Anger, Rafael Grompone, Gabriele Facciolo

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Current Large Vision Language Models (LVLMs) excel at many zero-shot tasks like image captioning, visual question answering and OCR. However, these same models suffer from poor performance at image classification tasks, underperforming against CLIP-based methods. Notably, this gap is surprising because many LVLMs use CLIP-pretrained vision encoders. Yet LVLMs are not inherently limited by CLIP's architecture with independent vision and text encoders. In CLIP, this separation biases classification toward class-name matching rather than joint visual-text reasoning. In this paper we show that, despite their poor raw performance, LVLMs can improve visual feature class separability at inference using prompt conditioning, and LVLMs' internal representations, especially attention heads, can outperform the model itself at zero-shot and few-shot classification. We introduce Head Ensemble Classifiers (HEC) to bridge the performance gap between CLIP-based and LVLM-based classification methods. Inspired by Gaussian Discriminant Analysis, HEC ranks the most discriminative vision and text heads and combines them into a training-free classifier. We show that HEC achieves state-of-the-art performance in few-shot and zero-shot classification across 12 datasets.

PaperPDFCode 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="2603.24181")

Code

Syntology Ran 8 of 19 code samples harvested from 4 repositories linked to this paper; 11 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · our draft was wrong; 4 ran · fixture could not drive it; 1 ran with no contract checked.

By repository: found in paper text by Syntology: 19 samples from 4 repositories, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

mrflogs/ICLR24 found in paper text by Syntology report
rashindrie/DIPA found in paper text by Syntology report
AdhemarDeSenneville/HEC found in paper text by Syntology report
ybendou/ProKeR found in paper text by Syntology report
gaopengcuhk/Tip-Adapter found in paper text by Syntology report

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

19 samples harvested; 8 ran; 1 honoured the contract we drafted; 11 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
2ran · our draft was wrong
4ran · fixture could not drive it
1ran
11unverified

Licence: 16 of the 19 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 4 repositories linked to this paper, official or community; each sample names its own and says which. “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.

Classifier AdhemarDeSenneville/HEC/src/fewshot/classifier.py found in paper text by Syntology ran no licence file found · pointer only · 9ce04136606729c3 · report
build_cache_model gaopengcuhk/Tip-Adapter/utils.py found in paper text by Syntology ran · fixture could not drive it no licence file found · pointer only · e57ad1054530e142 · report
get_pairs gaopengcuhk/Tip-Adapter/clip/simple_tokenizer.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · d919ae32e5e4e616 · report
get_top_heads_V AdhemarDeSenneville/HEC/src/fewshot/classifier.py found in paper text by Syntology ran · honoured contract no licence file found · pointer only · 5e18ce0e1f3bf838 · report
get_vecs mrflogs/ICLR24/main_robustness.py found in paper text by Syntology ran · fixture could not drive it no licence file found · pointer only · ea8d5fd6970f79fb · report
run mrflogs/ICLR24/main_few_shots.py found in paper text by Syntology ran · fixture could not drive it no licence file found · pointer only · ab796c2494f06d76 · report
run mrflogs/ICLR24/main_robustness.py found in paper text by Syntology ran · fixture could not drive it no licence file found · pointer only · c7e15186f6aeadec · report
whitespace_clean gaopengcuhk/Tip-Adapter/clip/simple_tokenizer.py found in paper text by Syntology ran · our draft was wrong fingerprinted no licence file found · pointer only · 9542161e9640b858 · report
ClassifierHEC_V AdhemarDeSenneville/HEC/src/fewshot/classifier.py found in paper text by Syntology unverified no licence file found · pointer only · 54780f0f8c28320a · report
RBF_Kernel ybendou/ProKeR/trainers/proker.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 13f44a66c02770fe · report
build_model gaopengcuhk/Tip-Adapter/clip/model.py found in paper text by Syntology unverified no licence file found · pointer only · f3830274a7e18d5e · report
cls_acc gaopengcuhk/Tip-Adapter/utils.py found in paper text by Syntology unverified no licence file found · pointer only · f2a0a5061e7c204e · report
cls_acc ybendou/ProKeR/utils.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 7d02d5cb2c679f65 · report
listdir_nohidden mrflogs/ICLR24/datasets/imagenet.py found in paper text by Syntology unverified no licence file found · pointer only · fe317c3d4d24147a · report
load gaopengcuhk/Tip-Adapter/clip/clip.py found in paper text by Syntology unverified no licence file found · pointer only · db64af1ba3479e8d · report
load mrflogs/ICLR24/clip/clip.py found in paper text by Syntology unverified no licence file found · pointer only · f6f30e41636ae569 · report
pre_load_features mrflogs/ICLR24/utils.py found in paper text by Syntology unverified no licence file found · pointer only · 807dc79d03aaa20f · report
pre_load_features ybendou/ProKeR/utils.py found in paper text by Syntology unverified Apache-2.0 (permissive) · f9282c7399f45992 · report
run mrflogs/ICLR24/main_base2new.py found in paper text by Syntology unverified no licence file found · pointer only · 2d182929376e2d82 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2603.24181, was issued in March 2026, after that date, so the archive has no leaderboard rows for it.

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