Abstract
We present MedITok, the first unified visual tokenizer specifically designed for medical imaging that excels at both high-fidelity image reconstruction and deep clinical interpretation. By employing a novel two-stage training framework on a massive dataset of 30 million images, MedITok enables autoregressive models to generate realistic medical scans and perform accurate diagnostic tasks within a single, shared token space. Our results demonstrate state-of-the-art performance across 30 datasets and 9 imaging modalities, effectively bridging the gap between visual synthesis and semantic understanding in healthcare.
Introduction: The Tokenization Challenge in Medicine
The "GPT-4o moment" for medical imaging has been hindered by a fundamental trade-off in how models process visual data. Autoregressive (AR) models rely on tokenizers to convert pixels into discrete "visual words." Historically, these tokenizers have fallen into two distinct camps: generation-oriented models (like VQGAN) that capture fine-grained structural details but lack clinical semantics, and interpretation-driven models (like CLIP) that provide high-level diagnostic features at the cost of reconstruction fidelity.
In clinical practice, this trade-off is unacceptable. A model must be able to resolve tiny microcalcifications on a mammogram (structure) while simultaneously understanding their pathological significance (semantics). MedITok addresses this by creating a unified latent space that captures both dimensions.
The MedITok Framework
To balance these competing objectives, we propose a two-stage training framework inspired by curriculum learning. This approach prevents "representation collapse," where one objective typically dominates the other.
- Visual Representation Alignment (Stage 1): The model is "cold-started" on 33.4 million medical images. It focuses on reconstruction fidelity while being guided by a "light" semantic constraint from a pretrained vision encoder (BiomedCLIP). This ensures the model learns to rebuild images without losing sight of medical relevance.
- Textual Semantic Alignment (Stage 2): The model is refined using 2.4 million image-caption pairs. Visual tokens are aligned with the textual embeddings of detailed clinical reports, infusing the tokens with rich, domain-specific meaning.
MedITok utilizes a multi-codebook quantizer (8 codebooks with 4,096 entries each), providing a massive vocabulary of over 32,000 tokens to capture the inherent complexity of diverse medical data.
Large-Scale Medical Pre-training
The scale of MedITok is unprecedented in the medical domain. We curated a corpus of over 30 million medical images and 2 million image-caption pairs aggregated from over 300 public sources, including MIMIC-CXR and PMC-OA. Evaluation was conducted across 30 datasets spanning 9 imaging modalities, including CT, MRI, X-ray, Ultrasound, and Dermoscopy.
Results and Performance
MedITok consistently outperforms powerful general-domain and medical-specific tokenizers across four distinct tasks: reconstruction, classification, synthesis, and Visual Question Answering (VQA).
- Reconstruction: MedITok achieved the best overall quality (rFID of 16.53) across 8 modalities, even with a high 16x downsampling factor, demonstrating efficient compression without losing critical clinical details.
- Classification: On the MedMNIST v2 benchmark, it reached an average mAP of 82.27%, significantly outperforming reconstruction-only models like VQGAN (62.92%).
- Synthesis and Interpretation: When integrated into generative models like LlamaGen, it produced highly realistic medical images (gFID of 76.78). In VQA tasks (VQA-RAD and SLAKE), it enabled LLaVA-style models to achieve superior accuracy, proving the tokens carry genuine diagnostic weight.
Conclusion
MedITok demonstrates that semantic depth and reconstruction fidelity are not mutually exclusive. By utilizing domain-specific anchors and a staged training approach, we have created a foundation for unified medical AI. Future work will focus on scaling to billion-scale datasets and addressing modality imbalances to further support specialized healthcare applications.
Summary updated