M3Ret: Unleashing Zero-shot Multimodal Medical Image Retrieval via Self-Supervision

Che Liu, Zheng Jiang, Chengyu Fang, Heng Guo, Yan-Jie Zhou, Jiaqi Qu, Le Lu, Minfeng XuarXiv 2025

Abstract

Medical image retrieval is essential for clinical decision-making and translational research, relying on discriminative visual representations. Yet, current methods remain fragmented, relying on separate architectures and training strategies for 2D, 3D, and video-based medical data. This modality-specific design hampers scalability and inhibits the development of unified representations. To enable unified learning, we curate a large-scale hybrid-modality dataset comprising 867,653 medical imaging samples, including 2D X-rays and ultrasounds, RGB endoscopy videos, and 3D CT scans. Leveraging this dataset, we train M3Ret, a unified visual encoder without any modality-specific customization. It successfully learns transferable representations using both generative (MAE) and contrastive (SimDINO) self-supervised learning (SSL) paradigms. Our approach sets a new state-of-the-art in zero-shot image-to-image retrieval across all individual modalities, surpassing strong baselines such as DINOv3 and the text-supervised BMC-CLIP. More remarkably, strong cross-modal alignment emerges without paired data, and the model generalizes to unseen MRI tasks, despite never observing MRI during pretraining, demonstrating the generalizability of purely visual self-supervision to unseen modalities. Comprehensive analyses further validate the scalability of our framework across model and data sizes. These findings deliver a promising signal to the medical imaging community, positioning M3Ret as a step toward foundation models for visual SSL in multimodal medical image understanding.

Introduction

Medical image retrieval—the task of finding clinically similar cases to aid diagnosis—is currently a fragmented field. Because 2D X-rays, 3D CT scans, and endoscopy videos possess distinct spatial and temporal dimensions, researchers typically develop siloed models for each modality. Furthermore, many state-of-the-art models rely on language supervision (e.g., CLIP), which requires expensive, often unavailable image-report pairs. M3Ret addresses these challenges by introducing a unified visual encoder that learns from the visual structure of medical data across all modalities using purely visual self-supervised learning (SSL).

Methodology

M3Ret is designed to learn a single, unified representation for any medical image format through three key innovations:

  1. Unified 4D Patchification: To handle varying dimensionalities, all inputs are treated as 4D tensors ($C \times H \times W \times S$). 2D images are processed as volumes with a single slice, while videos and CT scans are treated as sequences of frames or slices. This allows a standard Vision Transformer (ViT) to process diverse data through a shared encoder.
  2. Dual SSL Paradigms: The model leverages two complementary self-supervised strategies: MAE (Masked Autoencoder) for generative reconstruction and SimDINO for contrastive learning of augmented views.
  3. Modality-Agnostic Training: The framework uses no text, no labels, and no modality-specific priors, learning solely from the intrinsic visual patterns within the data.

Experimental Setup

The authors curated a massive hybrid-modality dataset of 867,653 samples, including 2D X-rays (286k) and Ultrasounds (299k), 3D CT scans (233k), and Endoscopy videos (48k). Evaluation was conducted on a suite of public benchmarks, including ChestXray14, Fetal Planes, Hyper Kvasir, and CT-RATE, alongside private datasets to test cross-modal retrieval capabilities.

Results and Discussion

M3Ret establishes a new state-of-the-art in zero-shot image-to-image retrieval across multiple modalities.

Superiority Over Supervised Baselines

On the ChestXray14 benchmark, M3Ret (SimDINO) achieved a Recall@5 of 0.674, outperforming BMC-CLIP (0.631), despite the latter being trained on 24 million image-text pairs. This suggests that visual SSL can capture more discriminative medical features than language-supervised models when scaled appropriately.

Zero-shot retrieval performance on ChestXray14 (X-ray).

In 3D imaging, M3Ret demonstrated significant gains on the CT-RATE dataset, outperforming specialized SSL baselines like UniMiSS+.

Zero-shot retrieval performance on CT-RATE (CT).

Emergent Cross-Modal Alignment and Generalization

A significant finding is the emergence of cross-modal alignment without paired training data. M3Ret successfully maps different modalities into a shared latent space, enabling tasks such as using a CT query to retrieve a matching MRI. Most impressively, the model generalizes to MRI tasks despite never seeing an MRI during pretraining, indicating that the learned visual features are robust and universally applicable across medical imaging technologies.

Conclusion

M3Ret demonstrates that a unified, modality-agnostic visual encoder can surpass specialized and language-supervised models in medical image retrieval. By scaling data and model capacity, M3Ret captures fundamental visual representations that generalize even to unseen modalities. While future work is needed to incorporate modalities like PET and histopathology, M3Ret represents a major step toward a universal foundation model for medical imaging.

Summary updated

BibTeX
@misc{liu2025m,
  author = {Che Liu and Zheng Jiang and Chengyu Fang and Heng Guo and Yan-Jie Zhou and Jiaqi Qu and Le Lu and Minfeng Xu},
  title = {{M3Ret: Unleashing Zero-shot Multimodal Medical Image Retrieval via Self-Supervision}},
  year = {2025},
  eprint = {2509.01360},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.01360},
}
Figure