Source-linked AI summary
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
TL;DR
Few-shot vision–language adaptation commonly blends text and image prototypes with a ratio tuned using held-out labels, but the bias–variance justification does not establish the right classification objective or whether tuning is worthwhile. The paper derives an MSE-optimal James–Stein plug-in, evaluates validation-free ratio estimation across 4,800 cells, and compares the resulting blend with oracle tuning and linear probes. The MSE-optimal ratio targets the wrong quantity, leave-one-out nearly matches the oracle blend, and validation-free linear probes still outperform that oracle, indicating that the bottleneck lies in the model class rather than ratio selection.
Problem
The paper asks which blending ratio is optimal, whether it can be estimated from K support shots without validation data, and whether perfect ratio selection makes prototype blending competitive.
Method
The paper derives the closed-form prototype-MSE optimum and its positive-part James–Stein plug-in, then evaluates leave-one-out estimation and validation-free baselines across 4,800 experimental cells.
Results
The MSE-optimal ratio trails the test-set-oracle ratio by 8.5 accuracy points, leave-one-out comes within 0.9 points of the oracle blend, and validation-free linear probes beat even that oracle.
Takeaways & Limitations
The ratio can be estimated near-optimally without validation data, but performance is chiefly limited by the prototype-blending model class rather than its hyperparameter.
Takeaways & Limitations
The bound applies to one global interpolation coefficient between modality prototype sets under cosine similarity, excluding per-class coefficients, temperature-scaled logit blends, and strictly sample-level cache models.
Abstract
from arXiv · showhide
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, with a single blending ratio routinely tuned on held-out labels, often on the test set itself. We ask what the family's own bias-variance justification invites: what is the right ratio, can it be estimated without validation data, and is finding it where the performance is? First, 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 4,800 cells (ten datasets, five backbones including SigLIP, five shot counts, five seeds, four prompt tiers) this theoretically optimal ratio is a reliable estimate of the wrong quantity: on the 950 primary-tier cells where it is defined it trails a test-set-oracle ratio by 8.5 points. It saturates near 1, discarding the text prior for 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 bound its share of the damage at 26% by a counterfactual. Second, leave-one-out on the support set alone sets a ratio landing within 0.9 points of the oracle blend, so it is estimable without validation data. Third, 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 >= 4 all four validation-free baselines sit above the oracle, the linear probes by margins excluding zero. These results locate the ceiling in the model class, not the hyperparameter: the ratio can be set near-optimally for free, and it is still not where the performance is. Code, cached features, per-cell records: https://huggingface.co/datasets/Liangzhi-Li/clipbench-blending
1 INTRODUCTION
The paper tests the bias–variance rationale for prototype blending at scale and finds that MSE-optimal shrinkage reliably targets the wrong objective. Leave-one-out estimates the accuracy-preferred ratio without validation data, but validation-free linear probes still exceed the oracle blend, locating the main ceiling in the model class.
- Study design: 4,800 cells test prototype blending across ten datasets, five backbones, five shot counts, five seeds, and four prompt-quality tiers.Comparisons use reproduced validation-free baselines and paired differences with cluster-bootstrap confidence intervals.
- MSE objective: The MSE-optimal ratio has a closed form, and its support-set plug-in is exactly a positive-part James–Stein coefficient shrinking image prototypes toward text prototypes.The estimator uniformly improves prototype MSE over the empirical image prototype under the stated sampling assumptions.
- MSE objective: 8.5 accuracy points separate the MSE-optimal ratio from the test-set-oracle ratio on average, while the plug-in is statistically indistinguishable from zero-shot.The plug-in typically saturates near λ ≈0.96, despite accuracy preferring a much smaller ratio.
- Validation-free estimation: Leave-one-out estimates the accuracy-preferred ratio within 0.9 accuracy points of the test-set oracle using only the K support shots.The estimate also tracks prompt interventions, such as lower oracle ratios for stronger LLM-generated descriptions.
- Geometric mechanism: 78.3% of the squared text–image prototype distance is class-independent across cells, so MSE penalizes an offset that the classifier’s arg max largely cancels.The share ranges from 73.9% for ResNet-50 to 86.6% for SigLIP; a counterfactual attributes 26% of the damage to this mechanism.
- Open direction: The bias–variance story remains incomplete because the decision-relevant shrinkage objective requires quantities that K shots estimate poorly, motivating anisotropic or subspace alternatives.The paper presents these alternatives as open directions rather than established estimators.
4 ESTIMATING THE RATIO WITHOUT VALIDATION DATA
The paper selects the blending ratio from the K support shots by leave-one-out accuracy rather than prototype MSE or validation labels. This global scalar is computed over all support samples, with optional corrections and extensions to GDA.
- A Leave-One-Out Ratio: The implementation evaluates 101 candidate ratios in [0, 1] and precomputes shared score terms for an O(nC) update per grid point.The optimized implementation is reported as bit-identical to the naive implementation.
- A Leave-One-Out Ratio: The leave-one-out ratio selects the grid value maximizing accuracy across all CK support samples, using each sample’s class mean with that sample removed.The method requires K ≥ 2 and uses every shot for both fitting and validation.
- A Leave-One-Out Ratio: The MSE theory correctly predicts the ratio’s K-dependence, but the empirical correction is small, only +0.1 to +0.5 percentage points at low K.The paper therefore treats the plain LOO ratio as the primary estimator.
- A Leave-One-Out Ratio: At small C and K, LOO is noisiest; for example, EuroSAT at K=2 has twenty votes, yet the ratio never underperforms the zero-shot fallback.The support-only selection uses one scalar from a 101-value grid, limiting its overfitting pressure relative to CK leave-one-out votes.
- A Leave-One-Out Ratio: Selecting one global ratio is preferred because per-class leave-one-out selection provides only K votes per class and is overwhelmed by selection noise.Per-class LOO underperformed the global ratio in the reported experiments; empirical-Bayes pooling is left for future work.
- Extensions and Oracles: The same leave-one-out rule supplies GDA’s blending weight without validation data, closing about half the validation-tuned gap at K ∈ {2, 4}.The shared covariance is held fixed while the own-class Gaussian mean is refitted for each held-out sample.
5 BENCHMARK PROTOCOL
The benchmark evaluates frozen vision-language backbones and validation-free classifiers across ten datasets, controlled support draws, prompt-prior tiers, and reproducible paired-cell comparisons. It separates validation-free methods from explicitly labelled oracle or test-tuned procedures and uses cluster-aware uncertainty estimates.
- Benchmark Composition: The benchmark covers ten classification datasets, using clip-benchmark splits and a deterministic 68/32 per-class pool/test split for ImageNet and SUN397.All ten datasets pass a ViT-B/16 prompt-ensemble zero-shot sanity gate before feature caches are trusted.
- Support Sampling: Each dataset, backbone, shot-count, and seed cell draws K shots per class from five support-set seeds, and every method receives the identical support set.Population statistics for the MSE oracle come from pool data excluding the support set; test data is reserved for final evaluation and labelled oracles.
- Models and Prompts: Five frozen backbones are tested, including four OpenAI CLIP variants and SigLIP ViT-B/16, with features ℓ2-normalised once and cached.SigLIP tests whether the diagnosis depends on CLIP’s pre-training objective.
- Classifiers and Tuning: Fifteen classifiers are evaluated on the dataset-specific prompt tier, including eleven validation-free methods and four procedures using extra labelled data.The latter include MSE and accuracy oracles, test-tuned Tip-Adapter parameters, and validation-tuned GDA.
- Statistics: Accuracy differences are paired within cells and aggregated with a dataset-level cluster bootstrap over 10,000 resamples.Student-t intervals with 9 degrees of freedom replace percentile intervals because the effective sample size is ten datasets; no multiplicity correction is applied.
- Verification and Reproducibility: The pipeline releases cached features and complete per-cell records covering 4,800 cells, while sanity checks verify published zero-shot behavior and flag precision-sensitive HOSO results.Eight dataset×backbone shards were computed in both float64 and float32; HOSO changes by up to 3.1 percentage points.
6 RESULTS
The James–Stein ratio accurately estimates prototype MSE but performs poorly for classification, while leave-one-out nearly matches the oracle and probes exceed the blending family across the benchmark.
- 6.1 The Theoretically Optimal Ratio Fails: −8.51 points: the James–Stein blend trails the test-set-oracle ratio across 950 cells, despite estimating its own MSE target with MAE 0.007.Its pooled advantage over zero-shot is −0.12 points, with performance changing from −10.7 points at K=2 to +6.6 points at K=16.
- 6.1 The Theoretically Optimal Ratio Fails: 78.3% of squared text–image prototype distance is class-independent, so James–Stein shrinkage discards a largely decision-irrelevant text-image offset.The centred variant lowers the mean ratio to 0.83 but worsens accuracy by −3.9 points, showing that identifying the offset does not determine its proper discount.
- 6.2 The Ratio Is Estimable for Free: The leave-one-out ratio lands within −0.82 points of the test-set oracle overall and within −0.63 points at K≥4, with ρ = 0.79 and MAE 0.12.It shifts appropriately when prompt quality changes, without being told which prior was used.
- 6.3 The Family Is Capacity-Limited: +1.92 points: CLAP exceeds the test-set-oracle blend, while LP++ exceeds it by +1.46 points on average.At K ≥4, all four validation-free baselines have positive point estimates against the oracle; three intervals exclude zero.
- 6.9 Robustness Checks: The three backbone-level findings persist across all five backbones: James–Stein is 5.8–11.2 points below the oracle, LOO is within 1.2 points, and CLAP remains above it.The class-independent-share prediction fails across encoders: SigLIP has the largest share but the smallest deficit.
- 6.8 Two Protocol Objections, Measured: At K=1, CLAP improves over zero-shot by 4.2 points while NCM loses 24.0 points, and several blending estimators are undefined.The probes’ advantage reflects their ability to constrain text-anchored decision boundaries rather than rely on a single image prototype.
- 6.9 Robustness Checks: Feature extraction dominates runtime, leaving no efficiency argument for blending over probes on cached features.For an ImageNet cell, fitting takes 0.4 seconds for GDA, 15 seconds for LP++, 39 seconds for CLAP, and 193 seconds for HOSO.
- 6.1 The Theoretically Optimal Ratio Fails: 26% of the James–Stein deficit is recovered by subtracting the estimated class-independent offset in a counterfactual.The oracle-to-James–Stein deficit improves from −9.67 to −7.17 points, recovering +2.50 points.
7 DISCUSSION
The paper argues that prototype blending has a narrow empirical scope and ceiling: global-ratio blends cannot exceed their test-set oracle, while validation-free probes surpass that bound. It recommends honest oracle comparisons, validation-free alternatives, and cautious interpretation of benchmark limitations.
- Scope of the Claim: The bound applies to one global interpolation coefficient between two modality prototype sets under cosine similarity, excluding per-class coefficients, temperature blends, and strictly sample-level cache models.The authors state that the bound is empirical and does not claim linear probes are optimal.
- Practical Recommendations: The recommended protocol is to use leave-one-out for a required blend, train CLAP or LP++ without validation data for K ≥2, and avoid blending at K=1.The paper expects blends to lose two to three points against a probe.
- Limitations: The study does not establish comparable absolute levels across CoOp and clip-benchmark splits, full-grid augmentation results, a certified per-class oracle optimum, or generality beyond cached global features.Additional boundaries include fixed CLAP anchor scale, contamination not being corrected, and omitted or truncated datasets.
8 CONCLUSION
Across 4,800 paired comparisons, the paper finds that the MSE-derived James–Stein ratio optimizes prototype error rather than classification, while leave-one-out estimates the accuracy-preferred ratio without validation data. Even the oracle-tuned blend is beaten by validation-free linear probes, shifting attention from ratio tuning to model-class adequacy.
- 8 CONCLUSION: Across 4,800 paired comparisons, the bias–variance argument produces a positive-part James–Stein rule that optimizes prototype error rather than classification.The paper reports that 78% of the corrected bias is decision-irrelevant.
- 8 CONCLUSION: 78% of the bias corrected by the James–Stein rule is decision-irrelevant to classification.
- 8 CONCLUSION: Leave-one-out estimates the accuracy-preferred ratio from the support set alone, within one point of a test-set oracle.
- 8 CONCLUSION: Even the oracle-tuned blend is beaten by validation-free linear probes, indicating that the bottleneck is the model family rather than ratio selection.
S1 OVERVIEW AND NOTATION
This overview formalizes prototype blending as shrinkage toward a text prototype and derives its MSE-optimal coefficient. The support-set plug-in is a clipped positive-part rule that provably improves prototype MSE under stated dimensional and shot-count conditions.
- S1 OVERVIEW AND NOTATION: The MSE objective is strictly convex, with λ* = g2/(g2 + v) and minimum value g2v/(g2 + v).
- S1 OVERVIEW AND NOTATION: The support-set plug-in estimates g2 and v unbiasedly, yielding ˆλ = (1 − ˆv/ˆd2)+ after clipping to [0, 1].
- S1 OVERVIEW AND NOTATION: The proof works in coordinates relative to the text prototype, with X = ˆµ − t and θ = µ* − t.
- S1 OVERVIEW AND NOTATION: The resulting estimator is a positive-part James–Stein rule that strictly improves the image prototype’s expected squared error under the stated conditions.The proof uses the positive-part correction to replace negative coefficients by zero.
S3 PROOFS FOR SECTION 3.3 OF THE MAIN TEXT
The proof characterizes the sampling behavior of the plug-in ratio under Gaussian image features and arbitrary covariance. It relies on independence of sample mean and covariance, then uses variance calculations and the delta method to recover the stated approximations.
- S3 PROOFS FOR SECTION 3.3 OF THE MAIN TEXT: Under Gaussian sampling, ˆd2 follows a scaled non-central χ2 distribution, while the independent scatter term follows a scaled central χ2 distribution.
- S3 PROOFS FOR SECTION 3.3 OF THE MAIN TEXT: The sample mean and sample covariance remain independent for arbitrary covariance Σ*, enabling separate variance calculations for ˆd2 and ˆv.
- S3 PROOFS FOR SECTION 3.3 OF THE MAIN TEXT: The variance of ˆd2 combines a term from b⊤Σ*b with a Gaussian quadratic-form term involving tr(Σ*2).
- S3 PROOFS FOR SECTION 3.3 OF THE MAIN TEXT: The variance of ˆv is 2 tr(Σ*2)/(K2(K −1)), obtained from a Wishart representation of the within-class scatter.
- S3 PROOFS FOR SECTION 3.3 OF THE MAIN TEXT: Applying the delta method around (Eˆv, Eˆd2) = (v, g2 + v) recovers Eq. (10), while arbitrary covariance yields Eq. (11).Under isotropy, the effective dimension reduces to deff = d.
S4 PROOF FOR SECTION 3.4 OF THE MAIN TEXT
The theorem shows that common prototype shifts can be harmless for inner-product decisions and matter for nearest-prototype decisions only through their projection onto pairwise difference directions. The subsequent analysis accounts for image-prototype estimation noise in the deflection objective and obtains a clipped closed-form solution.
- Common shifts leave inner-product predictions identical because every pairwise score difference is unchanged.
- Nearest-prototype risk depends on a common shift only through its projection onto W, the span of pairwise prototype differences.
- Under isotropy relative to W, the expected squared shift component along any pairwise difference is ∥∆∥2∥wcc′∥2/d.
- With estimated image prototypes, the deflection denominator incorporates estimation noise to O(v/d).
- For β = η = 0, stationarity reduces to a linear-quadratic equation whose unique root is clipped to [0, 1].
S5 PROOF FOR SECTION 3.5 OF THE MAIN TEXT
The capacity analysis characterizes the best classifier available along the blending path and compares it with the optimum over the span of the text and prototype-difference directions. It identifies when the path can attain the unrestricted Mahalanobis optimum and shows that isotropic covariance favors the unblended endpoint.
- For two Gaussian classes, optimal-threshold error is Φ(−m(w)/2), so minimizing error amounts to maximizing the squared margin m(w)2.
- On w(s) = u + 2sδ, the unique stationary point is s⋆ = (a1q12−a2q11)/(2(a2q12−a1q22)), with the maximum on [0, 1] at s⋆ or an endpoint.
- The blending path’s best margin cannot exceed the optimum within span{u, δ}, which cannot exceed the unrestricted Mahalanobis margin u⊤Σ−1u.
- Equality with the unrestricted optimum holds exactly when Σ−1u lies in span{u, δ}.
- When Σ = σ2I, the stationary solution is s⋆ = 0, so the unblended direction maximizes the margin along the path.
S6 VALIDATION AND VERIFICATION PROTOCOLS
The validation suite checks the paper’s statistical estimators, capacity formulas, decision-risk expressions, and sampling predictions on synthetic and real-feature settings. These checks report close agreement with numerical optimization or Monte Carlo measurements across the tested configurations.
- 80 synthetic configurations and 3,000 replicates validate estimator unbiasedness, while the analytic λ∗ matches numerical minimization to 10−6.
- On real features, the per-class ˆλ tracks the pool-estimated λ∗ within 8% in Monte Carlo SD, with the worst discrepancy attributed to a second-order remainder.
- V1, error formula and threshold inequality: In V1, measured optimal-threshold error matches Φ(−m/2) to < 3×10−3, while the blend midpoint threshold never beats the optimal threshold.
- V2, closed form s⋆: In V2, the closed form matches a 2×104-point grid within 10−6 in margin2, and under Σ = I, |s⋆| < 10−10 in all trials.
- V4, dominance: Across eight configurations, the measured MSE gain of p(ˆλ) over ˆµ is positive within three standard errors whenever (K −1)(d −4) ≥2.
- The general sampling formula reproduces the isotropic (A1) formula to relative error < 10−10.
S7 PER-STRATUM CAPACITY AND SAMPLING MEASUREMENTS
The per-stratum analysis measures blending-path capacity, sampling variability, and probe surplus across dataset–backbone strata, then checks the central contrasts on modern and text-free encoders. It finds that the blending family remains below stronger probe references while its leave-one-out ratio tracks the oracle.
- The pooled within-class covariance and sampling quantities are estimated from mean-centred pool residuals, with closed-form separations converted to error by Φ(−m/2).
- The modern-encoder arm runs the full ten-dataset grid with five seeds and 240 cells per arm after the thin-pool drop rule.
- Modern encoder arm: On SigLIP2-B/16, the James–Stein blend trails the test-set-oracle ratio at every shot count, whereas LOO tracks it and CLAP clears the oracle.
- Modern encoder arm: LP++ reaches +1.50 at K≥4 on SigLIP2-B/16, below the published five-backbone K≥4 figure of +2.78.
- Text-free reference points: On text-free DINOv3 and DINOv2, no text prototype exists, so blending is undefined; logistic probes provide reference points instead.
- Across 50 strata, Table S1 reports path-to-full margin ratios, blend-path headroom to unrestricted Mahalanobis directions, CLAP surplus over the oracle blend, effective dimension, and measured-versus-predicted sampling SD.