Introduction
Adapting Vision Transformers (ViTs) to the medical domain presents unique challenges that distinguish it from general computer vision tasks. While general-purpose benchmarks like VTAB have facilitated progress in visual task adaptation (VTA), the medical field requires models to handle extreme data heterogeneity—ranging from microscopic histopathology to macroscopic CT scans—and maintain high diagnostic accuracy across diverse patient populations. To address these needs, we introduce Med-VTAB, the first large-scale benchmark specifically designed for medical visual task adaptation, alongside a novel Gated Mixture-of-Experts (GMoE) Adapter framework.
The Med-VTAB Benchmark
Med-VTAB is a comprehensive benchmark comprising 1.68 million images, designed to evaluate the robustness and generalizability of adaptation strategies across three primary axes of diversity:
- Organ Diversity: The benchmark covers 10 distinct anatomical categories, including Lung, Breast, Chest, Eye, Shoulder, Skin, Brain, Bone, Gastrointestinal, and Cells.
- Modality Diversity: It includes five challenging imaging modalities: Color images (histopathology and dermoscopy), X-ray, Optical Coherence Tomography (OCT), Computed Tomography (CT), and Magnetic Resonance Imaging (MRI).
- Adaptation Diversity: It facilitates the evaluation of various VTA strategies, from full fine-tuning to parameter-efficient prompt tuning.
The scale and distribution of the dataset ensure that models are tested against the realistic complexities of clinical data.
Adaptation Methodologies
The study systematically explores four categories of Visual Task Adaptation:
- Full Fine-tuning: Retraining all parameters of the pre-trained backbone, serving as a high-resource baseline.
- Head-oriented Adaptation: Updating only the final classification layers, which is computationally efficient but often lacks the depth to capture complex medical features.
- Backbone-oriented Adaptation: Inserting small, learnable "adapter" modules into the transformer blocks to specialize internal representations.
- Prompt-oriented Adaptation: Introducing learnable tokens at the input level to guide the model's attention toward domain-specific features.
The GMoE-Adapter
To bridge the gap between general visual logic and specialized medical knowledge, we propose the Gated Mixture-of-Experts (GMoE) Adapter. Standard adapters typically use a single set of weights. In contrast, the GMoE-Adapter employs two "experts": one initialized from a general-domain model (e.g., DINO v2) and another from a medical-domain pre-trained model. A learnable gating mechanism dynamically calculates a weighted interpolation of these experts based on the input features. This allows the model to adaptively leverage the most relevant knowledge for each specific image.
Key Insights and Results
Our evaluation on Med-VTAB revealed several critical findings for medical AI development:
Scaling Laws in Medical Prompting
Similar to Large Language Models, medical prompt tuning exhibits a clear scaling law. Increasing the number of tunable parameters consistently improves performance across nearly all medical tasks, suggesting that larger adaptation modules can capture more nuanced diagnostic features.
Bridging the Domain Gap
While models pre-trained on medical data often have an initial advantage, effective prompt tuning can significantly close the gap between general-purpose and medical-specific pre-training. This indicates that the robust feature representations learned from large-scale natural image datasets are highly transferable when adapted correctly.
Clinical Robustness and the Patient ID Challenge
A significant hurdle in medical imaging is overfitting to specific patient characteristics. Our experiments with Out-of-Distribution (OOD) performance based on Patient IDs showed that increasing the number of training patients beyond a certain threshold can sometimes degrade performance on unseen patients. This highlights the need for adaptation strategies that prioritize true clinical robustness over simple dataset memorization.
Performance and Efficiency
The GMoE-Adapter achieved state-of-the-art results across all tested modalities. Notably, it outperformed standard adapters on color medical images by margins of +0.37 to +0.67. In visually complex modalities like MRI and CT, adapter-based methods significantly surpassed linear probing, demonstrating that deep adaptation is essential for interpreting non-natural image structures. Furthermore, these gains were achieved with high parameter efficiency, requiring only a fraction of the resources needed for full fine-tuning.
Conclusion
Med-VTAB provides a rigorous framework for advancing medical visual task adaptation. By introducing a large-scale, diverse dataset and the flexible GMoE-Adapter, we demonstrate that combining general and domain-specific knowledge is a powerful strategy for medical AI. Future research will focus on expanding the expert pool and ensuring these models remain robust against data drift in real-world clinical deployments.
Summary updated