A Shared Encoder Approach to Multimodal Representation Learning
Shuvendu Roy, Franklin Ogidi, Ali Etemad, Elham Dolatabadi, Arash Afkanpour
TL;DR
The paper tackles the challenge of scarce paired multimodal data in medical AI by proposing a fully shared encoder architecture that uses learnable modality embeddings to handle text and image inputs within a single Transformer stack. It adopts a contrastive learning objective inspired by CLIP and demonstrates that sharing parameters across modalities yields superior or competitive retrieval performance, particularly in low-data scenarios, compared to modality-specific baselines and larger pretrained models. Key contributions include systematic analysis of modality information integration (embeddings vs tokens) and the effect of early versus late modality-specific layers, plus evidence that parameter sharing improves data efficiency. The work suggests a practical path toward robust, data-efficient multimodal medical AI with reduced reliance on large proprietary encoders, and provides code to facilitate reproducibility and further research.
Abstract
Multimodal representation learning has demonstrated remarkable potential in enabling models to process and integrate diverse data modalities, such as text and images, for improved understanding and performance. While the medical domain can benefit significantly from this paradigm, the scarcity of paired multimodal data and reliance on proprietary or pretrained encoders pose significant challenges. In this work, we present a shared encoder framework for multimodal representation learning tailored to the medical domain. Our approach employs a single set of encoder parameters shared across modalities, augmented with learnable modality features. Empirical results demonstrate that our shared encoder idea achieves superior performance compared to separate modality-specific encoders, demonstrating improved generalization in data-constrained settings. Notably, the performance gains are more pronounced with fewer training examples, underscoring the efficiency of our shared encoder framework for real-world medical applications with limited data. Our code and experiment setup are available at https://github.com/VectorInstitute/shared_encoder.
