betaFeedback

WorksComputer Science

RepICL: Reusable In-Context Prediction Across Heterogeneous Representation Spaces

Abstract

Frozen representations are widely reused for downstream classification, yet each new task typically requires fitting a new predictor. We ask whether the few-shot prediction procedure itself can instead be learned once and reused across datasets and representation spaces. To study this question, we introduce RepShiftBench, comprising 1,218 encoder–dataset tasks across text, image, and audio, with separate evaluation of generalization to unseen datasets, unseen encoders, jointly unseen datasets and encoders, and unseen modalities. The benchmark exposes a substantial gap: Logistic Regression fitted independently on each episode outperforms every evaluated in-context learner across all settings. We introduce RepICL, a meta-trained in-context learner that canonicalizes each episode through episodic whitening before prediction. Its inductive variant, RepICL-I, surpasses Logistic Regression in all 12 benchmark settings, while RepICL-T substantially outperforms existing transductive methods. Ablations identify episodic whitening as the primary source of these gains, while showing that it is not a universally beneficial preprocessing step. Across both variants, the gains concentrate on queries for which simple support prototypes favor the wrong class or provide little separation between the true class and competing classes. Transduction provides its largest additional gains when limited support coverage gives a misleading view of class separation. Together, these results demonstrate that a shared few-shot prediction procedure can generalize beyond the representation spaces observed during training.

Introduction

Pretrained encoders have made representation reuse a standard paradigm across modern machine learning ([17, 66, 59]). A frozen encoder can support many downstream datasets, with only a lightweight classifier fitted on top of its representations. This embed-then-fit paradigm is simple and remarkably effective: strong frozen representations often support competitive downstream performance even with basic classifiers ([14, 45, 78, 21]). Yet this reuse largely stops at the representation: the downstream prediction rule is still fitted separately for each dataset and refitted when the encoder changes ([45, 78]).

In-context and model-based meta-learning ([69, 36]) suggest a more ambitious possibility: rather than repeatedly fitting a task-specific classifier, can we learn the prediction procedure itself once and reuse it across tasks? Recent in-context learners instantiate this idea over vector representations and can transfer across datasets and tasks ([44, 22, 92]). However, existing evaluations either keep the encoder fixed or study cross-encoder and cross-modality transfer only in limited settings ([92]), leaving encoder identity largely unexplored as an independent axis of generalization. Varying the dataset changes the downstream prediction problem, whereas varying the encoder changes the representation space itself, as different encoders can induce spaces with different dimensionalities, scales, covariance structures, and geometries. This raises a distinct question: can a learned prediction procedure still transfer to an unseen representation space?

To study this question directly, we introduce RepShiftBench, a benchmark for few-shot classification across heterogeneous frozen representations. Each task is defined by an encoder–dataset pair, allowing the downstream dataset and representation space to vary independently, from which we sample few-shot episodes consisting of support and query examples. Across 59 datasets and 62 pretrained encoders spanning text, image, and audio, RepShiftBench comprises 1,218 tasks and evaluates generalization to unseen datasets, unseen encoders, jointly unseen datasets and encoders, and entirely unseen modalities. This systematic evaluation exposes a substantial gap between reusable prediction procedures and per-episode fitting: Logistic Regression fitted independently on each episode outperforms every evaluated in-context learner across all benchmark settings. The challenge is therefore not simply few-shot prediction, but learning a shared predictor that remains reliable as the representation space changes.

We address this gap with RepICL, a meta-trained in-context learner that canonicalizes each episode’s representations through episodic whitening—episode-wise PCA followed by standardization—before in-context prediction. We study an inductive variant, RepICL-I, which predicts each query from the labeled support set alone, and a transductive variant, RepICL-T, which additionally exploits the unlabeled query set. RepICL-I surpasses per-episode Logistic Regression in all 12 benchmark settings while consistently outperforming existing in-context learners, and RepICL-T achieves substantially larger gains over existing transductive methods. Together, these results demonstrate that a single learned prediction procedure can generalize beyond the representation spaces observed during training, including to entirely unseen modalities.

Our analyses further clarify what enables this transfer and where its gains arise. Ablations identify episodic whitening as the primary source of improvement, yet applying the same transformation to existing learners does not improve their performance, indicating that its benefit comes from meta-training the predictor on whitened episodes rather than from better preprocessing alone. Across both variants, the gains concentrate on queries for which simple support prototypes either favor the wrong class or provide little separation between the true class and competing classes. Among these difficult queries, transduction provides its largest additional gains when the few-shot support set is an unrepresentative sample of its classes, suggesting that unlabeled queries are especially useful when support coverage is limited.

Related Work

Few-shot prediction over pretrained representations. Few-shot classification has been studied through metric-based, optimization-based, and model-based approaches [86, 72, 24, 69, 36]. With strong pretrained representations, however, simple non-meta-learned rules can be highly competitive: nearest-centroid methods provide strong baselines [90], while linear classifiers fitted on frozen support representations can rival more elaborate meta-learning methods [78]. Transductive methods additionally exploit unlabeled queries at inference [51, 9, 41] (Ziko et al. 2020), while cross-domain few-shot learning studies transfer across data distributions [81, 49]. We instead ask whether a single reusable predictor can retain the strength of per-task fitting as the underlying representation space changes.

In-context prediction across representation spaces. Model-based meta-learners can learn reusable prediction procedures over labeled examples and queries without test-time parameter updates [25, 44, 22]. Prior-fitted networks and their tabular extensions similarly learn predictors from distributions of synthetic tasks [58, 33, 63]. Closest to our setting, TAIL targets heterogeneous feature spaces and demonstrates transfer to unseen modalities [92]. However, its cross-modal evaluation uses only one dataset–encoder pair for each unseen modality, and it does not systematically disentangle dataset and encoder novelty. Thus, while TAIL establishes the feasibility of transfer across feature spaces and modalities, it remains unclear how a shared predictor behaves across broad combinations of unseen datasets and pretrained encoders. RepShiftBench is designed to study this question systematically.

Methods also differ in how they reduce dependence on feature coordinates. GPICL meta-trains over randomly projected tasks [44], while TAIL maps encoder outputs through randomized projections into a common latent space [92]. More broadly, prior work on representation normalization and alignment has normalized episode statistics [10, 33], whitened using broader reference statistics [73], or aligned representations through shared anchors [55]. RepICL instead uses episode-wise PCA and standardization to canonicalize heterogeneous frozen representations for a shared prediction procedure.

Evaluating representation-space generalization. Few-shot benchmarks such as Meta-Dataset evaluate learners across diverse classes, datasets, and domains [86, 79, 82], while embedding benchmarks such as MTEB, MIEB, X-ARES, and MAEB evaluate pretrained representations across broad collections of downstream tasks [56, 95, 20] (Zhang et al. 2025a). The former primarily vary the downstream task while evaluating few-shot learners, while the latter primarily vary the encoder while evaluating representation quality. Neither is designed to jointly vary dataset and encoder while evaluating a single shared few-shot predictor. RepShiftBench fills this gap by treating the encoder–dataset pair as the unit of evaluation and separately evaluating dataset, encoder, joint, and modality generalization.

Few-Shot Prediction Setup

Few-shot episodes. In this paper, we consider standard NN-way KK-shot classification episodes [86, 72]. Each episode contains NN classes, with KK labeled support examples and QQ query examples per class. Let S={(zis,yis)}i=1NKS = \{(z_i^s, y_i^s)\}_{i=1}^{NK} and Q={(zjq,yjq)}j=1NQQ = \{(z_j^q, y_j^q)\}_{j=1}^{NQ} denote the support and query sets, respectively, where query labels are withheld from the predictor. Here, z∈Rdz \in\mathbb{R}^{d} denotes an input representation and y∈{1,…,N}y \in\{1,\ldots,N\} an episode-local class label, with labels remapped independently within each episode. The goal is to predict the labels of the query representations from the information available under the corresponding inference setting.

Inductive and transductive inference. Let fθf_\theta denote a few-shot prediction procedure parameterized by θ\theta. Under inductive inference, each query is predicted independently from the support set and its own representation, y^jq=fθ(S,zjq)\hat{y}_j^q = f_\theta(S,z_j^q), where y^jq\hat{y}_j^q is the predicted label for query jj. Under transductive inference [83, 51], the learner may additionally condition on the full unlabeled query set U={zjq}j=1NQ\mathcal{U} = \{z_j^q\}_{j=1}^{NQ} and jointly predict y^q=fθ(S,U)\hat{\mathbf{y}}^q = f_\theta(S,\mathcal{U}), where y^q\hat{\mathbf{y}}^q collects the predictions for all queries. Because transductive methods access query-set information unavailable to inductive methods, we evaluate the two inference settings separately.

RepShiftBench

The episode formulation in § 3 treats representations as given, without specifying how their representation space varies across tasks. To study whether a single prediction procedure can generalize when that space itself changes, RepShiftBench treats the pretrained encoder as an explicit task axis alongside the downstream dataset. Figure 1 summarizes the resulting benchmark construction and evaluation protocol.

Figure 1. RepShiftBench: encoder–dataset tasks, episodic evaluation, and adaptation settings.

Encoder–Dataset Task Formulation

Encoder–dataset tasks. Let D={(xi,yi)}i=1n\mathcal{D} = \{(x_i,y_i)\}_{i=1}^{n} denote a labeled dataset and EE a frozen pretrained encoder with embedding function ϕE:X→RdE\phi_E:\mathcal{X}\to\mathbb{R}^{d_E}. We define a task as a compatible encoder–dataset pair (E,D)(E,\mathcal{D}). For each episode sampled from this task, the representations in § 3 are obtained as z=ϕE(x)∈RdEz = \phi_E(x) \in\mathbb{R}^{d_E}. Thus, D\mathcal{D} determines the downstream examples and label space, whereas EE determines the representation space in which prediction is performed. Methods receive only these frozen representations and the support labels, rather than the raw inputs.

Generalization settings. Let Ttrain\mathcal{T}_{\mathrm{train}} denote the encoder–dataset tasks used for meta-training. We evaluate four forms of generalization according to which components of (E,D)(E, D) are unseen at test time: Dataset Adaptation, where DD is unseen but EE has appeared during meta-training; Encoder Adaptation, where EE is unseen but DD is seen; Joint Adaptation, where both EE and DD are unseen; and Modality Adaptation, where both are unseen and belong to a modality absent entirely from meta-training. Together, these settings disentangle changes in the downstream problem from changes in the representation space and extend the evaluation to unseen modalities.

Benchmark Construction

Datasets and encoders. RepShiftBench spans text, image, and audio, drawing classification datasets from MTEB for text (Muennighoff et al. [56]), MIEB for images (Xiao et al. [95]), and X-ARES and MAEB for audio (Zhang et al. (2025a); El Assadi et al. [20]). We retain datasets with at least five classes and pair each dataset with every compatible encoder of the same modality. The encoder pool spans diverse architectures, training objectives, model sizes, and embedding dimensions, providing broad variation in the representation spaces encountered by the predictor. In total, RepShiftBench contains 1,218 compatible encoder–dataset tasks formed from 59 datasets and 62 pretrained encoders. Complete dataset and encoder inventories and representation extraction details are provided in Appendices § 10.§ 1 and § 10.§ 2.

Folds and task splits. We construct three folds, each holding out one modality entirely from meta-training. Within the remaining two modalities, datasets and encoders are partitioned separately into seen and held-out sets. Pairs in which both are seen form the meta-training pool, while combinations involving held-out datasets or encoders instantiate the Dataset, Encoder, and Joint Adaptation settings defined above. The entirely held-out modality defines Modality Adaptation. Notably, held-out datasets span both unfamiliar domains and familiar task types, while held-out encoders are selected from more recently released models, testing generalization to new datasets and domains and transfer to newer encoders. Full task assignments and split details are provided in Appendices § 10.§ 3 and § 10.§ 4.

Evaluation Protocol

Episode sampling and scoring. Each encoder–dataset task is evaluated on the same 1,000 fixed, class-balanced 5-way 5-shot episodes for all methods, with 10 queries per class. For each evaluation task, supports and queries are drawn according to the source dataset’s predefined train–test split whenever available, with supports from the training split and queries from the test split. Episode construction and split-construction details are provided in Appendix § 10.§ 4. For each task, we average query accuracy across its 1,000 episodes. An adaptation-setting score is computed as the unweighted mean over its encoder–dataset tasks. When reporting an aggregate score for a modality-held-out fold, we average the four adaptation-setting scores equally, regardless of the number of tasks in each setting.

Reference methods. Per-episode methods such as Logistic Regression and ProtoHead are fitted or constructed using only the support set of the current episode and have no meta-training history. Accordingly, notions such as seen encoder or seen dataset describe the meta-training history learned predictors; for per-episode methods, the same adaptation labels simply identify the corresponding evaluation subsets. All methods are nevertheless evaluated on exactly the same tasks and episodes: per-episode methods quantify what can be achieved from the current support set alone, whereas meta-trained methods test whether knowledge learned across previous tasks and representation spaces provides an additional benefit.

RepICL

A shared predictor in RepShiftBench must operate across representations produced by different encoders, whose dimensionalities, scales, and covariance structures can vary substantially. RepICL addresses this heterogeneity by first canonicalizing each episode through episodic whitening and then applying a shared Transformer-based in-context predictor in the resulting space, without test-time parameter updates. We study two inference variants. RepICL-I is inductive: the labeled support set alone determines both the episode transformation and each query prediction. RepICL-T is transductive: it additionally uses the unlabeled query set when constructing the episode transformation and during in-context prediction. Figure 2 summarizes the overall procedure.

Figure 2. RepICL: episodic whitening enables shared in-context prediction across heterogeneous representation spaces. RepICL-I estimates whitening from the support set and uses inductive attention, where supports attend only to supports and each query attends to supports and itself. RepICL-T instead uses unlabeled queries for whitening and permits full-episode attention.

Episodic Whitening

Rather than learning an encoder-specific alignment, RepICL constructs an episode-local representation through episodic whitening. For an episode, let ZS={zis}i=1NK\mathcal{Z}_S = \{z_i^s\}_{i=1}^{N_K} and ZQ={zjq}j=1NQ\mathcal{Z}_Q = \{z_j^q\}_{j=1}^{N_Q} denote the support and query representations. We estimate the episode transformation from A=ZS\mathcal{A} = \mathcal{Z}_S for RepICL-I and A=ZS∪ZQ\mathcal{A} = \mathcal{Z}_S \cup\mathcal{Z}_Q for RepICL-T. We first perform PCA on A\mathcal{A} and then standardize the retained coordinates. Let μA\mu_{\mathcal{A}} be the mean of A\mathcal{A} and WA∈RdE×rA\mathbf{W}_{\mathcal{A}} \in\mathbb{R}^{d_E \times r_{\mathcal{A}}} the retained principal directions, and mAm_{\mathcal{A}} and vAv_{\mathcal{A}} the coordinate-wise mean and variance of the PCA projections of A\mathcal{A}. The episode-specific whitening transform is

WA(z)=WA⊤(z−μA)−mAvA+ϵ∈RrA,(1)\mathcal{W}_{\mathcal{A}}(z) = \frac{\mathbf{W}_{\mathcal{A}}^\top(z-\mu_{\mathcal{A}})-m_{\mathcal{A}}}{\sqrt{v_{\mathcal{A}}+\epsilon}} \in\mathbb{R}^{r_{\mathcal{A}}}, \tag*{(1)}

where division is elementwise and ϵ>0\epsilon> 0 is a small constant for numerical stability. We set rA=min⁡(dE,∣A∣−1,rmax⁡)r_{\mathcal{A}} = \min(d_E,|\mathcal{A}|-1,r_{\max}), with rmax⁡=24r_{\max}=24 for RepICL-I and 74 for RepICL-T, matching the maximum PCA ranks under the 5-way 5-shot meta-training episode configuration of RepShiftBench. We then apply WA\mathcal{W}_{\mathcal{A}} to all support and query representations, yielding the whitened representations uisu_i^s and ujqu_j^q for the shared predictor.

In-Context Prediction

Episode tokens. Each whitened representation is projected and concatenated with a label embedding to form a Transformer token:

tis=[Wθuis∥eyis],tjq=[Wθujq∥eq].(2)t_i^s = [\mathbf{W}_{\theta}u_i^s \Vert e_{y_i}^s], \qquad t_j^q = [\mathbf{W}_{\theta}u_j^q \Vert e_q]. \tag*{(2)}

Here, Wθ\mathbf{W}_{\theta} is a learned projection. Support labels use ELMES embeddings ([22]), while eqe_q is a single learnable embedding shared by all queries.

Contextualization. The episode tokens are processed by a shared Transformer FθF_\theta to obtain contextualized support and query representations {his}\{h_i^s\} and {hjq}\{h_j^q\}. For RepICL-I, support tokens attend only to support tokens, while each query attends to all supports and itself but not to other queries. For RepICL-T, all support and query tokens can attend to one another, allowing information to propagate across the entire episode.

Prototype-based classification. The contextualized support representations define an episode-specific classifier. For each class cc, let Ic={i:yis=c}\mathcal{I}_c = \{i : y_i^s = c\} denote its support indices. We form a class prototype by averaging the corresponding contextualized representations and classify each query by cosine similarity:

pc=1∣Ic∣∑i∈Ichis,ℓj,c=cos⁡(hjq,pc)τ,y^jq=arg⁡max⁡cℓj,c,(3)\mathbf{p}_c = \frac{1}{|\mathcal{I}_c|} \sum_{i \in\mathcal{I}_c} \mathbf{h}_i^s,\qquad\ell_{j,c} = \frac{\cos(\mathbf{h}_j^q,\mathbf{p}_c)}{\tau},\qquad\hat{y}_j^q = \arg\max_c \ell_{j,c}, \tag*{(3)}

where τ\tau is a fixed temperature and y^jq\hat{y}_j^q is the predicted label for query jj. As in Prototypical Networks (Snell et al. [72]) and FEAT (Ye et al. [100]), the classifier is constructed from the current support set rather than tied to fixed class identities.

Meta-Training Across Representation Spaces

We meta-train a single θ\theta across tasks on 5-way 5-shot episodes. We optimize it on episodes sampled from Ttrain\mathcal{T}_{\mathrm{train}}, which contains multiple encoder–dataset pairs, by minimizing query-set cross-entropy:

L(θ)=−1NQ∑j=1NQlog⁡exp⁡(ℓj,yjq)∑c=1Nexp⁡(ℓj,c).(4)\mathcal{L}(\theta) = -\frac{1}{NQ}\sum_{j=1}^{NQ}\log\frac{\exp(\ell_{j,y_j^q})}{\sum_{c=1}^{N}\exp(\ell_{j,c})}. \tag*{(4)}

During meta-training, tasks are sampled to prevent very large datasets from dominating optimization, while class labels are randomly permuted within each episode so that episode-local label embeddings cannot acquire fixed semantic meanings. By default, we initialize the Transformer and label embeddings from the released CAML checkpoint (Fifty et al. [22]), initialize the post-whitening projection from scratch, and replace CAML’s fixed output head with the episode-specific prototype classifier described above. We select the checkpoint with the highest accuracy on the validation tasks. Full optimization details are provided in Appendix § 11.

Experiments

Experimental Setup

We evaluate RepICL on RepShiftBench against three groups of baselines: (1) classical classifiers fitted on each episode’s support set, including Logistic Regression and an RBF-kernel SVM; (2) few-shot methods, including the inductive ProtoHead and SimpleShot (Wang et al. [90]), and the transductive LaplacianShot (Ziko et al. (2020)), α\alpha-TIM (Veilleux et al. [84]), and PT-MAP (Hu et al. [41]); and (3) in-context learners, including TAIL (Woerner et al. [92]), TabPFN (Hollmann et al. [34]), and TabICL (Qu et al. [63]). Methods trained on RepShiftBench use 5-way 5-shot episodes, and all methods are evaluated on the same fixed episodes. Hyperparameters and training details are provided in Appendix § 12.

Main Results

Results on RepShiftBench. Table 1 reports accuracy across three modality-held-out folds and four adaptation settings. We report inductive and transductive methods separately because only the latter access the unlabeled query set. The benchmark exposes a consistent gap between reusable predictors and per-episode fitting: Logistic Regression is the strongest inductive baseline in all 12 settings, while TabPFN and TabICL remain below it throughout. This does not imply universal dominance: conventional few-shot methods can outperform Logistic Regression on CNN representations, but this advantage does not persist across broader encoder families or other modalities (Appendix § 14.§ 1).

Adaptation Setting →Text-held-out foldAudio-held-out foldImage-held-out fold
Method ↓DEJMDEJMDEJM
Inductive
ProtoHead56.1172.5561.0564.4168.6471.7271.2848.4154.0865.8356.2280.88
SimpleShot56.1473.0661.6564.9068.9272.2272.0149.0454.2666.6457.0181.12
SVM (RBF kernel)55.5272.6862.3264.6267.0372.1371.8150.4955.0066.7057.8176.64
Logistic regression60.1975.3365.7469.6272.3776.0575.5654.4658.3571.5661.9082.38
TabPFN59.2673.3264.3663.3867.9672.4672.7152.5555.3067.3159.1980.65
TabICL59.0874.0463.9067.2970.6974.1773.6652.7256.8169.0259.9281.90
RepICL-I (Ours)61.41{sup}∗∗`75.85{sup}∗∗`66.2270.10{sup}∗∗∗`73.52{sup}∗∗`76.79{sup}∗∗`75.8655.14{sup}∗∗∗`59.19{sup}∗∗`72.82{sup}∗∗∗`62.56{sup}∗∗`83.26{sup}∗∗∗`
Transductive
LaplacianShot55.2172.7860.5564.4268.7771.3971.2247.5353.4865.7155.6181.15
α-TIM59.0474.3164.6266.3970.2773.7773.9952.6256.3168.8559.9082.24
PT-MAP56.8274.6063.0068.6572.0474.4774.8249.4655.7369.9259.2983.01
TAIL{sup}†`52.7971.9661.0562.2366.0671.1371.0745.6750.3364.9355.5579.31
RepICL-T (Ours)63.55{sup}∗∗`77.99{sup}∗∗∗`68.29{sup}∗∗∗`73.26{sup}∗∗∗`75.27{sup}∗∗`78.13{sup}∗∗∗`77.47{sup}∗∗`55.62{sup}∗∗∗`61.79{sup}∗∗`76.58{sup}∗∗∗`65.02{sup}∗∗∗`85.69{sup}∗∗∗`

Table 1. RepShiftBench 5-way 5-shot accuracy (%) under dataset (D), encoder (E), joint (J), and modality (M) adaptation across three modality-held-out folds. Bold marks the best result within each block. TAIL† denotes our reproduction of the released recipe with scale calibration (Appendix § 12.§ 4). Stars indicate a significant improvement over the strongest baseline within the same block and column (two-sided paired test clustered by dataset; ∗p<0.05p < 0.05, ∗∗p<0.01p < 0.01, ∗∗∗p<0.001p < 0.001).

Under inductive inference, RepICL-I surpasses Logistic Regression in all 12 settings by 0.30–1.26 points, with significant gains in 10 of them. Under transductive inference, RepICL-T leads in all 12 settings, exceeding the strongest transductive baseline by 2.65–6.66 points with significant gains throughout. Both variants have per-episode runtimes comparable to Logistic Regression (Appendix § 14.§ 3). As an additional comparison, RepICL-I is comparable to LoRA on a subset of RepShiftBench without test-time updates, while RepICL-T further improves with unlabeled queries (Appendix § 14.§ 2). Together, these results show that a shared prediction procedure can generalize across heterogeneous representation spaces and different shifts under both inference settings.

External validation under the TAIL protocol. To test whether these gains depend on the design of RepShiftBench, we additionally evaluate RepICL-T under TAIL’s original protocol of 11 visual datasets represented by CLIP features. We use the image-held-out checkpoint, meta-trained only on text and audio tasks, so all 11 visual datasets and the CLIP image encoder are unseen during meta-training. Despite this cross-modality transfer, RepICL-T achieves the highest mean accuracy, improving over our TAIL reproduction from 90.47% to 92.31%. Full per-dataset results and comparisons with CAML and GPICL are provided in Appendix § 13.§ 1, and TAIL reproduction details in Appendix § 12.§ 4.

Ablation Study

Table 2 ablates episodic whitening, model-structure choices, and meta-training diversity, with each variant retrained under the same budget across all three folds. Table 3 further tests whether episodic whitening benefits learners that were not trained on whitened episodes.

RepICL-IRepICL-T
DatasetEncoderJointModalityDatasetEncoderJointModality
Full model64.7175.1568.2169.5066.8777.5770.2671.52
Episodic whitening
w/o Coord. Standardize−7.06−4.77−4.81−6.84−11.41−9.37−9.78−10.24
w/o PCA, trainable proj.−6.38−9.90−9.42−9.52−7.55−11.61−10.80−11.22
w/o PCA, fixed proj.−6.37−9.51−9.46−9.13−8.02−11.98−11.03−11.24
Model structure
w/o CAML initialization−0.07−0.12+0.11−0.02+0.34+0.35+0.21+0.47
fixed five-class head−0.21−0.32+0.13−0.08+1.01+0.91+0.90+1.18
Meta-training diversity
one dataset per modality−0.44−0.47−0.12−0.42−1.91−1.97−1.76−1.69
one encoder per modality−0.87−0.70−0.30−0.49−2.40−2.35−2.00−1.52

Table 2. Ablation of RepICL components and meta-training diversity. The full model reports accuracy (%) averaged across the three folds. All ablations report the change in percentage points relative to the full model, with positive changes bolded. Full fold-level results and the meta-training diversity setup are provided in Appendix § 13.§ 2.

Logistic RegressionTabICLTabPFN
TextAudioImageTextAudioImageTextAudioImage
Raw representations67.4469.5968.3665.7067.8166.5964.6666.4265.37
+ Episodic whitening-0.32-0.34-0.22−1.05−1.42−1.11−5.91−6.27−6.22

Table 3. Accuracy (%) on raw representations and the change after applying episodic whitening, averaged across the four adaptation settings within each modality-held-out fold. Results use 30 episodes per task due to compute constraints, so raw accuracies differ slightly from Table 1.

Episodic whitening drives the gains. Removing either component of episodic whitening causes the largest drops in Table 2. The two components show distinct patterns across adaptation settings: removing coordinate-wise standardization is particularly harmful under dataset adaptation, whereas removing PCA is more damaging when the test encoder is unseen (encoder, joint, and modality adaptation). Replacing PCA with either a fixed or trainable projection produces similar degradation, suggesting that its benefit comes from the episode-dependent PCA transformation rather than merely matching dimensionality or adding projection capacity. In contrast, CAML initialization has negligible effect, while replacing the prototype-based classifier with a fixed five-class head is nearly neutral for RepICL-I and slightly improves RepICL-T. These results identify episodic whitening, rather than initialization or output-head design, as the primary source of RepICL’s gains.

Meta-training diversity primarily benefits transductive inference. Restricting meta-training to one dataset or one encoder per modality has only a modest effect on RepICL-I (0.1–0.9 points), but causes substantially larger drops for RepICL-T (1.5–2.4 points). Restricting encoder diversity is also generally more harmful than restricting dataset diversity, suggesting that exposure to varied representation spaces is particularly important for RepICL-T. Overall, RepICL-I is relatively insensitive to these restrictions, whereas RepICL-T benefits more from diversity across tasks and encoders.

Whitening is not a drop-in preprocessing step. To test whether episodic whitening simply produces better inputs, we apply the same transformation to learners not trained on whitened episodes. Logistic Regression is nearly unchanged (0.2–0.3 point drops), whereas TabICL loses up to 1.4 points and TabPFN more than 6 points. Thus, whitening does not universally improve representations themselves. The benefit instead comes from training the shared predictor on whitened episodes.

Analyses

We use support-prototype geometry to answer two questions raised by the main results: where does inductive RepICL improve over per-episode Logistic Regression, and among these difficult cases, when does transductive inference provide additional benefit?

Where does RepICL-I improve over Logistic Regression? For each query, we form class prototypes from the 5-shot support set in the unit-normalized representation space. Let DownD_{\mathrm{own}} denote the squared distance to the prototype of the ground-truth class and DotherD_{\mathrm{other}} the distance to the nearest competing prototype. We define the prototype margin

m=Dother−DownDother+Down.(5)m = \frac{D_{\mathrm{other}} - D_{\mathrm{own}}}{D_{\mathrm{other}} + D_{\mathrm{own}}}. \tag*{(5)}

A positive margin indicates that the ground-truth prototype is nearest, whereas m<0m < 0 indicates that a competing prototype is closer; we group m≤0m \le0 as queries not correctly resolved by the support prototypes.

Table 4 reveals a sharp difference between these regimes. For queries with m≤0m \le0, RepICL-I improves over Logistic Regression by 2.89 points and outperforms it across all negative-margin bins. In contrast, Logistic Regression is slightly stronger when m>0m > 0, with its advantage becoming more consistent as the margin increases. The same pattern is amplified by RepICL-T. Thus, across both variants, the gains concentrate on queries for which simple support prototypes either favor the wrong class or provide little separation between the true class and competing classes.

Margin mmQueries (%)Logistic regressionTabICLTAILPT-MAPRepICL-IRepICL-T
m≤0m \le036.324.6622.1918.2222.3427.5534.27
m>0m > 063.792.7891.5986.3991.1592.3391.86
<−0.20< -0.2010.517.8413.547.469.6522.9525.61
[−0.20,−0.10)[-0.20, -0.10)8.219.9216.7412.2515.4523.5028.72
[−0.10,−0.05)[-0.10, -0.05)7.223.2721.3218.7822.7525.5433.47
[−0.05,−0.02)[-0.05, -0.02)5.929.8029.8228.3733.5030.5142.08
[−0.02,0][-0.02, 0]4.644.4243.4039.7148.8144.7355.27
(0,0.02)(0, 0.02)4.866.5659.7051.7164.9968.5969.10
[0.02,0.05)[0.02, 0.05)6.983.3577.2466.2878.7283.4081.12
[0.05,0.10)[0.05, 0.10)10.091.2689.9381.2687.8790.2489.18
[0.10,0.20)[0.10, 0.20)14.195.5795.8890.6993.9394.5094.14
≥0.20\ge0.2027.998.6798.9596.8898.4298.2098.15

Table 4. Accuracy (%) by prototype margin mm, pooled across the three modality-held-out folds (query-weighted). The first two rows aggregate queries by the sign of mm, while the remaining rows provide finer margin bins. Bold marks the best method in each row.

mmm⋆m^\starQueries (%)Logistic regressionTabICLTAILPT-MAPRepICL-IRepICL-TT − I
≤0\le0≤0\le022.921.2418.6114.5314.7923.8927.18+3.29
≤0\le0>0> 013.530.4828.2924.5035.1733.7546.32+12.56
>0> 0≤0\le010.078.4775.8166.1768.3876.1972.13−4.06
>0> 0>0> 053.795.4494.5390.1595.3995.3495.53+0.19

Table 5. Accuracy (%) stratified by the signs of the 5-shot prototype margin mm and oracle prototype margin m⋆m^\star, pooled across the three modality-held-out folds (query-weighted). Bold marks the best method in each row. T − I reports the accuracy difference between RepICL-T and RepICL-I.

What does transductive inference add? A non-positive margin can arise for different reasons: the 5-shot support set may provide an unrepresentative sample of its classes, or the query may remain ambiguous even when more labeled examples are available. To distinguish these cases, we recompute (5) using leave-one-query-out prototypes formed from all other labeled examples in the episode, including the remaining queries, and denote the resulting oracle prototype margin by m⋆m^\star. Because m⋆m^\star uses query labels, it is unavailable to all evaluated methods and serves only as an analysis diagnostic. Relative to the 5-shot margin mm, it provides a less support-sensitive reference for the episode geometry.

Table 5 shows that the benefit of transduction depends strongly on the relationship between the 5-shot and oracle margins. When m≤0m \le0 but m⋆>0m^\star> 0, the 5-shot support prototypes favor a competing class, whereas prototypes estimated from the larger labeled reference set favor the ground-truth class. In this regime, RepICL-T improves over RepICL-I by 12.56 points. The gain is much smaller when both margins remain non-positive, becomes negligible when both are positive, and reverses when the support prototypes favor the correct class but the oracle margin does not. This asymmetry suggests that unlabeled query context is especially useful when limited support coverage gives a misleading view of class separation, rather than uniformly improving prediction across queries.

Conclusion, Limitations and Future Work

Conclusion. In this paper, we studied whether a few-shot prediction procedure, like pretrained representations, can be learned once and reused across heterogeneous frozen representation spaces. RepShiftBench exposes a substantial gap in this setting: existing in-context learners consistently trail simple per-episode Logistic Regression. RepICL shows that a shared predictor can nevertheless surpass the strongest per-episode baseline across changing datasets and representation spaces. Its inductive variant surpasses Logistic Regression across all benchmark settings, while RepICL-T achieves larger gains under transductive inference. Our analyses identify episodic whitening as the primary source of these improvements and show that RepICL’s gains concentrate on queries that are poorly resolved by simple support prototypes, with transduction providing its largest additional benefit when support coverage is limited.

Limitations and future work. Our evaluation focuses on 5-way 5-shot classification, leaving generalization to other episode shapes, including different numbers of ways or shots, for future work.

Moreover, while RepShiftBench varies representation spaces across tasks, each episode is still drawn from a single encoder–dataset pair. These limitations motivate two natural extensions: improving generalization across episode shapes, and moving from transfer across representation spaces to joint reasoning over multiple representation spaces within an episode. These directions point toward a broader goal: a reusable prediction procedure that could serve as a common adaptation layer between pretrained encoders and downstream tasks. Rather than fitting a new predictor whenever the dataset, encoder, or modality changes, such a procedure could amortize adaptation across them while exploiting richer episode-level structure than simple per-task fitting.

AI USE STATEMENT

We used generative AI tools to discuss research ideas and experiments, write code, draft and polish the paper, and find related work, and did not use them for any other task that requires disclosure under the ICLR 2027 AI policy. We have reviewed all AI-assisted work: code, results, and claims were checked against the recorded experiments, and literature suggestions were verified against the cited sources. We take responsibility for the final content of this work, including text, claims, code, and analyses produced with the aid of generative AI.

REPRODUCIBILITY STATEMENT

To support reproducibility, we describe our setup in the main paper and give further details in the appendices. Section 3 introduces the few-shot setup, and Section 4 introduces RepShiftBench, whose construction is detailed in Appendix A. Section 5 describes RepICL, and Appendix B gives its training details. The compared methods are introduced in Section 6.1 and detailed in Appendix C, and our reproduction of TAIL is described in Appendix C.4.

RepShiftBench Construction

Datasets and Encoders

Datasets. RepShiftBench covers three modalities: text, image, and audio. For each modality, we draw datasets from established embedding benchmarks that span diverse application domains and classification tasks: MTEB for text, MIEB for images, and X-ARES and MAEB for audio. We select single-label, example-level classification tasks that support our five-way episodic protocol; this excludes, for example, multi-label and frame-level annotation tasks. In addition, we adapt six MTEB clustering datasets for classification by treating their cluster labels as classes.

Encoders. We select encoders to capture diversity across model families, training objectives, and release periods. The inventory includes models commonly used for classification as well as models designed to produce general-purpose embeddings. Their public release dates range from 2014 to 2026. When a model family has several variants, we include one variant to limit redundancy. Tables 6 and 7 list the full inventory.

Representation Extraction

Preprocessing. Every encoder receives inputs preprocessed as it requires, such as image resizing and normalization or audio resampling. Beyond this, we apply a few dataset-specific steps. For text, the MTEB clustering datasets store each record as a list of texts with their cluster labels, so we expand each list into one example per text and remove exact duplicates. We also exclude text examples longer than 2,048 tokens, measured with a single fixed tokenizer (GPT-2), so that every text encoder sees the same examples. Due to limited GPU resources, we further truncate the inputs of decoder-only LLMs used through their hidden states, GritLM, and LLM2Vec to 512 tokens, and keep only the first 30 seconds of each VoxCeleb1 and BirdCLEF clip.

Embedding extraction. Each frozen encoder then maps the preprocessed inputs to one embedding per example, which we compute once and cache. The embedding is obtained by selecting a designated token or averaging the encoder’s outputs over tokens, patches, or frames, depending on the modality, and is then L2-normalized. We generally follow each encoder’s released embedding pipeline where one exists.

Folds, Splits, and Adaptation Settings

Folds. The three folds of § 4.2 let us compare meta-trained methods fairly against few-shot methods that receive no meta-training. Each fold holds out one of the three modalities (text, image, or audio) and draws its meta-training tasks only from the other two. Together with the dataset and encoder splits below, this keeps every test task out of meta-training, so a meta-trained method is never tested on a task it was trained on. Rotating the held-out modality across the three folds tests generalization on every modality, not just one.

Dataset and encoder splits. Within each modality, datasets and encoders are separately partitioned into seen and held-out sets, and this partition is shared by all folds. In the fold where a modality is held out, none of its datasets or encoders is used for meta-training, including those in its seen set. For encoders, the held-out set contains the most recently released encoders of the modality, so that Encoder Adaptation tests transfer to newer models. For datasets, the held-out set includes both out-of-domain datasets, such as remote-sensing images and speaker counting, and datasets whose task type also appears in the seen set. This tests generalization to unfamiliar domains as well as to new datasets of familiar task types. Table 6 and Table 7 give the split of every dataset and encoder.

Table 6: Datasets of RepShiftBench, grouped by modality and by seen/held-out set (Appendix § 10.§ 3). #Classes gives available and all classes (Appendix § 10.§ 4).

DatasetCategory#Classes (avail./all)#ExamplesSource
Text (seen)
ArXivHierarchicalClusteringS2SAcademic-paper clustering169 / 169627,949MTEB
Banking77ClassificationIntent classification77 / 7713,069MTEB
EmotionClassificationEmotion classification6 / 619,930MTEB
HWU64Intent classification57 / 6410,030MTEB
MassiveIntentClassificationIntent classification54 / 6016,521MTEB
MassiveScenarioClassificationScenario classification18 / 1816,521MTEB
MTOPDomainClassificationDomain classification11 / 1119,723MTEB
MTOPIntentClassificationIntent classification32 / 11319,723MTEB
RedditClusteringTopic clustering50 / 5064,337MTEB
StackExchangeClusteringTopic clustering171 / 171514,513MTEB
TREC (coarse)Question-type classification5 / 65,952MTEB
TweetTopicSingleClassificationTopic classification6 / 63,209MTEB
TwentyNewsgroupsClusteringTopic clustering20 / 205,242MTEB
YahooAnswersTopicsClassificationTopic classification10 / 101,341,064MTEB
held-out
AmazonReviewsClassificationReview sentiment classification5 / 5210,000MTEB
BiorxivClusteringS2SAcademic-paper clustering25 / 2653,773MTEB
CLINC150 (no OOS)Intent classification150 / 15022,500MTEB
DBpediaClassificationTopic classification14 / 144,096MTEB
MedrxivClusteringS2SAcademic-paper clustering49 / 5117,646MTEB
Image (seen)
BirdsnapClassificationFine-grained bird classification500 / 50017,849MIEB
Caltech101ClassificationGeneric object classification87 / 1029,144MIEB
CIFAR10ClassificationGeneric object classification10 / 1060,000MIEB
CIFAR100ClassificationGeneric object classification100 / 10060,000MIEB
Country211ClassificationGeolocation classification211 / 21152,750MIEB
DTDClassificationTexture classification47 / 475,640MIEB
FER2013ClassificationFacial-expression classification7 / 735,887MIEB
Food101ClassificationFine-grained food classification101 / 101101,000MIEB
ImageNet1KClassificationGeneric object classification1000 / 10001,331,167MIEB
MNISTClassificationHandwritten-digit classification10 / 1070,000MIEB
OxfordFlowersClassificationFine-grained flower classification83 / 1028,189MIEB
OxfordPetsClassificationFine-grained pet classification37 / 377,349MIEB
StanfordCarsClassificationFine-grained car classification196 / 19616,185MIEB
STL10ClassificationGeneric object classification10 / 1013,000MIEB
SUN397ClassificationScene classification397 / 397108,752MIEB
held-out
EuroSATClassificationRemote-sensing classification10 / 1027,000MIEB
FGVCAircraftClassificationFine-grained aircraft classification100 / 10010,000MIEB
GTSRBClassificationTraffic-sign classification43 / 4339,270MIEB
RESISC45ClassificationRemote-sensing classification45 / 4531,500MIEB
Audio (seen)
CREMA-DSpeech-emotion classification6 / 67,442X-ARES
ESC-50Environmental-sound classification50 / 502,000X-ARES
Fluent Speech CommandsSpoken-intent classification247 / 24830,043X-ARES
Free Music Archive SmallMusic-genre classification8 / 87,994X-ARES
FSD18-KaggleSound-event classification41 / 4111,073X-ARES
GTZAN GenreMusic-genre classification9 / 10999X-ARES
MInDS-14Spoken-intent classification14 / 148,168MAEB
NSynth-InstrumentsMusical-instrument classification10 / 1171,774X-ARES
SIB-FLEURSSpoken-topic classification7 / 711,424MAEB
Speech Commands V1Keyword spotting30 / 3064,721X-ARES
VocalSoundVocal-sound classification6 / 620,985X-ARES
VoxCeleb1Speaker identification94 / 1251153,412X-ARES
VoxLingua33Language identification24 / 3367,600X-ARES
VoxPopuliLanguageIDLanguage identification5 / 5500MAEB
held-out
BirdCLEFBioacoustic classification50 / 501,000MAEB
CommonLanguageAgeDetectionSpeaker-age classification5 / 86,000MAEB
LibriCountSpeaker-count classification11 / 115,720X-ARES
MridangamTonicMusic-tonic classification6 / 66,977MAEB
RAVDESSSpeech-emotion classification8 / 81,440X-ARES
UrbanSound 8KEnvironmental-sound classification10 / 108,732X-ARES
Vocal ImitationVocal-imitation classification9 / 3025,601X-ARES

Table 6.

CheckpointReleaseDim.Ref.
Text (seen)
stanfordnlp/glove.6B.300d*2014-10300Pennington et al. (2014)
facebook/fasttext-en-vectors2018-02300Grave et al. (2018)
google-bert/bert-base-uncased2018-10768Devlin et al. (2019)
openai-community/gpt22019-02768Radford et al. (2019)
sentence-transformers/all-mpnet-base-v22019-08768Reimers & Gurevych (2019)
openai/clip-vit-large-patch142021-02768Radford et al. (2021)
microsoft/deberta-v3-large2021-111024He et al. (2023)
intfloat/e5-large-v22022-121024Wang et al. (2022)
google/siglip-so400m-patch14-2242023-031152Zhai et al. (2023)
BAAI/bge-large-en-v1.52023-091024Xiao et al. (2024)
mistralai/Mistral-7B-Instruct-v0.32023-104096Jiang et al. (2023)
intfloat/e5-mistral-7b-instruct2023-124096Wang et al. (2024)
GritLM/GritLM-7B2024-024096Muennighoff et al. (2025)
McGill-NLP/LLM2Vec-Mistral-7B-Instruct-v2-mntp-supervised2024-044096BehnamGhader et al. (2024)
nvidia/NV-Embed-v22024-054096Lee et al. (2025)
meta-llama/Meta-Llama-3.1-8B-Instruct2024-074096Grattafiori et al. (2024)
BAAI/bge-en-icl2024-094096Li et al. (2025)
NovaSearch/stella_en_1.5B_v52024-121024Zhang et al. (2024)
answerdotai/ModernBERT-base2024-12768Warner et al. (2025)
held-out
deepseek-ai/DeepSeek-R1-Distill-Qwen-7B2025-013584DeepSeek-AI (2025)
google/gemma-3-4b-it2025-032560Gemma Team (2025)
Qwen/Qwen3-8B2025-054096Yang et al. (2025)
Qwen/Qwen3-Embedding-8B2025-064096Zhang et al. (2025b)
google/embeddinggemma-300m2025-09768Vera et al. (2025)
Image (seen)
timm/vgg16.tv_in1k2014-094096Simonyan & Zisserman (2015)
timm/inception_v3.tv_in1k2015-122048Szegedy et al. (2016)
timm/densenet121.tv_in1k2016-081024Huang et al. (2017)
timm/resnext101_32x8d.tv_in1k2016-112048Xie et al. (2017)
timm/mobilenetv3_large_100.miil_in21k_ft_in1k2019-05960Howard et al. (2019)
google/vit-large-patch16-224-in21k2020-101024Dosovitskiy et al. (2021)
openai/clip-vit-large-patch142021-02768Radford et al. (2021)
timm/tf_efficientnetv2_l.in21k_ft_in1k2021-041280Tan & Le (2021)
microsoft/swinv2-large-patch4-window12to16-192to256-22kto1k-ft2021-111536Liu et al. (2022a)
timm/vit-large-patch16-2242021-111024He et al. (2022)
facebook/convnext-large-224-22k-1k2022-011536Liu et al. (2022b)
timm/eva02_large_patch14_224.merged2b2023-031024Sun et al. (2023)
google/siglip2-so400m-patch14-3842023-03†1152Tschannen et al. (2025)
held-out
apple/aimv2-huge-patch14-2242024-111536Fini et al. (2025)
timm/vit_pe.core_large_patch14_336.fb2025-041024Bolya et al. (2025)
facebook/dinov3-vitl16-pretrain-lvd1689m2025-081024Siméoni et al. (2025)
Qwen/Qwen3-VL-Embedding-8B2026-014096Li et al. (2026)
jinaai/jina-embeddings-v5-text-omni-small2026-051024Hönicke et al. (2026)
Audio (seen)
s3prl/vq-wav2vec*2019-10512Baevski et al. (2020a)
facebook/wav2vec2-large2020-061024Baevski et al. (2020b)
s3prl/tera*2020-07768Liu et al. (2021)
MIT/ast-finetuned-audioset-10-10-0.45932021-04768Gong et al. (2021)
facebook/hubert-large-ll60k2021-061024Hsu et al. (2021)
Simon-Kotchou/ssast-base-patch-audioset-16-162021-10768Gong et al. (2022)
microsoft/wavlm-large2021-101024Chen et al. (2022)
facebook/wav2vec2-xls-r-300m2021-111024Babu et al. (2022)
facebook/data2vec-audio-large2022-021024Baevski et al. (2022)
facebook/wav2vec2-conformer-rel-pos-large2022-061024Wang et al. (2020)
laion/clap-general2022-11512Wu et al. (2023)
microsoft/unilm/BEATs_iter3_plus_AS2M*2022-12768Chen et al. (2023)
openai/whisper-large-v32022-121280Radford et al. (2023)
worstchan/EAT-base.epoch30-pretrain2024-01768Chen et al. (2024)
mispeech/dasheng-0.6B2024-061280Dinkel et al. (2024)
held-out
tsinghua-ee/WAVE-7B2025-093584Tang et al. (2026)
LCO-Embedding/LCO-Embedding-Omni-7B2025-103584Xiao et al. (2025a)
nvidia/omni-embed-nemotron-3b2025-102048Xu et al. (2025)
jinaai/jina-embeddings-v5-omni-small2026-051024Hönicke et al. (2026)
MIT-SLS/USAD2-Large2026-061024Chang et al. (2026)

Table 7. Encoders of RepShiftBench, grouped by modality and by seen/held-out set (Appendix § 10.§ 3), and ordered within each group by the release date of the cited paper. Checkpoints are from Hugging Face unless marked *, which come from other sources. †SigLIP 2 (2025-02) takes the release date and split of the original SigLIP.

Task sets and adaptation settings. In each fold, every task belongs to the meta-training, validation, or test set. In the two meta-training modalities, the tasks whose dataset and encoder are both seen, which form the meta-training pool of § 4.2, are divided into a meta-training set TtrainT_{\mathrm{train}} (§ 4.1) and a validation set, with about 20% of them in the latter for model and hyperparameter selection. All other tasks form the test set, and each belongs to one of the four adaptation settings of § 4.1. A task of the held-out modality is a Modality Adaptation task. A task of a meta-training modality is a Dataset, Encoder, or Joint Adaptation task, depending on whether its dataset, its encoder, or both are held out. The four adaptation settings represent different levels of generalization: an unseen dataset, an unseen encoder, both, or an unseen modality.

The same task can fall into different adaptation settings in different folds. A text task with a seen dataset and a held-out encoder, for example, is an Encoder Adaptation task when image is held out, but a Modality Adaptation task when text is held out. The adaptation settings describe what a meta-trained method has seen before testing, so in Table 1 they apply only to RepICL. For the other methods, the folds and adaptation settings only determine which tasks they are evaluated on and how these tasks are grouped. Evaluating RepICL in each adaptation setting shows whether its ability is limited to particular adaptation settings or is consistent across all of them.

Episode Construction

Episode sampling. RepShiftBench defines all evaluation episodes as 5-way 5-shot with 10 queries per class, and we use the same shape for meta-training and validation. Each episode is sampled from a single task: we sample 5 classes, then 5 support and 10 query examples per class, all without replacement, and randomly permute the class labels in each episode. Episodes therefore use only classes with enough examples for this shape, and a task needs at least five such classes. Table 6 reports, for every dataset, the number of classes that meet this requirement and the number of all classes.

Example pools. Each dataset has a support pool and a query pool of examples, shared by all encoders. Both follow the splits of the source benchmark: the support pool is its original training split and the query pool its test split. If the source lacks such a split, we create it by class-stratified splitting; for a few sources that provide a single labeled split, both pools are that split and support and queries are sampled without overlap. Episodes of tasks in the test set sample 5 support examples per class from the support pool and 10 queries per class from the query pool. Meta-training and validation episodes sample 15 examples per class from the support pool, so the query pool is never used for meta-training or validation.

Fixed evaluation episodes. We sample the 1,000 evaluation episodes of each task in the test set once and use them, including their label assignment, for all methods. A task also keeps the same episodes when it appears in different folds and adaptation settings, so differences across settings do not come from different episodes.

RepICL Meta-Training Details

Table 8 lists the hyperparameters of RepICL; the whitening and architecture follow § 5. Each fold is meta-trained once on a single NVIDIA RTX 4090; for the audio fold this takes about 31 hours for RepICL-I and about 45 hours for RepICL-T.

RepICL-IRepICL-T
Episode and whitening
Way / shot / queries per class5 / 5 / 10
Fit set A\mathcal{A}ZS\mathcal{Z}_{S}ZS∪ZQ\mathcal{Z}_{S} \cup\mathcal{Z}_{Q}
PCA rank rAr_{\mathcal{A}}2474
Standardization ε\varepsilon10−510^{-5}
Architecture
Layers / heads24 / 16
Token dimension (feature + label)1024 (768 + 256)
MLP dimension4096
Attention mask MMqueries maskednone
Readout temperature τ\tau0.07
Parameters≈\approx303M
InitializationCAML-CLIP
Meta-training
OptimizerAdamW
Learning rate / warmup steps10−410^{-4} / 2,500
Weight decay0.01
Optimizer steps50,000
Episodes per step / microbatch1,024 / 128
Input noise σ\sigma0.07
EMA decay0.999
Precisionbf16
Seed42

Table 8. Hyperparameters of RepICL-I and RepICL-T.

Task sampling. Each fold meta-trains on the training tasks of its two non-held-out modalities. Each optimizer step draws 1,024 training tasks. The two modalities receive equal probability; within a modality, a dataset D\mathcal{D} is drawn with probability proportional to n~D\sqrt{\widetilde{n}_{D}}, where n~D\widetilde{n}_{D} is its training-pool size clipped to [500, 200,000]; and the encoders paired with D\mathcal{D} are equally likely. A task (D,E)(\mathcal{D}, E) of modality mm is thus drawn with probability

p(D,E)=12⋅n~D∑D′∈Dmn~D′⋅1∣ED∣,p(\mathcal{D}, E) = \frac{1}{2} \cdot\frac{\sqrt{\widetilde{n}_{D}}}{\sum_{\mathcal{D}' \in\mathcal{D}_{m}} \sqrt{\widetilde{n}_{D'}}} \cdot\frac{1}{|\mathcal{E}_{D}|},

where Dm\mathcal{D}_{m} is the set of training datasets of mm and ED\mathcal{E}_{D} the set of encoders paired with D\mathcal{D}. The square root favors larger datasets without letting them dominate. Each drawn task yields one episode, whose class labels are randomly permuted.

Optimization. We minimize L(θ)\mathcal{L}(\theta) of § 5.3 with AdamW (learning rate 10−410^{-4}, weight decay 0.01) for 50,000 steps; the learning rate warms up linearly over the first 2,500 steps and then stays constant. The 1,024 episodes of a step are processed as 8 accumulated microbatches of 128. As a simple input augmentation against overfitting to the training tasks, Gaussian noise with standard deviation σ=0.07\sigma= 0.07 is added to the rAr_{\mathcal{A}} active coordinates of each whitened token during training. Model weights are kept in bf16, while the whitening statistics are computed in fp32.

Weight averaging and checkpoint selection. To smooth the step-to-step noise of episodic updates, we keep an exponential moving average θˉ\bar{\theta} of the weights (Polyak & Juditsky, [62]; Morales-Brotons et al., [54]) with decay 0.999. Over the first 1,000 steps tt, the decay is lowered to (1+t)/(10+t)(1 + t)/(10 + t) so that the initialization does not dominate the average. We evaluate θˉ\bar{\theta} on the validation tasks every 2,500 steps and keep the checkpoint with the highest validation accuracy, which is used for every reported result.

Comparison Methods

For all methods other than RepICL, we use the raw frozen representation without episodic whitening.

Classical Classifiers Fitted on the Support Set

Logistic regression and an RBF-kernel SVM serve as a linear and a nonlinear classifier fitted on the support set of each episode. Both use scikit-learn 1.6.1 (Pedregosa et al., [60]) at its defaults after StandardScaler normalization fitted on the support set, except that logistic regression runs for up to 1,000 iterations.

Few-Shot Methods on Frozen Representations

ProtoHead. ProtoHead is the variant of prototypical networks (Snell et al., [72]) on a frozen backbone used by Woerner et al. [92]: each query is assigned to the class whose mean L2L_2-normalized support representation is nearest.

SimpleShot. SimpleShot (Wang et al., [90]) applies nearest-centroid classification after a feature transformation. Its strongest variant, CL2N, centers with the mean of the encoder’s base-class training features, which are unavailable for our encoders; it therefore centers with the support mean, L2L_2-normalizes, and scores by cosine similarity to the class means.

LaplacianShot and α\alpha-TIM. LaplacianShot (Ziko et al., 2020) refines nearest-prototype predictions with a Laplacian term that encourages nearby queries to share a label, and α\alpha-TIM (Veilleux et al., [84]) maximizes the mutual information between queries and their predictions with an α\alpha-divergence suited to class-imbalanced query sets. LaplacianShot uses easyfsl 1.5.0 (Bennequin, [7]) at its defaults, and α\alpha-TIM uses α=7\alpha= 7, temperature 15, and 1,000 gradient steps with learning rate 10−410^{-4}. Both take L2L_2-normalized inputs.

PT-MAP. PT-MAP (Hu et al., [41]) applies a power transform to the features and then estimates the class centers jointly from the support and query sets with an optimal-transport-based MAP procedure. It follows the reference implementation, whose power transform x1/2x^{1/2} assumes the nonnegative features of a post-ReLU backbone; since our representations are signed, it uses sign⁡(x)∣x∣1/2\operatorname{sign}(x)|x|^{1/2}.

In-Context Learners

TAIL. TAIL (Woerner et al., [92]) is a transformer-based algorithm-implicit meta-learner that operates across tasks with varying domains, modalities, and label configurations. Its checkpoint is not released, so TAIL uses our reproduction, with inputs rescaled to norm 13 (Appendix § 12.§ 4).

Tabular foundation models. Tabular foundation models are pretrained on large collections of synthetic tabular datasets and predict the labels of an unseen table in context, without gradient updates. TabPFN v2.6 (Hollmann et al., [34]) from tabpfn 7.0.1 and TabICLv2 (Qu et al., [64]) from tabicl 2.0.2 take each support representation as a row of tabular features with its label as the target, and each query representation as a test row. TabPFN uses its ignore_pretraining_limits option to accept representations with more than 2,000 dimensions.

TAIL Reproduction and Adaptation

Reproduction. TAIL (Woerner et al., [92]) releases code but no checkpoint, so we train the model for 500 epochs on the CLIP ViT-H features of ImageNet-1k, Meta-Album, and MedIMeta, following their released recipe. Table 9 compares our reproduction against the published numbers under TAIL’s own task taxonomy; the two agree closely across all settings. One limitation: TAIL excludes a subset of classes from some datasets at evaluation time, but the released codebase does not implement this filtering, so our reproduction omits it and we cannot guarantee an identical evaluation protocol to theirs. As Table 9 shows, however, the resulting gap remains small across all settings. All TAIL results reported in this paper, including on TAIL’s own evaluation datasets, use this reproduced checkpoint.

Setting1-shot Paper1-shot Reprod.1-shot Gap5-shot Paper5-shot Reprod.5-shot GapPer-dataset MAE
In-domain (4 datasets)90.1089.73-0.3795.6695.10-0.561.03
Cross-modal (2 datasets)62.7564.31+1.5672.4872.53+0.051.00
Cross-domain (8 datasets)72.4673.25+0.7982.3282.93+0.613.87

Table 9. TAIL paper-reported and reproduced macro accuracy (%).

Transfer to RepShiftBench. When we evaluate TAIL directly on RepShiftBench, it collapses to near-random accuracy on most individual tasks (Table 10). Feature scale accounts for a substantial part of this loss. TAIL is trained on unnormalized CLIP features whose L2L_{2} norm is about 13, whereas our representations are preprocessed to unit norm. Rescaling each embedding to a shared target norm recovers most of the loss, and a grid search on the DINOv3, USAD2, and E5-large-v2 tasks shows that performance peaks at a target norm of 13 for each encoder, close to the norm of TAIL’s own training features (Table 11). The table also reports each encoder’s original pre-normalization norm and TAIL accuracy on freshly re-encoded raw features; the latter preserves row-to-row magnitude variation and is distinct from a fixed target norm. We call this rescaling the scale calibration. Another limitation is TAIL’s model design, which accepts at most the 1,280 dimensions it was trained on, so we pass wider representations through a fixed Gaussian projection, one untrained matrix per representation dimension. Table 12 separates each setting into the tasks that fit TAIL natively and those that pass through the projection. The gap between the two bands is large, but it is the same gap for RepICL-T, which takes every dimension natively, and the two agree in sign in all adaptation settings. The similar pattern for RepICL-T suggests that the projection is unlikely to be the primary explanation for TAIL’s performance gap. We therefore apply the scale calibration and the projection to every TAIL result on RepShiftBench.

MethodText-held DText-held EText-held JText-held MAudio-held DAudio-held EAudio-held JAudio-held MImage-held DImage-held EImage-held JImage-held M
TAIL (unit-norm)26.8634.4829.0128.5430.3434.6732.4224.2725.8229.1526.1438.22
TAIL (norm 13)52.7971.9661.0562.2366.0671.1371.0745.6750.3364.9355.5579.31
TAIL{sup}*36.9648.4838.8633.0755.4362.3360.2136.7521.8120.1620.0820.25
RepICL-T63.5577.9968.2973.2675.2778.1377.4755.6261.7976.5865.0285.69

Table 10. TAIL variants and RepICL-T on RepShiftBench. TAIL (unit-norm): raw unit-norm representations. TAIL (norm 13): scale-calibrated to norm 13. TAIL{sup}*: retrained on our folds’ training tasks. RepICL-T is shown for reference. Bold marks the best TAIL variant per column.

EncoderModality# tasksRaw normRaw136132652Ours
DINOv3image1915.6187.5050.6583.5087.0087.6284.7563.1592.34
USAD2audio21163.866.5921.9831.2144.8551.0040.2523.7763.94
E5-large-v2text1923.0365.4824.4049.0266.9472.4461.3729.0982.82

Table 11. TAIL accuracy (%) across input scales. “Raw” uses unnormalized features; numeric columns indicate target norms. “Raw norm” is the mean pre-L2L_2 embedding norm.

WidthDEJMDEJMDEJM
Text-heldAudio-heldImage-held
TAIL (norm 13)
native49.5876.9468.1657.9463.4786.1886.3642.4046.6164.7255.7482.01
proj.74.8066.9154.6767.2970.4060.8161.7864.2067.8965.0255.4675.02
Δ\Delta+25.22−10.03−13.49+9.35+6.93−25.37−24.58+21.80+21.28+0.30−0.28−6.99
RepICL-T
native60.6183.7275.9268.6473.4890.2191.1453.1158.2375.5565.0789.34
proj.83.6272.1861.4578.7178.2869.8469.1869.8478.5177.0164.9879.89
Δ\Delta+23.01−11.54−14.47+10.07+4.80−20.37−21.96+16.73+20.28+1.46−0.09−9.45

Table 12. Accuracy (%) split by input width: native is at most 1,280 dimensions, where TAIL fits without modification; proj. covers dimensions larger than 1,280, passed through the fixed Gaussian matrix.

Training TAIL on RepShiftBench. The scale calibration and projection correct the representation mismatch, but TAIL’s training tasks still differ from RepICL’s. RepICL is meta-trained on the standard tasks of each fold, so for a fair comparison we also retrain TAIL using RepShiftBench’s meta-training setup and write the model as TAIL{sup}. The results in Table 10 show that matching the training setup does not help. TAIL{sup} loses to both the scale-calibrated TAIL and RepICL-T. The main results therefore use the scale-calibrated TAIL. One limit bounds this reading. We transfer TAIL’s published hyperparameters rather than searching over them, so a tuned TAIL{sup}* may score higher.

Detailed Results of the Main Paper

Per-Dataset Results under the TAIL Protocol

Table 13 gives the detailed results summarized in § 6.2. The evaluation follows TAIL’s setup, with CLIP features and 1,000 identical 5-way 5-shot episodes per dataset. Both RepICL variants use the image-held-out checkpoint, so the 11 datasets and the CLIP image encoder are unseen during meta-training, whereas the CLIP text encoder is among the training encoders. CAML and GPICL are included through their published results, since their released formulations do not support the heterogeneous input dimensions of RepShiftBench. Both TAIL and our main experiments include a linear baseline, but the two fit it differently. The table therefore reports three Linear columns: the numbers published by TAIL, our reproduction of the TAIL recipe, and our logistic regression. TAIL fits an unregularized linear layer per episode with 100 epochs of Adam, while ours fits a standardized, L2-regularized logistic regression. TAIL’s recipe is therefore not necessarily the strongest possible per-episode linear classifier. RepICL-T outperforms every previously reported result on average, reaching 92.31% against TAIL’s own best reported number of 90.05%.

DatasetLinearTAILOurs
publishedTAIL recipeoursGPICL†CAML†publishedreproducedRepICL-IRepICL-T
CIFAR-FS91.8691.5692.8791.2091.6994.5594.4993.7596.75
miniImageNet97.6597.6698.5699.4499.2999.6399.4098.7199.77
tieredImageNet95.3095.1296.5098.1897.9898.6798.0596.7298.43
Pascal VOC83.5783.4985.7087.4687.8789.7888.3386.1389.55
Aircraft92.1291.8293.6590.8393.0995.0194.3194.1296.66
CUB95.1794.7796.8196.0297.5598.5197.5297.4198.93
meta-iNat92.9192.9194.7895.5696.2097.7096.7795.3797.66
tiered meta-iNat88.3288.8092.3891.1593.5395.6994.2493.4196.56
Paintings66.2166.6968.8554.2958.7263.0373.3969.9373.82
Pascal-Paintings71.6271.1074.7865.7970.1373.0479.8276.3481.81
PBC68.3968.0176.6753.2880.1984.9678.9079.1385.41
Mean85.7485.6388.3283.9387.8490.0590.4789.1892.31
OCT (4-way)–49.8254.64–––47.9454.0755.94

Table 13. Accuracy (%) on the visual datasets of TAIL. † and the published columns are values reported by Woerner et al. [92]. Bold marks the best result per row, excluding OCT (4-way).

Full Ablation Results

Table 14 gives the detailed results of the ablation study in § 6.3 for every fold and adaptation setting. For meta-training diversity, we ablate the set of meta-training tasks instead of a model component, to see how performance depends on the diversity of that set. Each fold meta-trains on two modalities, and we restrict the task pool Ttrain\mathcal{T}_{\mathrm{train}} within each of them, keeping either one dataset with all its compatible encoders or one encoder with all its compatible datasets. Both settings are trained for the same 50,000 steps as the full model.

Text-held-out foldAudio-held-out foldImage-held-out fold
DEJMDEJMDEJM
RepICL-I61.4175.8566.2270.1073.5276.7975.8655.1459.1972.8262.5683.26
Episodic whitening
w/o Coord. Standardize−8.18−3.64−5.19−7.88−5.03−4.14−3.40−9.38−7.98−6.53−5.85−3.25
w/o PCA, trainable proj.−5.28−5.94−7.15−12.07−8.61−11.38−10.76−9.93−5.25−12.39−10.34−6.55
w/o PCA, fixed proj.−5.44−6.05−8.37−10.96−8.33−10.60−10.06−10.01−5.33−11.88−9.96−6.42
Model structure
w/o CAML initialization−0.08−0.01+0.25−0.05−0.16−0.25−0.13−0.04+0.02−0.10+0.22+0.02
fixed five-class head−0.12−0.07+0.38−0.14−0.28−0.45−0.14−0.04−0.22−0.45+0.14−0.05
Meta-training diversity
one dataset per modality−0.37−0.34+0.03−0.74−0.40−0.32−0.14−0.32−0.54−0.75−0.26−0.21
one encoder per modality−0.79−0.27−0.03−0.41−0.99−1.03−0.54−0.76−0.83−0.80−0.33−0.29
RepICL-T63.5577.9968.2973.2675.2778.1377.4755.6261.7976.5865.0285.69
Episodic whitening
w/o Coord. Standardize−13.64−6.82−9.37−9.81−6.60−6.04−6.05−14.34−14.00−15.24−13.93−6.58
w/o PCA, trainable proj.−7.30−8.02−9.45−15.15−8.35−11.21−10.51−9.91−7.01−15.61−12.45−8.59
w/o PCA, fixed proj.−6.89−7.81−9.16−14.84−9.40−12.03−11.14−10.10−7.77−16.09−12.78−8.78
Model structure
w/o CAML initialization+0.00+0.13−0.01+0.04+1.30+1.04+0.85+1.53−0.28−0.11−0.20−0.17
fixed five-class head+0.83+0.53+0.75+0.76+1.89+1.43+1.34+2.44+0.32+0.78+0.60+0.35
Meta-training diversity
one dataset per modality−2.02−1.51−1.67−2.55−0.87−0.88−0.75−1.02−2.85−3.52−2.86−1.50
one encoder per modality−2.43−1.04−1.22−1.39−2.09−2.53−2.02−2.01−2.67−3.47−2.77−1.16

Table 14. Detailed results of the ablation study.

With limited task diversity, the choice of dataset or encoder matters. If the selected dataset is one on which few-shot classification is hard, its episodes may provide only a weak training signal, and the resulting drop would confound the effect of diversity with the difficulty of that dataset. The same applies to the selected encoder. We therefore select the source favorably. In each training modality, we choose, among the training datasets, the dataset with the highest Logistic Regression accuracy averaged over its compatible encoders, and, among the training encoders, the encoder with the highest accuracy averaged over its compatible datasets. For text, image, and audio, the selected datasets are HWU64, Oxford Flowers, and ESC-50, and the selected encoders are BGE-ICL, EVA02-CLIP-L, and Whisper-large-v3.

This selection has two limitations. First, it uses Logistic Regression accuracy on the test split, which may favor the restricted settings. Second, because the restriction is applied within each modality, every restricted setting still contains two datasets or two encoders. The settings therefore reduce the diversity of the meta-training pool rather than remove it, and we do not test more restricted pools, such as a single dataset or encoder in total.

Additional Analyses and Experiments

Linear vs. Previous Few-Shot Methods

In our Table 1 results on RepShiftBench, logistic regression outperforms almost every few-shot method, with PT-MAP the only method ahead of it, and only on the image-modality shift. Classical few-shot methods such as α\alpha-TIM and PT-MAP were developed and tuned on CNN backbones (ResNet, WideResNet), and usually outperform linear methods there. We therefore ask whether the gap we observe here reflects a mismatch between the encoders these methods were designed for and those evaluated on RepShiftBench, rather than evidence that the earlier methods are weaker than logistic regression.

Matched CNN backbones. On the exact ResNet-18, ResNet-34, and WRN-28-10 backbones used in the few-shot literature, evaluated under our benchmark’s 5-way 5-shot image task, LaplacianShot, α\alpha-TIM, and PT-MAP are all ahead of logistic regression on the same frozen features (Table 15). SimpleShot is the exception and is roughly on par, because our setting gives it no base-class-supervised training to draw its centering statistics from. On these matched backbones, previous few-shot methods do outperform logistic regression.

BackboneLogistic regressionSimpleShotLaplacianShotα\alpha-TIMPT-MAP (signed-power)
ResNet-1877.1777.0577.8877.8380.47
ResNet-3476.7576.7177.2077.3979.11
WRN-28-1058.6859.2060.3062.1265.18

Table 15. Previous few-shot methods vs. logistic regression on CNN backbones. Accuracy (%).

The benchmark’s own encoder set. We then run the same comparison over every encoder of RepShiftBench, in all three modalities (Table 16). Across the benchmark’s encoder classes, the advantage is heterogeneous: previous few-shot methods lead on several classes, whereas Logistic Regression leads on many others and on text and audio overall. Thus, no previous few-shot method consistently dominates across the full range of encoder families and modalities. These methods were therefore not designed with transfer across encoder families in mind, and none of them holds up across the full set. That is the gap RepICL is trained to close.

ModalityEncoder classNum. of Enc.Logistic regressionSimpleShotLaplacianShotα\alpha-TIMPT-MAP
ImageCNN-like780.4480.9681.4281.4383.23
ViT / vision-SSL676.8273.1872.6775.4574.93
CLIP-like contrastive392.5091.3391.3792.2093.09
Multimodal embedding290.6590.2290.3190.5091.35
All1882.3881.1281.1582.2483.01
TextStatic word embeddings261.3555.2855.3059.4158.92
Pretrained LM hidden states450.6238.5035.4545.8644.07
Purpose-built text embeddings779.7480.0181.5478.1983.34
LLM/instruction embeddings479.9580.5181.4876.9883.15
LLM hidden-state features566.9257.8655.3662.0061.42
Vision-language contrastive266.5660.7960.1762.9265.18
All2469.6264.9064.4266.3968.65
AudioSpeech-pretrained / ASR949.5342.9240.7447.3342.81
General-audio SSL / evader models653.3947.0045.3951.5247.57
Audio-text contrastive156.4155.7656.0156.1356.65
Audio/multimodal LLMs466.6764.1763.9165.3165.44
All2054.4649.0447.5352.6249.46

Table 16. Logistic regression vs. previous few-shot methods on RepShiftBench, grouped by encoder representation class. Bold marks the best method in each row.

LoRA Comparison

RepICL adapts to a task in context, without updating any weights. An alternative is to update the encoder on the support set at test time, a paradigm studied for few-shot classification with adapters (Li et al., [49]), full-backbone fine-tuning (Hu et al., [40]), cosine classifiers (Chen et al., [14]), and broader PEFT sweeps (Basu et al., [5]). We compare against LoRA (Hu et al., [39]), one of the most widely used standard PEFT techniques, which is also a strong few-shot baseline (Basu et al., [5]; Zanella & Ben Ayed, [101]).

Setup. For each episode we re-initialize LoRA with rank 8, alpha 16 on the q/v attention projections and fit it on the support set with a prototype mean-cosine loss, similar to the LoRA + ProtoNCC recipe of Basu et al. [5]. For whisper-large and SigLIP-2 we tune only the encoder used to extract features. All tasks use AdamW with learning rate 3×10−43 \times10^{-4} and 50 steps, selected on held-out episodes of a few datasets per modality with one encoder per modality. We compare RepICL-I and RepICL-T with LoRA, with logistic regression on the frozen features, and with a frozen baseline that classifies queries by cosine similarity to class prototypes of the unadapted encoder output. Due to computation limits, we evaluate 9 encoders (3 per modality) from RepShiftBench, chosen to cover different encoder sizes, on 30 sealed episodes per task disjoint from the selection episodes. Average time is measured on a single RTX 4090 over two 5-way 5-shot episodes, on 6 of the 9 encoders.

Results. LoRA consistently improves over the frozen encoder on all nine encoders (Table 17), confirming the benefit of test-time adaptation. RepICL-I performs on par with LoRA, and RepICL-T outperforms it on almost every encoder. Since RepICL requires no test-time parameter update, it is also 33–68× faster per query. Overall, RepICL-I matches LoRA at a fraction of the test-time cost, and RepICL-T further outperforms it.

EncoderModalityParamsTasksFrozenLoRARepICL-IRepICL-TLogistic regression
AST audioset-baseaudio86.2M2046.655.755.856.554.8
HuBERT-largeaudio315.4M2046.951.157.257.756.3
whisper-largeaudio637.0M2040.661.564.464.863.5
all-mpnet-base-v2text109.5M1975.279.577.1780.7277.16
embedding-gemma-300mtext302.9M1978.282.380.9584.2580.99
stella-1.5B-v5text1.54B1980.185.481.1784.0180.19
DINOv3 ViT-L/16image303.1M1985.991.590.2992.3488.33
SigLIP-2 so400m/384image428.2M1988.790.993.0894.7391.13
PE-core-Limage317.2M1988.292.992.9494.8590.27
Average over encoders70.076.877.078.975.9
Avg. time (ms/query)7.67418.907.817.927.75

Table 17. Performance compared to LoRA.

Inference Cost

We compare the per-episode inference time of RepICL with the other methods to assess whether it is efficient enough for practical use. For each method, we time one 5-way 5-shot episode with 25 support and 50 query examples on frozen representations, from normalization to prediction. RepICL, TAIL, TabPFN, and TabICL run on one NVIDIA RTX 4090, and the remaining methods run on the CPU. All methods are timed under the same protocol and none is specifically optimized for speed.

Figure 3 shows that RepICL runs in a time comparable to TAIL and to Logistic Regression on the CPU, and is much faster than TabPFN and TabICL. Its median time per episode is 5.3 ms for RepICL-I and 5.9 ms for RepICL-T, against 6.7 ms for Logistic Regression, 0.7 s for TabPFN, and 1.5 s for TabICL. CPU and GPU times are not directly comparable, so these numbers indicate the order of magnitude of each method’s inference time rather than a ranking.

Figure 3. Accuracy against inference time per episode. Accuracy is the audio-fold mean from Table 1; hollow markers denote transductive methods. Time is the median over 22 episodes, one for each distinct representation width in the three folds. Methods marked with * show a run-to-run timing variation above 5% on some episodes.

The encoders in RepShiftBench produce representations of different widths, so we also examine how inference time depends on the representation width DD. As Figure 4 shows, the inference time of RepICL is nearly independent of DD, staying between 4.6 and 5.7 ms as DD grows from 512 to 4096, because only the episodic whitening operates in the DD-dimensional space and the transformer always receives the same number of tokens.

Figure 4. Inference time per episode as the representation width DD grows from 512 to 4096. PT-MAP{sup}† is the median over 128 episodes, since its number of Sinkhorn iterations depends on the episode.

References

  1. [5]Samyadeep Basu, Shell Xu Hu, Daniela Massiceti, and Soheil Feizi. Strong baselines for parameter-efficient few-shot fine-tuning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pp. 11024–11031, 2024.DOI
  2. [7]Etienne Bennequin. EasyFSL: Ready-to-use code and tutorial notebooks for few-shot learning. https://github.com/sicara/easy-few-shot-learning, 2021.
  3. [9]Malik Boudiaf, Imtiaz Masud Ziko, Jérôme Rony, Jose Dolz, Pablo Piantanida, and Ismail Ben Ayed. Transductive information maximization for few-shot learning. In Advances in Neural Information Processing Systems, 2020.arxiv.org/abs/2008.11297
  4. [10]John Bronskill, Jonathan Gordon, James Requeima, Sebastian Nowozin, and Richard E. Turner. TaskNorm: Rethinking batch normalization for meta-learning. In International Conference on Machine Learning, 2020.
  5. [14]Wei-Yu Chen, Yen-Cheng Liu, Zsolt Kira, Yu-Chiang Frank Wang, and Jia-Bin Huang. A closer look at few-shot classification. In International Conference on Learning Representations, 2019.arxiv.org/abs/1904.04232
  6. [17]Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics, pp. 4171–4186, 2019.arxiv.org/abs/1810.04805
  7. [20]Adnan El Assadi, Isaac Chung, Chenghao Xiao, Roman Solomatin, Animesh Jha, Rahul Chand, Silky Singh, Kaitlyn Wang, Ali Sartaz Khan, Marc Moussa Nasser, Sufen Fong, Pengfei He, Alan Xiao, Ayush Sunil Munot, Aditya Shrivastava, Artem Gazizov, Niklas Muennighoff, and Kenneth Enevoldsen. MAEB: Massive audio embedding benchmark. arXiv preprint arXiv:2602.16008, 2026a.arxiv.org/abs/2602.16008
  8. [21]Adnan El Assadi, Niklas Muennighoff, and Jinhyuk Lee. The embedder’s dilemma: LLMs are better, but at what cost? In Conference on Language Modeling (COLM), 2026b.arxiv.org/abs/2608.12875
  9. [22]Christopher Fifty, Dennis Duan, Ronald G. Junkins, Ehsan Amid, Jure Leskovec, Christopher Ré, and Sebastian Thrun. Context-aware meta-learning. In International Conference on Learning Representations, 2024.arxiv.org/abs/2310.10971
  10. [24]Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In International Conference on Machine Learning, pp. 1126–1135, 2017.arxiv.org/abs/1703.03400
  11. [25]Marta Garnelo, Dan Rosenbaum, Christopher J. Maddison, Tiago Ramalho, David Saxton, Murray Shanahan, Yee Whye Teh, Danilo Jimenez Rezende, and S. M. Ali Eslami. Conditional neural processes. In International Conference on Machine Learning, pp. 1704–1713, 2018.arxiv.org/abs/1807.01613
  12. [33]Noah Hollmann, Samuel Müller, Katharina Egensperger, and Frank Hutter. TabPFN: A transformer that solves small tabular classification problems in a second. In International Conference on Learning Representations, 2023.arxiv.org/abs/2207.01848
  13. [34]Noah Hollmann, Samuel Müller, Lennart Purucker, Arjun Krishnakumar, Max Körfer, Shi Bin Hoo, Robin Tibor Schirrmeister, and Frank Hutter. Accurate predictions on small data with a tabular foundation model. Nature, 637(8045):319–326, 2025.DOI
  14. [36]Timothy M. Hospedales, Andreas Antoniou, Paul Micaelli, and Amos Storkey. Meta-learning in neural networks: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44 (9):5149–5169, 2022.
  15. [39]Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations, 2022a.arxiv.org/abs/2106.09685
  16. [40]Shell Xu Hu, Da Li, Jan Stühmer, Minyoung Kim, and Timothy M. Hospedales. Pushing the limits of simple pipelines for few-shot learning: External data and fine-tuning make a difference. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9068–9077, 2022b.arxiv.org/abs/2204.07305
  17. [41]Yujing Hu, Vincent Gripon, and Stéphane Pateux. Leveraging the feature distribution in transfer-based few-shot learning. In International Conference on Artificial Neural Networks (ICANN), 2021.
  18. [44]Louis Kirsch, James Harrison, Jascha Narain Sohl-Dickstein, and Luke Metz. General-purpose in-context learning by meta-learning transformers. In NeurIPS Workshop on Meta-Learning, 2022.arxiv.org/abs/2212.04458
  19. [45]Simon Kornblith, Jonathon Shlens, and Quoc V. Le. Do better than imagenet models transfer better? In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2661–2671, 2019.arxiv.org/abs/1805.08974
  20. [49]Wei-Hong Li, Xiailei Liu, and Hakan Bilen. Cross-domain few-shot learning with task-specific adapters. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022.arxiv.org/abs/2107.00358
  21. [51]Yanbin Liu, Juho Lee, Minseop Park, Saeh​​oon Kim, Eunho Yang, Sung Ju Hwang, and Yi Yang. Learning to propagate labels: Transductive propagation network for few-shot learning. In International Conference on Learning Representations, 2019.arxiv.org/abs/1805.10002
  22. [54]Daniel Morales-Brotons, Thijs Vogels, and Hadrien Hendrix. Exponential moving average of weights in deep learning: Dynamics and benefits. Transactions on Machine Learning Research, 2024.arxiv.org/abs/2411.18704
  23. [55]Luca Moschella, Valentino Maiorca, Marco Fumero, Antonio Norelli, Francesco Locatello, and Emanuele Rodolà. Relative representations enable zero-shot latent space communication. In International Conference on Learning Representations, 2023.arxiv.org/abs/2209.15430
  24. [56]Niklas Muennighoff, Nouamane Tazi, Loïc Magne, and Nils Reimers. MTEB: Massive text embedding benchmark. In Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics, pp. 2014–2037, 2023.
  25. [58]Samuel Müller, Noah Hollmann, Sebastian Pineda Arango, Josif Grabocka, and Frank Hutter. Transformers can do Bayesian inference. In International Conference on Learning Representations, 2022.arxiv.org/abs/2112.10510
  26. [59]Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, Mahmoud Assran, Nicolas Ballas, Wojciech Galuba, Russell Howes, Po-Yao Huang, Shang-Wen Li, Ishan Misra, Michael Rabbat, Vasu Sharma, Gabriel Synnaeve, Hu Ye, Herve Jegou, Julien Mairal, Patrick Labatut, Armand Joulin, and Piotr Bojanowski. DINOv2: Learning robust visual features without supervision. Transactions on Machine Learning Research, 2024.arxiv.org/abs/2304.07193
  27. [60]Fabian Pedregosa, Gaël Varoquaux, Alexandre Gramfort, Vincent Michel, Bertrand Thirion, Olivier Grisel, Mathieu Blondel, Peter Prettenhofer, Ron Weiss, Vincent Dubourg, Jake Vanderplas, Alexandre Passos, David Cournapeau, Matthieu Brucher, Matthieu Perrot, and Édouard Duchesnay. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12: 2825–2830, 2011.arxiv.org/abs/1201.0490
  28. [62]Boris T. Polyak and Anatoli B. Juditsky. Acceleration of stochastic approximation by averaging. SIAM Journal on Control and Optimization, 30(4):838–855, 1992.DOI
  29. [63]Jingang Qu, David Holzmüller, Gaël Varoquaux, and Marine Le Morvan. TabICL: A tabular foundation model for in-context learning on large data. In International Conference on Machine Learning, 2025.arxiv.org/abs/2502.05564
  30. [64]Jingang Qu, David Holzmüller, Gaël Varoquaux, and Marine Le Morvan. TabICLv2: A better, faster, scalable, and open tabular foundation model. In International Conference on Machine Learning, 2026.arxiv.org/abs/2602.11139
  31. [66]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, pp. 8748–8763, 2021.arxiv.org/abs/2103.00020
  32. [69]Adam Santoro, Sergey Bartunov, Matthew Botvinick, Daan Wierstra, and Timothy Lillicrap. Meta-learning with memory-augmented neural networks. In International Conference on Machine Learning, 2016.
  33. [72]Jake Snell, Kevin Swersky, and Richard S. Zemel. Prototypical networks for few-shot learning. In Advances in Neural Information Processing Systems, 2017.arxiv.org/abs/1703.05175
  34. [73]Jianlin Su, Jiarun Cao, Weijie Liu, and Yangyiwen Ou. Whitening sentence representations for better semantics and faster retrieval. arXiv preprint arXiv:2103.15316, 2021.arxiv.org/abs/2103.15316
  35. [78]Yonglong Tian, Yue Wang, Dilip Krishnan, Joshua B. Tenenbaum, and Phillip Isola. Rethinking few-shot image classification: a good embedding is all you need? In European Conference on Computer Vision, 2020.arxiv.org/abs/2003.11539
  36. [79]Eleni Triantafillou, Tyler Zhu, Vincent Dumoulin, Pascal Lambert, Utku Evci, Kelvin Xu, Ross Goroshin, Carles Gelada, Kevin Swersky, Pierre-Antoine Manzagol, and Hugo Larochelle. Meta-dataset: A dataset of datasets for learning to learn from few examples. In International Conference on Learning Representations, 2020.arxiv.org/abs/1903.03096
  37. [81]Hung-Yu Tseng, Hsin-Ying Lee, Jia-Bin Huang, and Ming-Hsuan Yang. Cross-domain few-shot classification via learned feature-wise transformation. In International Conference on Learning Representations, 2020.arxiv.org/abs/2001.08735
  38. [82]Ihsan Ullah, Dustin Carrión-Ojeda, Sergio Escalera, Isabelle Guyon, Mike Huisman, Felix Mohr, Jan N. van Rijn, Haozhe Sun, Joaquin Vanschoren, and Phan Anh Vu. Meta-Album: Multi-domain meta-dataset for few-shot image classification. In Advances in Neural Information Processing Systems, Datasets and Benchmarks Track, 2022.
  39. [83]Vladimir N. Vapnik. Statistical Learning Theory. Wiley, 1998.
  40. [84]Olivier Veilleux, Malik Boudiaf, Pablo Piantanida, and Ismail Ben Ayed. Realistic evaluation of transductive few-shot learning. In Advances in Neural Information Processing Systems, 2021.arxiv.org/abs/2204.11181
  41. [86]Oriol Vinyals, Charles Blundell, Timothy Lillicrap, Koray Kavukcuoglu, and Daan Wierstra. Matching networks for one shot learning. In Advances in Neural Information Processing Systems, 2016.arxiv.org/abs/1606.04080
  42. [90]Yan Wang, Wei-Lun Chao, Kilian Q. Weinberger, and Laurens van der Maaten. SimpleShot: Revisiting nearest-neighbor classification for few-shot learning. arXiv preprint arXiv:1911.04623, 2019.arxiv.org/abs/1911.04623
  43. [92]Stefano Woerner, Seong Joon Oh, and Christian F. Baumgartner. Universal algorithm-implicit learning. In International Conference on Machine Learning, 2026.arxiv.org/abs/2602.14761
  44. [95]Chenghao Xiao, Isaac Chung, Imene Kerboua, Jamie Stirling, Xin Zhang, Márton Kardos, Roman Solomatin, Noura Al Moubayed, Kenneth Enevoldsen, and Niklas Muennighoff. MIEB: Massive image embedding benchmark. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 22187–22198, 2025b.arxiv.org/abs/2504.10471
  45. [100]Han-Jia Ye, Hexiang Hu, De-Chuan Zhan, and Fei Sha. Few-shot learning via embedding adaptation with set-to-set functions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 8808–8817, 2020.arxiv.org/abs/1812.03664
  46. [101]Maxime Zanella and Ismail Ben Ayed. Low-rank few-shot adaptation of vision-language models. In IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, 2024.arxiv.org/abs/2405.18541

Paper details

vlnc:W_qbktjtzr
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

generative AI tools

View statement
Looking for related papers…
Contents