Manuscript Offprint

arXiv:2608.23634

The Blending Ratio Is Not Where the Performance Is: Diagnosing Prototype Blending for Few-Shot Adaptation of Vision-Language Models

Liangzhi Li, Bowen Wang, Yiming Qian, Thorsten Neumann, Xia Xie, Guangshun Li

Liangzhi Li, Bowen Wang, Yiming Qian, Thorsten Neumann, Xia Xie, and Guangshun Li

Abstract—Many few-shot adaptation methods for vision–language models classify with a convex combination of the zero-shot text prototype and the mean of the K labelled image features, governed by a single blending ratio routinely tuned on held-out labels, often on the test set itself. This paper asks the question that the family's own bias–variance justification invites: what is the right value of the blending ratio, can it be estimated without validation data, and is finding it actually where the performance is? We first show that the ratio minimising prototype mean-squared error has a closed form whose support-set plug-in is exactly a positive-part James–Stein coefficient shrinking towards the text prototype. Across a 4,800-cell matrix (ten datasets, five backbones including SigLIP, five shot counts, five seeds, four prompt tiers; the 5,000-cell grid minus 200 thin-pool drops) this theoretically optimal ratio is a reliable estimate of the wrong quantity: on the 950 cells of the primary prompt tier where it is defined it trails a test-set-oracle ratio by 8.5 accuracy points. It saturates at λ≈1\lambda \approx 1, discarding the text prior and reproducing a nearest-class-mean classifier, because 78% of the text–image prototype distance it treats as bias is a class-independent offset that the arg max largely cancels. We prove the mechanism and measure its share of the damage by a counterfactual (26%). Second, a blend whose ratio is set by leave-one-out on the support set alone lands within 0.9 points of the oracle-ratio blend's accuracy, so the ratio is estimable without validation data. Third, and most consequently, validation-free linear probes beat even the oracle-tuned blend: CLAP by +1.9 points and LP++ by +1.5 on average, and at K≥4K \geq 4 all four reproduced validation-free baselines sit above the oracle, the two linear probes by margins whose intervals exclude zero and that are invariant to solver precision. These results locate the family's ceiling in its model class, not its hyperparameter: the blending ratio can be set near-optimally for free, and it is still not where the performance is. Code, cached features, and all per-cell records: https://huggingface.co/datasets/Liangzhi-Li/clipbench-blending.

Index Terms—Vision–language models, CLIP, few-shot learning, transfer learning, shrinkage estimation, James–Stein, model selection, evaluation protocols.

1 INTRODUCTION

CONTRASTIVELY pre-trained vision–language models such as CLIP [1], ALIGN [2], and SigLIP [3] turned image classification into retrieval. Given a few labelled images per class, the natural upgrade averages each class's K image features into an image prototype and classifies by a convex combination of the two modalities, pc(λ)=λμ^c+(1−λ)tc\boldsymbol{p}_c(\lambda) = \lambda \hat{\boldsymbol{\mu}}_c + (1 - \lambda) \boldsymbol{t}_c, with tc\boldsymbol{t}_c the text prototype, μ^c\hat{\boldsymbol{\mu}}_c the empirical image prototype, and λ∈[0,1]\lambda \in [0, 1] a blending ratio deciding how far to trust the few labelled shots over the frozen prior (Fig. 1A). This underlies much of the few-shot adaptation literature: cache models blend zero-shot logits with support-set affinities [4]–[7], adapters residual with original features [8], task-residual methods add a learned offset to the text prototype [9], Gaussian discriminant heads blend generative with zero-shot logits [10], training-free prototype methods the two modality means [11], [12]. Each has a knob— α\alpha, λ\lambda, a residual ratio, a mixing coefficient—arbitrating between prior and evidence.

How is that knob set? Almost never from the K shots alone. The original Tip-Adapter searches its α\alpha and β\beta on the test set [4]; the CoOp-inherited few-shot CLIP protocol [13] ships extra validation images that strict few-shot learning lacks; the official “hard-to-beat” GDA implementation [10] grid-searches its blending weight on held-out labels. A critical literature documents this: CLAP [14] showed state-of-the-art adapters need per-task tuning on large validation sets to beat a linear probe; LP++ [15] observed hyperparameters tuned “on the entire test set”; HOSO [16] formalised a validation-free protocol because most published numbers are not; benchmark critiques found the same pathology in test-time adaptation [17] and few-shot transfer [18].

L. Li is with the Department of Computer Science, Qufu Normal University, China, and with Climind (e-mail: conscienceli@gmail.com). B. Wang is with the Institute of Scientific and Industrial Research (SANKEN), The University of Osaka, Japan (e-mail: wang@im.sanken.osaka-u.ac.jp). Y. Qian is with the Institute of High Performance Computing (IHPC), A*STAR, Singapore. T. Neumann is with Standard Chartered Bank, Singapore. X. Xie is with the School of Aerospace Intelligence, Hainan University, China. G. Li is with the School of Computer Science, Qufu Normal University, China (e-mail: guangshunli@qfnu.edu.cn).

The standard argument for blending, explicit in recent work [11], is statistical: the image prototype is an unbiased, high-variance estimate of the true class mean, the text prototype a biased, zero-variance one; blending trades bias against variance. If that frame is right, three questions

Corresponding author: Guangshun Li)

Artefacts: the release carries the pipeline, per-cell feature caches under both split protocols, the augmented-view caches, and all 4,800 records; scripts/build.sh rebuilds every table and figure on a CPU.

A Two prototype sets, one knob pc(λ)=λμ^c+(1−λ)tc\mathbf{p}_c(\lambda) = \lambda \hat{\mu}_c + (1 - \lambda) \mathbf{t}_c

Figure

PCA of real prototypes (Pets, ViT-B/16)

B The two objectives disagree (Food-101, K=4)

C Probes beat the family's ceiling

mean accuracy (%), K≥4K \geq 4, balanced cells

Fig. 1. A: PCA of the prototype geometry (Pets, ViT-B/16): the common offset Δ\Delta (the modality gap) is 75% of the squared text–image prototype distance here, yet costs far less at decision time (Thm. 1; Sec. 6.7). Blending slides each prototype along its dotted path; marks are the two objectives' choices. B: measured accuracy and prototype MSE vs. λ\lambda (Food-101, K=4K=4): the MSE minimum ( λ≈0.96\lambda \approx 0.96, where Eq. (7) sits) costs 14.2 accuracy points against the accuracy peak ( λ≈0.09\lambda \approx 0.09, which leave-one-out finds). C: mean accuracy, K≥4K \geq 4, balanced cells: every reproduced validation-free baseline exceeds the test-set-oracle blend (dashed): the family is capacity-limited, not mis-tuned.

should have quantitative answers. First, what is the optimal blending ratio, and can it be computed rather than searched? Second, can it be estimated from the K support shots alone, with no validation data? Third, the question nobody asks: if the ratio were set perfectly, would the classifier be competitive? We answer all three at scale: 4,800 cells (a 5,000-cell grid minus 200 guarded drops, Sec. 5.4) over ten datasets, five backbones, five shot counts, five support-set seeds, and four tiers of prompt quality, with four published validation-free baselines reproduced from official code and every comparison a paired difference with cluster-bootstrap confidence intervals.

(i) The theoretically optimal ratio is a reliable estimate of the wrong quantity. Minimising prototype mean-squared error yields a closed-form ratio whose support-set plug-in is exactly a positive-part James–Stein coefficient [19], [20] shrinking the image prototype towards the text prototype—and provably dominating it at that objective (Prop. 3). Yet the classifier it induces trails a test-set-oracle ratio by 8.5 accuracy points on average and is statistically indistinguishable from zero-shot. The reason is structural: we measure 78.3% [74.6, 82.1] of the squared text-image prototype distance as a class-independent offset, the modality gap [21]—one the arg max cancels but the MSE objective books as bias of the text prototype. On SigLIP the share rises to 86.6%: the phenomenon belongs to contrastive pre-training at large, not to CLIP. (ii) The ratio is estimable without validation data. A leave-one-out estimator re-using all K shots matches the test-set-oracle blend to within 0.9 accuracy points (ratio rank correlation 0.79) and responds correctly to interventions: upgrading the prompt from a generic template to LLM descriptions [22] lowers the oracle ratio, and the estimate tracks the shift. (iii) Even the oracle-tuned blend is not competitive. Validation-free linear probes beat the family’s own unreachable upper bound: CLAP by +1.92 [+0.87,+2.98] points and LP++ by +1.46 [+0.34,+2.58] on average. At K≥4K \geq 4 all four reproduced baselines are above the test-set-oracle blend in point estimate, three of them with intervals excluding zero. One caveat on scope: the Eq. (1) members we evaluate are our own constructions (Sec. 7.2), so the bound concerns the family’s supremum, not any published system.

We believe this reframes how the prototype-blending literature should be read (Sec. 7): our results say the blending axis is worth at most the distance to the oracle, under one point for a well-estimated ratio, while the model-class gap to a plain linear probe on the same shots runs two to three points the other way. For practitioners this yields a validation-free recipe; for theory, it explains why the bias-variance story fails and supplies the decomposition that any future justification of blending will have to address.

Contributions. (1) A closed form for the MSE-optimal blending ratio, identification of its support-set plug-in with positive-part James–Stein shrinkage, and its exact sampling theory (Prop. 4; Sec. 3). (2) A proof (Theorem 1, Corollaries 1–2) and a 4,800-cell measurement that this ratio over-trusts image evidence by construction, because 78% of the modality gap it penalises is class-independent and the arg max largely cancels (Secs. 3, 6; a counterfactual puts its share of the damage at 26%). (3) A leave-one-out ratio estimator using only the K support shots, within 0.9 accuracy points of a test-set oracle, plus a rule making the published GDA baseline validation-free (Sec. 4). (4) The capacity result, now with its theory: validation-free linear probes exceed the test-set-oracle blend (Sec. 6), the blend path provably cannot reach the unrestricted separation a probe can aim at (Theorem 2), and the theorem's predicted headroom picks out the strata where the measured surplus is largest. (5) A released benchmark—code, cached features, per-cell records, and line-by-line reproductions of CLAP, LP++, GDA, and HOSO—with paired statistics and a documented audit trail of every protocol decision (Sec. 5).

References (64)

  • Learning transferable visual models from natural language supervision
  • Scaling up visual and vision-language representation learning with noisy text supervision
  • Sigmoid loss for language image pre-training
  • Tip-Adapter: Training-free adaption of CLIP for few-shot classification
  • Not all features matter: Enhancing few-shot CLIP with adaptive prior refinement
  • SuS-X: Training-free name-only transfer of vision-language models
  • Prompt, generate, then cache: Cascade of foundation models makes strong few-shot learners
  • CLIP-Adapter: Better vision-language models with feature adapters
  • Task residual for tuning vision-language models
  • A hard-to-beat baseline for training-free CLIP-based adaptation
  • Cross-modal prototype alignment and mixing for training-free few-shot classification (opens arXiv in a new tab)
  • Multimodality helps unimodality: Cross-modal few-shot learning with multimodal models
  • Learning to prompt for vision-language models
  • A closer look at the few-shot adaptation of large vision-language models
  • LP++: A surprisingly strong linear probe for few-shot CLIP
  • Hold-one-shot-out (HOSO) for validation-free few-shot CLIP adapters
  • The illusion of progress? A critical look at test-time adaptation for vision-language models
  • Benchmarking few-shot transferability of pre-trained models with improved evaluation protocols (opens arXiv in a new tab)
  • Estimation with quadratic loss
  • Stein's estimation rule and its competitors—an empirical Bayes approach
  • Mind the gap: Understanding the modality gap in multi-modal contrastive representation learning
  • What does a platypus look like? Generating customized prompts for zero-shot image classification
  • Conditional prompt learning for vision-language models
  • MaPLe: Multi-modal prompt learning
  • Prompt-aligned gradient for prompt tuning
  • Visual-language prompt tuning with knowledge-guided context optimization
  • PLOT: Prompt learning with optimal transport for vision-language models
  • Dual memory networks: A versatile adaptation approach for vision-language models
  • Efficient test-time adaptation of vision-language models
  • ProKeR: A kernel perspective on few-shot adaptation of large vision-language models
  • A survey of low-shot vision-language model adaptation via representer theorem (opens arXiv in a new tab)
  • Few-shot, now for real: Medical VLMs adaptation without balanced sets or validation
  • Test-time prompt tuning for zero-shot generalization in vision-language models
  • AWT: Transferring vision-language models via augmentation, weighting, and transportation
  • Rethinking few-shot CLIP benchmarks: A critical analysis in the inductive setting
  • Inadmissibility of the usual estimator for the mean of a multivariate normal distribution
  • Diagnosis of multiple cancer types by shrunken centroids of gene expression
  • Prototypical networks for few-shot learning
  • SimpleShot: Revisiting nearest-neighbor classification for few-shot learning (opens arXiv in a new tab)
  • A well-conditioned estimator for large-dimensional covariance matrices
  • On bias, variance, 0/1—loss, and the curse-of-dimensionality
  • A unified bias-variance decomposition and its applications
  • Test-time distribution normalization for contrastively learned visual-language models
  • Two effects, one trigger: On the modality gap, object bias, and information imbalance in contrastive vision-language models
  • Cross-modal mapping: Mitigating the modality gap for few-shot image classification (opens arXiv in a new tab)
  • Robust fine-tuning of zero-shot models
  • A family of minimax estimators of the mean of a multivariate normal distribution
  • A two-sample test for high-dimensional data with applications to gene-set testing
  • Shrinkage algorithms for MMSE covariance estimation
  • Fine-grained visual classification of aircraft (opens arXiv in a new tab)
  • Learning generative visual models from few training examples: An incremental Bayesian approach tested on 101 object categories
  • 3D object representations for fine-grained categorization
  • Describing textures in the wild
  • EuroSAT: A novel dataset and deep learning benchmark for land use and land cover classification
  • Automated flower classification over a large number of classes
  • Food-101 – mining discriminative components with random forests
  • ImageNet: A large-scale hierarchical image database
  • Cats and dogs
  • SUN database: Large-scale scene recognition from abbey to zoo
  • Reproducible scaling laws for contrastive language-image learning
  • Visual classification via description from large language models
  • SigLIP 2: Multilingual vision-language encoders with improved semantic understanding, localization, and dense features (opens arXiv in a new tab)
  • DINOv3
  • DINOv2: Learning robust visual features without supervision