Biomedical Acquisition-induced Style Shifts as Mixture Shifts: Style-aware Mixture-of-Experts Multimodal Prompt Learning

Pingyi Miao, Xianlai Chen, Ying An, Yunbo Wang, Linan Ren, Yuxin PengNeurIPS 2026

TL;DR

Vision-language models (VLMs) like CLIP can learn to read medical scans with very little training data, yet they often stumble when moved to a new hospital with different scanners or imaging protocols. By viewing these scanner-induced "style shifts" as changing recipes of underlying visual traits, the authors built SaMoE—a system that dynamically mixes specialized prompt "experts" on the fly for every individual image. The result is a massive leap in how well AI generalizes across unseen medical institutions, MRI settings, and novel diseases without ever needing to retrain the core model.

What Problem Does This Paper Address?

Adapting massive, pretrained VLMs like CLIP to medicine usually relies on prompt tuning: keeping the giant neural network frozen while learning a tiny set of continuous "hint" vectors (prompts) fed alongside the input. It is fast, cheap, and works well when labeled medical data is scarce.

Here is the catch: medical imaging is notoriously sensitive to how an image is captured. Different hospitals (sites), MRI settings (protocols), and imaging machines (modalities) introduce dramatic variations in contrast, noise, resolution, and scanner artifacts.

Figure 1: Biomedical VLM generalization set- tings considered in this work. Base-to-novel transfer evaluates generalization from base classes to unseen classes, while site and pro- tocol changes mainly induce style shifts and modality changes may introduce stronger phys- ical and structural differences.

Standard prompt tuning learns a single, static prompt tailored to the training hospital's specific visual "style." When deployed at a clinic down the road—or asked to spot an unseen disease—that overfitted prompt fails. How do we make featherweight prompt tuning resilient to the messy reality of clinical hardware without needing labels telling the model which scanner took which picture?

Methods

First, the authors reframe the problem mathematically as a mixture shift. Instead of treating Hospital A and Hospital B as alien worlds, they model every medical domain as a different blend (mixture) of shared, latent "style components" (like contrast levels or noise profiles). Mathematically, if your model performs reliably on each individual style component, it is guaranteed to perform well on any new cocktail of those styles it encounters in the wild.

To build a system that actually does this, they introduce SaMoE (Style-aware Mixture-of-Experts Multimodal Prompt Learning):

  • Standard foundation: Like prior multimodal methods (e.g., MaPLe), SaMoE keeps the CLIP image and text encoders frozen and injects learnable prompt tokens deep into multiple transformer layers (specifically, the first 9 layers).
  • What's new—The Style-Aware Expert Bank: Instead of using one fixed bridge between text and vision prompts, each layer holds a compact bank of linear projection "experts" (1 always-on shared expert for domain-invariant basics, plus 4 specialized style experts).
  • What's new—Image-Conditioned Routing: How does the model pick the right experts without scanner metadata? Borrowed from the classic style-transfer playbook, a shared router looks at intermediate visual patch tokens and calculates their mean and variance (first- and second-order statistics), gluing them to the global CLS token. From this compact "style fingerprint," the router activates the Top-2 best-suited experts for that exact image at that exact layer. A load-balancing loss ensures the router doesn't get lazy and pick the same expert every time.

Datasets

No brand-new datasets were introduced, but the authors assembled a comprehensive 16-shot evaluation across 15 existing public biomedical datasets spanning 12 imaging modalities and 10 organs:

  • Base-to-Novel (11 datasets): BTMRI, BUSBRA, CHMNIST, COVID-QU-Ex, CTKidney, DermaMNIST, KneeXray, Kvasir, LC25000 (LUNGCOLON), OCTMNIST, and RETINA.
  • Cross-Site: Trained on DermaMNIST; tested zero-shot on four independent skin lesion datasets (Derm7pt_C, Derm7pt_D, MILK10k, PH2).
  • Cross-Protocol: Trained on BTMRI; tested zero-shot across four MRI acquisition protocols in the Gazi dataset (FLAIR, T1W, T1W-CE, T2W).
  • Cross-Modality (Stress Test): Trained on retinal OCT scans (OCTMNIST) and tested zero-shot across 9 completely different modalities (X-ray, CT, Ultrasound, MRI, etc.).

Key Insights and Ideas

  • Image statistics whisper acquisition secrets: Even without hospital or scanner labels, simple mean and variance statistics of visual patches carry rich fingerprints of the imaging setup. In a clever sanity check, the authors showed that SaMoE's routing weights alone could predict which MRI protocol was used on a held-out disease class with 74%–88.5% accuracy (where random guessing is 25%).
  • Dynamic routing beats raw parameter size: You might wonder if SaMoE only wins because adding experts adds parameters. To check, the authors bulked up baseline models ("Heavy MaPLe" and "Heavy BiomedCoOp") to match SaMoE's exact 15.9M trainable parameters. Those heavy static models barely budged—or got worse—proving that input-adaptive routing, not sheer parameter count, is doing the heavy lifting.
  • Less is more: Peak generalization happens with just 4 experts and a prompt length of 8 tokens across 9 layers. Pushing deeper (to layer 12) or adding more experts degrades novel-class performance due to instability and over-specialization.

Key Results

Across the board (using a CLIP ViT-B/16 backbone with just 16 training examples per class), SaMoE outperformed state-of-the-art prompt-learning baselines:

  • Base-to-Novel Generalization: Achieved an average Harmonic Mean (HM) of 65.01% across 11 datasets, beating the runner-up (PromptSRC) by +11.99%. On BTMRI, novel disease accuracy jumped by +20.36% over MaPLe.
  • Cross-Site & Cross-Protocol: Scored an average target accuracy of 38.29% across unseen dermatology clinics (+7.50% over MaPLe) and 67.50% across unseen MRI protocols (gaining up to +5.89% on T2W scans).
  • Cross-Modality Stress Test: Improved zero-shot transfer from OCT scans to nine alien modalities by +6.11% on average over the second-best method (29.21% vs. 23.10%).
  • Backbone Agnostic: Plugging SaMoE into newer, larger models like CLIP ViT-L/14, SigLIP, and SigLIP2 boosted Base-to-Novel HM by roughly 10% to 18% over the frozen backbones.

Limitations and Future Work

The authors are candid about where the magic thins out:

  • Bound by source clues: The mixture-shift math assumes target styles are at least statistically related to variations seen during training. If a target domain introduces a completely alien physical modality or massive semantic/anatomical shifts, gains naturally shrink.
  • Added complexity: Maintaining expert banks and routing networks introduces more architectural moving parts and a slight compute bump (20.96 vs. 19.99 GFLOPs) compared to basic prompt tuning.
  • What's next: Future work aims to extend SaMoE beyond image classification into dense prediction tasks (like tumor segmentation), build more human-interpretable routing signals, and explore continual adaptation for ever-evolving hospital pipelines.

Summary updated

Abstract

Vision-language models (VLMs), such as CLIP, have shown remarkable transferability in the biomedical domain, and prompt tuning enables efficient adaptation with limited supervision. In practice, biomedical images exhibit pronounced acquisition-induced style shifts, especially across imaging sites and protocols, while cross-modality transfer further introduces compound shifts from different physical acquisition processes. However, existing prompt-tuning methods ignore acquisition-induced style shifts, making the prompts sensitive to source-specific style and limiting the transferability to unseen medical domains. To address this, we formulate acquisition-induced style shifts as mixture shifts, where each domain is viewed as a mixture of latent style components. Under this formulation, the target risk depends on both mixture weights and latent component risks, motivating prompt adaptation that accounts for style-specific variation rather than relying on a single source-specific prompt. In this paper, we propose SaMoE, a Style-aware Mixture-of-Experts Multimodal Prompt Learning framework for adapting VLMs to biomedical domains under acquisition-induced style shifts. To account for latent component risks in prompt adaptation, SaMoE represents multimodal prompts with latent style-conditioned prompt transformations and composes them through image-conditioned routing, enabling each image to induce style-adapted visual prompts. By extracting style cues from intermediate visual representations, the sparse expert composition adapts style-related prompt weights without domain labels and is injected across multiple VLM layers to align with hierarchical visual-language representations. Extensive experiments on 15 medical datasets across 12 modalities and 10 organs demonstrate significant improvements in both accuracy and generalizability over state-of-the-art methods.
BibTeX
@inproceedings{miao2026biomedical,
  author = {Pingyi Miao and Xianlai Chen and Ying An and Yunbo Wang and Linan Ren and Yuxin Peng},
  title = {{Biomedical Acquisition-induced Style Shifts as Mixture Shifts: Style-aware Mixture-of-Experts Multimodal Prompt Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=TRuGgl9w1X},
}
Figure