Can Experts Adapt Without Training? On Test-Time Modality Generalization in MVLMs

Raza Imam, Darakshan Rashid, Yutong Xie, Dwarikanath Mahapatra, Brejesh Lall, Mohammad YaqubarXiv 2026

TL;DR

Medical vision-language models (MVLMs) frequently fail when deployed in real-world clinical settings due to distribution shifts from unseen imaging modalities and scanners. To solve this, the authors introduce MoBE (Mixture of Bayesian Experts), a fully training-free test-time adaptation framework that dynamically selects and refines modality-specific experts during inference. By replacing expensive gradient updates with online Bayesian statistics, MoBE achieves state-of-the-art accuracy across diverse medical imaging benchmarks with minimal computational overhead.

What Problem Does This Paper Address?

While foundational medical vision-language models show impressive zero-shot capabilities, their reliability collapses when they encounter distribution shifts—such as a new imaging modality, a different scanner manufacturer, or varying acquisition protocols.

To handle modality heterogeneity, researchers often turn to Mixture-of-Experts (MoE) architectures, which partition learning across specialized sub-networks (experts). However, exploiting these experts at test time is challenging because the target modality is usually unknown. Existing test-time adaptation (TTA) methods either rely on slow, unstable gradient updates during inference or fall into the specialization-generalization dilemma:

  1. Blindly averaging all experts dilutes modality-specific knowledge.
  2. Committing to a single "most confident" expert risks catastrophic failure if the model misjudges a distribution shift.

MoBE aims to bridge this gap by routing and adapting experts completely on-the-fly without any backpropagation or source data access.

Methods

MoBE introduces a two-stage, optimization-free framework attached to a frozen MVLM backbone (like BiomedCLIP):

  1. Dynamic-$k$ Entropy-Guided Expert Routing: Instead of using a fixed number of top experts, MoBE calculates the predictive entropy (uncertainty) across all available experts. It dynamically selects a subset of experts whose uncertainties are close to the top-performing expert, filtering out clearly mismatched branches. The predictions of these selected experts are then combined using an inverse-entropy weighting mechanism.
  2. Expert Bayesian Adaptation (EBA): To adapt to new domains without changing model weights, each expert maintains two non-parametric online memories: class prototypes (moving representative feature centroids) and class priors (historical distribution tendencies). When a test sample yields a highly confident prediction, MoBE updates these variables using a confidence-gated running average, aligning the model to the target distribution manifold in real time.

The complete inference pipeline is illustrated below:

Fig. 2: MoBE Test-Time Adaptation. (A) Frozen BiomedCLIP encoder processes an incoming stream of test images. (B) Dynamic-k entropy routing selects the most reliable modality experts from parallel MLP heads. (C) Selected experts are inverse- entropy weighted and refined by EBA through confidence-gated prototype and prior updates using the test stream. (D) Final predictions blend routed logits with Bayesian- adapted outputs.

Datasets

The authors evaluated MoBE across a wide array of medical imaging tasks:

  • MedMNIST + Med-VTAB: A combined benchmark consisting of 11 datasets spanning 9 distinct imaging modalities (including X-ray, CT, MRI, pathology, ultrasound, and microscopy) to evaluate both seen and unseen modality generalization.
  • Heterogeneous Few-Shot Suite: A collection of 11 datasets covering 10 organs and 9 modalities (adding endoscopy and fundus photography) designed to simulate highly diverse clinical deployment environments.

Key Insights and Ideas

  • Entropy as a Reliable Proxy: The authors empirically demonstrate that an expert's self-entropy strongly correlates with true cross-entropy under distribution shifts. This justifies using unsupervised entropy to guide test-time routing.
  • The Power of Non-Parametric Updates: You don't need to update model weights to adapt to a new domain. Jointly updating feature prototypes and class priors via online Bayesian statistics provides a lightweight yet powerful alternative to gradient descent.
  • Dynamic Gating Avoids Dilution: Enforcing a flexible, uncertainty-gated threshold ($\tau$) ensures the model maintains expert diversity when ambiguous, but narrows down to specialized knowledge when confident.

Key Results

MoBE consistently outperformed prominent test-time adaptation and prompt-learning methods across all benchmarks:

  • Seen Modalities: On the MedMNIST/Med-VTAB datasets, MoBE achieved a top-1 average accuracy of 43.41%, outperforming the baseline BiomedCLIP (33.00%) and the previous MoE-based state-of-the-art, MoME (38.69%).
  • Unseen Modalities: When tested on modalities completely omitted during expert pre-training, MoBE reached 38.16% average accuracy, compared to BiomedCLIP's 20.49% and MoME's 30.99%.
  • Heterogeneous Benchmarks: On the diverse few-shot suite, MoBE led with 46.49% average accuracy, outperforming cache-based methods like TDA (42.19%).
  • Efficiency Gains: Because MoBE is training-free, it eliminates backpropagation overhead. On a dataset of ~22k samples, MoBE completed inference in 11 minutes and 10 seconds (35 images/sec), whereas the gradient-based MoME took nearly 13 minutes while scoring lower in accuracy.

Limitations and Future Work

Despite its strong performance, the authors note a few limitations:

  • Inference Latency: Because MoBE processes incoming images through multiple parallel expert heads, it incurs a higher computational cost and slower inference speed compared to a standard single-model forward pass.
  • Expert Bank Coverage: If a test sample comes from a completely novel modality that shares no commonalities with the existing bank of experts (e.g., specific microscopy shifts in BloodMNIST), the routing mechanism's discriminative power degrades.

Future Directions: The authors suggest exploring early-exit routing architectures, expert pruning/distillation, and test-time caching to mitigate the multi-expert forward pass overhead.

Summary updated

BibTeX
@misc{imam2026can,
  author = {Raza Imam and Darakshan Rashid and Yutong Xie and Dwarikanath Mahapatra and Brejesh Lall and Mohammad Yaqub},
  title = {{Can Experts Adapt Without Training? On Test-Time Modality Generalization in MVLMs}},
  year = {2026},
  eprint = {2607.16726},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.16726},
}
Figure