arXiv:2611.06993cs.CVNov 2026

Manuscript Offprint

arXiv:2611.06993

Batch-Conditioned Semantic Anchors for Robust Transductive Adaptation of Vision--Language Models

Mohammed Rahman Sherif Khan Mohammad, Ardhendu Behera, Sandip Pradhan, Swagat Kumar, Amr Ahmed

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Mohammed Rahman Sherif Khan Mohammad

Edge Hill University, UK

Mohamm@edgehill.ac.uk

Ardhendu Behera *

Edge Hill University, UK

Beheraa@edgehill.ac.uk

Sandip Pradhan

Edge Hill University, UK

Pradhans@edgehill.ac.uk

Swagat Kumar

Edge Hill University, UK

Kumars@edgehill.ac.uk

Amr Ahmed

Edge Hill University, UK

Ahmeda@edgehill.ac.uk

Abstract

Transductive adaptation improves vision-language models at test time by refining predictions on an unlabeled batch, but current methods face a key trade-off. Aggressive approaches exploit batch structure but can drift when batches are sparse, have prior shift, or cover little of the label space. Conservative methods better preserve CLIP text semantics, but fixed semantic references can under-adapt even when the batch provides strong corrective evidence. We propose JPTA (Joint Prior and Transport Adaptation), a prior-aware framework that casts transductive VLM adaptation as batch-conditioned semantic reference estimation. Instead of treating CLIP text prototypes as fixed priors or freely replaceable, JPTA views them as semantic references that shift toward image-side batch structure only under calibrated evidence. It estimates batch priors and soft image-side prototypes to form transported semantic references whose impact is scaled by batch reliability. Across standard benchmarks, low effective-class regimes, all-class evaluation, and online streams, JPTA consistently outperforms TransCLIP and StatA, with the largest gains on sparse and prior-shifted batches. Anchor-drift, active-support, and absent-class-mass diagnostics show that JPTA fixes effective-class mismatch without unconstrained transductive drift, indicating that robust transductive VLM adaptation should recalibrate semantic references using reliable batch evidence rather than choose between unrestricted transduction and fixed prototypes. Code is available at https://github.com/MR-Sherif/JPTA.git.

1 Introduction

Vision-language models (VLMs) such as CLIP have transformed visual recognition by transferring natural-language supervision to diverse downstream tasks Radford et al. [2021]. Many methods adapt VLMs with prompt learning, cache models, and lightweight adapters Zhou et al. [2022b,a], Zhang et al. [2022], Song et al. [2023], but typically assume an inductive setting with labeled support examples. In practice, labels are often unavailable at test time: the model receives only unlabeled batches from unknown environments, with domain shift, class imbalance, and varying batch composition. This motivates transductive adaptation, where predictions are refined jointly over the current unlabeled batch rather than per sample.

Transductive inference is attractive because the test batch reveals useful structure: nearby samples in the VLM feature space should share predictions, and the batch can indicate which classes are present. This idea has a long history in few-shot learning via graph propagation, manifold regularization,

*Corresponding author.

Preprint.

Figure

B

C

Figure 1: Low-coverage batches cause class mismatch and semantic drift; JPTA fixes both. A: In sparse batches, the true effective class support (black) is much smaller than that estimated by zero-shot CLIP predictions (orange), revealing strong class-support inflation; labels show the median inflation factor. B: This mismatch alters transductive adaptation: TransCLIP Zanella et al. [2024] (orange) hurts performance in low-coverage regimes but recovers as coverage grows, whereas JPTA (green) remains consistently beneficial. C: JPTA outperforms StatA Zanella et al. [2025] in both sparse-batch and all-class regimes, with results grouped by B=64B = 64 (green), B=1000B = 1000 (blue), and all-class (gray).

prototype refinement, and information-theoretic objectives Satorras and Estrach [2018], Rodríguez et al. [2020], Ziko et al. [2020], Boudiaf et al. [2020], Kang et al. [2021], Zhu and Koniusz [2023]. Recently, it has been applied to CLIP through transductive zero-shot and few-shot inference Martin et al. [2024], realistic test-time adaptation Zanella et al. [2025], and language-aware transductive objectives Baklouti et al. [2026]. These works show that unlabeled test batches can strongly guide adaptation even without labeled support or gradient-based fine-tuning.

Despite this promise, transductive VLM adaptation remains brittle in realistic settings. Batch usefulness depends heavily on its composition: large, representative batches yield reliable image-side geometry, while batches with few labels, class-prior shift, or noisy neighborhoods make transductive dynamics misleading. In such low effective-class regimes, locally coherent but semantically incorrect groups can dominate refinement, pushing assignments and class statistics away from the VLM's pretrained language-aligned structure Veilleux et al. [2021], Zanella et al. [2025].

Existing methods face a sharp trade-off between adaptability and stability. Aggressive methods like TransCLIP Zanella et al. [2024] jointly refine assignments, class statistics, and neighborhood consistency to exploit batch structure, but can drift when batches are sparse, imbalanced, or semantically misleading. Conservative methods like StatA Zanella et al. [2025] gain robustness by anchoring refinement to the original CLIP text semantics, but this anchor is fixed. We identify the core failure as semantic-reference mismatch: low-coverage batches inflate the predicted class support, reverse the benefit of aggressive transduction, and create the largest gap between fixed anchoring and JPTA. In low-coverage batches, image-side geometry can reveal which classes are active, yet unconstrained transduction turns this signal into semantic drift. Conversely, fixed text anchoring prevents drift but also prevents the semantic reference from correcting systematic zero-shot mismatch. Thus, the key object to adapt is not only the assignment matrix or class statistics, but the semantic reference itself.

We propose JPTA (Joint Prior and Transport Adaptation), a transductive VLM adaptation framework based on batch-conditioned semantic anchoring. JPTA keeps the usual transductive inference setting but changes what is adapted: instead of fixing CLIP text prototypes, it estimates a batch-conditioned semantic anchor via reliability-controlled transport. Concretely, JPTA estimates the batch class prior, builds soft image-side class prototypes from evolving assignments, and transports text prototypes toward the batch geometry only when the evidence is reliable. The transported anchor is then shrunk toward the original CLIP geometry and used in a prior-aware refinement that couples semantic anchoring, graph consistency, class likelihood, and batch-marginal regularization. This lets the model stay conservative on unreliable batches while adapting when batches consistently support a corrected semantic configuration.

Contributions. Our contributions are threefold. First, we identify semantic-reference mismatch as a key failure mode of transductive VLM adaptation under sparse, prior-shifted batches: free transduction drifts toward hallucinated class support, while fixed anchoring cannot repair misaligned zero-shot references. Second, we introduce batch-conditioned semantic anchoring, a principle that treats CLIP text prototypes as movable yet constrained semantic references, implemented via reliability-weighted orthogonal transport and shrinkage toward the original CLIP text geometry. Third, we design a prior-aware transductive solver that couples transported anchors, graph consistency, class-likelihood refinement, and batch-marginal regularization. Across sparse, high-coverage, all-class, and online regimes, JPTA outperforms fixed-anchor and free-transduction baselines, with diagnostics showing reduced absent-class mass and controlled semantic drift.

References (100)

Couldn't load all references. Reload the page to try again.