betaFeedback

WorksComputer Science

Rank2Replace: VLM-Ranked Slot Replacement for Out-of-Distribution Generalization

Abstract

Spurious correlations can give image predictors high in-distribution accuracy but poor generalization under distribution shift. We introduce Rank2Replace\textbf{Rank2Replace}, which transfers knowledge of task-relevant evidence from pretrained vision–language models (VLMs) to small predictors through training-time augmentation for out-of-distribution (OOD) generalization. The VLM ranks object-centric slots by task relevance and guides rank-dependent replacement with same-rank slot embeddings from another image. This augmentation retains the original image's label, encouraging reliance on preserved task evidence as incidental cues change, and supports combination with existing OOD methods. Across four datasets and six splits under shared frozen slot embeddings, the default cross-entropy configuration reaches macro-averaged average-group and worst-group accuracies of 80.43%80.43\% and 65.28%65.28\% without environment labels or dataset-specific replacement tuning. Slot corruption improves both macro-averaged metrics for all fourteen OOD training methods. Combining it with slot ranking and IRM reaches 81.96%81.96\% and 72.68%72.68\%. Controlled ablations support the ranking and replacement design, with gains across five ranking VLMs and six extractor–predictor combinations. Permutation-invariant predictors further improve both macro-averaged metrics over their unaugmented counterparts while using VLM guidance only during training for efficient inference.

Introduction

Image recognition models often exploit correlations between class labels and incidental cues, such as backgrounds and textures, induced by dataset biases [13, 44, 53]. When these correlations change, high in-distribution accuracy can conceal severe failures on underrepresented groups. Consequently, robust out-of-distribution (OOD) generalization requires both preserving task evidence and reducing reliance

on incidental cues.

Conventional robustness methods primarily address the latter goal. Environment- and group-aware methods, such as Invariant Risk Minimization (IRM) [2], use observed or inferred partitions to reduce reliance on incidental cues [5, 24], while other methods intervene through errors, gradients, or interpolation [16, 31, 59, 63]. These mechanisms act indirectly, without explicitly identifying the task-relevant regions whose evidence should be preserved.

Vision–language models (VLMs) offer a way to make task evidence explicit. By connecting images with language [38], they can identify task-relevant regions to guide attention, representations, or augmentation [30, 36, 51]. Several methods already use semantic priors, such as VLMs, to improve OOD robustness. For example, B2T derives group descriptions from predictor errors [21], while RaVL uses discovered spurious regions for VLM fine-tuning [45]. ASPIRE instead identifies spurious content and synthesizes training images without it [14]. These interventions depend on the biases uncovered during diagnosis, which determine the inferred supervision or content to edit. This motivates a complementary question: how can we transfer VLMs’ knowledge of task-relevant evidence to small, efficient predictors for OOD generalization?

To address this question, we introduce Rank2Replace, a new paradigm for VLM-guided OOD augmentation. To the best of our knowledge, it is the first method to translate instance-specific VLM task-relevance rankings into rank-dependent, cross-image replacement of object-centric slot embeddings for OOD image classification. A frozen extractor [8] decomposes the full image into slot images and corresponding slot embeddings that may capture objects, parts, or background. A VLM then ranks the slot images jointly with embeddings by fixed task-evidence criteria. This process preserves high-ranking slots containing task evidence. Low-ranking slots, potentially carrying incidental cues, can be replaced with same-ranked slots from other images, thereby disrupting spurious correlations between incidental cues and labels. Rule-based or VLM-derived schedules decide replacement probability for each rank. Finally, the small predictor trained on ranked slot embeddings is encouraged to rely on preserved task evidence as incidental cues change.

Across four datasets and six splits [28, 32, 39, 60], Rank2Replace leads diverse OOD methods with 65.28% macro-averaged worst-group accuracy under shared frozen slot embeddings. Combined with IRM, Rank2Replace can even reach a higher worst-group accuracy of 72.68%.

Our contributions are:

  • A new paradigm leveraging VLM priors for OOD generalization. By transferring VLM knowledge through our slot-level ranking method, Rank2Replace significantly outperforms prior works without requiring environment or group labels.

  • Seamless compatibility with existing methods. When environment or group labels are available, our framework can easily integrate with existing OOD approaches to yield further performance gains.

  • Generality and practicality. Rank2Replace remains effective across five VLM families and six extractor–predictor combinations, with permutation-invariant adaptation adding minimal inference latency.

Related Work

Robust objectives and generic augmentation. Robust learning includes invariant prediction, worst-group risk minimization, domain alignment, class–environment regularization, and balanced refitting [2, 22, 35, 39, 41]. Reweighting, feature suppression, representation regularization, and flatness-based training offer complementary strategies [4, 16, 31, 48, 50]. Mixup and MixStyle augment inputs or feature statistics [59, 63].

Cross-image feature composition. SwapMix [15] uses ground-truth question reasoning to identify irrelevant object features in VQA. Class swaps favor semantically similar categories, while attribute swaps retain the object category. Rank2Replace matches pretrained slots by task-relevance rank, without question programs or category/attribute matching. An extractor partitions the full image into slots, covering objects, parts, and background. A VLM then supplies an image-specific slot ranking from a fixed task description, without human per-image relevance annotations. This permits replacement beyond a predefined object inventory, including slots containing both task evidence and context. Slot-Mixup aggregates whole-slide features into slots and interpolates slots and labels [19]. SlideMix uses a VLM to select diagnostically relevant tissue features and supplies VLM soft labels for shuffled mixtures [51]. Rank2Replace replaces whole slot embeddings while retaining labels, avoiding the need to assign mixed training targets.

The full task-relevance ranking specifies the default predictor’s slot positions and replacement-schedule indices. This couples semantic alignment to slot replacement, including graded schedules that retain lower-ranked slots with nonzero probability. Lee et al. [26] learn intrinsic and bias encoders, then randomly permute bias vectors across a minibatch while retaining recipient intrinsic factors and labels. BiasSwap [20] transfers bias attributes through CAM-guided image translation with a swapping autoencoder. Rank2Replace obtains its components from a pretrained extractor without learning a binary intrinsic/bias factorization or training a swapping generator.

Semantic guidance for robustness. GALS supervises attention with language-grounded task-relevance maps [36]. SupER uses superclass-guided attention alignment and representation disentanglement [30]. These are precedents for positive task guidance. Rank2Replace applies this guidance through ordered feature composition without requiring attention alignment. Augmented embeddings can feed different predictor architectures and training objectives. RaVL discovers spurious region clusters and derives subgroup information for region-aware VLM fine-tuning, including encouragement of relevant regions [45]. Its intervention therefore depends on corpus-level bias discovery and subgroup-derived training signals. Our default pipeline ranks each image from a task description, without inferred group partitions or VLM fine-tuning. B2T extracts keywords from captions of misclassified images to derive group descriptions [21]. Yang et al. detect candidate spurious attributes and retain practitioner validation before debiasing [54]. These approaches diagnose biases from model behavior across examples. Rank2Replace orders each image’s visible task evidence without using downstream prediction errors. LBC and SPUME use discovered class–attribute correlations for relabeling or meta-learning [61, 62]. DISC and ASPIRE target detected spurious concepts through augmentation or synthesis [14, 52]. LADS, CLIP the Gap, and PØDA use domain descriptions [9, 11, 46]. FAMix mines local style banks from random prompts [12]. Rank2Replace exchanges slot embeddings across images by task relevance without domain descriptions, style banks, or prior bias discovery, and is compatible with different training pipelines.

Representations and predictive interfaces. Object-centric methods learn concept dictionaries, condition or fuse slots with language, and build object–concept–relation representations [1, 7, 27, 42]. Rank2Replace applies task-relevance rankings to already extracted slots. Concept bottleneck methods predict through explicit concepts [23, 34, 55]. Richer concept embeddings and residual pathways mitigate the information loss of incomplete scalar concept vocabularies [6, 10, 40, 57]. This evolution justifies Rank2Replace’s prediction from native slot embeddings.

Method

Rank2Replace uses VLM priors to rank slots before cross-image replacement for data augmentation (Figure 1). Rankings define the positions of all slots and their donor correspondence. Rank-dependent probabilities determine which recipient embeddings are replaced.

Figure 1. Rank2Replace training and inference with rank-dependent corruption, illustrated with the Waterbirds dataset.

Object-centric Representations

Given a training set D={(xi,yi)}i=1N\mathcal{D} = \{(x_i,y_i)\}_{i=1}^{N} with yi∈{1,…,C}y_i \in\{1,\ldots,C\}, a frozen, pretrained object-centric extractor produces K≥2K \ge2 slot embeddings hi,s∈Rdh_{i,s} \in\mathbb{R}^{d} and corresponding region masks. Our hard masks assign every image patch to a slot, partitioning the full input image (App. § 8.§ 3). The original slot index ss has no prescribed semantic order. Each mask retains its corresponding region and fills the remaining pixels with a fixed gray value, producing a slot image vi,sv_{i,s}. Slot images provide visible evidence for ranking, and slot embeddings provide the predictive representation.

Task-guided Slot Ranking

A frozen VLM ranks each image’s nonempty slot images using a task description and task-evidence criteria. A shared prompt prioritizes pure task evidence, then evidence mixed with unrelated content, then regions without task evidence. The prompt, task descriptions, and evidence criteria are human-authored before predictor training (App. § 8.7). VLM ranking only uses slot images without ground-truth labels. Empty slots follow in a fixed random order. Evidence annotations support ranking effectiveness. (App. § 8.6.2).

Let πi(r)\pi_i(r) denote the original slot index at rank rr, with r=1r = 1 being the most relevant. The ranked representation is

zi,r=Tr(hi,πi(r)),z_{i,r} = T_r\left(h_{i,\pi_i(r)}\right),
zi=concat⁡(zi,1,…,zi,K)∈RKd,(1)z_i = \operatorname{concat}(z_{i,1}, \ldots, z_{i,K}) \in\mathbb{R}^{Kd}, \tag*{(1)}

where Tr:Rd→RdT_r : \mathbb{R}^{d} \to\mathbb{R}^{d} is fixed preprocessing shared across images at rank rr: the identity or standardization estimated only from training data. The same permutation orders the slot images and embeddings. For the default predictor, the full permutation specifies input coordinates and same-rank donor correspondence. It also indexes replacement probabilities. Equal ranks need not share an object category.

Rank-dependent Slot Corruption

A schedule assigns (q1,…,qK)∈[0,1]K(q_1,\ldots,q_K) \in[0,1]^K, either by a rule on rank or from rank-wise training-set aggregates of VLM relevance scores (App. § 8.5.5). For a minibatch of BB images, a uniformly random permutation σ\sigma assigns donor σ(i)\sigma(i) to recipient ii. Pairing is independent of class labels and allows self-pairs. We independently sample

mi,r∼Bernoulli⁡(qr),r=1,…,K,(2)m_{i,r} \sim\operatorname{Bernoulli}(q_r), \qquad r = 1,\ldots,K, \tag*{(2)}

and form corrupted slot embeddings by replacement

z~i,r=(1−mi,r)zi,r+mi,rzσ(i),r,\widetilde{z}_{i,r} = (1-m_{i,r})z_{i,r} + m_{i,r}z_{\sigma(i),r},
z~i=concat⁡(z~i,1,…,z~i,K).(3)\widetilde{z}_i = \operatorname{concat}(\widetilde{z}_{i,1},\ldots,\widetilde{z}_{i,K}). \tag*{(3)}

Replacement uses whole, same-rank embeddings from one shared donor per recipient as default, retaining a common source for inserted content. Donor embeddings remain native extractor outputs after the same preprocessing. We resample σ\sigma for each training batch.

Our default Top-preserving schedule fixes q1=0q_1 = 0 and qr=1q_r = 1 for r>1r > 1 across datasets. § 4.4.1 compares rule-based and VLM-derived schedules.

Training and Inference

We retain recipient class labels to form B~={(z~i,yi)}i=1B\widetilde{\mathcal{B}} = \{(\widetilde{z}_i,y_i)\}_{i=1}^{B} and optimize a predictor fθf_\theta with training objective Ltask\mathcal{L}_{\mathrm{task}},

min⁡θ EB,σ,m[Ltask(θ;B~)].(4)\min_{\theta}\ \mathbb{E}_{\mathcal{B},\sigma,m}\left[\mathcal{L}_{\mathrm{task}}(\theta;\widetilde{\mathcal{B}})\right]. \tag*{(4)}

The default design uses class-balanced cross-entropy (CE), and trains only the downstream predictor. Slot corruption supports other objectives with their own supervision requirements or predictor architectures.

With the default MLP predictor, validation and inference use uncorrupted slot embeddings with the same ranking and preprocessing. Permutation-invariant predictors instead use shared preprocessing across slots and require VLM ranking only for training-time replacement (§ 4.4.4).

Experiments

Setup

Datasets and evaluation. We evaluate Waterbirds, CelebA, MetaShift, and three NICO++ splits (App. § 8.§ 1). We report average-group and worst-group accuracy over class ×\times environment groups for the first three datasets and target-environment groups for NICO++. Macro averages weight the four datasets equally after averaging the three NICO++ splits. We report mean ±\pm sample SD over 3 seeds. Accuracies and their absolute differences use %.

Shared protocol and baselines. To isolate downstream robustness mechanisms, methods share frozen FT-DINOSAUR slot embeddings and an MLP unless varied in an ablation, with K=7K = 7 by default (App. § 8.§ 3). Default ranking uses Qwen3-VL-8B-Instruct [3]. In the overall comparison, Rank2Replace, Grouped LAAT, and hard removal use ranked slot embeddings. Other methods use the original slot order. Grouped LAAT aligns slot importance with the ranking [47], and hard removal retains a validation-selected number of top-ranked slots (App. § 8.§ 4). IRM, Group DRO, CORAL, SCER, and DFR use Qwen3-VL environment labels by default.

Model selection. Predictor training uses the same method-specific search spaces. Models and hyperparameters are selected by validation balanced accuracy plus macro F1 (App. § 8.§ 2). Default Rank2Replace fixes Top-preserving across datasets without a robustness penalty to tune.

Main Results

We first examine the necessity of slot embeddings, then compare robustness and compatibility under shared frozen slot embeddings. Detailed settings are in App. § 8.§ 5.

Global Embeddings and End-to-End Training

Table 1 compares mean-pooled global image embeddings and slot embeddings from the same initial encoder. With a frozen encoder and an MLP, Rank2Replace reaches 80.43% average-group and 65.28% worst-group accuracy, exceeding global image embeddings by 4.87% and 11.39%. Ranking alone improves average-/worst-group accuracy over original-order CE by 4.24%/7.71%, before replacement adds 4.47%/9.80%. These controls support slot ranking and replacement for prediction and augmentation.

Representation / inputEncoderPredictor / trainingAverage-groupWorst-group
Global image embeddingFrozenLinear / CE75.60 ± 0.0954.13 ± 0.33
Global image embeddingFrozenMLP / CE75.56 ± 0.5653.89 ± 1.82
Global image embeddingUpdatedLinear / CE79.41 ± 1.0159.75 ± 3.06
Global image embeddingUpdated, then frozenLinear / AFR78.93 ± 0.9358.87 ± 2.73
Global image embeddingUpdatedLinear / SagNet80.46 ± 1.0662.07 ± 4.26
Original slot orderFrozenLinear / CE72.14 ± 0.3249.43 ± 1.18
Original slot orderFrozenMLP / CE71.72 ± 0.6647.77 ± 3.02
Slot rankingFrozenMLP / CE75.96 ± 0.2955.48 ± 0.63
Rank2ReplaceFrozenMLP / CE80.43 ± 0.3365.28 ± 0.81
Rank2ReplaceUpdatedMLP / CE81.72 ± 0.5467.52 ± 2.24

Table 1. Global image embeddings and end-to-end training. All conditions start from the same FT-DINOSAUR encoder checkpoint. Bold marks the default design and highest macro-averaged accuracies. Settings: App. § 8.5.1.

The advantage also holds against methods that update the global-image encoder. Frozen Rank2Replace exceeds AFR [37] in both metrics and SagNet [33] in worst-group accuracy (65.28% versus 62.07%), with nearly identical average-group accuracy (80.43% versus 80.46%).

Jointly updating the encoder, Slot Attention, and MLP with fixed Qwen3-VL rankings raises Rank2Replace to 81.72%/67.52%, improving over the frozen default by 1.29%/2.24% and exceeding both AFR and SagNet in both metrics. These are separate pipeline comparisons. Subsequent comparisons use shared frozen slot embeddings.

Overall Performance

Rank2Replace exceeds all fourteen baselines in both macro-averaged metrics, reaching 80.43% average-group and 65.28% worst-group accuracy (Figure 2). These exceed CE by 8.71% and 17.51%. It leads average-group accuracy on five of six splits and worst-group accuracy on four. The exceptions are DFR on CelebA (88.13%/84.05% versus 85.13%/60.93%) and hard removal on MetaShift worst-group accuracy (68.98% versus 68.75%).

Figure 2. Overall performance. Rank2Replace leads both macro-averaged metrics (top). Individual splits (below) show exceptions for DFR on CelebA and hard removal in MetaShift worst-group accuracy. Split-level numerical results are in Table 7 and Table 8.

MethodWaterbirds: Average-groupWaterbirds: Worst-groupCelebA: Average-groupCelebA: Worst-groupMetaShift: Average-groupMetaShift: Worst-group
CE68.87±0.5568.87 \pm0.5537.12±2.6837.12 \pm2.6882.73±1.2782.73 \pm1.2751.67±4.3451.67 \pm4.3473.38±2.1273.38 \pm2.1243.52±7.4343.52 \pm7.43
IRM75.33±1.5975.33 \pm1.5960.45±8.9360.45 \pm8.9383.43±0.7983.43 \pm0.7955.93±3.2155.93 \pm3.2176.97±0.5376.97 \pm0.5356.71±4.1956.71 \pm4.19
Group DRO75.55±1.1475.55 \pm1.1454.00±7.0954.00 \pm7.0983.83±2.1583.83 \pm2.1556.30±9.1756.30 \pm9.1774.88±1.6074.88 \pm1.6045.14±8.6745.14 \pm8.67
JTT73.41±1.1773.41 \pm1.1749.90±4.5649.90 \pm4.5676.62±0.9176.62 \pm0.9128.33±4.0128.33 \pm4.0173.78±1.8473.78 \pm1.8445.83±5.5645.83 \pm5.56
RSC69.99±0.3369.99 \pm0.3335.05±1.8035.05 \pm1.8082.24±0.4282.24 \pm0.4248.33±1.4748.33 \pm1.4774.36±2.1674.36 \pm2.1645.83±9.3445.83 \pm9.34
CORAL72.76±0.7372.76 \pm0.7360.38±3.7160.38 \pm3.7176.21±0.4876.21 \pm0.4827.59±2.1027.59 \pm2.1072.80±0.8772.80 \pm0.8740.51±4.0140.51 \pm4.01
Mixup69.14±0.9969.14 \pm0.9937.75±1.6437.75 \pm1.6482.93±1.1082.93 \pm1.1051.85±4.4651.85 \pm4.4674.13±2.1174.13 \pm2.1144.21±9.0644.21 \pm9.06
ElRep69.13±0.3869.13 \pm0.3836.40±0.4836.40 \pm0.4882.98±0.5982.98 \pm0.5952.22±2.9452.22 \pm2.9473.38±2.2473.38 \pm2.2443.29±7.3643.29 \pm7.36
SAGM69.60±0.8369.60 \pm0.8338.63±0.2738.63 \pm0.2783.11±0.7983.11 \pm0.7951.67±3.3851.67 \pm3.3873.32±1.6573.32 \pm1.6542.59±6.3042.59 \pm6.30
SWAD65.85±1.0665.85 \pm1.0628.56±2.7528.56 \pm2.7583.47±0.3083.47 \pm0.3053.52±1.1653.52 \pm1.1674.59±0.9674.59 \pm0.9649.31±2.7849.31 \pm2.78
SCER69.04±0.2669.04 \pm0.2633.54±0.3933.54 \pm0.3982.96±0.2882.96 \pm0.2851.48±1.7051.48 \pm1.7074.48±1.1474.48 \pm1.1445.60±6.4545.60 \pm6.45
DFR66.77±3.1166.77 \pm3.1146.26±2.9746.26 \pm2.9788.13±0.1888.13 \pm0.1884.05±0.6284.05 \pm0.6270.43±1.8270.43 \pm1.8252.55±5.1252.55 \pm5.12
Rank2Replace82.49±0.8482.49 \pm0.8463.08±0.6263.08 \pm0.6285.13±0.4585.13 \pm0.4560.93±1.1660.93 \pm1.1683.33±0.7683.33 \pm0.7668.75±1.8468.75 \pm1.84
Grouped LAAT74.09±1.0474.09 \pm1.0450.42±1.9650.42 \pm1.9682.16±0.7482.16 \pm0.7448.33±2.7848.33 \pm2.7880.44±1.1380.44 \pm1.1360.42±4.2260.42 \pm4.22
Hard removal81.02±0.4681.02 \pm0.4659.50±1.0859.50 \pm1.0883.72±0.2383.72 \pm0.2353.33±0.9653.33 \pm0.9682.99±0.3582.99 \pm0.3568.98±0.4068.98 \pm0.40

Table 7. Overall performance in Figure 2: Waterbirds, CelebA, and MetaShift.

MethodAutumn/Rock: Average-groupAutumn/Rock: Worst-groupDim/Grass: Average-groupDim/Grass: Worst-groupOutdoor/Water: Average-groupOutdoor/Water: Worst-group
CE64.09±0.3264.09 \pm0.3263.30±0.6463.30 \pm0.6462.83±0.3962.83 \pm0.3959.81±0.4859.81 \pm0.4858.84±0.2658.84 \pm0.2653.15±0.4553.15 \pm0.45
IRM63.16±0.4163.16 \pm0.4162.30±0.2662.30 \pm0.2661.65±0.1461.65 \pm0.1458.22±0.4058.22 \pm0.4056.92±0.3656.92 \pm0.3651.91±0.3651.91 \pm0.36
Group DRO62.73±0.0362.73 \pm0.0362.01±0.1062.01 \pm0.1062.55±0.5462.55 \pm0.5459.33±0.6059.33 \pm0.6058.18±0.1858.18 \pm0.1853.07±0.4353.07 \pm0.43
JTT63.48±0.2263.48 \pm0.2262.92±0.2862.92 \pm0.2862.31±0.6362.31 \pm0.6358.88±0.8458.88 \pm0.8458.53±0.3558.53 \pm0.3553.50±0.2653.50 \pm0.26
RSC64.75±0.1164.75 \pm0.1163.87±0.0663.87 \pm0.0663.07±0.4963.07 \pm0.4960.38±0.6960.38 \pm0.6959.11±0.1559.11 \pm0.1553.81±0.3353.81 \pm0.33
CORAL62.78±0.5262.78 \pm0.5261.68±0.4561.68 \pm0.4561.85±0.0561.85 \pm0.0558.51±0.1158.51 \pm0.1157.24±0.3657.24 \pm0.3652.75±0.3652.75 \pm0.36
Mixup62.97±0.3962.97 \pm0.3962.39±0.2762.39 \pm0.2761.27±0.3861.27 \pm0.3858.65±0.1358.65 \pm0.1358.62±0.4658.62 \pm0.4652.95±0.2452.95 \pm0.24
ElRep64.29±0.5764.29 \pm0.5763.44±0.7463.44 \pm0.7462.92±0.5862.92 \pm0.5859.83±0.5559.83 \pm0.5558.84±0.2658.84 \pm0.2653.15±0.4253.15 \pm0.42
SAGM64.52±0.0464.52 \pm0.0463.57±0.2063.57 \pm0.2063.24±0.3063.24 \pm0.3060.28±0.2160.28 \pm0.2158.83±0.2158.83 \pm0.2153.23±0.3653.23 \pm0.36
SWAD64.36±0.2564.36 \pm0.2563.61±0.5763.61 \pm0.5762.46±0.4362.46 \pm0.4359.39±0.4559.39 \pm0.4558.54±0.2458.54 \pm0.2453.14±0.4353.14 \pm0.43
SCER64.23±0.5964.23 \pm0.5963.41±0.7063.41 \pm0.7062.85±0.2762.85 \pm0.2759.95±0.4359.95 \pm0.4358.88±0.2858.88 \pm0.2853.20±0.5153.20 \pm0.51
DFR56.20±0.7056.20 \pm0.7056.01±0.6356.01 \pm0.6356.46±1.4456.46 \pm1.4453.19±1.9153.19 \pm1.9152.83±0.7352.83 \pm0.7347.02±0.5647.02 \pm0.56
Rank2Replace72.49±0.0472.49 \pm0.0472.14±0.1372.14 \pm0.1371.69±0.0971.69 \pm0.0968.57±0.1268.57 \pm0.1268.15±0.1868.15 \pm0.1864.33±0.2964.33 \pm0.29
Grouped LAAT70.83±0.5670.83 \pm0.5670.10±0.6070.10 \pm0.6069.17±0.2969.17 \pm0.2966.23±0.4966.23 \pm0.4965.36±0.2965.36 \pm0.2960.72±0.1660.72 \pm0.16
Hard removal72.30±0.3072.30 \pm0.3071.60±0.1971.60 \pm0.1971.56±0.3971.56 \pm0.3968.33±0.4468.33 \pm0.4467.58±0.5367.58 \pm0.5363.53±0.3363.53 \pm0.33

Table 8. Overall performance in Figure 2: the three NICO++ splits.

On Waterbirds and MetaShift, worst-group gains over CE are 25.96% and 25.23%. Rank2Replace exceeds hard removal by 0.88%/2.87% in the two macro-averaged metrics, despite hard removal’s split-specific cutoff tuning. It also leads both metrics for K=5K = 5–9 (App. § 8.6.4). Across a 3×33 \times3 learning-rate and weight-decay sweep, default Rank2Replace even exceeds every IRM, Group DRO, and DFR configuration in both metrics (App. § 8.6.5).

Contributions and Compatibility

Slot ranking improves both macro-averaged metrics for all twelve methods with an original-order control, and slot corruption further improves all fourteen methods in Figure 3. Across the twelve complete comparisons, ranking increases worst-group accuracy by 4.56%–8.38%, and corruption adds 6.15%–11.26%.

Figure 3. Slot ranking and slot corruption across training methods. Gray bars use the original slot order, blue adds slot ranking, and orange adds slot corruption. Grouped LAAT and hard removal already use slot ranking. CE with both interventions is default Rank2Replace. Error bars refer to models trained with slot corruption. Numerical results: Table 9 and Table 10.

MethodOriginal slot orderSlot rankingRanking + corruptionRanking gainCorruption gainTotal gain
CE71.72 ± 0.6675.96 ± 0.2980.43 ± 0.33+4.24+4.47+8.71
IRM74.07 ± 0.2777.55 ± 0.5681.96 ± 0.08+3.48+4.41+7.89
Group DRO73.85 ± 0.3677.42 ± 0.5581.38 ± 0.23+3.57+3.96+7.53
JTT71.31 ± 0.6275.35 ± 0.7179.18 ± 0.33+4.04+3.83+7.87
RSC72.23 ± 0.6576.03 ± 0.1480.19 ± 0.48+3.80+4.16+7.96
CORAL70.60 ± 0.2375.15 ± 0.0778.82 ± 0.50+4.55+3.67+8.22
Mixup71.79 ± 0.7775.79 ± 0.2080.50 ± 0.29+4.00+4.71+8.71
ElRep71.88 ± 0.5676.05 ± 0.7880.42 ± 0.39+4.17+4.37+8.54
SAGM72.06 ± 0.1976.14 ± 0.7380.53 ± 0.17+4.08+4.39+8.47
SWAD71.43 ± 0.0875.43 ± 0.1180.25 ± 0.09+4.00+4.82+8.82
SCER72.12 ± 0.3575.77 ± 0.2380.44 ± 0.15+3.65+4.67+8.32
DFR70.12 ± 0.4274.62 ± 0.2078.42 ± 0.12+4.50+3.80+8.30
Grouped LAAT–76.28 ± 0.5880.39 ± 0.14–+4.11–
Hard removal–79.55 ± 0.0780.50 ± 0.24–+0.95–

Table 9. Average-group accuracy and gains for Figure 3.

MethodOriginal slot orderSlot rankingRanking + corruptionRanking gainCorruption gainTotal gain
CE47.77 ± 3.0255.48 ± 0.6365.28 ± 0.81+7.71+9.80+17.51
IRM57.64 ± 2.7962.59 ± 1.2472.68 ± 0.67+4.95+10.09+15.04
Group DRO53.39 ± 2.8761.02 ± 2.7068.03 ± 0.86+7.63+7.01+14.64
JTT45.62 ± 1.6951.53 ± 4.2959.80 ± 1.26+5.91+8.27+14.18
RSC47.14 ± 2.0353.95 ± 1.3265.05 ± 1.25+6.81+11.10+17.91
CORAL46.53 ± 0.7554.10 ± 1.6960.25 ± 0.48+7.57+6.15+13.72
Mixup47.95 ± 3.0755.59 ± 1.1865.72 ± 0.92+7.64+10.13+17.77
ElRep47.68 ± 2.1656.06 ± 2.1265.14 ± 1.50+8.38+9.08+17.46
SAGM47.98 ± 1.8955.85 ± 1.4565.49 ± 0.73+7.87+9.64+17.51
SWAD47.52 ± 0.5453.98 ± 0.3864.44 ± 0.23+6.46+10.46+16.92
SCER47.37 ± 1.9554.05 ± 1.1765.31 ± 0.59+6.68+11.26+17.94
DFR58.73 ± 1.2663.29 ± 1.3469.57 ± 1.64+4.56+6.28+10.84
Grouped LAAT–56.21 ± 1.4965.16 ± 0.53–+8.95–
Hard removal–62.41 ± 0.3265.55 ± 0.56–+3.14–

Table 10. Worst-group accuracy and gains for Figure 3.

Rank2Replace complements environment-aware objectives. Combined with IRM, it reaches 81.96% average-group and 72.68% worst-group accuracy, the highest means among the tested combinations and improvements of 1.53% and 7.40% over default Rank2Replace. Group DRO reaches 81.38%/68.03%, also improving both metrics. DFR reaches 78.42%/69.57%, exchanging lower average-group accuracy for higher worst-group accuracy. These combinations retain their environment-label requirements.

Slot corruption raises worst-group accuracy by 8.95% for Grouped LAAT and 3.14% for hard removal.

Rank2Replace also complements methods that already use language-derived guidance: it raises macro-averaged worst-group accuracy beyond ranking alone by 7.89% for DRO-B2T and 16.67% for SPUME (App. § 8.6.7). These additional pipelines use CLIP-derived group supervision or attribute-guided meta-learning. Conversely, replacing Qwen3-VL ranking with random or mask-area orderings substantially reduces performance under Top-preserving, indicating that slot ranking is essential for slot corruption (App. § 8.6.1).

Environment-Label Quality

Without environment labels, Rank2Replace exceeds IRM, Group DRO, CORAL, SCER, and DFR in both macro-averaged metrics under every tested label condition (Figure 4). Even with oracle labels, the strongest baseline means are 75.29% average-group accuracy (IRM) and 62.50% worst-group accuracy (DFR), trailing by 5.14% and 2.78%. With VLM labels, the best means are 74.78% and 61.27%, obtained by Group DRO and DFR using MiniCPM-V4.5. Environment-inference errors alone therefore cannot explain Rank2Replace’s gains.

Figure 4. Effect of environment labels. Baselines use oracle labels, 10%–50% synthetic noise, or labels from five VLMs. Circles and triangles show average- and worst-group accuracy. Red lines and bands show the fixed Rank2Replace reference. Results: Table 11.

Environment labelsMetricIRMGroup DROCORALSCERDFR
OracleAverage-group75.29±0.3075.29 \pm0.3074.42±0.6774.42 \pm0.6771.71±0.3471.71 \pm0.3472.76±0.1572.76 \pm0.1571.33±0.8471.33 \pm0.84
OracleWorst-group61.27±1.8961.27 \pm1.8955.66±2.9255.66 \pm2.9247.25±1.1947.25 \pm1.1949.39±1.1149.39 \pm1.1162.50±1.7262.50 \pm1.72
Oracle + 10% noiseAverage-group73.25±0.1473.25 \pm0.1473.92±0.9073.92 \pm0.9070.42±0.8570.42 \pm0.8571.94±0.7071.94 \pm0.7070.46±0.5070.46 \pm0.50
Oracle + 10% noiseWorst-group54.29±1.5554.29 \pm1.5553.70±4.2953.70 \pm4.2942.10±2.4542.10 \pm2.4548.27±1.5448.27 \pm1.5454.55±1.9954.55 \pm1.99
Oracle + 20% noiseAverage-group71.99±0.7671.99 \pm0.7673.09±0.5273.09 \pm0.5269.70±0.2769.70 \pm0.2771.39±0.5771.39 \pm0.5770.25±0.3470.25 \pm0.34
Oracle + 20% noiseWorst-group50.13±3.0950.13 \pm3.0950.85±2.1850.85 \pm2.1840.42±0.8440.42 \pm0.8446.44±2.6046.44 \pm2.6051.67±0.4651.67 \pm0.46
Oracle + 30% noiseAverage-group71.46±0.3271.46 \pm0.3271.92±0.1771.92 \pm0.1770.00±0.4370.00 \pm0.4371.22±0.5771.22 \pm0.5770.06±0.2170.06 \pm0.21
Oracle + 30% noiseWorst-group46.17±2.4346.17 \pm2.4348.11±2.9448.11 \pm2.9440.17±0.2340.17 \pm0.2344.57±2.2744.57 \pm2.2750.59±1.3750.59 \pm1.37
Oracle + 40% noiseAverage-group71.00±0.3771.00 \pm0.3770.90±0.6270.90 \pm0.6269.73±0.2269.73 \pm0.2271.65±0.5871.65 \pm0.5869.79±0.3269.79 \pm0.32
Oracle + 40% noiseWorst-group44.45±1.6644.45 \pm1.6643.54±2.7043.54 \pm2.7039.18±0.4839.18 \pm0.4847.40±2.5347.40 \pm2.5350.60±0.7250.60 \pm0.72
Oracle + 50% noiseAverage-group70.65±0.2270.65 \pm0.2271.20±0.6371.20 \pm0.6369.97±0.6369.97 \pm0.6371.38±0.3671.38 \pm0.3669.60±0.5669.60 \pm0.56
Oracle + 50% noiseWorst-group42.70±0.7542.70 \pm0.7544.14±1.5444.14 \pm1.5438.31±2.0738.31 \pm2.0745.77±1.7845.77 \pm1.7850.45±0.7250.45 \pm0.72
Qwen3-VLAverage-group74.07±0.2774.07 \pm0.2773.85±0.3673.85 \pm0.3670.60±0.2370.60 \pm0.2372.12±0.3572.12 \pm0.3570.12±0.4270.12 \pm0.42
Qwen3-VLWorst-group57.64±2.7957.64 \pm2.7953.39±2.8753.39 \pm2.8746.53±0.7546.53 \pm0.7547.37±1.9547.37 \pm1.9558.73±1.2658.73 \pm1.26
Ministral 3Average-group73.25±0.7373.25 \pm0.7374.24±0.8474.24 \pm0.8470.60±0.4970.60 \pm0.4972.51±0.4972.51 \pm0.4970.16±0.0270.16 \pm0.02
Ministral 3Worst-group55.85±0.2055.85 \pm0.2055.56±3.7155.56 \pm3.7146.65±1.0546.65 \pm1.0548.84±0.6048.84 \pm0.6058.58±1.1658.58 \pm1.16
Gemma 4Average-group73.59±0.5973.59 \pm0.5974.18±0.2474.18 \pm0.2471.04±0.5571.04 \pm0.5572.13±0.2072.13 \pm0.2069.89±0.7969.89 \pm0.79
Gemma 4Worst-group56.88±2.9156.88 \pm2.9156.30±0.8156.30 \pm0.8148.80±1.1048.80 \pm1.1048.40±0.8348.40 \pm0.8358.19±0.3658.19 \pm0.36
InternVL3.5Average-group74.54±0.8174.54 \pm0.8173.77±0.2973.77 \pm0.2970.43±0.5370.43 \pm0.5372.28±0.8772.28 \pm0.8770.53±0.1570.53 \pm0.15
InternVL3.5Worst-group59.38±2.9259.38 \pm2.9255.89±0.2255.89 \pm0.2247.03±0.4747.03 \pm0.4748.46±3.0648.46 \pm3.0657.62±1.4757.62 \pm1.47
MiniCPM-V4.5Average-group74.64±0.6774.64 \pm0.6774.78±0.3974.78 \pm0.3970.93±0.6070.93 \pm0.6072.11±0.4472.11 \pm0.4471.54±0.2671.54 \pm0.26
MiniCPM-V4.5Worst-group59.29±2.2159.29 \pm2.2158.16±2.9358.16 \pm2.9346.19±0.3646.19 \pm0.3647.78±1.4647.78 \pm1.4661.27±0.4761.27 \pm0.47
Rank2Replace (no environment labels)Average-group80.43±0.3380.43 \pm0.33Worst-group: 65.28±0.8165.28 \pm0.81

Table 11. Environment-label conditions in Figure 4. Bold accuracies mark each baseline’s best label source.

Synthetic label noise affects worst-group accuracy more strongly than average-group accuracy for all five methods at every tested rate. At 50% noise, declines from oracle results are 3.62%–18.57% and 1.38%–4.64%, respectively. Variation across VLM label sources is smaller than each method’s corresponding noise-induced declines.

Ablation Studies

We examine VLM queries, replacement schedules, and donor construction, then architecture and inference trade-offs. Appendix § 8.§ 5 follows the same experiment order with numerical results and detailed settings. App. § 8.6 provides additional analyses.

Ranking Prompts and Replacement Schedules

Figure 5 examines how VLM outputs guide ranking and replacement. Independent annotations show that Qwen3-VL tends to place recognizable task evidence at the front of its rankings (App. § 8.6.2). Corruption improves both macro-averaged metrics with all five tested ranking VLMs, while slot-image presentation order has little effect (App. § 8.6.6).

Figure 5. Ranking prompts and replacement schedules. Heatmaps cross four ranking prompts with three replacement schedules. Costs count ranking-stage tokens and requests, excluding additional training-slot scoring (App. § 8.5.5).

Direct Rank uses one joint query, Pointwise Score and Binary Selection score individual slots, and Sequential Selection uses repeated queries. Direct Rank has the lowest measured ranking latency, 269 ms/image. Top-preserving needs no auxiliary scores. Score-derived schedules reuse matching ranking outputs or require additional training-slot scoring (App. § 8.5.5).

Top-preserving yields similar macro-averaged results across ranking prompts with 80.27%–80.61% average-group and 65.28%–65.65% worst-group accuracy. Sequential Selection improves on Direct Rank by 0.18%/0.19% while requiring 2.7× the ranking latency. Within each ranking prompt, Pointwise Score and Binary Selection schedules trade 1.79%–2.57% average-group accuracy for 0.58%–2.59% worst-group gains. Their finer-grained probabilities retain lower-ranked slots with nonzero probability, at the cost of more expensive ranking or additional training-slot scoring (App. § 8.6.3). Direct Rank with Top-preserving favors low cost and higher average-group accuracy.

With fixed Direct Rank prompt, Linear and Reversed lower-rank replacement schedules reach 80.01%/63.81% and 79.94%/64.11%. These comparisons vary probabilities while retaining full slot rankings and same-rank donor correspondence. With uncorrupted validation/test inputs fixed, donor replacement exceeds train-only masking by 19.55%/26.68% and train-only moment-matched synthetic corruption (79.52%/62.15%) by 0.91%/3.13%. The latter supports native donor content beyond independent coordinatewise moment matching (App. § 8.6.3).

Donor Source

Having established the value of donor content, Table 2 varies how corrupted embeddings are constructed. One shared donor is the simplest condition, reusing a single image’s lower-ranked slots for each recipient. More elaborate constructions offer modest additional gains: independent donors reach 66.18% worst-group accuracy, 0.90% above the default, while scale-corrected two-donor averaging reaches the highest average-group accuracy of 80.59%.

SettingAverage-groupWorst-group
Shared donor80.43 ± 0.3365.28 ± 0.81
Two-donor choice80.57 ± 0.4265.43 ± 1.11
Independent donors80.58 ± 0.2066.18 ± 0.88
Two-donor mean80.47 ± 0.2965.10 ± 0.95
Two-donor mean + scale correction80.47 ± 0.2965.10 ± 0.95

Table 2. Donor source. Fixed Qwen3-VL ranking and Top-preserving. Bold marks the default and highest means. Setting definitions: App. § 8.5.6.

Scale correction improves two-donor averaging, while the shared donor remains competitive with fewer sampling and transformation steps.

Extractor and Predictor Generalizability

Rank2Replace improves both macro-averaged metrics over ranking alone and the original slot order in all six extractor–predictor combinations (Table 3). We pair FT-DINOSAUR and SPOT ([18]) with an MLP, a linear predictor, and a Transformer, keeping ranking and replacement fixed. Beyond ranking alone, corruption improves average-group accuracy by 2.18%–4.47% and worst-group accuracy by 5.84%–11.71%. Predictor details are in App. A.5.7.

PredictorInput conditionFT-DINOSAUR: Average-groupFT-DINOSAUR: Worst-groupSPOT: Average-groupSPOT: Worst-group
MLPOriginal slot order71.72 ± 0.6647.77 ± 3.0272.90 ± 0.3249.59 ± 1.69
+ Slot ranking75.96 ± 0.2955.48 ± 0.6373.75 ± 0.3352.60 ± 1.56
+ Slot corruption80.43 ± 0.3365.28 ± 0.8177.73 ± 0.2762.17 ± 0.46
LinearOriginal slot order72.14 ± 0.3249.43 ± 1.1873.56 ± 0.5850.14 ± 1.28
+ Slot ranking75.27 ± 0.3654.15 ± 3.3874.74 ± 0.3453.92 ± 1.66
+ Slot corruption79.39 ± 0.1362.00 ± 1.2176.92 ± 0.1959.76 ± 0.81
TransformerOriginal slot order75.42 ± 0.6951.96 ± 1.8673.72 ± 0.4751.18 ± 1.27
+ Slot ranking75.21 ± 0.7752.14 ± 2.4274.21 ± 0.6853.14 ± 1.60
+ Slot corruption79.57 ± 0.6863.85 ± 2.0877.01 ± 0.1460.37 ± 0.84

Table 3. Extractor and predictor generalizability. Cumulative slot ranking and slot corruption across two frozen extractors and three predictors. Bold marks default choices and best means within each extractor–predictor pair. The Transformer uses positional embeddings.

The FT-DINOSAUR Transformer changes little with ranking alone, but corruption raises accuracy from 75.21%/52.14% to 79.57%/63.85%. SPOT also improves, though its accuracies remain lower. FT-DINOSAUR’s linear predictor with Rank2Replace exceeds its original-order Transformer (79.39%/62.00% versus 75.42%/51.96%).

VLM Direct Prediction and VLM-free Inference

Deep Sets [58] and Set Transformer [25] use shared slot standardization and permutation-invariant aggregation. Rankings guide replacement only during training. Validation and test use uncorrupted, original-order slots without VLM calls (App. A.5.8).

Rank2Replace improves both invariant predictors at unchanged inference cost (Table 4). Set Transformer reaches 80.65%/65.46% at 2.392 ms/image, and Deep Sets reaches 80.40%/66.21% at 3.940 ms/image. Both exceed direct VLM prediction’s macro-averaged accuracies, with 56.4× and 34.3× lower summed stage latency. Set Transformer has lower latency and higher average-group accuracy; Deep Sets has higher worst-group accuracy.

SettingMacro-averaged accuracy (%): Average-groupMacro-averaged accuracy (%): Worst-groupFeaturesVLMPredictorTotal
VLM direct prediction80.1463.67–135.011–135.011
MLP + CE71.72 ± 0.6647.77 ± 3.022.150–0.0692.219
MLP + Rank2Replace80.43 ± 0.3365.28 ± 0.812.150269.0380.069271.257
Deep Sets + CE76.52 ± 0.5955.84 ± 1.323.883–0.0573.940
Deep Sets + Rank2Replace80.40 ± 0.3366.21 ± 1.033.883–0.0573.940
Set Transformer + CE76.70 ± 0.5354.11 ± 1.722.150–0.2422.392
Set Transformer + Rank2Replace80.65 ± 0.2065.46 ± 1.192.150–0.2422.392

Table 4. VLM direct prediction and VLM-free inference. Accuracy (%) and latency (ms/image) for full-image Qwen3-VL prediction and slot-based predictors. Features include FT-DINOSAUR and, for Deep Sets, its shared slot MLP. A dash denotes an unused inference stage. Total sums stage times. Bold marks the highest accuracy and lowest total latency.

The default MLP requires inference-time ranking, while MLP + CE is fastest at 2.219 ms/image but has lower accuracy. Permutation-invariant predictors retain VLM guidance during training without VLM calls at deployment.

Conclusion

Rank2Replace introduces a new paradigm for transferring VLM knowledge of task-relevant evidence to small predictors for OOD generalization. To our knowledge, it is the first method to translate instance-specific VLM task-relevance rankings into rank-dependent, cross-image replacement of object-centric slot embeddings for OOD image classification. Ranking prioritizes evidence preservation, while donor replacement discourages reliance on incidental cues without requiring environment labels or prior bias discovery. This guidance enhances both traditional and VLM-based OOD approaches, with consistent gains across ranking VLMs, extractors, and predictors. Permutation-invariant predictors further confine VLM use to training, enabling efficient inference for real-world deployment.

LLM Usage Statement

We used ChatGPT with GPT-6 Pro to assist with drafting and revising manuscript text, grammar and style editing, literature search and citation checking, discussion of experimental results, reviewer-style feedback, and figure design. We also used Codex CLI with GPT-6-Astra at the high reasoning-effort setting to discuss and implement the proposed method, baseline methods, and experimental code.

The experimental VLMs, including Qwen3-VL, Ministral 3, Gemma 4, InternVL3.5, and MiniCPM-V4.5, were used for slot ranking and environment-label inference, with additional Qwen3-VL scoring and direct-prediction experiments (§ 4, Apps. § 8.§ 5 and § 8.5.8). GPT-6-Astra also provided task-evidence labels for the independent annotation analysis in App. § 8.6.2. The authors retain full responsibility for the scientific claims, experimental results, code, and references.

Acknowledgments

This material is based upon work supported by National Science and Technology Council, ROC under grant number 114-2221-E-002-134-MY3, NTU AI Center of Research Excellence within Taiwan Centers of Excellence in Artificial Intelligence, and by National Taiwan University and Academia Sinica Innovative Joint Program, under grant AS-NTU-114-06.

Experimental Details & Numerical Results

Bold labels identify default design choices. Bold accuracies and gains mark the highest mean in each comparison.

Datasets and Data Preparation

Table 5 lists the image counts after deduplication.

Dataset / splitPrediction task and environmentTrainVal.TestTest groups
WaterbirdsLandbird/waterbird. Land/water background.4,7951,1995,794Class ×\times environment (4)
CelebABinary Blond_Hair. Grouping attribute: Male.162,64719,86119,954Class ×\times environment (4)
MetaShiftCat/dog. Indoor/outdoor context.1,360340576Class ×\times environment (4)
NICO++: Autumn/Rock60 classes. Six environments.53,58913,39919,730Target environments (2)
NICO++: Dim/GrassSame task and environment pool.43,76810,94332,007Target environments (2)
NICO++: Outdoor/WaterSame task and environment pool.41,38910,34834,981Target environments (2)

Table 5. Dataset splits and image counts after deduplication. Each NICO++ row names the two environments held out exclusively for testing. The remaining four environments supply training and validation data.

Data partitions. Waterbirds uses its official split. CelebA uses the deduplicated official split, preserving the original split assignment of each retained image. For MetaShift, we use the official default subpopulation-shift setting, reserve 20% of its original training set for validation by stratifying on class ×\times environment, and use the original held-out set for testing. For each NICO++ split, the two target environments are used exclusively for testing. Each of the other four source environments is split 80%/20% into training/validation data, stratified by class. Custom MetaShift and NICO++ partitions use split seed 42. A NICO++ environment reuses the same training/validation lists whenever it serves as a source in different splits.

Deduplication. For CelebA and NICO++, we retain one copy of each exact duplicate image file. If copies have conflicting class or environment labels, we discard the entire duplicate cluster. CelebA prioritizes test over validation over training and retains the first image ID within the selected split, reducing its total from 202,599 to 202,462. For NICO++, exact-duplicate copies are resolved in image-ID order before splitting, reducing the evaluated six-environment pool from 88,866 to 86,718. Cropped, recompressed, and other near-duplicate images are not merged.

Evaluation and Model Selection

Test groups. Ground-truth labels define four class ×\times environment groups for Waterbirds, CelebA, and MetaShift. NICO++ uses the two held-out environments as test groups to avoid small class ×\times environment cells. Within each NICO++ environment, accuracy is computed over images without additional class balancing.

Aggregation and reporting. For each training seed, we average the three NICO++ splits and then weight the four datasets equally, separately for average-group and worst-group accuracy. Aggregation precedes the across-seed summary, so macro-averaged worst-group accuracy aggregates within-split worst-group results.

Model selection. All predictor experiments use the same method-specific hyperparameter search spaces. For each method, split, and condition, candidates use a common set of training seeds. Each seed uses the sum of validation balanced accuracy and macro F1 for model selection, with zero-denominator F1 values set to zero. For SWAD and DFR, evaluation uses the parameter-averaged predictor. We select one candidate by its mean validation score across seeds and use it for the corresponding test runs. Ties follow the fixed candidate enumeration order. Each NICO++ split and each comparison condition is selected independently. Test performance is never used for selection.

Representation and Training Implementation

Frozen representations and ranking. Unless varied in an ablation, we use the frozen ViT-S/14 FT-DINOSAUR checkpoint with seven slots, top-3 decoding, and fixed slot initialization. Images are resized to 224×224224 \times224 with bicubic interpolation and normalized with ImageNet statistics. The seven 256-dimensional slot embeddings are concatenated into 1,792 dimensions. Hard masks are obtained by argmax on the 16×1616 \times16 patch grid and upsampled with nearest-neighbor interpolation. Each slot image retains its assigned region and fills the remaining pixels with RGB (128, 128, 128). Slots receiving no patch are empty.

Frozen Qwen3-VL-8B-Instruct implements Direct Rank with greedy constrained decoding. Nonempty slot images are identified by their original slot IDs, and the output must contain each ID exactly once. Empty slots are appended in a deterministic per-image random order, fixed across runs. Cached rankings are shared across training seeds. App. § 8.7 lists all VLM checkpoint identifiers, complete prompt templates, dataset-specific task descriptions, and evidence criteria.

Preprocessing and predictor. Unless otherwise specified, each input coordinate is standardized using the training mean and standard deviation for the corresponding slot order, then fixed for validation and test. Zero-variance coordinates use a divisor of one. For ranked inputs, this implements TrT_r in Eq. (1). The default predictor is Linear–BatchNorm–ReLU–Linear with 64 hidden units and CC output logits. Hard removal changes its input dimension but not its hidden width.

Loss weighting and sampling. CE, RSC, Mixup, Rank2Replace, Grouped LAAT, and hard removal average CE within each class present in the batch, then equally across these classes. IRM and Group DRO use group-balanced sampling: class ×\times environment groups for the first three datasets and the four source environments for NICO++. CORAL balances environments only, and JTT uses error-based resampling. These four methods use ordinary CE without additional class weights. ElRep, SAGM, SWAD, and SCER use natural sampling and class-balanced CE. DFR balances class ×\times environment groups during head refitting on all four datasets (App. § 8.§ 4).

Optimization. The shared predictor training stage uses Adam with learning rate 10−410^{-4}, weight decay 0, and batch size 256. The extractor remains frozen unless varied in an ablation. The default training seeds are 9803, 38224, and 8113. Runs last at most 5,000 epochs and stop after 200 epochs without strict validation-score improvement, retaining the earliest best checkpoint when applicable. JTT’s first stage additionally runs for the candidate-specific TT epochs, with the common budget applied to its second stage. Unless specified otherwise, validation and test use uncorrupted inputs without Mixup or RSC masking, while retaining the method’s slot order and hard removal.

Baseline Implementations and Search Spaces

Table 6 lists method-specific search spaces for K=7K = 7. Implementation details follow.

Table 6. Method-specific search spaces for the default K=7K = 7 configuration. Slot order refers to Overall Performance (§ 4.3).

MethodSlot orderMethod-specific hyperparameter space
CEOriginalNo method-specific hyperparameters.
IRMOriginalλ∈{0.003,0.01,0.1,1,10,100,1000,10000}\lambda\in\{0.003, 0.01, 0.1, 1, 10, 100, 1000, 10000\}.
Group DROOriginalη∈{0.001,0.01,0.1,1,3,10}\eta\in\{0.001, 0.01, 0.1, 1, 3, 10\}.
JTTOriginalT∈{1,5,10,50,100,200}T \in\{1, 5, 10, 50, 100, 200\}, u∈{1.5,2,5,20,100,300}u \in\{1.5, 2, 5, 20, 100, 300\}. Full 6×66 \times6 grid.
RSCOriginalpf∈{0.05,0.1,1/3,0.5,0.75,0.9}p_f \in\{0.05, 0.1, 1/3, 0.5, 0.75, 0.9\}, pb∈{0.02,0.05,0.1,1/3,0.5}p_b \in\{0.02, 0.05, 0.1, 1/3, 0.5\}. Full 6×56 \times5 grid.
CORALOriginalλ∈{0.003,0.01,0.1,1,10,100,300}\lambda\in\{0.003, 0.01, 0.1, 1, 10, 100, 300\}.
MixupOriginalα∈{0.03,0.1,0.2,0.5,1,2,5}\alpha\in\{0.03, 0.1, 0.2, 0.5, 1, 2, 5\}.
ElRepOriginalλN∈{10−4,3×10−4,10−3}\lambda_N \in\{10^{-4}, 3 \times10^{-4}, 10^{-3}\}, λF∈{10−5,3×10−5,10−4}\lambda_F \in\{10^{-5}, 3 \times10^{-5}, 10^{-4}\}. Full 3×33 \times3 grid.
SAGMOriginalα∈{0.0005,0.001}\alpha\in\{0.0005, 0.001\}.
SWADOriginalTolerance τ∈{0.2,0.3}\tau\in\{0.2, 0.3\}.
SCEROriginalλspur,λcore∈{0.1,0.5,1}\lambda_{\mathrm{spur}}, \lambda_{\mathrm{core}} \in\{0.1, 0.5, 1\}. Full 3×33 \times3 grid.
DFROriginalFixed balanced head-refitting protocol. No method-specific search.
Rank2ReplaceRankedDefault Top-preserving schedule in § 3.3. No method-specific search.
Grouped LAATRankedλA∈{0.001,0.01,0.03,0.1,0.5,1,2,5,10,100,1000}\lambda_A \in\{0.001, 0.01, 0.03, 0.1, 0.5, 1, 2, 5, 10, 100, 1000\}.
Hard removalRankedk∈{1,2,3,4,5,6}k \in\{1, 2, 3, 4, 5, 6\}.

CE, IRM, and Group DRO. CE uses natural sampling with class-balanced CE. IRM adds its invariance penalty to the group-balanced objective. The penalty coefficient is one for the first 500 optimizer updates, after which it switches to the selected λ\lambda and Adam is reset. Group DRO dynamically updates group weights with step size η\eta, uses ordinary CE within groups, and fixes generalization adjustment to zero.

JTT and RSC. JTT first trains with ordinary CE for exactly TT epochs and fixes the error set at that epoch. Its second stage reinitializes the predictor and uses weighted sampling with replacement, assigning weight uu to the misclassified examples, with ordinary CE. RSC applies feature and sample masking to the 64-dimensional hidden representation, controlled by pfp_f and pbp_b, while retaining class-balanced CE.

CORAL. CORAL uses ordinary CE plus alignment of hidden means and unbiased covariance estimates across environments, weighted by λ\lambda. Squared differences are averaged over all environment pairs. Alignment acts on the 64-dimensional activations after BatchNorm and ReLU, using one BatchNorm forward pass on the combined batch. Both sampling and loss aggregation give equal weight to environments rather than class ×\times environment groups.

Mixup. Mixup uses natural sampling and mixes the full standardized, concatenated slot embeddings. Each batch draws one coefficient ρ∼Beta⁡(α,α)\rho\sim\operatorname{Beta}(\alpha,\alpha) and a uniform pairing permutation, allowing self-pairs. The same coefficient weights the two class-balanced CE terms for the paired labels.

ElRep and SCER. Both regularizers act on the 64-dimensional hidden activations after BatchNorm and ReLU. ElRep adds nuclear- and squared Frobenius-norm penalties, each divided by the batch size and weighted by λN\lambda_N and λF\lambda_F. SCER estimates spurious and core directions from minibatch class–environment mean activations, omitting empty cells. It penalizes spurious-direction alignment and encourages core-direction alignment, with prediction-head weights detached within the regularizer. SCER uses Qwen3-VL environment labels unless the label source is varied.

SAGM and SWAD. SAGM uses the nonadaptive update with fixed perturbation radius ρ=0.05\rho= 0.05 and the shared Adam optimizer. SWAD averages weights after every optimizer update and detects the averaging interval from validation class-balanced CE on uncorrupted inputs, using convergence and tolerance windows of three and six epochs. Its loss threshold is (1+τ)(1+\tau) times the mean loss in the convergence window. BatchNorm statistics are recalibrated on training inputs before evaluating the final averaged predictor with the common validation selection score.

DFR. Our DFR adaptation trains the MLP on 80% of the training set, freezes its hidden representation, and refits the prediction head on the remaining 20%. Refitting uses class ×\times environment-balanced sampling, with Qwen3-VL environment labels unless their source is varied. Head refitting follows the official DFR procedure, averaging the parameters of ten refitted heads without an additional method-specific search. Both stages use training images only.

Grouped LAAT. Grouped LAAT is a slot-level adaptation of Large Language Model Attribution Aligned Training. For ranked slot embeddings ziz_i, we define a ground-truth logit margin and slot importance,

Δi=[fθ(zi)]yi−1C−1∑c≠yi[fθ(zi)]c,\Delta_i = [f_\theta(z_i)]_{y_i} - \frac{1}{C-1}\sum_{c\ne y_i}[f_\theta(z_i)]_c,
ai,r=∥zi,r⊙∇zi,rΔi∥2.(5)a_{i,r} = \left\lVert z_{i,r} \odot\nabla_{z_{i,r}}\Delta_i \right\rVert_2. \tag*{(5)}

The seven-dimensional vector ai=(ai,1,…,ai,7)a_i = (a_{i,1},\ldots,a_{i,7}) and the prior (7,6,5,4,3,2,1)(7,6,5,4,3,2,1) are separately ℓ2\ell_2 normalized and compared by mean squared error. We add this alignment term to class-balanced CE with coefficient λA\lambda_A. Importance is computed in evaluation mode, and CE in training mode. The constraint acts across the seven slot groups without prescribing the attribution distribution among the 256 coordinates within a slot. The prior comes from slot ranking without additional scoring.

Hard removal. Hard removal retains only the top kk ranked slots and trains with class-balanced CE. Its search always removes at least one slot. In the slot-count ablation, kk is selected separately for each KK using validation data.

Detailed Results and Ablation Settings

The subsections follow the order of § 4.2 and § 4.4. They supply additional settings and numerical results. Tables already shown in the main paper are referenced rather than repeated.

Global Embeddings and End-to-End Training

Table 1 in § 4.2.1 reports the complete macro comparison. The following settings supplement the shared protocol.

Representation. Using the same FT-DINOSAUR ViT-S/14 encoder checkpoint, we mean-pool the 256 patch embeddings of each 224×224224 \times224 image into a 384-dimensional global image embedding, without Slot Attention, the decoder, or VLM ranking. Frozen conditions train a linear predictor or the shared MLP. End-to-end CE jointly trains the encoder and linear predictor with class-balanced CE.

End-to-end Rank2Replace jointly updates the encoder, Slot Attention, and MLP predictor. Qwen3-VL remains frozen, and cached rankings, slot initialization, and normalization statistics remain fixed. The original segmentation masks are used only to obtain rankings, not during training. Slot embeddings and attention assignments evolve with training, but segmentation masks and rankings are not regenerated.

AFR and SagNet. AFR [37] uses a class-stratified, disjoint 80%/20% training partition. It trains the encoder and linear predictor on the former with class-balanced CE, then freezes the encoder and refits the head from its first-stage parameters on the latter. Refitting uses weighted CE with fixed, normalized weights wi∝nyi−1exp⁡(−γpi)w_i \propto n_{y_i}^{-1}\exp(-\gamma p_i), where pip_i is the first-stage true-class probability and nyin_{y_i} is the class count in the refitting subset. Our ViT adaptation of SagNet [33] branches after block six of twelve, with separate remaining blocks and linear predictors. The content branch randomizes style statistics, and the style branch replaces normalized content. Both use class-balanced CE. An adversarial update encourages uniform style predictions by updating only the shared front-end LayerNorm affine parameters. Statistics use patch tokens only, but the classification token receives the same transformation. Donor pairing spans the full batch with gradients preserved across microbatches. Inference retains only the main encoder, mean pooling, and linear predictor.

Training. Frozen predictors use App. § 8.§ 3. End-to-end CE, AFR’s first stage, and SagNet’s classification updates use Adam with encoder learning rate ∈{10−5,10−4}\in\{10^{-5}, 10^{-4}\}, predictor learning rate 10−410^{-4}, batch size 256 (microbatches of 32), and at most 50 epochs with patience 10. AFR refitting searches γ∈{1,2,4,8}\gamma\in\{1, 2, 4, 8\} and uses full-batch SGD with learning rate 0.01, zero momentum, gradient clipping 1, and at most 1,000 steps with patience 200. SagNet’s adversarial updates use SGD with learning rate 0.004, momentum 0.9, gradient clipping 0.1, and λadv∈{0.01,0.1,1}\lambda_{\mathrm{adv}} \in\{0.01, 0.1, 1\}. The encoder learning rate and each method’s additional coefficient are selected jointly. For these global-image conditions, all stages use zero weight decay, and AFR adds no head regularization. End-to-end CE and AFR’s first stage use BF16 encoder autocasting with FP32 parameters and predictors. SagNet uses BF16 encoder computation with FP32 style statistics and predictors. Global image embeddings use fixed training-only standardization fitted on the full training set, or on the first-stage 80% for AFR and reused during refitting. Global-image CE and SagNet use the full training set. The global-image conditions use no additional image augmentation or environment labels.

Overall Performance

Tables 7 and 8 report the split-level results in Figure 2. Macro results are printed in the figure.

Contributions and Compatibility

Tables 9 and 10 provide the results in Figure 3. Ranking gain compares slot ranking with the original slot order. Corruption gain compares ranked inputs with and without slot corruption, and total gain compares ranking plus corruption with the original slot order.

Environment-Label Quality

Table 11 reports the conditions in Figure 4. Only training environment assignments vary. Class labels and ground-truth evaluation groups remain unchanged. Cached assignments are shared across methods and hyperparameter candidates for each split, label source, and training seed. App. § 8.7.4 gives the annotation prompts and allowed labels.

Ranking Prompts and Replacement Schedules

Section 4.3.1 and Figure 5 cross four ranking prompts with Top-preserving and two score-derived replacement schedules. All conditions share the task description, evidence criteria, slot images, and visible-evidence criterion. Queries exclude the original image and its ground-truth label. Apps. § 8.7.2 and § 8.7.3 provide the complete prompts.

Ranking cost and cache reuse. Direct Rank has the lowest measured ranking latency and uses no auxiliary scoring for Top-preserving replacement.

Table 12 measures ranking alone, with latency covering every query per image. For m≥2m \ge2 nonempty slots, Direct Rank uses one query, Pointwise Score and Binary Selection each use mm, and Sequential Selection uses m−1m-1 dependent queries. For fixed images and ranking settings, rankings are computed once and cached across epochs, seeds, hyperparameter candidates, and objectives. Previously unseen images still require ranking with the default MLP.

Ranking promptInput tokensOutput tokensRequestsTotal time (hr)Mean latency (ms/image)
Direct Rank240,378,2326,811,200303,24422.66269
Pointwise Score790,238,4081,967,1561,967,15632.24383
Binary Selection766,632,5361,967,1561,967,15631.31372
Sequential Selection1,050,504,1563,327,8241,663,91261.18726

Table 12. Ranking costs with Qwen3-VL on an RTX 3090 (Figure 5). Bold costs are column minima.

Score-derived schedules use training-set scores only. Matching ranking outputs are reused. Other ranking prompts require additional training-slot scoring. These scores can be shared across rows and add no validation/test scoring beyond the selected ranking prompt. Table 12 reports ranking costs rather than separate totals for every ranking–schedule combination.

Ranking prompts. Following the feature-importance query formats in LLM-Select [17], Direct Rank orders all nonempty slot images jointly. Pointwise Score ranks slots by their expected 0–9 score, with token probabilities normalized over the ten allowed scores. Binary Selection asks whether a slot contains task evidence and ranks by the probability of Yes, normalized over Yes and No. Denote these scores for image ii and original slot jj by si,j∈[0,9]s_{i,j} \in[0, 9] and pi,j∈[0,1]p_{i,j} \in[0, 1], respectively.

Sequential Selection repeatedly selects the most important remaining slot. Each query presents remaining images in original slot-ID order with the shared instructions, without earlier conversation turns or predictor feedback. The last slot is appended without a query. Empty slots are excluded from queries, assigned si,j=pi,j=0s_{i,j} = p_{i,j} = 0, and placed after nonempty slots in the default fixed trailing order. Pointwise Score and Binary Selection break ties by increasing original slot ID.

Replacement schedules. For ranking prompt aa, let πi(a)\pi_i^{(a)} be its slot permutation. Rank-specific training means are

sˉr(a)=1N∑i=1Nsi,πi(a)(r),pˉr(a)=1N∑i=1Npi,πi(a)(r).(6)\bar{s}_r^{(a)} = \frac{1}{N}\sum_{i=1}^{N}s_{i,\pi_i^{(a)}(r)}, \qquad\bar{p}_r^{(a)} = \frac{1}{N}\sum_{i=1}^{N}p_{i,\pi_i^{(a)}(r)}. \tag*{(6)}

Pointwise Score uses qr(a)=1−sˉr(a)/9q_r^{(a)} = 1 - \bar{s}_r^{(a)}/9; Binary Selection uses qr(a)=1−pˉr(a)q_r^{(a)} = 1 - \bar{p}_r^{(a)}. Each heatmap row therefore retains its specified ranking even when its ranking and scoring prompts differ. Probabilities are fixed per dataset split and ranking prompt. Training means include empty-slot zeros. All conditions retain the shared donor, recipient class labels, and predictor training protocol. The default Top-preserving schedule is defined in § 3.

Donor Source

Table 2 in § 4.4.2 varies donor construction with slot ranking, Top-preserving replacement, recipient class labels, and predictor training fixed. The definitions below specify the replacement embedding ui,ru_{i,r} for each r>1r > 1.

The default shared donor uses ui,r=zσ(i),ru_{i,r} = z_{\sigma(i),r} from one batch pairing per recipient. Two-donor choice samples two donors shared across ranks, then independently selects either donor’s same-rank slot with equal probability. Independent donors uses a separate batch pairing at each rank. Two-donor mean sets ui,r=(zai,r+zbi,r)/2u_{i,r} = (z_{a_i,r} + z_{b_i,r})/2, where both donors are shared across ranks. Two-donor mean + scale correction rescales the averaged embeddings’ coordinatewise variation around the training mean before insertion.

Extractor and Predictor Generalizability

§ 4.4.3 and Table 3 report the complete comparison. We evaluate frozen FT-DINOSAUR and SPOT [18], each providing seven 256-dimensional slot embeddings, with the default MLP, a linear predictor, and a Transformer. Qwen3-VL Direct Rank operates on the corresponding extractor’s slot images. All three predictors use the shared training protocol and Top-preserving replacement with one shared donor.

The Transformer projects each slot embedding to 64 dimensions, prepends a learned classification token, and adds learned positional embeddings for all eight tokens. Two encoder blocks use four attention heads, a feed-forward width of 128, and zero dropout. A final layer normalization and linear output layer map the classification-token representation to CC logits. Positional embeddings use normal initialization with standard deviation 0.02. The classification token starts at zero, and matrix weights are independently Xavier-initialized across the encoder blocks.

VLM Direct Prediction and VLM-free Inference

The macro-averaged accuracy and stage-level latency comparison appears in § 4.4.4 and Table 4.

Direct prediction. Qwen3-VL-8B-Instruct receives each full test image, the task description, and all class labels:

Task: {task}. Classify this image using visible evidence. Choose exactly one of these labels: {labels}. Return only a JSON object with key "class" and the chosen label; no explanation.

The labels are landbird, waterbird, not blond, blond, cat, dog, or the 60 NICO++ class names in App. § 8.7.3. This prompt requests a label from one full image rather than a ranking of multiple slot images.

Permutation-invariant predictors. The MLP-based Deep Sets model [58] applies a shared 256 → 64 → 64 slot MLP with ReLU after each layer, mean-pools the seven outputs, and predicts with a 64 → 64 → CC MLP with BatchNorm and ReLU after its hidden layer. Our Set Transformer variant [25] uses the Transformer above without slot positional embeddings. Both use one shared scaler per embedding coordinate, fitted over all training slots and fixed thereafter, instead of separate statistics for each slot position. Shared preprocessing and permutation-invariant aggregation remove dependence on the input slot order.

Their CE controls train on uncorrupted slots. With Rank2Replace, Qwen3-VL rankings guide training-time corruption under the default schedule, with each replacement drawn from the corresponding donor rank. Validation and test use the original slot order without replacement or VLM queries. The predictors follow the shared optimization and selection protocol, without an additional hyperparameter search. Feature-stage latency includes the shared slot MLP for Deep Sets. Set Transformer attention is included in its predictor stage. Total latency sums the stages used at inference.

Additional Ablations and Analyses

These additional studies analyze the ranking and replacement design, then test slot count, learning rate and weight decay, ranking VLMs, presentation order, and compatibility with semantic guidance. Unless varied, they use the shared protocol in Apps. § 8.§ 2 and § 8.§ 3, Qwen3-VL Direct Rank, and Top-preserving replacement.

Contribution of Slot Ranking

Table 13 varies the slot ranking under the same Top-preserving schedule. Mask-area rankings sort nonempty regions by ascending or descending area. The Qwen3-VL CE control uses ranked slots without replacement. The full combination is Rank2Replace.

Slot rankingReplacement scheduleAverage-groupWorst-group
Random rankingTop-preserving62.16±0.1162.16 \pm0.1136.14±0.8436.14 \pm0.84
Mask-area ascendingTop-preserving60.62±0.4260.62 \pm0.4232.35±1.5532.35 \pm1.55
Mask-area descendingTop-preserving66.75±0.3566.75 \pm0.3543.16±1.0743.16 \pm1.07
Qwen3-VLNone75.96±0.2975.96 \pm0.2955.48±0.6355.48 \pm0.63
Qwen3-VLTop-preserving80.43±0.3380.43 \pm0.3365.28±0.8165.28 \pm0.81

Table 13. Contribution of slot ranking under Top-preserving replacement.

With the replacement schedule fixed, Qwen3-VL rankings outperform random and mask-area orderings. Their 80.43% average-group and 65.28% worst-group accuracy exceed the strongest nonsemantic ordering, descending mask area, by 13.68%/22.12%. Task-guided ordering also benefits uncorrupted prediction: Ranking + CE improves over original-order CE by 4.24%/7.71% (Table 1), before replacement adds another 4.47%/9.80%. Ranking thus contributes to the predictive representation as well as organizing donor replacement.

Task-Relevant Evidence in Slot Rankings

Setup. We assess 180 training images containing 1,194 nonempty slots. Waterbirds, CelebA, and MetaShift contribute 40 images each, with ten from every class × environment group. NICO++ contributes 60 images from the Autumn/Rock split’s training partition, one per class and 15 from each of its four source environments. Qwen3-VL uses Rank2Replace’s default Direct Rank prompt. A human annotator (master’s degree, computer science background) and GPT-6-Astra independently assign each nonempty slot one of three evidence labels for the classification task: clear evidence, partial evidence, or no discriminative evidence. Neither annotator sees Qwen3-VL’s ranks or the other’s labels. We report exact agreement and linearly weighted Cohen’s κ\kappa, averaged equally across the four datasets. For each annotator, we also compute rank distributions within each evidence category and dataset, then average the four distributions equally (Figure 6).

Figure 6. Human and GPT-6-Astra evidence assessment of Qwen3-VL slot rankings. Top: human–GPT-6-Astra agreement. Confusion-matrix cells show row-normalized percentages and pooled counts, and bars report dataset-level agreement and its macro-average. Bottom: distributions of Qwen3-VL ranks conditional on each evidence category, macro-averaged over datasets.

Annotation agreement. Human and GPT-6-Astra labels reach 88.4% macro exact agreement and a mean weighted κ\kappa of 0.824. Dataset-level exact agreement ranges from 85.0% to 94.3%. Of the 143 disagreements pooled across datasets, 136 concern adjacent evidence categories. Only seven slots receive opposing clear evidence and no discriminative evidence labels.

Evidence placement. Qwen3-VL concentrates clear task evidence at the front of its rankings under both independent annotations. Across datasets, 78.74% of human-labeled clear-evidence slots occupy rank one and 96.28% occupy the first two ranks. GPT-6-Astra labels show the same pattern, at 83.84% and 97.75%, respectively. Conversely, only 0.93% of human-labeled slots with no discriminative evidence occupy rank one, compared with 1.27% under GPT-6-Astra labels. Partial evidence is more dispersed: ranks three through seven contain 48.87% under human labels and 55.45% under GPT-6-Astra labels. These distributions support using task-relevance rankings to guide preservation. Partial evidence at lower ranks also motivates examining finer-grained replacement probabilities (App. § 8.6.3).

Group-level evidence retention. Using human labels, Table 14 reports image-level evidence at rank one: clear evidence (C), partial evidence (P), or no discriminative evidence (N). A ranking miss has clear evidence at another rank but not rank one. Of 26 images without clear evidence at rank one, 19 (73.1%) contain no clear-evidence slot and seven (26.9%) are ranking misses. When clear evidence is available, Qwen3-VL places it first in 154/161 images (95.7%).

DatasetGroupnnC/P/N at rank one (%)Ranking missesNo C
WaterbirdsLandbird × Land1080.0 / 20.0 / 0.002
Landbird × Water10100.0 / 0.0 / 0.000
Waterbird × Land1050.0 / 50.0 / 0.005
Waterbird × Water1090.0 / 10.0 / 0.001
CelebANon-blond × Female10100.0 / 0.0 / 0.000
Non-blond × Male1080.0 / 10.0 / 10.011
Blond × Female1090.0 / 10.0 / 0.010
Blond × Male10100.0 / 0.0 / 0.000
MetaShiftCat × Indoor10100.0 / 0.0 / 0.000
Cat × Outdoor1090.0 / 10.0 / 0.001
Dog × Indoor1090.0 / 0.0 / 10.010
Dog × Outdoor1070.0 / 10.0 / 20.003
NICO++Autumn0–––
Dim1573.3 / 20.0 / 6.713
Grass1580.0 / 13.3 / 6.721
Outdoor1580.0 / 0.0 / 20.012
Rock0–––
Water15100.0 / 0.0 / 0.000

Table 14. Evidence retention by group. Percentages count images within each group. No C counts images with no clear-evidence slot. NICO++ images are counted once across splits. Dashes indicate no annotated images.

The minority groups Landbird × Water and Blond × Male retain clear evidence in all sampled images. Waterbird × Land retains clear evidence in 50% and partial evidence in the rest, with no ranking misses. Thus this group’s lower clear-evidence rate reflects limited clear evidence in the extracted slots. The sampled groups show no consistent minority-group disadvantage in ranking.

Association with prediction errors. Table 15 evaluates the original validation-selected checkpoints on uncorrupted ranked embeddings. The same 60 NICO++ images belong to Autumn/Rock’s train partition, with 30 in test for each other split. Evidence annotation is conducted independently of model training, model selection, testing, and prompt design.

Dataset splitPartitionnnRanking + CE error (%)Rank2Replace error (%)
CP/NCP/NCP/N
Waterbirdstrain3280.0 ± 0.00.0 ± 0.00.0 ± 0.00.0 ± 0.0
CelebAtrain3739.0 ± 3.10.0 ± 0.017.1 ± 4.10.0 ± 0.0
MetaShifttrain3550.0 ± 0.00.0 ± 0.00.0 ± 0.00.0 ± 0.0
NICO++ Autumn/Rocktrain50108.0 ± 2.053.3 ± 5.88.0 ± 2.060.0 ± 0.0
NICO++ Dim/Grasstrain2738.6 ± 2.166.7 ± 33.313.6 ± 5.766.7 ± 0.0
test23720.3 ± 2.561.9 ± 21.820.3 ± 2.576.2 ± 16.5
NICO++ Outdoor/Watertrain2375.8 ± 2.523.8 ± 8.28.7 ± 0.028.6 ± 14.3
test27321.0 ± 2.1100.0 ± 0.027.2 ± 4.388.9 ± 19.2

Table 15. Prediction errors conditional on rank-one evidence. P/N pools partial evidence and no discriminative evidence, including both ranking misses and images with no clear-evidence slot.

P/N at rank one accompanies higher errors for both predictors on NICO++. For Dim/Grass and Outdoor/Water test images, Rank2Replace reaches 76.2%/88.9% error on P/N versus 20.3%/27.2% on C. Its P/N error changes relative to Ranking + CE are +14.3%/−11.1%, based on seven/three images. These results link P/N at rank one to classification difficulty, with split-dependent changes from replacement.

Replacement Schedules

Controlled schedules and corruption content. Table 16 separates the replacement probabilities from the content inserted at selected ranks. Donor schedules use whole, same-rank embeddings and uncorrupted validation/test inputs. For the non-donor controls, ranks two through seven receive zeros or synthetic embeddings while rank one is retained. Train-only masking and synthetic corruption use uncorrupted ranked inputs for validation and test, matching donor replacement. Their all-splits variants also modify these inputs.

Setting(q1,…,q7)(q_1,\ldots,q_7)Average-groupWorst-group
Ranking + CE(0,0,0,0,0,0,0)(0,0,0,0,0,0,0)75.96 ±0.29\pm0.2955.48 ±0.63\pm0.63
Top-preserving(0,1,1,1,1,1,1)(0,1,1,1,1,1,1)80.43 ±0.33\pm0.3365.28 ±0.81\pm0.81
Top-preserving masking (train only)(0,1,1,1,1,1,1)(0,1,1,1,1,1,1)60.88 ±0.57\pm0.5738.60 ±0.73\pm0.73
Top-preserving masking (all splits)(0,1,1,1,1,1,1)(0,1,1,1,1,1,1)75.93 ±0.17\pm0.1755.02 ±0.74\pm0.74
Top-preserving synthetic (train only)(0,1,1,1,1,1,1)(0,1,1,1,1,1,1)79.52 ±0.07\pm0.0762.15 ±0.38\pm0.38
Top-preserving synthetic (all splits)(0,1,1,1,1,1,1)(0,1,1,1,1,1,1)79.38 ±0.12\pm0.1262.37 ±0.48\pm0.48
Uniform(1/2,1/2,1/2,1/2,1/2,1/2,1/2)(1/2,1/2,1/2,1/2,1/2,1/2,1/2)71.57 ±0.38\pm0.3842.81 ±0.93\pm0.93
Linear(0,1/6,2/6,3/6,4/6,5/6,1)(0,1/6,2/6,3/6,4/6,5/6,1)80.01 ±0.37\pm0.3763.81 ±1.18\pm1.18
Reversed lower-rank(0,1,5/6,4/6,3/6,2/6,1/6)(0,1,5/6,4/6,3/6,2/6,1/6)79.94 ±0.13\pm0.1364.11 ±0.45\pm0.45

Table 16. Replacement schedules and alternative corruption contents with Qwen3-VL ranking (K=7K = 7). Donor replacement uses uncorrupted validation/test inputs. Masking and synthetic conditions specify their corruption scope. Accuracies are macro averages (%).

Moment-matched synthetic control. For each dataset split, we estimate the mean μrj\mu_{rj} and population standard deviation σrj\sigma_{rj} (ddof=0) for each coordinate j=1,…,256j = 1,\ldots,256 at each rank r=2,…,7r = 2,\ldots,7, using only ranked, standardized training embeddings. We replace these coordinates with

z~i,r,j=μrj+σrjϵi,r,j,ϵi,r,j∼iidN(0,1).(7)\tilde{z}_{i,r,j} = \mu_{rj} + \sigma_{rj}\epsilon_{i,r,j}, \qquad\epsilon_{i,r,j} \overset{\mathrm{iid}}{\sim} \mathcal{N}(0,1). \tag*{(7)}

Sampling is independent across images, ranks, and coordinates, without preserving covariance. Coordinates with σrj=0\sigma_{rj} = 0 remain at μrj\mu_{rj}. Across all six splits, standardization yields approximately zero means and unit standard deviations. No validation/test statistics or class/environment labels enter this construction.

Both synthetic conditions redraw values for every training batch. The train-only variant uses uncorrupted ranked validation/test inputs, matching the native-donor protocol. In the all-splits variant, validation and test use separate random streams for each seed, with one fixed synthetic input per image reused throughout training and final evaluation. Both variants select checkpoints by balanced accuracy plus macro F1 on their respective validation inputs. Rank-one embeddings and recipient labels remain unchanged. The MLP retains its 7×2567 \times256 input dimensionality, and the remaining settings match the masking controls. Each synthetic condition covers six splits and three seeds, giving 18 runs.

Effect of corruption content. With uncorrupted validation/test inputs fixed, native-donor replacement exceeds train-only synthetic corruption by 0.91%/3.13% in average-/worst-group accuracy, and train-only masking by 19.55%/26.68%. Train-only synthetic corruption improves on train-only zero masking by 18.64%/23.55%, recovering much of the gap while retaining the same complete evaluation inputs. The remaining donor advantage supports native content beyond independent coordinatewise moment matching. Native donors supply jointly observed slot embeddings. Synthetic sampling removes dependencies within and across slots.

Under all-splits corruption, synthetic inputs improve on zero masking by 3.45%/7.35%. The two synthetic protocols have similar reported means: train-only synthetic corruption gives 0.14% higher average-group and 0.22% lower worst-group accuracy than all-splits synthetic corruption. In comparison, all-splits masking exceeds train-only masking by 15.05%/16.42%. These scope comparisons change both validation-based model selection and test inputs. The native-donor versus train-only synthetic comparison holds the evaluation-input protocol fixed.

Rule-based probability profiles. With ℓr=(r−1)/6\ell_r = (r - 1)/6, strength scaling uses qr=min⁡(1,αℓr)q_r = \min(1, \alpha\ell_r), Above uses qr=1−(1−ℓr)βq_r = 1 - (1 - \ell_r)^\beta, and Below uses qr=ℓrβq_r = \ell_r^\beta. Figure 7 compares α∈{0.5,0.75,1.25,1.5}\alpha\in\{0.5, 0.75, 1.25, 1.5\} and β∈{1.5,3}\beta\in\{1.5, 3\}. Every profile operates on the same full task-relevance ranking, with the ranking, shared donor, and same-rank correspondence fixed.

Figure 7. Rule-based replacement schedules. Top: probability curves derived from Linear and the Top-preserving reference. Bottom: corresponding accuracies, with Qwen3-VL rankings and a shared donor fixed.

Probability sensitivity and the role of ranking. Linear and Reversed lower-rank differ by 0.07% in average-group accuracy and 0.30% in worst-group accuracy despite reversing probabilities below rank one. The default achieves the highest means among these rule-based profiles. These results characterize the choice of qrq_r on fixed ranked representations: reversing a probability profile leaves both the slot permutation and donor correspondence intact.

The full task-relevance ranking organizes both prediction and replacement. With the default MLP, all recipient slots occupy rank-specific input positions at evaluation. During augmentation, rank rr receives the donor’s embedding at the same relevance rank. A schedule determines how often that correspondence is used. VLM score-derived schedules further use rank-specific training statistics to assign graded retention probabilities, as detailed on the next page.

VLM score-derived probabilities. Table 17 reports probabilities derived from rank-specific training means (Eq. (6)), fixed per dataset split and ranking prompt. In all 48 configurations, ranks two through four have nonzero retention probabilities. Rank-two retention ranges from 13.34% to 46.65%. These VLM-derived profiles adjust probabilities across all ranks, including rank one.

Dataset splitRanking promptRank 1Rank 2Rank 3Rank 4Rank 5Rank 6Rank 7
(a) Pointwise Score schedule
WaterbirdsDirect Rank0.05390.84480.98920.99780.99931.00000.9998
Pointwise Score0.04890.84660.99040.99900.99981.00001.0000
Binary Selection0.05190.84430.98990.99890.99981.00001.0000
Sequential Selection0.05330.84480.98860.99830.99981.00001.0000
CelebADirect Rank0.63070.81350.97140.99400.99810.99920.9997
Pointwise Score0.60110.83130.97680.99760.99981.00001.0000
Binary Selection0.61020.82660.97370.99650.99961.00001.0000
Sequential Selection0.62590.81710.97040.99460.99880.99981.0000
MetaShiftDirect Rank0.24420.86540.98550.99890.99971.00001.0000
Pointwise Score0.23960.86660.98780.99971.00001.00001.0000
Binary Selection0.24090.86550.98790.99941.00001.00001.0000
Sequential Selection0.24770.86190.98530.99881.00001.00001.0000
NICO++ Autumn/RockDirect Rank0.17530.65610.86550.93670.96380.97970.9911
Pointwise Score0.14390.61040.86600.96010.98980.99820.9998
Binary Selection0.15660.61470.85970.95440.98630.99710.9995
Sequential Selection0.17260.64810.86180.93680.96810.98590.9949
NICO++ Dim/GrassDirect Rank0.17600.67100.88090.94370.96840.98160.9923
Pointwise Score0.14080.62440.88520.97130.99360.99880.9998
Binary Selection0.15390.62870.87780.96560.99040.99800.9996
Sequential Selection0.17280.66260.87430.94560.97350.98900.9961
NICO++ Outdoor/WaterDirect Rank0.16190.65190.85320.92320.95550.97590.9891
Pointwise Score0.12840.59260.85110.95330.98770.99770.9998
Binary Selection0.14200.59930.84430.94630.98310.99620.9995
Sequential Selection0.15860.64520.84870.92290.95930.98210.9939
(b) Binary Selection schedule
WaterbirdsDirect Rank0.04230.84910.98990.99790.99920.99980.9999
Pointwise Score0.03860.84940.99130.99890.99981.00001.0000
Binary Selection0.03620.85070.99230.99900.99981.00001.0000
Sequential Selection0.04130.84890.98980.99840.99961.00001.0000
CelebADirect Rank0.69160.83120.97730.99640.99910.99970.9999
Pointwise Score0.67170.84410.98090.99840.99991.00001.0000
Binary Selection0.66610.84760.98260.99880.99991.00001.0000
Sequential Selection0.68680.83480.97710.99690.99950.99991.0000
MetaShiftDirect Rank0.24380.86070.98330.99890.99861.00001.0000
Pointwise Score0.24070.85850.98660.99941.00001.00001.0000
Binary Selection0.23910.86000.98660.99951.00001.00001.0000
Sequential Selection0.24690.85690.98360.99791.00001.00001.0000
NICO++ Autumn/RockDirect Rank0.15370.62320.84050.91680.94980.97110.9878
Pointwise Score0.12760.56390.83020.94160.98360.99660.9995
Binary Selection0.11580.56030.83510.94740.98690.99780.9998
Sequential Selection0.15110.61550.83560.91690.95370.97820.9921
NICO++ Dim/GrassDirect Rank0.16020.64640.86540.93120.95890.97530.9897
Pointwise Score0.12940.58780.86080.96110.99040.99810.9997
Binary Selection0.11680.58490.86740.96670.99290.99880.9998
Sequential Selection0.15690.63840.85670.93200.96470.98420.9943
NICO++ Outdoor/WaterDirect Rank0.14310.61470.82320.89830.93740.96500.9849
Pointwise Score0.11360.53940.80830.93040.97970.99570.9995
Binary Selection0.10060.53350.81310.93820.98410.99720.9998
Sequential Selection0.13950.60890.81760.89700.94090.97210.9904

Table 17. VLM score-derived replacement probabilities. Values are rounded to four decimals.

These profiles permit graded retention beyond rank one. In Figure 5, score-derived schedules yield higher worst-group but lower average-group accuracy, with more expensive ranking or additional training-slot scoring (App. § 8.5.5). Top-preserving remains a simple default within this accuracy–cost trade-off.

Number of Slots

We vary FT-DINOSAUR over K∈{5,6,7,8,9}K \in\{5,6,7,8,9\} while keeping Top-preserving replacement fixed. Rank2Replace leads both macro-averaged metrics at each tested count: average-group accuracy spans 79.83%–80.90%, and worst-group accuracy spans 63.89%–65.82%. Hard removal searches its retained-slot count separately for each KK. The default replacement schedule introduces no such cutoff.

Tables 18 and 19 provide the full numerical comparison.

MethodK=5K=5K=6K=6K=7K=7K=8K=8K=9K=9
CE71.86 ± 0.2471.12 ± 0.8171.72 ± 0.6672.21 ± 0.2172.29 ± 0.25
IRM73.71 ± 0.3473.12 ± 0.3474.07 ± 0.2773.77 ± 0.4374.49 ± 0.41
Group DRO74.95 ± 0.0872.94 ± 0.5373.85 ± 0.3673.89 ± 0.3275.15 ± 0.22
JTT71.57 ± 0.2371.25 ± 0.2971.31 ± 0.6271.32 ± 0.4971.44 ± 0.42
RSC71.86 ± 0.1371.37 ± 0.7272.23 ± 0.6572.33 ± 0.1072.57 ± 0.35
CORAL71.46 ± 0.4269.96 ± 0.3970.60 ± 0.2371.48 ± 0.1771.22 ± 0.02
Mixup71.45 ± 0.3370.80 ± 0.4571.79 ± 0.7771.97 ± 0.0872.12 ± 0.37
ElRep71.98 ± 0.2471.38 ± 0.6571.88 ± 0.5672.02 ± 0.1972.43 ± 0.43
SAGM72.43 ± 0.0671.10 ± 0.3472.06 ± 0.1972.31 ± 0.1372.46 ± 0.11
SWAD71.41 ± 0.0771.38 ± 0.1871.43 ± 0.0871.45 ± 0.4772.21 ± 0.15
SCER72.45 ± 0.2271.30 ± 0.4172.12 ± 0.3572.06 ± 0.0872.09 ± 0.36
DFR69.35 ± 0.4368.76 ± 0.9870.12 ± 0.4270.24 ± 0.6170.27 ± 0.65
Rank2Replace79.83 ± 0.2180.90 ± 0.1280.43 ± 0.3380.26 ± 0.2480.70 ± 0.35
Grouped LAAT76.00 ± 0.5575.71 ± 0.5376.28 ± 0.5875.78 ± 0.3675.74 ± 0.41
Hard removal78.89 ± 0.3280.28 ± 0.1979.55 ± 0.0779.03 ± 0.2380.00 ± 0.33

Table 18. Average-group accuracy by slot count.

MethodK=5K=5K=6K=6K=7K=7K=8K=8K=9K=9
CE47.87 ± 0.3645.43 ± 1.7647.77 ± 3.0249.56 ± 1.3248.02 ± 1.26
IRM57.01 ± 1.0753.64 ± 2.2057.64 ± 2.7956.99 ± 0.5857.39 ± 1.80
Group DRO57.11 ± 1.0250.26 ± 3.9253.39 ± 2.8755.41 ± 0.3459.38 ± 1.16
JTT44.11 ± 1.5243.80 ± 0.2745.62 ± 1.6944.19 ± 1.7044.04 ± 2.24
RSC45.10 ± 0.3643.98 ± 1.9447.14 ± 2.0347.93 ± 1.5047.81 ± 0.93
CORAL46.87 ± 2.5544.79 ± 1.9846.53 ± 0.7549.19 ± 0.9847.68 ± 1.63
Mixup47.23 ± 1.8844.14 ± 1.1747.95 ± 3.0748.85 ± 1.2447.81 ± 0.32
ElRep48.17 ± 1.7945.80 ± 0.3747.68 ± 2.1649.12 ± 1.9048.47 ± 0.41
SAGM49.25 ± 0.8944.80 ± 1.0847.98 ± 1.8948.99 ± 0.8748.08 ± 1.09
SWAD47.87 ± 0.3446.60 ± 0.9047.52 ± 0.5447.86 ± 2.4048.16 ± 1.02
SCER48.85 ± 1.4746.08 ± 0.7447.37 ± 1.9547.96 ± 1.1347.57 ± 0.89
DFR58.58 ± 0.3656.58 ± 1.8858.73 ± 1.2658.77 ± 2.7059.23 ± 0.83
Rank2Replace63.89 ± 0.8065.82 ± 0.2065.28 ± 0.8165.57 ± 0.2964.93 ± 1.06
Grouped LAAT54.05 ± 1.8952.77 ± 1.2256.21 ± 1.4955.23 ± 2.1755.14 ± 1.71
Hard removal60.60 ± 0.5963.76 ± 0.2162.41 ± 0.3260.99 ± 1.0864.27 ± 1.01

Table 19. Worst-group accuracy by slot count.

Learning Rate and Weight Decay

We retain the Overall Performance configurations (§ 4.3) for Rank2Replace and the three baselines with the highest macro-averaged worst-group accuracy using the original slot order: IRM, Group DRO, and DFR. We cross learning rates {10−5,10−4,10−3}\{10^{-5}, 10^{-4}, 10^{-3}\} with weight decays {0,10−3,10−1}\{0, 10^{-3}, 10^{-1}\}, keeping the remaining protocol fixed.

Performance across the sweep. Default Rank2Replace (80.43%/65.28%) exceeds every baseline configuration in Figure 8. Even the highest baseline average-group and worst-group means, 74.29% (Group DRO) and 60.50% (IRM), remain 6.14% and 4.78% lower. Comparing methods at matched settings, Rank2Replace leads average-group accuracy in eight of nine settings and worst-group accuracy in seven. With weight decay 0 or 10−310^{-3}, it leads both metrics at all three learning rates, spanning 79.94%–80.54% average-group and 64.74%–66.13% worst-group accuracy.

Figure 8. Learning rate and weight decay. Each method uses the same 3×33 \times3 grid. Top: average-group accuracy. Bottom: worst-group accuracy. Bold annotations highlight Rank2Replace.

Learning-rate sensitivity. At zero weight decay, changing learning rate across two orders of magnitude changes Rank2Replace’s average-group and worst-group accuracy by at most 0.25% and 0.85%. The corresponding worst-group ranges are 6.52% for IRM, 4.90% for Group DRO, and 1.99% for DFR. Group DRO and DFR have relatively stable average-group accuracy, with ranges of 0.52% and 0.20%, respectively. Rank2Replace therefore maintains a broad learning-rate range with high accuracy in both metrics.

Weight-decay sensitivity. Relative to zero weight decay, 10−110^{-1} reduces both metrics for Rank2Replace and DFR at every learning rate. Its effect on IRM and Group DRO depends on learning rate. For IRM at 10−310^{-3}, increasing weight decay from 0 to 10−110^{-1} raises worst-group accuracy from 51.12% to 60.50% while average-group accuracy stays similar (72.09%/72.16%). For Group DRO, the same change raises worst-group accuracy from 53.39% to 58.21% at learning rate 10−410^{-4}, but lowers it from 58.29% to 49.25% at 10−310^{-3}. IRM consequently exceeds Rank2Replace in worst-group accuracy at (10−410^{-4}, 10−110^{-1}) and in both metrics at (10−310^{-3}, 10−110^{-1}). These results favor zero or light weight decay for Rank2Replace.

Ranking VLM and Presentation Order

Ranking VLM. Table 20 compares five ranking VLMs. Table 24 lists their frozen checkpoints. Each CE–Rank2Replace pair uses the same slot ranking and shared training protocol.

Ranking VLMCERank2Replace
Average-groupWorst-groupAverage-groupWorst-group
Qwen3-VL75.96±0.2975.96 \pm0.2955.48±0.6355.48 \pm0.6380.43±0.3380.43 \pm0.3365.28±0.8165.28 \pm0.81
Ministral 374.33±0.5574.33 \pm0.5552.52±1.4652.52 \pm1.4679.49±0.1579.49 \pm0.1563.25±0.4863.25 \pm0.48
Gemma 474.93±0.3374.93 \pm0.3353.45±1.3653.45 \pm1.3679.61±0.4679.61 \pm0.4663.74±1.0463.74 \pm1.04
InternVL3.575.33±0.2375.33 \pm0.2353.89±1.8253.89 \pm1.8279.85±0.3179.85 \pm0.3164.88±0.8264.88 \pm0.82
MiniCPM-V4.571.69±0.5671.69 \pm0.5646.58±2.5546.58 \pm2.5575.01±0.2075.01 \pm0.2055.99±0.6455.99 \pm0.64

Table 20. Ranking VLMs with CE and Rank2Replace.

VLMHugging Face checkpoint
Qwen3-VLQwen/Qwen3-VL-8B-Instruct
Ministral 3 [29]mistralai/Ministral-3-8B-Instruct-2512-BF16
Gemma 4 [43]google/gemma-4-E4B-it
InternVL3.5 [49]OpenGVLab/InternVL3_5-8B
MiniCPM-V4.5 [56]openbmb/MiniCPM-V-4_5

Table 24. Full Hugging Face checkpoint identifiers. Bold identifies the default VLM.

Slot corruption improves both metrics for every tested VLM. Gains over its ranked CE control range from 3.32% to 5.16% in average-group and 9.41% to 10.99% in worst-group accuracy. Qwen3-VL gives the highest Rank2Replace means, while absolute performance remains sensitive to the ranking VLM.

Slot-image presentation order. Table 21 varies the presentation order of slot images to Qwen3-VL. Each resulting ranking orders the corresponding slot embeddings, and standardization is fitted after ranking. Default order matches the main results. Reordering 1–3 and four-order aggregation are evaluated separately.

SettingAverage-groupWorst-group
Default order80.43±0.3380.43 \pm0.3365.28±0.8165.28 \pm0.81
Reordering 180.41±0.3280.41 \pm0.3265.35±0.5465.35 \pm0.54
Reordering 280.53±0.1480.53 \pm0.1465.88±0.7465.88 \pm0.74
Reordering 380.50±0.3080.50 \pm0.3065.71±1.1065.71 \pm1.10
Four-order aggregation80.47±0.0980.47 \pm0.0965.19±0.5165.19 \pm0.51

Table 21. Slot-image presentation orders for Qwen3-VL ranking.

Changing only presentation order produces narrower ranges: 80.41%–80.53% in average-group and 65.28%–65.88% in worst-group accuracy. Four-order aggregation reaches 80.47%/65.19%, offering no consistent gain over the default single order.

Compatibility with Semantic Guidance

Rank2Replace complements semantic guidance used for group construction and meta-learning. We adapt DRO-B2T [21] and SPUME [61] to frozen FT-DINOSAUR slot embeddings. These methods introduce additional semantic supervision or training components, so we report their within-method comparisons separately from the overall comparison in Figure 2. Each method uses the three input conditions from § 4.3.1: original slot order, slot ranking, and slot ranking with slot corruption. Common optimization and model selection follow Apps. § 8.§ 3 and A.2, with the method-specific settings below.

DRO-B2T. DRO-B2T uses keyword-based CLIP text prototypes to infer a binary pseudo-bias for each training image. Crossing the class label with this pseudo-bias yields groups for Group DRO. We use the official keyword sets for Waterbirds and CelebA. For MetaShift and each NICO++ split, we fit an auxiliary CE MLP on a class-stratified 80% of the training set and discover keywords from its predictions on the remaining 20%. This split and keyword sampling use seed 9803. The auxiliary model’s standardization uses only the 80% subset, and its checkpoint is selected on the original validation set.

From the held-out training subset, we sample up to 128 correctly classified and 128 misclassified images per class. Qwen3-VL captions these full images without class or environment labels. YAKE extracts up to 20 keywords of at most three words from each outcome’s captions. CLIP ViT-B/32 scores the combined candidates by the incorrect-minus-correct image similarity, averaged equally over classes with both outcomes. The five lowest- and five highest-scoring keywords form two sets. CLIP RN50 encodes their templated text into two normalized text prototypes, using the official 80 templates and the dataset-specific class templates for Waterbirds and CelebA. Each full training image receives the pseudo-bias of its more similar text prototype. This produces four pseudo groups for each binary task and 120 for NICO++.

Pseudo groups are fixed across input conditions and training seeds. Each condition trains a fresh MLP on the full training set using group-balanced batches and Group DRO, with group-weight step size η∈{0.001,0.01,0.1,1}\eta\in\{0.001, 0.01, 0.1, 1\}. Slot corruption uses the default replacement schedule and shared donor, retaining the recipient’s class label and pseudo group. CLIP supplies group supervision, while prediction uses slot embeddings. Ground-truth environments are used only for evaluation.

Results. Rank2Replace improves DRO-B2T in both metrics on all six splits (Table 22). Macro-averaged average-group and worst-group accuracies increase from 74.01%/58.16% with the original slot order to 78.06%/64.54% after ranking and 81.75%/72.43% after corruption. The latter step adds 3.69% and 7.89%. On Waterbirds, worst-group accuracy rises from 63.40% to 69.16% to 83.85%. These gains show that the input intervention complements CLIP-derived group supervision.

Dataset / splitOriginal slot order+ Slot ranking+ Slot corruption
Average-groupWorst-groupAverage-groupWorst-groupAverage-groupWorst-group
Macro74.01 ± 0.6858.16 ± 3.1978.06 ± 0.3564.54 ± 0.7581.75 ± 0.1072.43 ± 0.90
Waterbirds76.27 ± 0.9263.40 ± 7.1980.73 ± 1.1569.16 ± 5.4088.40 ± 0.2183.85 ± 0.39
CelebA85.23 ± 0.6562.78 ± 3.0985.78 ± 0.6666.11 ± 3.8587.08 ± 0.2672.96 ± 1.79
MetaShift74.42 ± 2.0649.31 ± 5.9379.22 ± 1.3359.26 ± 3.8282.52 ± 0.7266.67 ± 1.39
NICO++ Autumn/Rock62.09 ± 0.0761.31 ± 0.1069.12 ± 0.3568.06 ± 0.3170.94 ± 0.3470.20 ± 0.36
NICO++ Dim/Grass61.12 ± 0.6158.17 ± 0.7167.48 ± 0.2664.35 ± 0.4169.73 ± 0.3966.02 ± 0.59
NICO++ Outdoor/Water57.16 ± 0.1251.99 ± 0.3162.87 ± 0.2158.50 ± 0.0366.32 ± 0.2262.51 ± 0.40

Table 22. DRO-B2T with cumulative slot ranking and slot corruption. Bold marks the highest mean for each metric within each row.

SPUME. Our SPUME adaptation uses Qwen3-VL captions of all training images, without class or environment labels. Nouns and adjectives extracted with en_core_web_sm and occurring in more than ten training images form a fixed image–attribute matrix shared across input conditions and training seeds. Class-specific attribute spuriousness is updated each epoch from predictions on uncorrupted training inputs using SPUME’s scoring rule.

Each task contains all classes. For each class, two distinct attributes are sampled according to spuriousness. Images containing the first but not the second supply support examples, and the reverse supplies query examples. Empty candidate sets trigger resampling. Each role samples ten images per class with replacement, with disjoint support and query candidates. The shared Linear–BatchNorm–ReLU block maps slot embeddings to 64-dimensional features. Support means form class prototypes, and temperature-scaled cosine similarities provide query logits. Query CE backpropagates through both query features and support prototypes. Training uses four tasks per update and 20 updates per epoch, with temperature in {5,10}\{5, 10\} and no inner-loop optimizer.

With slot corruption, donor permutations are sampled separately within each task’s support and query sets. The default replacement schedule and shared donor apply within each set, retaining recipient class labels. After each epoch, uncorrupted full-training-set features form class prototypes for validation. The selected checkpoint and its prototypes are reused for test. Validation and test inputs retain the condition’s slot order without replacement. Neither task construction nor training uses environment labels.

Results. Rank2Replace also improves SPUME in both metrics on all six splits (Table 23). Macro-averaged average-group and worst-group accuracies increase from 71.75%/50.24% to 80.19%/70.96%. Beyond ranking alone, slot corruption adds 5.41% and 16.67%, respectively. Its largest additional worst-group gain is on Waterbirds, from 45.12% to 75.33%. On CelebA, corruption raises the ranked result from 53.70% to 73.89%, exceeding the original-order result of 57.59%. Together with DRO-B2T, these results support compatibility with group supervision and attribute-guided meta-learning while preserving each method’s training objective.

Dataset / splitOriginal slot order+ Slot ranking+ Slot corruption
Average-groupWorst-groupAverage-groupWorst-groupAverage-groupWorst-group
Macro71.75 ± 0.7950.24 ± 2.8274.78 ± 0.3554.29 ± 1.4480.19 ± 0.1870.96 ± 0.44
Waterbirds72.83 ± 1.5543.46 ± 5.4776.08 ± 0.9245.12 ± 5.1685.24 ± 0.5075.33 ± 2.05
CelebA83.58 ± 0.6757.59 ± 2.5182.51 ± 0.8253.70 ± 3.7086.09 ± 0.5873.89 ± 1.67
MetaShift74.25 ± 1.6046.53 ± 4.8677.55 ± 1.0258.10 ± 4.0784.09 ± 0.5371.76 ± 0.40
NICO++ Autumn/Rock57.81 ± 0.2556.97 ± 0.2664.86 ± 0.4664.14 ± 0.3466.67 ± 0.3266.42 ± 0.22
NICO++ Dim/Grass57.23 ± 0.2654.28 ± 0.5363.36 ± 0.2760.20 ± 0.3066.09 ± 0.2462.87 ± 0.73
NICO++ Outdoor/Water53.96 ± 0.3048.92 ± 0.3960.69 ± 0.3256.41 ± 0.3963.23 ± 0.2259.23 ± 0.36

Table 23. SPUME with cumulative slot ranking and slot corruption. Bold marks the highest mean for each metric within each row.

VLM Checkpoints and Prompts

VLM Checkpoints

Table 24 specifies the Hugging Face checkpoints used in the slot-ranking and environment-label comparisons. Qwen3-VL is the default ranking VLM. All checkpoints remain frozen.

Ranking and Scoring Templates

All four prompt formats prepend the common template below and then append their response instructions. The common template, task descriptions, and evidence criteria were specified from human knowledge before model training. Each query contains only nonempty slot images, without the original image or its ground-truth label. Multi-image queries prefix each image with Region {slot_id}: and present images in increasing original slot-ID order by default. The placeholders {ids} and {remaining_ids} list comma-separated original IDs, such as S0, S2, S5.

Common template.

Task: {task} Task evidence: {evidence}

Use only visible pixels; gray pixels are excluded. First distinguish regions containing recognizable task evidence from regions containing none. Then distinguish pure task evidence from task evidence mixed with unrelated visible content. Priority is strictly: pure task evidence, then mixed task evidence, then no task evidence. A mixed region must remain ahead of regions without task evidence, even when the unrelated content occupies more space. Several parts of the same task-relevant object remain task evidence. Within each level, prefer stronger evidence for distinguishing the possible task classes. Gray masking does not make a region mixed. Keep this assessment internal; output only the requested answer. Before treating a region as evidence, check that the task-relevant content itself is recognizable from the visible pixels. A similar color or generic texture alone is not enough. A recognizable partial view is valid evidence; a complete object is not required. Do not fill masked areas with imagined content.

Direct Rank. All nonempty slot images are included in one query. Append:

These regions come from one image. Break indistinguishable ties by ascending slot ID. Return JSON with key ranking, containing exactly these IDs once, best first: {ids}.

Pointwise Score. Each query contains one nonempty slot image. Append:

Rate this masked region from 0 to 9. Higher means stronger intrinsic evidence for identifying the target class, robust to environment changes; 0 means no useful evidence, 9 means very strong evidence. Return exactly one digit, without explanation.

Binary Selection. Each query contains one nonempty slot image. Append:

Should this masked region be selected as useful intrinsic evidence for identifying the target class, robust to environment changes? Return exactly Yes or No, without explanation.

Sequential Selection. Each query includes only the remaining nonempty slot images, without previous conversation turns. The last remaining slot is appended without a query. Append:

These regions come from one image. Break indistinguishable ties by ascending slot ID. Select the single most important region among these remaining IDs: {remaining_ids}. Return only its ID, without explanation.

Ranking Task Descriptions and Evidence Criteria

Each task description below replaces {task}, and the corresponding evidence criteria replace {evidence} in the common template. The NICO++ Autumn/Rock, Dim/Grass, and Outdoor/Water splits share the task description, evidence criteria, and all 60 class names.

Waterbirds.

Task: classify bird species as waterbird versus landbird, robust to background changes

Evidence: Recognizable bird anatomy, plumage, head, beak, wings, feet and body shape. Water, vegetation, sky and other scenery alone are not bird-species evidence.

CelebA.

Task: classify whether the person has blond hair or not, robust to changes in other attributes

Evidence: Recognizable scalp hair and its visible color, including both blond and non-blond hair. Face, skin, beard, hat, clothing and background alone are not scalp-hair-color evidence.

MetaShift.

Task: classify the main animal as cat or dog, robust to indoor or outdoor environment changes

Evidence: Recognizable animal muzzle, nose, ears, eyes, fur, paws, tail and body shape that distinguish cat from dog. Furniture, rooms, grass, roads and people alone are not animal-class evidence.

NICO++: all three splits.

Task: classify the main object into one of these categories, robust to environment changes: car, flower, chair, truck, tiger, wheat, seal, wolf, lion, dolphin, lifeboat, corn, fishing rod, owl, sunflower, cow, bird, clock, shrimp, goose, airplane, rabbit, hot air balloon, lizard, hat, spider, motorcycle, tortoise, dog, crocodile, elephant, gun, fox, bus, cat, sailboat, giraffe, cactus, pumpkin, train, ship, helicopter, bicycle, racket, squirrel, bear, scooter, mailbox, horse, pineapple, frog, football, ostrich, tent, kangaroo, monkey, crab, sheep, butterfly, umbrella

Evidence: Recognizable shape, characteristic parts, material, texture and relevant color of the main object. Lighting, season, scenery, support surfaces and co-occurring objects alone are not main-object-class evidence.

Environment Annotation

Environment-supervised baselines use a separate prompt with the original image, resized to 224×224224 \times224, instead of slot images. The shared template is Task: {task}. Identify the environment visible in this image. Choose one of: {environments}. Return JSON with key environment.

Here, {task} is replaced by the corresponding description below, and {environments} lists the allowed categories from Table 25. For NICO++, these category sets comprise the four source environments in each split (App. § 8.§ 1).

Dataset splitAllowed categories
Waterbirdsland, water
CelebAfemale, male
MetaShiftindoor, outdoor
NICO++ Autumn/Rockdim, grass, outdoor, water
NICO++ Dim/Grassautumn, outdoor, rock, water
NICO++ Outdoor/Waterautumn, dim, grass, rock

Table 25. Allowed categories for environment annotation in each dataset split.

Waterbirds.

classify bird species as waterbird versus landbird, robust to background changes; identify whether the background is land or water, not the bird type

CelebA.

classify blond hair versus not blond hair; the environment attribute here is the person’s apparent visual gender presentation (female or male). Describe only visual presentation, not gender identity; do not use hair color as the criterion

MetaShift.

classify cat versus dog; identify indoor or outdoor surroundings, not the animal type

NICO++: all three splits.

classify the main object; identify the visual context rather than the object class. Context definitions: autumn = autumn scenery or foliage; dim = dim lighting; grass = grassy surroundings; outdoor = general outdoor surroundings; rock = rocky surroundings; water = water surroundings. Choose the best matching allowed context

References

  1. [1]Md Rifat Arefin, Yan Zhang, Aristide Baratin, Francesco Locatello, Irina Rish, Dianbo Liu, and Kenji Kawaguchi. Unsupervised concept discovery mitigates spurious correlations. In Proceedings of the 41st International Conference on Machine Learning, pages 1672–1688. PMLR, 2024.arxiv.org/abs/2402.13368
  2. [2]Martin Arjovsky, Léon Bottou, Ishaan Gulrajani, and David Lopez-Paz. Invariant risk minimization, 2020.arxiv.org/abs/1907.02893
  3. [3]Shuai Bai, Yuxuan Cai, Ruizhe Chen, Keqin Chen, Xionghui Chen, Zesen Cheng, Lianghao Deng, Wei Ding, Chang Gao, Chunjiang Ge, Wenbin Ge, Zhifang Guo, Qidong Huang, Jie Huang, Fei Huang, Binyuan Hui, Shutong Jiang, Zhaohai Li, Mingsheng Li, Mei Li, Kaixin Li, Zicheng Lin, Junyang Lin, Xuejing Liu, Jiawei Liu, Chenglong Liu, Yang Liu, Dayiheng Liu, Shixuan Liu, Dunjie Lu, Ruilin Luo, Chenxu Lv, Rui Men, Lingchen Meng, Xuancheng Ren, Xingzhang Ren, Sibo Song, Yuchong Sun, Jun Tang, Jianhong Tu, Jianqiang Wan, Peng Wang, Pengfei Wang, Qiuyue Wang, Yuxuan Wang, Tianbao Xie, Yiheng Xu, Haiyang Xu, Jin Xu, Zhibo Yang, Mingkun Yang, Jianxin Yang, An Yang, Bowen Yu, Fei Zhang, Hang Zhang, Xi Zhang, Bo Zheng, Humen Zhong, Jingren Zhou, Fan Zhou, Jing Zhou, Yuanzhi Zhu, and Ke Zhu. Qwen3-vl technical report, 2025.arxiv.org/abs/2511.21631
  4. [4]Junbum Cha, Sanghyuk Chun, Kyungjae Lee, Han-Cheol Cho, Seunghyun Park, Yunsung Lee, and Sungrae Park. SWAD: Domain generalization by seeking flat minima. In Advances in Neural Information Processing Systems, pages 22405–22418. Curran Associates, Inc., 2021.arxiv.org/abs/2102.08604
  5. [5]Elliot Creager, Jeong-Henrik Jacobsen, and Richard Zemel. Environment inference for invariant learning. In Proceedings of the 38th International Conference on Machine Learning, pages 2189–2200. PMLR, 2021.arxiv.org/abs/2010.07249
  6. [6]Giovanni De Felice, Arianna Casanova Flores, Francesco De Santis, Silvia Santini, Johannes Schneider, Pietro Barbiero, and Alberto Termine. Causally reliable concept bottleneck models. In Advances in Neural Information Processing Systems, pages 149099–149139. Curran Associates, Inc., 2025.arxiv.org/abs/2503.04363
  7. [7]Aniket Didolkar, Andrii Zadaianchuk, Rabiul Awal, Maximilian Seitzer, Efstratios Gavves, and Aishwarya Agrawal. CTRL-O: Language-controllable object-centric visual representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 29523–29533, 2025.arxiv.org/abs/2503.21747
  8. [8]Aniket Rajiv Didolkar, Andrii Zadaianchuk, Anirudh Goyal, Michael Curtis Mozer, Yoshua Bengio, Georg Martius, and Maximilian Seitzer. On the transfer of object-centric representation learning. In The Thirteenth International Conference on Learning Representations, 2025.
  9. [9]Lisa Dunlap, Clara Mohri, Devin Guillory, Han Zhang, Trevor Darrell, Joseph E. Gonzalez, Aditi Raghunathan, and Anja Rohrbach. Using language to extend to unseen domains. In The Eleventh International Conference on Learning Representations, 2023.arxiv.org/abs/2210.09520
  10. [10]Mateo Espinosa Zarlenga, Pietro Barbiero, Gabriele Ciravegna, Giuseppe Marra, Francesco Giannini, Michelangelo Diligenti, Zohreh Shams, Frederic Preciso, Stefano Melacci, Adrian Weller, Pietro Lió, and Mateja Jamnik. Concept embedding models: Beyond the accuracy-explainability trade-off. In Advances in Neural Information Processing Systems, pages 21400–21413. Curran Associates, Inc., 2022.
  11. [11]Mohammad Fahes, Tuan-Hung Vu, Andrei Bursuc, Patrick Pérez, and Raoul de Charette. Poda: Prompt-driven zero-shot domain adaptation. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 18623–18633, 2023.
  12. [12]Mohammad Fahes, Tuan-Hung Vu, Andrei Bursuc, Patrick Pérez, and Raoul de Charette. A simple recipe for language-guided domain generalized segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 23428–23437, 2024.arxiv.org/abs/2311.17922
  13. [13]Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A. Wichmann, and Wieland Brendel. Imagenet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness. In International Conference on Learning Representations, 2019.arxiv.org/abs/1811.12231
  14. [14]Sreyan Ghosh, Chandra Kiran Evuru, Sonal Kumar, Utkarsh Tyagi, S Sakshi, Sanjoy Chowdhury, and Dinesh Manocha. ASPIRE: Language-guided data augmentation for improving robustness against spurious correlations. In Findings of the Association for Computational Linguistics: ACL 2024, pages 386–406, Bangkok, Thailand, 2024. Association for Computational Linguistics.arxiv.org/abs/2308.10103
  15. [15]Vipul Gupta, Zhuowan Li, Adam Kortylewski, Chenyu Zhang, Yingwei Li, and Alan Yuille. Swapmix: Diagnosing and regularizing the over-reliance on visual context in visual question answering. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2022. 2arxiv.org/abs/2204.02285
  16. [16]Zeyi Huang, Haohan Wang, Eric P. Xing, and Dong Huang. Self-challenging improves cross-domain generalization. In Computer Vision – ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part II, page 124–140, Berlin, Heidelberg, 2020. Springer-Verlag. 1, 2arxiv.org/abs/2007.02454
  17. [17]Daniel P. Jeong, Zachary C. Lipton, and Pradeep Ravikumar. LLM-Select: Feature selection with large language models. Transactions on Machine Learning Research, 2025. 20arxiv.org/abs/2407.02694
  18. [18]Ioannis Kakogeorgiou, Spyros Gidaris, Konstantinos Karantzalos, and Nikos Komodakis. SPOT: Self-training with patch-order permutation for object-centric learning with autoregressive transformers. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 22776–22786, 2024. 7, 21arxiv.org/abs/2312.00648
  19. [19]Seongho Keum, Sanghyun Kim, Soojeong Lee, and Juho Lee. Slot-mixup with subsampling: A simple regularization for WSI classification, 2023. 2arxiv.org/abs/2311.17466
  20. [20]Eungyeup Kim, Hwiyeon Lee, and Jaegul Choo. BiaSwap: Removing Dataset Bias with Bias-Tailored Swapping Augmentation . In 2021 IEEE/CVF International Conference on Computer Vision (ICCV), pages 14972–14981, Los Alamitos, CA, USA, 2021. IEEE Computer Society. 2arxiv.org/abs/2108.10008
  21. [21]Younghyun Kim, Sangwoo Mo, Minkyu Kim, Kyungmin Lee, Jaeho Lee, and Jinwoo Shin. Discovering and mitigating visual biases through keyword explanation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 11082–11092, 2024. 1, 2, 31arxiv.org/abs/2301.11104
  22. [22]Polina Kirichenko, Pavel Izmailov, and Andrew Gordon Wilson. Last layer re-training is sufficient for robustness to spurious correlations. In The Eleventh International Conference on Learning Representations, 2023. 2arxiv.org/abs/2204.02937
  23. [23]Pang Wei Koh, Thao Nguyen, Yew Siang Tang, Stephen Mussmann, Emma Pierson, Been Kim, and Percy Liang. Concept bottleneck models. In Proceedings of the 37th International Conference on Machine Learning, pages 5338–5348. PMLR, 2020. 2arxiv.org/abs/2007.04612
  24. [24]Tyler LaBonte, Vidya Muthukumar, and Abhishek Kumar. Towards last-layer retraining for group robustness with fewer annotations. In Thirty-seventh Conference on Neural Information Processing Systems, 2023. 1arxiv.org/abs/2309.08534
  25. [25]Juho Lee, Yoonho Lee, Jungtaek Kim, Adam Kosiorek, Seungjin Choi, and Yee Whye Teh. Set transformer: A framework for attention-based permutation-invariant neural networks. In Proceedings of the 36th International Conference on Machine Learning, pages 3744–3753, 2019. 8, 21arxiv.org/abs/1810.00825
  26. [26]Jungsoo Lee, Eungyeup Kim, Juyoung Lee, Jiyeon Lee, and Jaegul Choo. Learning debiased representation via disentangled feature augmentation. In Advances in Neural Information Processing Systems, pages 25123–25133. Curran Associates, Inc., 2021. 2arxiv.org/abs/2107.01372
  27. [27]Deng Li, A​ming Wu, Yaowei Wang, and Yahong Han. Prompt-driven dynamic object-centric learning for single domain generalization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 17606–17615, 2024. 2arxiv.org/abs/2402.18447
  28. [28]Weixin Liang and James Zou. Metashift: A dataset of datasets for evaluating contextual distribution shifts and training conflicts. In International Conference on Learning Representations, 2022. 2arxiv.org/abs/2202.06523
  29. [29]Alexander H. Liu, Kartik Khandelwal, Sandeep Subramanian, Victor Jouault, Abhinav Rastogi, Adrien Sadé, Alan Jefferes, Albert Jiang, Alexandre Cahill, Alexandre Gavaudan, Alexandre Sablayrolles, Amélie Héliou, Amos You, Andy Ehrenberg, Andy Lo, Anton Eliseev, Antonia Calvi, Avinash Sooriyarachchi, Baptiste Bout, Baptiste Rozière, Baudouin De Monicault, Clémence Lanfranchi, Corentin Barreau, Cyprien Courtot, Daniele Grattarola, Darius Dabert, Diego de las Casas, Elliot Chane-Sane, Faruk Ahmed, Gabrielle Berrada, Gaëtan Ecrepont, Gauthier Guinet, Georgii Novikov, Guillaume Kunsch, Guillaume Lample, Guillaume Martin, Gunshi Gupta, Jan Ludziejewski, Jason Rute, Joachim Studnia, Jonas Amar, Joséphine Delas, Josselin Somerville Roberts, Karmesh Yadav, Khyathi Chandu, Kush Jain, Laurence Aitchison, Laurent Fainsin, Léonard Blier, Lingxiao Zhao, Louis Martin, Lucile Saulnier, Luyu Gao, Maarten Buyl, Margaret Jennings, Marie Pellat, Mark Prins, Mathieu Poirée, Mathilde Guillaumin, Matthieu Dinot, Matthieu Futerel, Maxime Darrin, Maximilian Augustin, Mia Chiquier, Michel Schimpf, Nathan Grinsztajn, Neha Gupta, Nikhil Raghuraman, Olivier Bousquet, Olivier Duchenne, Patricia Wang, Patrick von Platen, Paul Jacob, Paul Wambergyue, Paula Kurylowicz, Pavankumar Reddy Muddireddy, Philomène Chagniot, Pierre Stock, Pravesh Agrawal, Quentin Torroba, Romain Sauvestre, Roman Soletsky, Rupert Menneer, Sagar Vaze, Samuel Barry, Sanchit Gandhi, Siddhant Waghjale, Siddharth Gandhi, Soham Ghosh, Srijan Mishra, Sumukh Aithal, Szymon Antoniak, Teven Le Scao, Théo Cachet, Theo Simon Sorg, Thibaut Lavril, Thiziri Nait Saada, Thomas Chabal, Thomas Foubert, Thomas Robert, Thomas Wang, Tim Lawson, Tom Bewley, Tom Bewley, Tom Edwards, Umar Jamil, Umberto Tomasini, Valerii Nemychnikova, Van Phung, Vincent Maladière, Virgile Richard, Wassim Bouaziz, Wen-Ding Li, William Marshall, Xinghui Li, Xinyu Yang, Yassine El Oua​hidi, Yihan Wang, Yunhao Tang, and Zaccharie Ramzi. Ministral 3, 2026. 33arxiv.org/abs/2601.08584
  30. [30]Chenruo Liu, Hongjun Liu, Zeyu Lai, Yiqiu Shen, Chen Zhao, and Qi Lei. Superclass-guided representation disentanglement for spurious correlation mitigation. In Conference on Parsimony and Learning, pages 756–794. PMLR, 2026. 1, 2arxiv.org/abs/2508.08570
  31. [31]Evan Z Liu, Behzad Haghgoo, Annie S Chen, Aditi Raghunathan, Pang Wei Koh, Shiori Sagawa, Percy Liang, and Chelsea Finn. Just train twice: Improving group robustness without training group information. In Proceedings of the 38th International Conference on Machine Learning, pages 6781–6792. PMLR, 2021. 1, 2arxiv.org/abs/2107.09044
  32. [32]Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of International Conference on Computer Vision (ICCV), 2015. 2
  33. [33]Hyeonseob Nam, Hyunjae Lee, Jongchan Park, Wonjun Yoon, and Donggeun Yoo. Reducing domain gap by reducing style bias. 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 8686–8695, 2021. 4, 16arxiv.org/abs/1910.11645
  34. [34]Tuomas Oikarinen, Subhro Das, Lam M. Nguyen, and Tsui-Wei Weng. Label-free concept bottleneck models. In The Eleventh International Conference on Learning Representations, 2023. 2arxiv.org/abs/2304.06129
  35. [35]Subeen Park, Joowang Kim, Hakyung Lee, Sunjae Yoo, and Kyungwoo Song. Spurious correlation-aware embedding regularization for worst-group robustness. In International Conference on Learning Representations, pages 156420–156445, 2026. 2
  36. [36]Suzanne Petryk, Lisa Dunlap, Keyan Nasseri, Joseph Gonzalez, Trevor Darrell, and Anna Rohrbach. On guiding visual attention with language specification. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 18092–18102, 2022. 1, 2arxiv.org/abs/2202.08926
  37. [37]Shikai Qiu, Andres Potapczynski, Pavel Izmailov, and Andrew Gordon Wilson. Simple and fast group robustness by automatic feature reweighting. In Proceedings of the 40th International Conference on Machine Learning, pages 28448–28467. PMLR, 2023. 4, 16arxiv.org/abs/2306.11074
  38. [38]Alex 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 Proceedings of the 38th International Conference on Machine Learning, pages 8748–8763. PMLR, 2021. 1arxiv.org/abs/2103.00020
  39. [39]Shiori Sagawa*, Pang Wei Koh*, Tatsunori B. Hashimoto, and Percy Liang. Distributionally robust neural networks. In International Conference on Learning Representations, 2020. 2
  40. [40]Chenming Shang, Shiji Zhou, Hengyuan Zhang, Xinzhe Ni, Yujiu Yang, and Yuwang Wang. Incremental residual concept bottleneck models. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 11030–11040, 2024. 2arxiv.org/abs/2404.08978
  41. [41]Baochen Sun and Kate Saenko. Deep coral: Correlation alignment for deep domain adaptation. In Computer Vision – ECCV 2016 Workshops, pages 443–450, Cham, 2016. Springer International Publishing. 2arxiv.org/abs/1607.01719
  42. [42]Luyao Tang, Yuxuan Yuan, Chaoqi Chen, Zeyu Zhang, Yue Huang, and Kun Zhang. OCRT: Boosting foundation models in the open world with object-concept-relation triad. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 25422–25433, 2025. 2arxiv.org/abs/2503.18695
  43. [43]Gemma Team. Gemma 4 technical report, 2026. 33arxiv.org/abs/2607.02770
  44. [44]Antonio Torralba and Alexei A. Efros. Unbiased look at dataset bias. In CVPR 2011, pages 1521–1528, 2011. 1DOI
  45. [45]Maya Varma, Jean-Benoit Delbrouck, Zhihong Chen, Akshay Chaudhari, and Curtis Langlotz. RaVL: Discovering and mitigating spurious correlations in fine-tuned vision-language models. In Advances in Neural Information Processing Systems, pages 82235–82264. Curran Associates, Inc., 2024. 1, 2arxiv.org/abs/2411.04097
  46. [46]Vidit Vidit, Martin Engilberge, and Mathieu Salzmann. Clip the gap: A single domain generalization approach for object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 3219–3229, 2023. 2arxiv.org/abs/2301.05499
  47. [47]Davor Vukadin, Marin Šilić, and Goran Delač. Large language models as attribution regularizers for efficient model training. In Explainable Artificial Intelligence, pages 68–90, Cham, 2026. Springer Nature Switzerland. 3arxiv.org/abs/2502.20268
  48. [48]Pengfei Wang, Zhaoxiang Zhang, Zhen Lei, and Lei Zhang. Sharpness-aware latent matching for domain generalization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 3769–3778, 2023. 2DOI
  49. [49]Weiyun Wang, Zhangwei Gao, Lixin Gu, Hengjun Pu, Long Cui, Xingguang Wei, Zhaoyang Liu, Linglin Jing, Shenglong Ye, Jie Shao, et al. InternVL3.5: Advancing open-source multimodal models in versatility, reasoning, and efficiency. arXiv preprint arXiv:2508.18265, 2025. 33arxiv.org/abs/2508.18265
  50. [50]Tao Wen, Zihan Wang, Quan Zhang, and Qi Lei. Elastic representation: Mitigating spurious correlations for group robustness. In Proceedings of The 28th International Conference on Artificial Intelligence and Statistics, pages 541–549. PMLR, 2025. 2arxiv.org/abs/2502.09850
  51. [51]Chad Wong, Sicheng Chen, Tianyi Zhang, Enhui Chai, Yueming Jin, Zeyu Liu, and Fei Xia. SlideMix: Enhancing whole slide image analysis via multimodal shuffling, 2026. 1, 2arxiv.org/abs/2609.00396
  52. [52]Shirley Wu, Mert Yuksekgonul, Linjun Zhang, and James Zou. Discover and cure: concept-aware mitigation of spurious correlation. In Proceedings of the 40th International Conference on Machine Learning. JMLR.org, 2023. 2arxiv.org/abs/2305.00650
  53. [53]Kai Yuanging Xiao, Logan Engstrom, Andrew Ilyas, and Aleksander Madry. Noise or signal: The role of image backgrounds in object recognition. In International Conference on Learning Representations, 2021. 1arxiv.org/abs/2006.09994
  54. [54]Yu Yang, Besmira Nushi, Hamid Palangi, and Baharan Mirzasoleiman. Mitigating spurious correlations in multi-modal models during fine-tuning. In Proceedings of the 40th International Conference on Machine Learning, pages 39365–39379. PMLR, 2023. 2arxiv.org/abs/2304.03916
  55. [55]Yue Yang, Artemis Panagopoulou, Shenghao Zhou, Daniel Jin, Chris Callison-Burch, and Mark Yatskar. Language in a bottle: Language model guided concept bottlenecks for interpretable image classification. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 19187–19197, 2023. 2arxiv.org/abs/2211.11158
  56. [56]Tianyu Yu, Zefan Wang, Chongyi Wang, Fuwei Huang, Wenshuo Ma, Zhihui He, Tianyi Cai, Weize Chen, Yuxiang Huang, Ranchi Zhao, Bokai Xu, Junbo Cui, Yingjing Xu, Liqing Ruan, Luoyuan Zhang, Hanyu Liu, Jingkun Tang, Hongyuan Liu, Qining Guo, Wenhao Hu, Bingxiang He, Jie Zhou, Jie Cai, Ji Qi, Zonghao Guo, Chi Chen, Guoyang Zeng, Yuxuan Li, Gangu Cui, Ning Ding, Xu Han, Yuan Yao, Zhiyuan Liu, and Maosong Sun. MiniCPM-v 4.5: Cooking efficient mllms via architecture, data, and training recipes. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2026. 33arxiv.org/abs/2509.18154
  57. [57]Mert Yuksekgonul, Maggie Wang, and James Zou. Post-hoc concept bottleneck models. In The Eleventh International Conference on Learning Representations, 2023. 2
  58. [58]Manzil Zaheer, Satwik Kottur, Siamak Ravanbakhsh, Barnabás Poczos, Ruslan Salakhutdinov, and Alexander J Smola. Deep sets. In Proceedings of the 31st International Conference on Neural Information Processing Systems, page 3394–3404, Red Hook, NY, USA, 2017. Curran Associates Inc. 8, 21
  59. [59]Hongyi Zhang, Moustapha Cisse, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In International Conference on Learning Representations, 2018. 1, 2
  60. [60]Xingxuan Zhang, Yue He, Renzhe Xu, Han Yu, Zheyan Shen, and Peng Cui. NICO++: Towards Better Benchmarking for Domain Generalization. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 16036–16047, Los Alamitos, CA, USA, 2023. IEEE Computer Society. 2arxiv.org/abs/2204.08040
  61. [61]Guangtao Zheng, Wenqian Ye, and Aidong Zhang. Spuriousness-aware meta-learning for learning robust classifiers. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, page 4524–4535, New York, NY, USA, 2024. Association for Computing Machinery. 2, 31arxiv.org/abs/2406.10742
  62. [62]Guangtao Zheng, Wenqian Ye, and Aidong Zhang. Learning robust classifiers with self-guided spurious correlation mitigation. In Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, 2024. 2arxiv.org/abs/2405.03649
  63. [63]Kaiyang Zhou, Yongxin Yang, Yu Qiao, and Tao Xiang. Domain generalization with mixstyle. In International Conference on Learning Representations, 2021. 1, 2arxiv.org/abs/2104.02008

Paper details

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

views · 10

downloads · 0

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

  • Computer Science

ChatGPT, Codex, GPT-6 Astra (bare)

View statement
Looking for related papers…
Contents