Manuscript Offprint

arXiv:2610.29881

Expandable Modality Experts for Medical Vision-Language Learning

DM BAPPY, Eunsu Kim, Hanjoo Lee, Sung Hak Lee, Sangjeong Ahn

Abstract

Learning across medical imaging modalities requires making use of images without paired text and accommodating new domains while retaining existing representations. We propose a medical vision–language technique built around an expandable bank of modality experts. Its Multiway Transformer combines shared visual computation with deterministically routed feed-forward experts and a separate text pathway. A modality-aware visual tokenizer supplies targets for masked pretraining on 19.4 million unpaired image rows across seven modalities; contrastive alignment then uses 3.23 million image–text pairs. Additional fundus and optical coherence tomography experts learn from paired data while the original image and text embedding paths remain frozen. With a ViT-Large backbone, the proposed technique achieves the best or tied-best result in 24 of 25 benchmark settings across nine modalities: 10 of 11 zero-shot classification benchmarks, all 10 linear probes, and all four retrieval benchmarks. Mean balanced accuracy is 0.674 for zero-shot classification and 0.856 for linear probing, and mean bidirectional retrieval recall is 20.70%. A separate three-seed sequential experiment with matched adaptation data yields fundus and OCT retrieval gains of 14.95 and 9.31 percentage points, with no measured loss on preceding fundus or pathology tasks. The preservation argument requires unchanged existing computation paths and inference conditions, and feature-identity checks verify retention on evaluated inputs. The proposed technique provides a modular approach to learning and expanding medical vision–language representations.

1 Introduction

Medical representation learning must account for the visual differences among radiography, CT, MRI, ultrasound, histopathology, dermatology, endoscopy, fundus photography, and optical coherence tomography (OCT). A common language interface can support text-prompted classification and image-text retrieval across these domains, but its development faces two practical constraints. Many available images have no paired text, and training on an additional modality can change the representations used by existing tasks. We study an architecture that addresses these constraints through unpaired pretraining and expandable modality-specific capacity.

Image–text supervision alone provides an incomplete basis for this goal. Paired medical data vary substantially across modalities, and their collection can require expert annotation or the extraction of figure–caption pairs from publications. The resulting training corpus need not reflect the distribution of available clinical images. BiomedCLIP (BMC) (Zhang et al., 2025), the BIOMEDICA baseline (BMCA) (Lozano et al., 2025), ConceptCLIP (Nie et al., 2026), and UniMed-CLIP (Khattak et al., 2024) establish useful biomedical image–text interfaces. Vision-only models such as MerMED-FM (Zhou et al., 2026) support representation learning across modalities but do not supply a native text interface. MUSK (Xiang et al., 2025) combines unpaired pretraining and paired alignment within pathology. These approaches motivate separating visual learning from language alignment while extending the training scheme across medical imaging domains.

Expansion creates a second difficulty. Updating shared parameters to learn a new modality can alter the embeddings used by existing tasks. Rehearsal and distillation can constrain such changes (Yao et al., 2025), while progressive architectures preserve earlier computations by freezing existing paths (Rusu et al., 2016).

For a medical vision–language encoder, this principle must account for the image encoder, text encoder, projection heads, and inference conditions. Preserving only a subset of these components does not establish that previous image–text similarities remain unchanged.

We introduce the proposed technique, which combines unpaired visual pretraining with an expandable expert bank. The model builds on a Multiway Transformer (Wang et al., 2023a) with a Domain-Aware Mixture-of-Experts (DA-MoE) in the visual feed-forward layers. Each image uses a known modality identifier to select its expert, alongside a shared visual pathway. A separate text pathway interacts with the image encoder through contrastive alignment. A modality-aware VQ-KD tokenizer (Peng et al., 2022) supplies targets for masked-image pretraining. The seven-modality core learns from 19.4M unpaired image rows and 3.23M image-text pairs. Fundus and OCT experts subsequently learn from paired data with the existing embedding paths frozen; the final nine-modality assembly uses 3.34M pairs in total across alignment and expansion.

Our setting concerns learning one encoder across heterogeneous image sources; it does not require patient-matched images across modalities. At inference, each image is encoded through its modality route. We evaluate whether the resulting embeddings support text-prompted classification, linear probing, and cross-modal retrieval, and whether new experts learn useful representations while earlier pathways are retained.

The study makes three contributions.

• Learning across modalities from unpaired images and paired text. We combine a modality-aware visual tokenizer, masked pretraining, and contrastive alignment within one routed architecture. This separates the use of image-only data from the image–text supervision required for alignment.

• Expansion through frozen existing paths. We formalize the conditions under which adding modality experts preserves the original image and text embedding functions. We distinguish a sequential experiment with matched adaptation data from the final assembly of independently trained full-data experts.

• Evaluation of transfer, adaptation, and retention. We report 25 benchmark settings across nine modalities, controlled ViT-B comparisons, and three-seed adaptation results. The proposed technique is best or tied-best in 24 of the 25 main settings. Feature-identity checks and retrieval tests assess retention on evaluated inputs.

Section 2 describes the architecture and objectives. Sections 3 and 4 present the evaluation design and main benchmarks. Section 5 separates adaptation from retention, and Sections 6 and 7 examine the supporting evidence and its limits. Qualitative image comparisons are collected in the appendices.

References (98)