NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MedITok: A Unified Tokenizer for Medical Image Synthesis and Interpretation

Chenglong Ma, Yuanfeng Ji, Jin Ye, Zilong Li, Chenhui Wang, Junzhi Ning, Wei Li, Lihao Liu, Qiushan Guo, Tianbin Li, Junjun He, Hongming Shan · DOI

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.

The two-stage training framework of MedITok: Stage 1 focuses on visual representation alignment, while Stage 2 infuses tokens with textual semantic alignment using clinical reports.
  1. 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.
  2. 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).

MedITok achieves a superior balance between reconstruction quality (low rFID) and semantic interpretation (high mAP) compared to existing general and biomedical domain tokenizers.
  • 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

BibTeX
@misc{ma2025meditok,
  author = {Chenglong Ma and Yuanfeng Ji and Jin Ye and Zilong Li and Chenhui Wang and Junzhi Ning and Wei Li and Lihao Liu and Qiushan Guo and Tianbin Li and Junjun He and Hongming Shan},
  title = {{MedITok: A Unified Tokenizer for Medical Image Synthesis and Interpretation}},
  year = {2025},
  eprint = {2505.19225},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.19225},
}
Figure