Manuscript Offprint
arXiv:2610.34901LE-GDA: Layer Ensemble Gaussian Discriminant Analysis for Training-Free Few-Shot CLIP Adaptation
Abstract
https://github.com/pavodi-NM/le-gda.
Training-free few-shot adaptation of vision–language models typically constructs a classifier from CLIP’s final projected image representation, leaving intermediate representations unused. Combining them is not straightforward. Class scores from different representations differ in spread by orders of magnitude for the same query. Direct averaging allocates influence by numerical scale rather than predictive information. We propose Layer-Ensemble Gaussian Discriminant Analysis (LE-GDA), a method that fits regularized shared-covariance discriminants independently to intermediate and final representations extracted in one frozen encoder pass. LE-GDA standardizes each discriminant’s class scores per query, selects a small representation multiset on labeled validation data, and combines it with the zero-shot classifier without gradient-based optimization. Across 11 datasets, four CLIP backbones, five shot counts, and three independently sampled K-shot training sets, LE-GDA achieves the highest mean accuracy of all evaluated methods on every backbone, raising the 16-shot mean from 78.01% to 79.54% over a matched GDA-CLIP (final-feature) baseline and improving that baseline for every backbone–shot combination. At one shot, LE-GDA retains a 1.20-point mean gain over the baseline even though covariance estimation is unavailable and per-query standardization is neutral. A control with richer per-class structure inside a single representation does not reproduce the gain, indicating that the benefit comes from combining representations. These results show that intermediate CLIP representations carry information beyond the final embedding and can improve training-free few-shot adaptation. Code and evaluation resources are available at
1. Introduction
Vision-language models such as Contrastive Language-Image Pre-training (CLIP) [27] learn image representations that transfer effectively to downstream recognition tasks. In zero-shot classification, predictions are obtained through the cosine similarity between the encoded image features and text embeddings generated from class-specific prompt templates. For example, a template like “a photo of {class}” allows the language encoder to construct the necessary classifier weights. This enables the model to categorize images across arbitrary domains without downstream fine-tuning. To further improve performance, a small few-shot training set can introduce task-specific information through prompt learning, feature adapters, residual classifiers, or non-parametric retrieval as adopted by recent efficient fine-tuning methods [10, 34, 35, 37]. Although these approaches can be parameter-efficient, methods that optimize task-specific parameters still require a training procedure for every downstream dataset. Training-free adaptation [1, 7, 18, 31, 32, 38] instead constructs the classifier directly from frozen CLIP features.
In this work, we study training-free adaptation in the validation-assisted regime. This is the convention adopted by cache-based CLIP adapters [7, 32, 35, 38], where classifiers are fit on the few support examples per class. A held-out labeled split selects the fusion and regularization hyperparameters these methods require. Within this regime, a gain is only interpretable if every method draws on the same validation budget [29].
Gaussian discriminant analysis provides a strong training-free classifier for CLIP [32]. It estimates class statistics from the few-shot training features and combines the resulting linear discriminant with the zero-shot classifier. Like cache-and adapter-based methods more generally [10, 32, 35], it operates on the final projected image embedding. This representation is the natural default because it is aligned with the text encoder and is often the most accurate individual representation. It is nevertheless only the last output of a sequence of transformations performed by the visual encoder.
Combining intermediate representations requires more than naive classifier averaging. Each representation defines a different statistical feature space, with its own dimensionality, covariance structure, and per-query dispersion of scaled discriminant-scores. The last is the spread of a representation's class scores within a single query and varies by more than three orders of magnitude across the intermediate representations of a single backbone (e.g. ResNets). Under direct score averaging, influence is therefore allocated by numerical scale rather than predictive information. Normalizing scores before combination is long-established practice when fusing classifiers whose outputs live on different scales [17, 19]. Training-free CLIP adapters have not required it, since they operate in a single feature space. A selection procedure operating on such scores inherits the same bias, preferring representations for their scale rather than their contribution to classification.
Building on [32], which we refer to as GDA-CLIP, we propose Layer-Ensemble Gaussian Discriminant Analysis (LE-GDA) to combine these representations. The method extracts intermediate and final representations from a single frozen CLIP forward pass and fits the same shared-covariance Gaussian discriminant to each representation. It standardizes the class scores of each representation within each query, then greedily selects [4] a small subset of representations using validation accuracy and combines their scores with the zero-shot classifier. All classifiers are obtained from few-shot training statistics, without back-propagation.
Our contributions are as follows:
• We show that CLIP’s intermediate representations carry information a training-free ensemble can extract without gradient-based optimization. The same shared-covariance discriminant is fitted independently in each frozen feature space.
• We identify per-query score standardization as the component that makes discriminants from different feature spaces commensurate under a single fusion coefficient. Validation selection therefore tracks predictive quality rather than scale.
• We evaluate the method across 11 datasets, four CLIP backbones, and five shot counts against a matched GDA-CLIP (final-feature) baseline. Controls isolate the source of the gain. At one shot, where neither covariance estimation nor standardized fusion applies, LE-GDA retains a 1.20-point mean gain.
Training-free approaches instead construct predictors directly from frozen features. CLAP [29] distinguishes validation-dependent from validation-free adaptation and shows that access to labeled validation data is an important part of the evaluation protocol. LP++ [16] similarly reduces task-specific validation by deriving its optimization step sizes from the training objective. Tip-Adapter [35] stores few-shot training examples in a key-value cache, while Proto-Adapter [18] uses a single average prototype per class instead. GPCache [7] applies Gaussian-process weight and confidence calibration to cache retrieval. These methods differ in how few-shot training information is represented, but generally operate on the final CLIP image embedding. Separately, APE [38] selects informative channels within the final feature representation. We study whether frozen intermediate representations can contribute to training-free adaptation.
Gaussian discriminant analysis and covariance estimation. Gaussian discriminant analysis models class-conditional features with Gaussian distributions and yields a linear classifier when the covariance is shared across classes [2]. GDA-CLIP [32] applies this classifier to the final CLIP image embedding. Estimating a precision matrix from high-dimensional few-shot features is ill-conditioned, motivating covariance shrinkage and regularization [21, 22]. GDA-CLIP uses an empirical-Bayes ridge estimator. We retain the shared-covariance classifier, use a validation-selected trace-scaled ridge coefficient, and fit the classifier independently in several feature spaces.
Intermediate representations. Intermediate neural representations have long been used to improve dense prediction and optimization. Examples include hypercolumn features [12] and deep supervision [23]. Recent work exploits CLIP's intermediate layers for few-shot classification. It does so through trained side adapters and learned multiscale fusion [28, 36]. These approaches introduce gradient-optimized modules on top of the retained features. We in-stead fit the same closed-form discriminant independently in each frozen feature space. To our knowledge, training-free few-shot adaptation of CLIP has so far operated exclusively on the final projected embedding.
3. Layer-ensemble Gaussian discriminant analysis
3.1. Problem formulation and feature spaces
For a task with classes and labeled training examples per class, let denote the -shot training set and . The frozen CLIP text encoder produces normalized text embeddings , where is the dimension of CLIP's shared image-text embedding space. Given an image , which we refer to as a query at inference time, a single pass through the frozen CLIP image encoder yields the normalized final embedding and zero-shot logits
We retain intermediate representations from that same pass. For vision transformer (ViT) [8] backbones, the candidate set contains the normalized class token (CLS) after transformer blocks 4, 6, 8, 10, and 11. It also includes the feature after the final layer normalization and before projection, together with the final projected embedding. For ResNet [14] backbones, we apply global average pooling after each of the four residual stages and include the final projected embedding. We index the candidate feature spaces by and denote the normalized feature in space by .
3.2. Gaussian discriminant in each feature space
LE-GDA builds on the classifier of GDA-CLIP [32]. That method estimates class means and a shared covariance from the few-shot training set. It converts these statistics into a linear discriminant on the final CLIP image embedding, then combines the resulting scores with the zero-shot classifier. We retain both the shared-covariance discriminant and the zero-shot fusion. Our change is to fit that discriminant independently to each candidate representation, before feature-space selection and score fusion.
For each space , we assume class-conditional Gaussian features with a covariance matrix shared across classes,
Here, is the class label, indexes a class, denotes a multivariate Gaussian distribution, is the mean of class in feature space , and is the covariance matrix shared by all classes in that space. The prior assigns equal probability to every class. Under this model, Bayes' rule gives a linear discriminant after removing terms that are constant across classes [2]. We estimate the normalized class mean as
where contains the labeled training images from class , denotes one such image. Thus, is the unit-normalized average feature for class in space .
Here, is the pooled within-class covariance estimate centered on the normalized class mean, following [32]; is the regularized covariance estimate used by the classifier. The factor is the average marginal variance, and controls the strength of the ridge regularization. The class score is
Here, is the discriminant score assigned to class for image in space , and is the corresponding precision matrix. We collect the class scores into . The equal class prior contributes the same constant to every score and is therefore omitted. The ridge coefficient is selected independently for each space on validation data. Specifically, for we choose from the ridge grid to maximize the standalone top-1 accuracy on , before zero-shot fusion and representation selection. When , every within-class residual is zero, so no covariance can be estimated. We set , reducing Equation (6) to a nearest-class-mean classifier. After fitting, Equation (6) is stored as a linear head, so the covariance matrix is needed only during fitting and is not retained at inference.
3.3. Per-query score standardization
Different feature spaces produce discriminant vectors with different query-dependent offsets and scales. Before fusion, we standardize the scores of each space across the C classes for every query:
Here, is the standardized score for class , is the mean score across classes for the query image, and regularizes the variance; we use . We write for the standardized score vector. The transformation preserves the class ordering within each space and is exactly invariant to additive shifts . When , it is also exactly invariant to positive scalar rescaling of . The fixed implies a standard-deviation floor in score units, so scale invariance holds above this floor.
3.4. Feature-space selection and fusion
Let V denote the labeled validation set and A the set of candidate values for the fusion coefficient. We select at most T = 4 feature spaces by greedy forward selection with replacement on V. At each step, every candidate is appended to the current multiset and scored with the best value in A; the candidate with the highest validation accuracy is retained. Among the four prefixes we keep the most accurate on V, giving the selected multiset . Repetition provides a discrete weighting within a mixture, without introducing feature-specific continuous coefficients. It also reduces overfitting of the selection procedure itself [4]. This is ensemble selection with the candidate set formed by varying the representation rather than the learning algorithm.
The final logits are
Here, is the final logit vector, is the zero-shot logit vector from Eq. (1), is the number of elements in the selected multiset including repetitions, and is the validation-selected coefficient controlling the contribution of the visual discriminants.
For the non-standardized baseline, we use , where ; the supplementary material gives the full definition in Eq. (S2).
By contrast, Eq. (8) with is invariant to positive rescaling of above the standard-deviation floor in Eq. (7), since greedy selection and the search operate on standardized scores alone. The method estimates class means and shared covariances from the K-shot training set. It selects only , , and on validation data. No parameter is updated by gradient descent.
Relative to the baseline GDA-CLIP [32], LE-GDA therefore introduces three changes. These are multiple representations, per-representation ridge selection, and standardized fusion of a selected ensemble. Section 4 describes the matched baseline that isolates them. To use one covariance convention throughout, both procedures in Algorithm 1 define with the 1/N normalization in Eq. (4). At , the ridge precision satisfies
(9)
whose left-hand side is the published GDA-CLIP precision. The prefactor is absorbed by , so Algorithm 1 writes the right-hand side without it.
4. Experimental setup
Datasets. We use the 11 datasets commonly adopted for few-shot CLIP classification: Caltech101 [9], DTD [5], EuroSAT [15], FGVC-Aircraft [24], Flowers102 [25], Food101 [3], ImageNet [6], OxfordPets [26], StanfordCars [20], SUN397 [33], and UCF101 [30]. Ten datasets use the standard test splits from the CoOp [37] evaluation protocol.
ImageNet protocol. The CoOp protocol provides no held-out test split for ImageNet. The official validation set is conventionally used for evaluation instead. LE-GDA selects its ridge coefficients, feature-space multiset, and fusion coefficient on validation data. Evaluating on the full validation set would therefore place model-selection images inside the evaluation set. We instead split the official validation images within each class into 10 for model selection and 40 for evaluation. The split is class-balanced. Every method in Table 1 uses that partition, the same sampled K-shot training sets, and the same cached features. Our ImageNet accuracies are therefore computed on a class-balanced 40,000-image subset. They are not directly comparable with published results over all 50,000 validation images.
Backbones and few-shot training sets. We evaluate CLIP with ResNets [14] RN50 and RN101 and vision transformer [8] ViT-B/32 and ViT-B/16 as visual encoder backbones. For each K, we sample three K-shot training sets using three random seeds and average the resulting runs. The complete evaluation uses labeled images per class. The main tables use K = 16, while the shot-count evaluation compares LE-GDA with its matched GDA-CLIP (final-feature) baseline at every K.
Validation protocol. Our primary evaluation is validation-assisted. Labeled validation images are available for hyperparameter and representation selection. Classifiers are fit only
In the reference implementation of GDA-CLIP [32], the ImageNet branch assigns the validation features to the test features, so the fusion coefficient is selected on the same 50,000 images used for evaluation. The other ten datasets use a disjoint validation split.
Algorithm 1 GDA-CLIP [32] and LE-GDA in the common ridge parameterization of Eq. (9). GDA-CLIP uses the final embedding; LE-GDA standardizes and validation-selects an ensemble from one encoder pass.
(a) GDA-CLIP
Require: K-shot training set S, validation set V, query x, text classifier W, fusion grid A 1: Extract final normalized features from the frozen image encoder 2: for do 3: 4: end for 5: Estimate with the 1/N normalization in Eq. (4) 6: if K = 1 then 7: 8: else 9: 10: end if 11: for do 12: 13: end for 14: 15: 16: return
(b) LE-GDA
Require: K-shot training set S, validation set V, query x, text classifier W, candidate spaces L, ridge grid , fusion grid A 1: Extract and normalize from one frozen image-encoder pass 2: for all do 3: for do 4: 5: end for 6: if K = 1 then 7: 8: else 9: Estimate 10: Select by standalone 11: 12: end if 13: for do 14: 15: end for 16: 17: end for 18: with replacement 19: 20: return
on the K training examples per class. This is the validation-dependent regime in the terminology of CLAP [29]. For the ten non-ImageNet datasets we use the fixed validation partition from the CoOp splits [37]. During feature extraction this partition is class-balanced and capped at images per class. Classes with fewer examples retain all of them. ImageNet uses the 10 images per class defined above. Validation images are disjoint from both the few-shot sampling pool and the test set. The validation set is also unchanged across shot counts, so K = 1 draws on the same validation data as K = 16. Every method that requires model selection uses these images, with its own hyperparameter grid.
Baselines. We report zero-shot CLIP, Tip-Adapter [35], GPCache (W+C) [7], Tip-Adapter-F, Proto-Adapter-F [18], and our matched implementation of GDA-CLIP [32], denoted GDA-CLIP (final-feature). Our GPCache implementation includes weight and confidence calibration. It omits similarity calibration, which trains a projection layer on external unlabeled images. That module falls outside our protocol, which uses no data beyond the K-shot training set and the validation split. Its accuracy is therefore not comparable with the published GPCache figures. The supplementary material reports an external consistency check against published GPCache in Tab. S14, including an RN50 comparison with ImageNet excluded. We exclude CLAP [29] and LP++ [16], whose validation-free protocol would be changed by supplying labeled validation data. The trained cache baselines use 20 optimization epochs. Our GDA-CLIP (final-feature) baseline follows the original classifier [32], selecting the trace-scaled ridge and fusion coefficients on the same validation grids as LE-GDA. By Eq. (9), this ridge family contains the published empirical-Bayes estimator at up to grid resolution. Every baseline is reimplemented with the same K-shot training sets, validation splits, cached features, text classifier, and evaluation splits as LE-GDA. Table 1 therefore reports matched implementations rather than published numbers.
Hyperparameters. For every feature space, is selected from 12 logarithmically spaced values in . The coefficient that combines the visual discriminants with the zero-shot classifier is selected from 40 logarithmically spaced values in . Greedy selection uses replacement [4], a maximum of four selections, and retains the best validation prefix. The final method uses the per-query standardization in Eq. (7), and no additional scale parameter is fitted for an individual feature space.
Evaluation. Unless stated otherwise, all reported results average three independently sampled K-shot training sets. We also report paired median differences over 11 datasets, four backbones, and three random seeds, together with the number of dataset–backbone settings improved after averaging the runs. All reported hypothesis tests are two-sided; sign tests use exact binomial probabilities after omitting ties. Reported p-values are unadjusted and descriptive.
Table 1. Mean top-1 accuracy (%) over 11 datasets at . "Grad." indicates gradient-based adaptation. "Impl." indicates whether the row was produced by the authors' released code (orig.) or by our implementation (ours), in both cases under our protocol (Sec. 4). Bold denotes the best result in each accuracy column.
| Method | Grad. | Impl. | RN50 | RN101 | ViT-B/32 | ViT-B/16 | Mean |
|---|---|---|---|---|---|---|---|
| Zero-shot CLIP | - | - | 58.81 | 59.59 | 62.11 | 65.43 | 61.49 |
| Tip-Adapter | - | orig. | 70.20±.13 | 72.06±.12 | 72.88±.16 | 76.88±.02 | 73.01 |
| Proto-Adapter | - | ours | 72.48±.19 | 73.64±.14 | 74.52±.03 | 78.34±.06 | 74.74 |
| GPCache (W+C) | - | ours | 72.81±.05 | 75.26±.21 | 75.61±.10 | 79.42±.14 | 75.78 |
| Tip-Adapter-F | ✓ | orig. | 75.50±.14 | 77.49±.04 | 77.61±.03 | 81.16±.08 | 77.94 |
| Proto-Adapter-F | ✓ | ours | 75.39±.10 | 76.67±.09 | 76.76±.02 | 80.39±.06 | 77.30 |
| GDA-CLIP (final-feature) | - | ours | 75.56±.12 | 77.41±.18 | 77.69±.09 | 81.40±.06 | 78.01 |
| LE-GDA (ours) | - | ours | 77.47±.09 | 79.68±.25 | 78.69±.02 | 82.31±.04 | 79.54 |
5. Results
5.1. Comparison at 16 shots
Table 1 reports the mean accuracy over all 11 datasets for each backbone. LE-GDA obtains the highest mean for every backbone. Relative to the matched GDA-CLIP (final-feature) baseline, the per-backbone gains range from 0.91 to 2.27 points (Tab. 3, ). Averaged over the four backbones, LE-GDA reaches , compared with for GDA-CLIP (final-feature) and for the strongest trained cache baseline. The training-free GDA-CLIP head and the trained Tip-Adapter-F are therefore at parity, differing by 0.07 points on the mean. LE-GDA exceeds both without gradient-based optimization. After averaging the three runs, LE-GDA improves the matched baseline in 36 of the 44 dataset-backbone settings. Across the complete design of 11 datasets, four backbones, and three random seeds, the median paired improvement is 0.829 points. Figure 1a shows the corresponding curves for ViT-B/16 across all shot counts.
Relative to the published GDA-CLIP averages, our matched GDA-CLIP (final-feature) baseline is 0.37–0.65 points lower on every backbone, consistent with our ImageNet partition (Sec. 4). LE-GDA nevertheless exceeds those published averages on all four backbones, by 0.46–1.62 points.
The improvement is broad but varies by dataset. Table 2 averages each dataset over the four backbones. LE-GDA improves nine of the 11 dataset averages, with the largest gains on EuroSAT and FGVC-Aircraft and the two negative differences smaller than 0.2 points. In a dataset-dropping sensitivity analysis, the mean improvement remains between 1.19 and 1.69 points after removing any one dataset, the smallest value occurring when EuroSAT is omitted. The complete matched-comparison grid is reported in Tab. S1; per-method results for each dataset are in Tables S2–S12.
5.2. Performance across shot counts
Table 3 reports the difference between LE-GDA and the matched GDA-CLIP (final-feature) baseline. Every backbone–shot combination is positive. The mean improve- ment over backbones is 1.20, 1.03, 1.00, 1.26, and 1.52 points for , respectively. The method therefore improves accuracy across the full evaluated shot range. Figure 1b plots these differences. The gap is positive at every , and on both ResNet backbones it is largest at .
At one shot, every within-class residual is zero, so and each visual classifier is a nearest-class-mean classifier. Standardization is also neutral relative to uniform fusion at this shot count (median -0.003 points, Sec. 5.3), yet LE-GDA gains 1.20 points and is positive on all four backbones. Together with the matched search control in Sec. 5.4, this isolates a layer benefit independent of covariance estimation, standardized fusion, and a larger final-feature search.
5.3. Score standardization and representation selection
We compare two fusion rules under otherwise identical conditions. The candidate representations, ridge and fusion grids, -shot training sets, and greedy selection procedure are held fixed. Each rule performs its own validation selection. The baseline uniformly averages the globally scaled discriminant scores defined in Sec. 3.4. LE-GDA applies the per-query standardization of Eq. (7) before averaging.
At , per-query standardization improves uniform averaging by a median 0.373 accuracy points. The comparison covers dataset-backbone-run settings, of which 98 are positive, 31 negative, and three tied (exact two-sided sign-test ). We also evaluated three alternative fusion rules: within-query score ranks, the median across standardized spaces, and the mean of softmax probabilities. All three fall below uniform averaging (Tab. S17). The same median is -0.003 at and +0.081 at . This component therefore becomes more useful as grows.
Let denote the validation-set dispersion of these globally scaled scores under uniform averaging. This quantity determines the representation's numerical contribution to the uniform mean. The standard deviation of is 0.80, 1.15, 2.35, and 2.16 for ViT-B/16, ViT-B/32, RN50, and RN101. The first three ResNet stages can therefore contribute on the order of of the final embedding's score variation. Per-query standardization sets this dispersion to one for every non-degenerate score vector. The two rules then select differently. Under uniform averaging, selection frequency does not track standalone accuracy on either ViT backbone. After per-query standardization, it tracks standalone accuracy on all four backbones. The supplementary material reports the per-backbone selection behavior and two controlled comparisons that separate score dispersion from standalone accuracy (Sec. F and Tab. S18). The standardized rule also selects larger multisets: the modal size is , while the median number of distinct spaces is three. Repetitions therefore reweight mixtures rather than
Table 2. Top-1 accuracy (%) at , averaged over four backbones. Upper block: matched implementations under our protocol (Sec. 4). Lower block: published GDA-CLIP figures [32], included as an external consistency check rather than a matched comparison. The LE-GDA row repeats the numbers above. Bold denotes the best result per dataset within each block. Means are over 11 datasets in the upper block and, marked , over 10 in the lower block, where ImageNet is excluded because our evaluation uses a disjoint 40,000-image partition; the two are therefore not directly comparable.
| Method | Caltech | DTD | EuroSAT | Aircraft | Food | ImageNet | Flowers | Pets | Cars | SUN | UCF | Mean |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GDA-CLIP (final-feature) | 93.76 | 69.03 | 84.91 | 42.21 | 82.51 | 66.47 | 96.08 | 91.33 | 78.97 | 72.94 | 79.95 | 78.01 |
| LE-GDA (ours) | 94.89 | 69.71 | 89.77 | 46.90 | 82.48 | 66.63 | 97.28 | 91.17 | 79.97 | 73.84 | 82.28 | 79.54 |
| (LE-GDA) | +1.13 | +0.68 | +4.86 | +4.69 | -0.03 | +0.16 | +1.20 | -0.16 | +1.00 | +0.90 | +2.33 | +1.52 |
| GDA-CLIP (published) | 94.10 | 68.51 | 87.23 | 43.82 | 82.58 | - | 96.49 | 91.30 | 78.82 | 73.06 | 80.28 | |
| LE-GDA (ours) | 94.89 | 69.71 | 89.77 | 46.90 | 82.48 | - | 97.28 | 91.17 | 79.97 | 73.84 | 82.28 | |
| (LE-GDA) | +0.79 | +1.20 | +2.54 | +3.08 | -0.10 | - | +0.79 | -0.13 | +1.15 | +0.78 | +2.00 |
Table 3. LE-GDA improvement over the matched GDA-CLIP (final-feature) baseline (accuracy points), averaged over 11 datasets.
| Backbone | |||||
|---|---|---|---|---|---|
| RN50 | +1.24 | +1.40 | +1.28 | +1.57 | +1.91 |
| RN101 | +1.37 | +1.19 | +1.51 | +1.70 | +2.27 |
| ViT-B/32 | +0.80 | +0.80 | +0.44 | +0.84 | +1.00 |
| ViT-B/16 | +1.40 | +0.73 | +0.75 | +0.93 | +0.91 |
| Mean | +1.20 | +1.03 | +1.00 | +1.26 | +1.52 |
add distinct classifiers.
This ablation characterizes search behavior. It does not explain LE-GDA's gain over GDA-CLIP (final-feature). Section 6 gives the scope of the effect.
5.4. A larger search over one representation
Table 4 separates the effect of representation diversity from that of a larger validation search. The matched search control repeats the same greedy selection and fusion procedure over ridge-regularized versions of the final embedding, one per candidate space available to LE-GDA on that backbone (seven for ViTs, five for ResNets), with ridge coefficients spaced geometrically over . Each control member therefore has a prescribed ridge coefficient rather than a validation-selected one, so the control is not an exact nesting of GDA-CLIP (final-feature). It instead tests whether several ridge variants of one representation produce a systematic gain. The median difference from GDA-CLIP (final-feature) is zero, whereas LE-GDA improves the same baseline by 0.829 points. The supplementary material examines error overlap among the selected feature spaces in Tab. S15.
Three results constrain the source of the gain. The gain requires multiple representations. It survives at one shot, where neither covariance estimation nor standardized fusion applies. It does not follow from a larger search over one representation. The selected spaces also recover errors that the final embedding makes, although which property of the intermediate features produces the gain remains open.
Table 4. Median paired accuracy differences from GDA-CLIP (final-feature) at , over 11 datasets, four backbones, and three seeds.
| Comparison | Median |
|---|---|
| Matched search control vs. GDA-CLIP (final-feature) | +0.000 |
| LE-GDA vs. GDA-CLIP (final-feature) | +0.829 |
5.5. Richer per-class structure within one representation
We test whether a single class mean limits LE-GDA. We replace it with a shared-covariance Gaussian mixture [13] using components per class. The setting is over 10 datasets (ImageNet excluded), four backbones, and three runs. At the estimator is identical to LE-GDA. Increasing the number of fixed components does not help. Relative to , mean accuracy falls monotonically by 0.10, 0.38, 1.10, and 2.10 points at . Selecting on validation, independently per feature space, recovers only +0.020 points. This is not because the search stays at . It selects in 44% of individual space selections and in 87% of the 120 dataset–backbone–run settings. The mixture degrees of freedom are therefore available, and validation cannot convert them into accuracy. The gain comes from combining representations rather than from richer per-class structure within one. The ablation protocol and results are provided in Sec. D and Tab. S16.
5.6. Transfer of the selected configuration
We next ask whether LE-GDA's selected configuration transfers across datasets. We use a leave-one-dataset-out protocol at . For each held-out dataset, the representation multiset, ridge coefficients, and fusion coefficient are derived from the other ten datasets and their three runs. They are then applied unchanged. This changes the deployment regime rather than the label access of the primary comparison.
Across all 44 dataset–backbone settings at , the
ViT-B/16 - Average over 11 datasets

(a) Mean top-1 accuracy across the 11 datasets, ViT-B/16.
Accuracy difference from GDA-CLIP across shot budgets

(b) LE-GDA improvement for each CLIP backbone.
Figure 1. Few-shot performance as the number of labeled examples per class is varied. Results are averaged over 11 datasets in both panels. The GDA-CLIP label in the panels denotes the matched GDA-CLIP (final-feature) implementation described in Sec. 4. LE-GDA improves this baseline for every backbone and evaluated shot count (b).
paired difference is points with 28 wins. The sign-test gives and the Wilcoxon test , both two-sided. Neither test provides strong evidence of a difference. The advantage is also concentrated on EuroSAT. Averaging over backbones within each dataset and excluding it, LE-GDA leads by 0.09 points over the remaining ten datasets.
Full validation access improves LE-GDA by points. The fusion coefficient contributes 1.046 points, the representation multiset 0.941, and the ridge coefficient 0.283. The transferred lies on a shallow validation plateau. It nonetheless accounts for of the difference. A flat validation curve therefore does not establish that a hyperparameter transfers without loss. The supplementary material gives the intermediate configurations, per-component decomposition, and results in Tabs. S19, S21 and S22.
Table 5. Decomposition of the 2.270-point difference between fully validation-selected and fully transferred LE-GDA at . Differences are paired over 11 datasets and four backbones.
| Selected component | Mean Δ± sd | Share |
|---|---|---|
| Feature-space multiset | +0.941 ± 1.269 | 41% |
| Fusion coefficient α | +1.046 ± 1.487 | 46% |
| Ridge coefficient λ | +0.283 ± 0.875 | ~13% |
6. Limitations
Tip-Adapter and Tip-Adapter-F are run from the authors' released code with their own hyperparameter grids. Our GPCache and Proto-Adapter implementations use finite validation grids for their affinity scale and fusion coefficients. These comparisons therefore do not establish the best performance attainable by every cache formulation. ImageNet is evaluated on our disjoint 40,000-image partition (Sec. 4), where LE-GDA underperforms both gradient-trained cache adapters on every backbone. Averaged over backbones, it has the highest ImageNet accuracy among training-free methods.
The dispersion analysis characterizes which representations each fusion rule selects. It does not generally predict where standardization improves accuracy. Dispersion heterogeneity is associated with the accuracy gain on RN50 and RN101, but not on either ViT backbone. On ViT-B/16 the 16-shot accuracy difference is 0.05 points despite a large change in the selected representations. The selection analysis is moreover conducted only at .
The validation images are additional labeled data outside the -shot training set. Our primary results therefore characterize validation-assisted few-shot adaptation. When all selected quantities are transferred by leave-one-dataset-out, validation-free LE-GDA does not significantly improve the validation-free baseline.
LE-GDA has no trainable parameters and requires no backward pass. Fitting reduces to closed-form statistics and a validation search over three discrete choices. It stores three to five times more classifier values than GDA-CLIP (final-feature). That remains only 19–31% of a sparse 16-shot Tip-Adapter cache. The supplementary material reports the per-backbone accounting in Tab. S24. It also requires access to intermediate activations, so it cannot be applied when only the final embedding is exposed. Finally, we leave distribution shift and base-to-new generalization to future work.
7. Conclusion
We asked whether intermediate visual representations can improve training-free few-shot adaptation. LE-GDA fits regularized Gaussian discriminants to intermediate and final CLIP features. It standardizes their class scores per query, and fuses a validation-selected subset with the zero-shot classifier. It outperforms a matched GDA-CLIP (final-feature) baseline for every evaluated backbone and shot count, including at one shot, where neither covariance estimation nor standardized fusion explains the gain. Intermediate CLIP representations thus contain useful information left unused by final-feature methods. The results also identify layer choice, score normalization, and matched validation access as consequential design decisions.
References
[1] Yassir Bendou, Amine Ouasfi, Vincent Gripon, and Adnane Boukhayma. ProKeR: A kernel perspective on few-shot adaptation of large vision-language models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 25092–25102, 2025.
[2] Christopher M. Bishop. Pattern Recognition and Machine Learning. Springer, 2006.
[3] Lukas Bossard, Matthieu Guillaumin, and Luc Van Gool. Food-101 – mining discriminative components with random forests. In European Conference on Computer Vision, pages 446–461, 2014.
[4] Rich Caruana, Alexandru Niculescu-Mizil, Geoff Crew, and Alex Ksikes. Ensemble selection from libraries of models. In Proceedings of the Twenty-First International Conference on Machine Learning (ICML), page 18, 2004.
[5] Mircea Cimpoi, Subhransu Maji, Iasonas Kokkinos, Sammy Mohamed, and Andrea Vedaldi. Describing textures in the wild. In IEEE Conference on Computer Vision and Pattern Recognition, pages 3606–3613, 2014.
[6] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A large-scale hierarchical image database. In IEEE Conference on Computer Vision and Pattern Recognition, pages 248–255, 2009.
[7] Kun Ding, Qiang Yu, Haojian Zhang, Gaofeng Meng, and Shiming Xiang. Calibrated cache model for few-shot vision-language model adaptation. arXiv preprint arXiv:2410.08895, 2024.
[8] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth words: Transformers for image recognition at scale. In International Conference on Learning Representations (ICLR), 2021.
[9] Li Fei-Fei, Rob Fergus, and Pietro Perona. Learning generative visual models from few training examples: An incremental bayesian approach tested on 101 object categories. In IEEE Conference on Computer Vision and Pattern Recognition Workshop, 2004.
[10] Peng Gao, Shijie Geng, Renrui Zhang, Teli Ma, Rongyao Fang, Yongfeng Zhang, Hongsheng Li, and Yu Qiao. CLIP-Adapter: Better vision-language models with feature adapters. International Journal of Computer Vision, 132(2):581–595, 2024.
[11] Meng-Hao Guo, Yi Zhang, Tai-Jiang Mu, Sharon X. Huang, and Shi-Min Hu. Tuning vision-language models with multiple prototypes clustering. IEEE Transactions on Pattern Analysis and Machine Intelligence, 46(12):11186–11199, 2024.
[12] Bharath Hariharan, Pablo Arbeláez, Ross Girshick, and Jitendra Malik. Hypercolumns for object segmentation and fine-grained localization. In IEEE Conference on Computer Vision and Pattern Recognition, pages 447–456, 2015.
[13] Trevor Hastie and Robert Tibshirani. Discriminant analysis by Gaussian mixtures. Journal of the Royal Statistical Society: Series B, 58(1):155–176, 1996.
[14] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770–778, 2016.
[15] Patrick Helber, Benjamin Bischke, Andreas Dengel, and Damian Borth. EuroSAT: A novel dataset and deep learning benchmark for land use and land cover classification. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 12(7):2217–2226, 2019.
[16] Yunshi Huang, Fereshteh Shakeri, Jose Dolz, Malik Boudiaf, Houda Bahig, and Ismail Ben Ayed. LP++: A surprisingly strong linear probe for few-shot CLIP. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 23773–23782, 2024.
[17] Anil Jain, Karthik Nandakumar, and Arun Ross. Score normalization in multimodal biometric systems. Pattern Recognition, 38(12):2270–2285, 2005.
[18] Naoki Kato, Yoshiki Nota, and Yoshimitsu Aoki. Proto-Adapter: Efficient training-free CLIP-Adapter for few-shot image classification. Sensors, 24(11):3624, 2024.
[19] Josef Kittler, Mohamad Hatef, Robert P. W. Duin, and Jiri Matas. On combining classifiers. IEEE Transactions on Pattern Analysis and Machine Intelligence, 20(3):226–239, 1998.
[20] Jonathan Krause, Michael Stark, Jia Deng, and Li Fei-Fei. 3D object representations for fine-grained categorization. In IEEE International Conference on Computer Vision Workshops, pages 554–561, 2013.
[21] Tatsuya Kubokawa and Muni S. Srivastava. Estimation of the precision matrix of a singular Wishart distribution and its application in high-dimensional data. Journal of Multivariate Analysis, 99(9):1906–1928, 2008.
[22] Olivier Ledoit and Michael Wolf. A well-conditioned estimator for large-dimensional covariance matrices. Journal of Multivariate Analysis, 88(2):365–411, 2004.
[23] Chen-Yu Lee, Saining Xie, Patrick Gallagher, Zhengyou Zhang, and Zhuowen Tu. Deeply-supervised nets. In International Conference on Artificial Intelligence and Statistics, pages 562–570, 2015.
[24] Subhransu Maji, Esa Rahtu, Juho Kannala, Matthew Blaschko, and Andrea Vedaldi. Fine-grained visual classification of aircraft. arXiv preprint arXiv:1306.5151, 2013.
[25] Maria-Elena Nilsback and Andrew Zisserman. Automated flower classification over a large number of classes. In Indian Conference on Computer Vision, Graphics and Image Processing, pages 722–729, 2008.
[26] Omkar M. Parkhi, Andrea Vedaldi, Andrew Zisserman, and C. V. Jawahar. Cats and dogs. In IEEE Conference on Computer Vision and Pattern Recognition, pages 3498–3505, 2012.
[27] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. In International Conference on Machine Learning, pages 8748–8763, 2021.
[28] Jiaying Shi, Xuetong Xue, and Shenghui Xu. Learning to adapt category consistent meta-feature of CLIP for few-shot classification. arXiv preprint arXiv:2407.05647, 2024.
[29] Julio Silva-Rodríguez, Sina Hajimiri, Ismail Ben Ayed, and Jose Dolz. A closer look at the few-shot adaptation of large vision-language models. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 23681–23690, 2024.
[30] Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. UCF101: A dataset of 101 human actions classes from videos in the wild. arXiv preprint arXiv:1212.0402, 2012.
[31] Vishaal Udandarao, Ankush Gupta, and Samuel Albanie. SuS-X: Training-free name-only transfer of vision-language models. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 2725–2736, 2023.
[32] Zhengbo Wang, Jian Liang, Lijun Sheng, Ran He, Zilei Wang, and Tieniu Tan. A hard-to-beat baseline for training-free CLIP-based adaptation. In International Conference on Learning Representations, 2024.
[33] Jianxiong Xiao, James Hays, Krista A. Ehinger, Aude Oliva, and Antonio Torralba. SUN database: Large-scale scene recognition from abbey to zoo. In IEEE Conference on Computer Vision and Pattern Recognition, pages 3485–3492, 2010.
[34] Tao Yu, Zhihe Lu, Xin Jin, Zhibo Chen, and Xinchao Wang. Task residual for tuning vision-language models. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10899–10909, 2023.
[35] Renrui Zhang, Wei Zhang, Rongyao Fang, Peng Gao, Kunchang Li, Jifeng Dai, Yu Qiao, and Hongsheng Li. TipAdapter: Training-free adaption of CLIP for few-shot classification. In European Conference on Computer Vision, pages 493–510, 2022.
[36] Ruihao Zhang, Jinsong Geng, Cenyu Liu, Wei Zhang, Zunlei Feng, Liang Xue, and Yijun Bei. Multi-layer tuning CLIP for few-shot image classification. In Pattern Recognition and Computer Vision (PRCV 2024), pages 173–186. Springer Singapore, 2025.
[37] Kaiyang Zhou, Jingkang Yang, Chen Change Loy, and Ziwei Liu. Learning to prompt for vision-language models. International Journal of Computer Vision, 130(9):2337–2348, 2022.
[38] Xiangyang Zhu, Renrui Zhang, Bowei He, Aojun Zhou, Dong Wang, Bin Zhao, and Peng Gao. Not all features matter:
Enhancing few-shot CLIP with adaptive prior refinement. In IEEE/CVF International Conference on Computer Vision, pages 2605–2615, 2023.
Supplementary Material
A. Complete dataset–backbone results
All ImageNet accuracies follow the fixed, class-balanced validation/evaluation partition defined in the main paper.
Throughout this supplementary material, GDA-CLIP (final-feature) denotes our matched reimplementation evaluated under the same data splits, features, and model-selection protocol as LE-GDA. Published GDA-CLIP refers to the original method, estimator, or numerical results reported in [32].
Table S1 reports the complete comparison between LE-GDA and the matched GDA-CLIP (final-feature) baseline at K = 16. Each entry is averaged over the three independently sampled K-shot training sets used in the main paper.
Across the dataset–backbone comparisons in Tab. S1, LE-GDA improves GDA-CLIP (final-feature) in 36 cases. The largest gains occur on EuroSAT and FGVC-Aircraft, including gains of 6.20 and 7.83 points with RN101. The eight negative differences are small: the largest is 0.40 points. The complete grid therefore supports the main-paper finding that the improvement is broad across backbones and is not produced by a single dataset or architecture.
A.1. Per-method comparisons by dataset and backbone
The following tables retain the dataset axis that is averaged out in the main paper's aggregate backbone comparison. Every backbone entry is the mean top-1 accuracy (%) with its standard deviation over the three independently sampled K = 16 training sets; the final column averages the four backbone means. Bold denotes the best adaptation method in each backbone column, excluding zero-shot CLIP. The Grad. column marks the two methods that use gradient-based adaptation for 20 epochs. The Impl. column identifies results produced by the original authors' released code (orig.) or by our implementation (ours), always under our protocol. Tip-Adapter and Tip-Adapter-F use the original implementation; all other adaptation methods use ours. Tables S2–S12 report one dataset each, in the order used in the main paper's Table 2.
Table S1. Top-1 accuracy (%) for every dataset and CLIP backbone at , for LE-GDA and its matched baseline only. Results are averaged over three independently sampled -shot training sets. Tables S2–S12 give the same settings for all eight methods.
| Backbone | Method | Caltech | DTD | EuroSAT | Aircraft | Food | ImageNet | Flowers | Pets | Cars | SUN | UCF | Mean |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RN50 | GDA-CLIP (final-feature) | 91.93 | 67.18 | 83.49 | 39.06 | 79.02 | 62.37 | 95.44 | 89.53 | 74.83 | 70.45 | 77.86 | 75.56 |
| LE-GDA | 93.67 | 68.18 | 88.97 | 44.45 | 79.07 | 62.82 | 97.09 | 89.23 | 76.55 | 71.49 | 80.67 | 77.47 | |
| RN101 | GDA-CLIP (final-feature) | 93.74 | 68.64 | 83.02 | 40.23 | 82.10 | 65.41 | 95.57 | 91.24 | 80.52 | 72.10 | 78.94 | 77.41 |
| LE-GDA | 95.09 | 70.39 | 89.22 | 48.06 | 82.15 | 65.88 | 97.77 | 90.95 | 82.03 | 73.22 | 81.67 | 79.68 | |
| ViT-B/32 | GDA-CLIP (final-feature) | 94.27 | 67.79 | 85.62 | 40.64 | 81.76 | 66.67 | 95.95 | 90.82 | 77.51 | 73.46 | 80.14 | 77.69 |
| LE-GDA | 94.97 | 68.16 | 90.34 | 43.15 | 81.58 | 66.46 | 96.35 | 90.86 | 77.94 | 74.14 | 81.66 | 78.69 | |
| ViT-B/16 | GDA-CLIP (final-feature) | 95.10 | 72.52 | 87.53 | 48.91 | 87.16 | 71.44 | 97.36 | 93.73 | 83.01 | 75.77 | 82.84 | 81.40 |
| LE-GDA | 95.84 | 72.12 | 90.55 | 51.94 | 87.12 | 71.36 | 97.90 | 93.66 | 83.36 | 76.50 | 85.10 | 82.31 |
Table S2. Per-method top-1 accuracy (%) on Caltech101 at .
| Method | Grad. | Impl. | RN50 | RN101 | ViT-B/32 | ViT-B/16 | Mean |
|---|---|---|---|---|---|---|---|
| Zero-shot CLIP | – | — | |||||
| Tip-Adapter | – | orig. | |||||
| Proto-Adapter | – | ours | |||||
| GPCache (W+C) | – | ours | |||||
| Tip-Adapter-F | ✓ | orig. | |||||
| Proto-Adapter-F | ✓ | ours | |||||
| GDA-CLIP (final-feature) | – | ours | |||||
| LE-GDA (ours) | – | ours |
Table S3. Per-method top-1 accuracy (%) on DTD at .
| Method | Grad. | Impl. | RN50 | RN101 | ViT-B/32 | ViT-B/16 | Mean |
|---|---|---|---|---|---|---|---|
| Zero-shot CLIP | – | — | |||||
| Tip-Adapter | – | orig. | |||||
| Proto-Adapter | – | ours | |||||
| GPCache (W+C) | – | ours | |||||
| Tip-Adapter-F | ✓ | orig. | |||||
| Proto-Adapter-F | ✓ | ours | |||||
| GDA-CLIP (final-feature) | – | ours | |||||
| LE-GDA (ours) | – | ours |
Table S4. Per-method top-1 accuracy (%) on EuroSAT at .
| Method | Grad. | Impl. | RN50 | RN101 | ViT-B/32 | ViT-B/16 | Mean |
|---|---|---|---|---|---|---|---|
| Zero-shot CLIP | – | — | |||||
| Tip-Adapter | – | orig. | |||||
| Proto-Adapter | – | ours | |||||
| GPCache (W+C) | – | ours | |||||
| Tip-Adapter-F | ✓ | orig. | |||||
| Proto-Adapter-F | ✓ | ours | |||||
| GDA-CLIP (final-feature) | – | ours | |||||
| LE-GDA (ours) | – | ours |
Table S5. Per-method top-1 accuracy (%) on FGVC-Aircraft at .
| Method | Grad. | Impl. | RN50 | RN101 | ViT-B/32 | ViT-B/16 | Mean |
|---|---|---|---|---|---|---|---|
| Zero-shot CLIP | – | — | |||||
| Tip-Adapter | – | orig. | |||||
| Proto-Adapter | – | ours | |||||
| GPCache (W+C) | – | ours | |||||
| Tip-Adapter-F | ✓ | orig. | |||||
| Proto-Adapter-F | ✓ | ours | |||||
| GDA-CLIP (final-feature) | – | ours | |||||
| LE-GDA (ours) | – | ours |
Table S6. Per-method top-1 accuracy (%) on Food101 at .
| Method | Grad. | Impl. | RN50 | RN101 | ViT-B/32 | ViT-B/16 | Mean |
|---|---|---|---|---|---|---|---|
| Zero-shot CLIP | – | — | |||||
| Tip-Adapter | – | orig. | |||||
| Proto-Adapter | – | ours | |||||
| GPCache (W+C) | – | ours | |||||
| Tip-Adapter-F | ✓ | orig. | |||||
| Proto-Adapter-F | ✓ | ours | |||||
| GDA-CLIP (final-feature) | – | ours | |||||
| LE-GDA (ours) | – | ours |
Table S7. Per-method top-1 accuracy (%) on ImageNet at .
| Method | Grad. | Impl. | RN50 | RN101 | ViT-B/32 | ViT-B/16 | Mean |
|---|---|---|---|---|---|---|---|
| Zero-shot CLIP | – | — | |||||
| Tip-Adapter | – | orig. | |||||
| Proto-Adapter | – | ours | |||||
| GPCache (W+C) | – | ours | |||||
| Tip-Adapter-F | ✓ | orig. | |||||
| Proto-Adapter-F | ✓ | ours | |||||
| GDA-CLIP (final-feature) | – | ours | |||||
| LE-GDA (ours) | – | ours |
Table S8. Per-method top-1 accuracy (%) on Flowers102 at .
| Method | Grad. | Impl. | RN50 | RN101 | ViT-B/32 | ViT-B/16 | Mean |
|---|---|---|---|---|---|---|---|
| Zero-shot CLIP | – | — | |||||
| Tip-Adapter | – | orig. | |||||
| Proto-Adapter | – | ours | |||||
| GPCache (W+C) | – | ours | |||||
| Tip-Adapter-F | ✓ | orig. | |||||
| Proto-Adapter-F | ✓ | ours | |||||
| GDA-CLIP (final-feature) | – | ours | |||||
| LE-GDA (ours) | – | ours |
Table S9. Per-method top-1 accuracy (%) on OxfordPets at .
| Method | Grad. | Impl. | RN50 | RN101 | ViT-B/32 | ViT-B/16 | Mean |
|---|---|---|---|---|---|---|---|
| Zero-shot CLIP | – | — | |||||
| Tip-Adapter | – | orig. | |||||
| Proto-Adapter | – | ours | |||||
| GPCache (W+C) | – | ours | |||||
| Tip-Adapter-F | ✓ | orig. | |||||
| Proto-Adapter-F | ✓ | ours | |||||
| GDA-CLIP (final-feature) | – | ours | |||||
| LE-GDA (ours) | – | ours |
Table S10. Per-method top-1 accuracy (%) on StanfordCars at .
| Method | Grad. | Impl. | RN50 | RN101 | ViT-B/32 | ViT-B/16 | Mean |
|---|---|---|---|---|---|---|---|
| Zero-shot CLIP | – | — | |||||
| Tip-Adapter | – | orig. | |||||
| Proto-Adapter | – | ours | |||||
| GPCache (W+C) | – | ours | |||||
| Tip-Adapter-F | ✓ | orig. | |||||
| Proto-Adapter-F | ✓ | ours | |||||
| GDA-CLIP (final-feature) | – | ours | |||||
| LE-GDA (ours) | – | ours |
Table S11. Per-method top-1 accuracy (%) on SUN397 at .
| Method | Grad. | Impl. | RN50 | RN101 | ViT-B/32 | ViT-B/16 | Mean |
|---|---|---|---|---|---|---|---|
| Zero-shot CLIP | - | — | |||||
| Tip-Adapter | - | orig. | |||||
| Proto-Adapter | - | ours | |||||
| GPCache (W+C) | - | ours | |||||
| Tip-Adapter-F | ✓ | orig. | |||||
| Proto-Adapter-F | ✓ | ours | |||||
| GDA-CLIP (final-feature) | - | ours | |||||
| LE-GDA (ours) | - | ours |
Table S12. Per-method top-1 accuracy (%) on UCF101 at .
| Method | Grad. | Impl. | RN50 | RN101 | ViT-B/32 | ViT-B/16 | Mean |
|---|---|---|---|---|---|---|---|
| Zero-shot CLIP | - | — | |||||
| Tip-Adapter | - | orig. | |||||
| Proto-Adapter | - | ours | |||||
| GPCache (W+C) | - | ours | |||||
| Tip-Adapter-F | ✓ | orig. | |||||
| Proto-Adapter-F | ✓ | ours | |||||
| GDA-CLIP (final-feature) | - | ours | |||||
| LE-GDA (ours) | - | ours |
Table S13. Published results versus our matched reimplementations at , averaged over 11 datasets. Published GDA-CLIP, Tip-Adapter and Tip-Adapter-F values are from [32]; published Proto-Adapter values are from [18], which reports 11-dataset means for RN50 only. is matched minus published.
| Backbone | Method | Published | Matched | |
|---|---|---|---|---|
| RN50 | Zero-shot CLIP | 58.77 | 58.81 | +0.04 |
| Tip-Adapter | 70.32 | 70.20 | -0.12 | |
| Proto-Adapter | 72.69 | 72.48 | -0.21 | |
| Tip-Adapter-F | 75.83 | 75.50 | -0.33 | |
| Proto-Adapter-F | 75.59 | 75.39 | -0.20 | |
| GDA-CLIP | 76.05 | 75.56 | -0.49 | |
| RN101 | Zero-shot CLIP | 59.86 | 59.59 | -0.27 |
| Tip-Adapter | 71.96 | 72.06 | +0.10 | |
| GDA-CLIP | 78.06 | 77.41 | -0.65 | |
| ViT-B/32 | Zero-shot CLIP | 61.88 | 62.11 | +0.23 |
| Tip-Adapter | 72.37 | 72.88 | +0.51 | |
| GDA-CLIP | 78.06 | 77.69 | -0.37 | |
| ViT-B/16 | Zero-shot CLIP | 65.23 | 65.43 | +0.20 |
| Tip-Adapter | 76.81 | 76.88 | +0.07 | |
| GDA-CLIP | 81.85 | 81.40 | -0.45 |
Every deviation in Tab. S13 is at most 0.65 points. The Tip-Adapter and Tip-Adapter-F rows are produced by the authors’ released code. The Proto-Adapter rows are our implementation; their agreement with the published RN50 means supports the correctness of our reimplementation.
For RN50 in Tab. S14, excluding ImageNet from both means removes the split mismatch. Published GPCache then scores 78.00 and LE-GDA scores 78.94, a +0.94-point difference.
B. Error overlap among selected feature spaces
We compare the errors made by the classifiers selected by LE-GDA with those of GDA-CLIP (final-feature). For the distinct feature spaces in each selected multiset, we compute
This ratio equals one when the two classifiers’ errors are independent. We define as the fraction of test examples for which at least one selected classifier is correct while GDA-CLIP (final-feature) is wrong. The matched search control uses the same number of GDA-CLIP (final-feature) classifiers fitted with different ridge coefficients. Every classifier is evaluated at the ensemble’s selected zero-shot fusion coefficient.
Table S14. Published GPCache accuracy versus LE-GDA at , averaged over 11 datasets. Published values are from [7] and include similarity calibration, which uses external unlabeled images; our GPCache (W+C) baseline in the main paper's Table 1 does not. The two columns therefore use different protocols and evaluation splits, and this table is an external consistency check rather than a matched comparison. Our ImageNet accuracies use the disjoint 40,000-image partition of the main paper's Sec. 4 and enter the LE-GDA means.
| Backbone | GPCache (published) | LE-GDA |
|---|---|---|
| RN50 | 76.75 | 77.47 |
| RN101 | 78.58 | 79.68 |
| ViT-B/32 | 78.49 | 78.69 |
| ViT-B/16 | 82.01 | 82.31 |
Table S15. Statistics and at . is the median ratio of joint error probability to the product of the two marginal error probabilities, and is the fraction of test examples on which at least one ensemble classifier is correct while GDA-CLIP (final-feature) is wrong. Results are averaged over 11 datasets and three random seeds. “Selected” denotes the LE-GDA multiset, and “control” denotes the matched search control, an ensemble containing the same number of GDA-CLIP (final-feature) classifiers with different ridge coefficients.
| Backbone | Distinct spaces | ||||
|---|---|---|---|---|---|
| ViT-B/16 | 4.87 | 6.90 | 0.0525 | 0.0221 | 2.64 |
| ViT-B/32 | 4.09 | 6.61 | 0.0578 | 0.0242 | 2.67 |
| RN50 | 4.08 | 4.52 | 0.0764 | 0.0415 | 2.55 |
| RN101 | 4.80 | 5.56 | 0.0746 | 0.0327 | 2.52 |
Table S15 shows that, across the 44 dataset–backbone settings, is higher for the selected feature spaces than for the matched search control (41 of 44 positive, ). The selected feature spaces also have lower by a median 0.697, but this difference is strongest on the ViTs. Crucially, lower does not predict the LE-GDA improvement: the pooled Spearman correlation between and the gain is (), with backbone-specific correlations of 0.209, -0.073, 0.381, and 0.048 for ViT-B/16, ViT-B/32, RN50, and RN101. Thus the selected feature spaces make different errors from the matched search control, but the analysis does not establish error decorrelation as the mechanism behind LE-GDA's accuracy gain.
C. Numerical fidelity to the published GDA-CLIP estimator
As a numerical fidelity check on DTD with ViT-B/16 at , evaluating our trace-scaled ridge estimator at the coefficient corresponding to the published GDA-CLIP estimator produced discriminant scores that differed from its closed-form expression only by the positive factor 0.6818, with identical argmax predictions on every test image. This checks the estimator implementation used by GDA-CLIP (final-feature); it is not presented as a reproduction of the aggregate accuracies reported for published GDA-CLIP.
D. Gaussian-mixture ablation protocol
The Gaussian-mixture ablation represents each class by components in each feature space. Components are obtained by clustering the training features of each class into groups after transformation with the fitted Mahalanobis metric. The shared covariance is estimated once per feature space from class-mean residuals and is then held fixed for every value of ; the comparisons therefore do not refit the covariance as the component count changes. We evaluate fixed settings and separately select on validation from , independently for each feature space. The analysis covers 10 datasets, four backbones, three independently sampled -shot training sets, and ; ImageNet is excluded. At , the estimator is identical to LE-GDA.
Table S16. Gaussian-mixture ablation at over 10 datasets, four backbones, and three independently sampled -shot training sets; ImageNet is excluded. Mean accuracy is averaged over the 10 datasets and four backbones. The shared covariance is estimated once per feature space and held fixed across . Validation selection searches ; is evaluated only as a fixed setting. The estimator is identical to LE-GDA.
| Components | Mean accuracy | vs. |
|---|---|---|
| 80.85 | 0.000 | |
| 80.75 | ||
| 80.47 | ||
| 79.75 | ||
| 78.75 | ||
| Validation-selected | 80.87 |
Table S16 shows a monotonic accuracy decrease as the fixed number of mixture components increases: relative to , the loss reaches 2.10 points at . Validation selection recovers only 0.020 points over . These results support the main-paper conclusion that LE-GDA benefits from combining feature spaces rather than from adding within-class mixture components.
E. Score scaling in the non-standardized control
This section gives the full definition of the scale factor used by the non-standardized control in the main paper.
The control replaces the standardized score vector with . The implementation computes
The inner quantity is the median over validation images of the largest class score in space . Two safeguards are applied to it. The absolute value handles a negative median. Without it, dividing by would reverse the class ordering in that space. The constant handles a median close to zero. Without it, the scaled scores could be amplified without bound. Both are numerical guards. Neither changes the result when the median is positive and away from zero.
LE-GDA's standardized fusion does not depend on . Per-query standardization is invariant to positive rescaling of apart from its fixed standard-deviation floor . Both greedy selection and the search read only the standardized scores.
F. Representation selection under the two fusion rules
The representation-selection analysis uses all dataset–backbone–run settings at . Each backbone therefore contributes 33 dataset–run combinations. Selection counts include repeated selections in the multiset. A selection rate is such a count divided by 33. A rate can exceed 100% because greedy selection uses replacement. Under uniform averaging, the selection rates of the candidate spaces do not order with their standalone accuracy differences on either ViT backbone. Under per-query score standardization, they do so on all four backbones. The spaces dropped from the uniform rule's selections have lower dispersion than those retained (median rank difference , ).
F.1. Fusion rules and controlled selection comparisons
Table S17 reports seed-level paired counts for LE-GDA, the matched search control, and every evaluated fusion rule. Fusion rules are compared with uniform averaging of globally scaled discriminant scores. Table S18 gives the two controlled comparisons summarized in the main paper's score-standardization ablation.
Table S17. Paired comparisons at over 11 datasets, four backbones, and three random seeds. The first two rows use GDA-CLIP (final-feature) as the baseline; the remaining rows use uniform averaging of globally scaled scores. Zero differences are included in the medians.
| Comparison | Median | Positive | Negative | Tied |
|---|---|---|---|---|
| LE-GDA | +0.829 | 109 | 22 | 1 |
| Matched search control | +0.000 | 52 | 54 | 26 |
| Per-query score standardization | +0.373 | 98 | 31 | 3 |
| Within-query score ranks | -0.628 | 25 | 93 | 14 |
| Median across feature spaces | -0.122 | 13 | 77 | 42 |
| Mean softmax probabilities | -0.069 | 52 | 67 | 13 |
Table S17 shows that LE-GDA improves the matched baseline in 109 of 131 non-tied comparisons, whereas the matched search control is nearly balanced. Per-query score standardization is the only evaluated fusion alternative with a positive median difference from uniform averaging. Rank averaging, the median across standardized feature spaces, and mean softmax probabilities all reduce median accuracy. Thus the conclusions are not artifacts of averaging the random-seed runs, and scale invariance alone is not sufficient; the specific standardization rule matters.
Table S18. Controlled comparisons separating score dispersion from standalone accuracy at . Here is the median validation-set dispersion of the class scores within a query, and Standalone is the top-1 accuracy difference relative to matched GDA-CLIP (final-feature) [32]. Counts include repeated selections over 33 dataset–run combinations per backbone and may exceed 33 because greedy ensemble selection uses replacement.
| Comparison | Feature | Stand. | Unif. | Std. | |
|---|---|---|---|---|---|
| Dispersion matched | RN50 stage 1 | ||||
| RN50 stage 3 | |||||
| Accuracy matched | RN101 stage 3 | ||||
| RN101 final |
In the dispersion-matched RN50 comparison, stages 1 and 3 have nearly equal but differ by 7.53 accuracy points. Their selection counts under uniform averaging differ by only four (10 versus 14), whereas per-query score standardization selects stage 1 zero times and stage 3 44 times. In the accuracy-matched RN101 comparison, stage 3 is only 0.48 points better than the final embedding despite a score dispersion more than three orders of magnitude smaller; uniform averaging selects the two representations 24 and 32 times, whereas per-query score standardization selects them at nearly equal rates (46 and 47 times). Together, the two comparisons show that selection under uniform averaging cannot reliably separate predictive quality from residual score scale.
F.2. Per-dataset selection under per-query standardization
Figures S1–S4 break down the per-query standardization counts by dataset at . They also report the standalone top-1 accuracy of each space relative to the final embedding, as in Tab. S18. Rows are ordered by the LE-GDA gain in Tab. 2, averaged over the four backbones.
On both ResNets, selection follows standalone accuracy. Stage 1 is never selected. On EuroSAT and Caltech101, stages 3 and 4 both exceed the final embedding, and stage 3 is selected most often. On ImageNet, Food101, and Oxford-Pets, every ResNet intermediate space is less accurate than the final embedding. There, the final embedding is selected most often.
Selection on the ViT backbones is more diffuse. Block 11 and the pre-projection feature lie within 1.5 points of the final embedding on every dataset. Greedy selection therefore spreads its picks across several nearly equivalent spaces. On ViT-B/32, for example, the final embedding is never selected on DTD or ImageNet.
The standalone margins also relate to where LE-GDA improves accuracy. On the four datasets with the largest gains, at least one intermediate space exceeds the final embedding on every backbone. The clearest case is EuroSAT, where ResNet stage 3 exceeds the final embedding by more than five points. On OxfordPets and Food101, no intermediate space exceeds the final embedding by more than 0.1 points. These are the two datasets on which LE-GDA does not improve GDA-CLIP (final-feature). Across datasets, the gain correlates with the best intermediate margin averaged over backbones (Spearman , ). This association is descriptive and post hoc.
A competitive intermediate space is not required, however. On SUN397, every intermediate space is less accurate than the final embedding, yet LE-GDA improves accuracy by 0.90 points. On FGVC-Aircraft, the gain of 4.69 points exceeds every standalone margin, which is at most 1.7 points. These cases are consistent with the gain arising from combining representations.
RN50 (a) Greedy selection

(b) Standalone accuracy

Figure S1. Per-query standardized selection counts and standalone top-1 accuracy differences (points) relative to the final embedding for RN50 at K = 16. Panel (a) shows greedy selections; panel (b) shows standalone accuracy differences. Dataset rows are ordered by LE-GDA gain averaged over the four backbones. Counts are over three runs and include repeated selections; empty cells denote spaces never selected. Values in parentheses are the gains in Tab. 2. Colors in (b) are clipped at points; ref. marks the final embedding.
RN101 (a) Greedy selection

(b) Standalone accuracy

Figure S2. Per-query standardized selection counts and standalone top-1 accuracy differences (points) relative to the final embedding for RN101 at K = 16. Panel (a) shows greedy selections; panel (b) shows standalone accuracy differences. Dataset rows are ordered by LE-GDA gain averaged over the four backbones. Counts are over three runs and include repeated selections; empty cells denote spaces never selected. Values in parentheses are the gains in Tab. 2. Colors in (b) are clipped at points; ref. marks the final embedding.
ViT-B/16 (a) Greedy selection

(b) Standalone accuracy
Figure S3. Per-query standardized selection counts and standalone top-1 accuracy differences (points) relative to the final embedding for ViT-B/16 at K = 16. Panel (a) shows greedy selections; panel (b) shows standalone accuracy differences. Dataset rows are ordered by LE-GDA gain averaged over the four backbones. Counts are over three runs and include repeated selections; empty cells denote spaces never selected. Values in parentheses are the gains in Tab. 2. Colors in (b) are clipped at points; ref. marks the final embedding.
ViT-B/32 (a) Greedy selection

(b) Standalone accuracy
Figure S4. Per-query standardized selection counts and standalone top-1 accuracy differences (points) relative to the final embedding for ViT-B/32 at K = 16. Panel (a) shows greedy selections; panel (b) shows standalone accuracy differences. Dataset rows are ordered by LE-GDA gain averaged over the four backbones. Counts are over three runs and include repeated selections; empty cells denote spaces never selected. Values in parentheses are the gains in Tab. 2. Colors in (b) are clipped at points; ref. marks the final embedding.
G. Configuration transfer across datasets
This experiment measures whether LE-GDA's validation-selected configuration can be transferred to a new dataset at . For each backbone and held-out dataset, the representation multiset, ridge coefficients, and fusion coefficient are derived from the other ten datasets and their three random-seed runs, then applied unchanged. The validation-free GDA-CLIP (final-feature) baseline combines closed-form Ledoit–Wolf shrinkage with a transferred fusion coefficient, whereas validation-free LE-GDA transfers all three configuration choices. Additional configurations restore validation selection for individual components to quantify their contributions. Table S19 defines the six configurations. Configurations 3 and 1 form the primary validation-free comparison; Configurations 4 and 3 measure the total contribution of labeled validation access.
The configurations in Tab. S19 isolate the three quantities selected by LE-GDA. Configuration 3 is fully transferred and uses no held-out validation labels, while Configurations 2, 3a, and 4 restore validation selection for the ridge coefficient, fusion coefficient, or representation multiset. This makes each paired comparison attributable to a specific source of validation dependence.
G.1. Complete configuration results
Tables S20 and S21 report all six configurations at 16 and four shots. Accuracy standard deviations are computed across the 11 dataset means for each backbone and therefore describe between-dataset variation. Standard deviations of paired contrasts are instead computed over the 44 dataset–backbone differences.
Tables S20 and S21 show that the validation-free difference between Configurations 3 and 1 is modest on every backbone: at K = 16 it ranges from 0.09 to 1.19 points, and at K = 4 it ranges from -0.15 to 0.58 points. In contrast, the fully validation-selected Configuration 4 consistently outperforms the fully transferred Configuration 3, showing that target-dataset validation primarily improves configuration selection rather than the closed-form classifier itself.
Table S22 confirms this distinction. The primary validation-free comparison, Configuration 3 minus Configuration 1, is not significant at either shot count, whereas Configuration 4 minus Configuration 3 is positive in 41 of 44 settings at K = 16 and 40 of 43 at K = 4. At K = 16, averaging the four backbones within each dataset gives points, with 7/11 positive datasets (sign-test p = 0.549; Wilcoxon p = 0.520). The same comparison remains non-significant at K = 4. Thus the conclusion does not depend on treating the four backbones as independent repetitions.
G.2. Per-dataset results at 16 shots
Table S23 shows that the transfer result is dataset-dependent and consistent in sign across backbones. The four negative datasets have relatively strong zero-shot text classifiers; on these tasks, the transferred configuration assigns excessive weight to the visual classifier.
All four backbones have the same sign for every dataset: seven datasets are positive on all four backbones and four are negative on all four. EuroSAT accounts for 86% of the aggregate sum; after removing it, the mean over the remaining datasets is +0.09 points.
G.3. Validation-curve sensitivity of the fusion coefficient
Per-query score standardization substantially reduces the between-dataset dispersion of the selected fusion coefficient. Nevertheless, proximity to a validation optimum does not imply that the value transfers without test-set loss. Using the transferred accounts for 46% of the 2.270-point difference between Configurations 4 and 3 at K = 16 and 60% of the corresponding 2.850-point difference at K = 4. Validation-curve flatness is measured around each dataset's own selected multiset, whereas the transferred coefficient is applied together with a different multiset. Consequently, local flatness does not bound the loss from transferring the complete configuration.
G.4. Checks for validation leakage and model-selection nesting
The validation-free configurations were evaluated with validation tensors replaced by an object that raises an exception on every access. The following checks were performed before scoring:
• The implementation reproduced the reported per-query score-standardization results and selected configurations with maximum absolute difference zero.
• Rescaling every feature-space score vector by a different positive constant left Configuration 3 accuracy unchanged, confirming the expected invariance of per-query score standardization.
• Restricting Configuration 3 to the final representation and using Configuration 1's ridge and fusion coefficients reproduced Configuration 1 exactly.
• Every transferred multiset contained multiple feature spaces, and no selected fusion coefficient was at the boundary of the search grid.
G.5. Ablation with uniform averaging
As a counterfactual check, transferring the representation multiset does not produce a significant difference under uniform averaging at K = 16, whereas under LE-GDA's per-query standardization it costs 0.941 points (Tab. S22).
Table S19. Configurations used in the transfer experiment. “Transferred” denotes a leave-one-dataset-out value derived from the other ten datasets.
| Configuration | Representation multiset | Ridge coefficient | Fusion coefficient | Held-out validation used? |
|---|---|---|---|---|
| 0 | none (zero-shot CLIP) | none | none | no |
| 1 | final representation | closed-form Ledoit-Wolf | transferred | no |
| 2 | transferred | validation-selected | validation-selected | yes |
| 3 | transferred | transferred | transferred | no |
| 3a | transferred | transferred | validation-selected | yes |
| 4 | validation-selected | validation-selected | validation-selected | yes |
Table S20. Configuration-transfer results at . Entries for Configurations 0, 1, 2, 3, 3a, and 4 are mean accuracy sample standard deviation across the 11 datasets. The final columns are paired differences between the validation-free configurations and between fully validation-selected and fully transferred LE-GDA.
| Backbone | Config. 0 | Config. 1 | Config. 2 | Config. 3 | Config. 3a | Config. 4 | ||
|---|---|---|---|---|---|---|---|---|
| ViT-B/16 | ||||||||
| ViT-B/32 | ||||||||
| RN50 | ||||||||
| RN101 |
Table S21. Configuration-transfer results at , using the same notation and dispersion definitions as Tab. S20.
| Backbone | Config. 0 | Config. 1 | Config. 2 | Config. 3 | Config. 3a | Config. 4 | ||
|---|---|---|---|---|---|---|---|---|
| ViT-B/16 | ||||||||
| ViT-B/32 | ||||||||
| RN50 | ||||||||
| RN101 |
Table S22. Paired comparisons between transfer configurations. Differences are computed after averaging the three runs within each of the 44 dataset–backbone settings. Sign-test and Wilcoxon p-values are two-sided.
| K | Comparison | Mean sd | Median | Wins | Sign p | Wilcoxon p |
|---|---|---|---|---|---|---|
| 16 | 3 – 1 | 28/44 | ||||
| 16 | 4 – 2 | 36/44 | ||||
| 16 | 2 – 3a | 34/43 | ||||
| 16 | 3a – 3 | 30/42 | ||||
| 16 | 4 – 3 | 41/44 | ||||
| 4 | 3 – 1 | 28/44 | ||||
| 4 | 4 – 2 | 36/44 | ||||
| 4 | 2 – 3a | 22/44 | ||||
| 4 | 3a – 3 | 31/43 | ||||
| 4 | 4 – 3 | 40/43 |
Table S23. Per-dataset configuration-transfer differences at . The four backbone columns report . The final two columns are mean sample standard deviation across backbones.
| Dataset | RN101 | RN50 | ViT-B/16 | ViT-B/32 | Mean | Mean |
|---|---|---|---|---|---|---|
| EuroSAT | ||||||
| FGVC-Aircraft | ||||||
| UCF101 | ||||||
| DTD | ||||||
| Flowers102 | ||||||
| Caltech101 | ||||||
| SUN397 | ||||||
| Food101 | ||||||
| ImageNet | ||||||
| StanfordCars | ||||||
| OxfordPets |
H. Model storage
After fitting, the discriminant in feature space is stored as the linear head , where and , with . Let denote the distinct elements of the selected multiset . The inference-time storage is
where counts stored floating-point values. Each distinct space stores weights in and entries in ; repeated selections do not introduce additional heads.
LE-GDA introduces no trainable parameters and requires a single frozen CLIP forward pass. Although the selected multiset can contain four elements including repetitions, the median number of distinct feature spaces is three. Table S24 reports the resulting per-backbone storage.
Table S24. Median number of stored floating-point values per class at . Tip-Adapter uses sparse integer labels in this accounting.
| Backbone | GDA-CLIP (final-feature) | LE-GDA | Tip-Adapter |
|---|---|---|---|
| RN50 | |||
| RN101 | |||
| ViT-B/32 | |||
| ViT-B/16 |
Table S24 shows that LE-GDA stores 2,051–3,074 floating-point values per class, compared with 513–1,025 for GDA-CLIP (final-feature) and 8,208–16,400 for Tip-Adapter. LE-GDA therefore uses three to five times the storage of the final-feature discriminant but only 19–31% of the Tip-Adapter cache. The layer ensemble increases storage, but remains substantially smaller than an example-level cache.