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 · Submission to ICLR 2026 · Withdrawn

TL;DR

MedITok is the first unified visual tokenizer tailored for medical imaging, encoding both high-fidelity structural details and rich clinical semantics into a single discrete token space. Using a two-stage training strategy across 33+ million medical images and 2.4 million image-caption pairs, MedITok bridges the gap between image generation and clinical interpretation, outperforming existing general and medical tokenizers across reconstruction, classification, generative synthesis, and visual question answering (VQA).

What Problem Does This Paper Address?

Modern multimodal autoregressive (AR) models like GPT-4o rely on discrete visual tokenizers to process images as token sequences. However, existing visual tokenizers are split across two conflicting paradigms:

  1. Generation-oriented tokenizers (e.g., VQGAN): Excel at pixel-level reconstruction and fine structural detail, but discard discriminative clinical semantics.
  2. Interpretation-oriented tokenizers (e.g., CLIP): Capture high-level semantics essential for diagnosis, but lose fine-grained spatial and structural fidelity.

In medicine, this trade-off is critical: models need precise anatomical textures to reconstruct scans or generate counterfactuals, yet require high-level semantics to identify pathologies. Simply training both objectives jointly from scratch leads to optimization conflicts and degraded representations. Furthermore, paired medical image-caption datasets are scarce compared to abundant unlabeled clinical scans.

Methods

MedITok introduces a discrete, multi-codebook vector-quantized tokenizer ($16\times$ spatial downsampling, 8 parallel codebooks of 4,096 entries each, total codebook size of 32,768) trained via a two-stage curriculum:

Stage 1: Unpaired Images (33.4M)
  Input Image ──► ViTamin Encoder ──► Quantizer ──► Decoder ──► Reconstruction Loss
                         │
                         ▼ (Light Contrastive Loss, λ=0.1)
                Frozen BiomedCLIP Vision Encoder

Stage 2: Paired Image-Captions (2.4M)
  Input Image ──► ViTamin Encoder ──► Quantizer ──► Decoder ──► Reconstruction Loss
                         │
                         ▼ (Full Contrastive Loss, λ=1.0)
                Frozen BiomedCLIP Text Encoder ◄── Detailed Clinical Caption
  • Stage 1 (Visual Representation Alignment): Cold-starts the encoder and decoder on over 33 million unlabeled medical images. It optimizes pixel reconstruction fidelity alongside a gentle contrastive regularization constraint ($\lambda_{\text{vision}} = 0.1$) against a frozen BiomedCLIP vision encoder.
  • Stage 2 (Textual Semantic Alignment): Refines the tokenizer using 2.4 million curated image-caption pairs. Visual tokens are contrastively aligned ($\lambda_{\text{text}} = 1.0$) with representations from a frozen BiomedCLIP text encoder, infusing clinical terminology into the latent space while retaining reconstruction ability.

Datasets

The authors compiled a corpus spanning 9 imaging modalities (CT, MRI, X-ray, Ultrasound, Pathology, Dermoscopy, Endoscopy, Fundus photography, Microscopy):

  • Pre-training: Over 300 public sources were aggregated and subjected to rigorous quality control (filtering low contrast, low variance, small dimensions, and non-clinical figures/plots). This yielded 33,428,922 unlabeled images for Stage 1 and 2,422,827 filtered image-caption pairs (from BIOMEDICA, MIMIC-CXR, GMAI-VL, MedICaT, ROCOv2, etc.) for Stage 2.
  • Evaluation:
  • Reconstruction: 35,736 images across 23 public datasets (e.g., Silver07, DeepDRiD, LiTS).
  • Classification: 5 MedMNIST benchmarks (BreastMNIST, DermaMNIST, PathMNIST, PneumoniaMNIST, RetinaMNIST).
  • Modality-Conditioned Synthesis: 6 MedMNIST subsets using LlamaGen.
  • VQA: VQA-RAD and SLAKE benchmarks using LLaVA-Med.
  • 3D Volumes: SLIVER07 and OrganMNIST3D via slice-based inference.

Key Insights and Ideas

  • Curriculum Separation Over Single-Stage Training: Jointly optimizing text-semantic alignment and pixel reconstruction from scratch leads to semantic objective dominance and degraded reconstruction quality (Row (i) vs (ii) in Table S1). Cold-starting structural learning before aligning text semantics resolves this conflict.
  • Semantic Alignment Regularizes Latent Geometry: Codebook t-SNE visualizations show that Stage 1 alone creates clustered pockets prone to codebook collapse. Stage 2 spreads tokens uniformly across the hypersphere, improving downstream generative sampling without sacrificing reconstruction fidelity.
  • Data Quality Trumps Volume: Filtering BIOMEDICA from 24 million raw pairs down to 1.2 million verified clinical pairs boosted downstream classification mAP from 57.97% to 63.29% and reconstruction PSNR from 32.23 to 32.55 dB.
  • Freezing the Semantic Anchor: Unfreezing the BiomedCLIP text encoder during Stage 2 destroyed the semantic space, crashing linear probing mAP from 82.27% down to 51.41%.

Key Results

  • Reconstruction: Despite a high $16\times$ downsampling factor, MedITok achieves an average rFID of 16.53 and SSIM of 88.25%, outperforming both domain-specific continuous compressors (MedVAE: rFID 73.64) and general unified tokenizers (UniTok: rFID 18.61, SSIM 84.17%).
  • Classification (Linear Probing): MedITok achieved an average 82.27% mAP / 94.07% AUC, surpassing UniTok (80.41% / 92.92%) and generation-only models like VQGAN (62.92% / 85.51%).
  • Image Synthesis (with LlamaGen): Achieved the lowest generation FID (76.78 gFID) and highest diversity score (0.6883). In a blinded Visual Turing Test, a board-certified radiologist mistook MedITok-generated chest X-rays for real scans 72.0% of the time (vs. 56.0% for UniTok).
  • Medical VQA (with LLaVA-Med): MedITok improved VQA accuracy on VQA-RAD to 52.99% (vs. 43.90% base LLaVA-Med) and SLAKE-test to 48.09% (vs. 38.73%).

Limitations and Future Work

  • Histopathology Complexity: Reconstructing high-power histopathology remains difficult for all tokenizers due to extreme cellular texture density (MedITok achieved 65.99% SSIM on pathology vs. >93% on X-ray/CT).
  • 2D Slicing for 3D Data: While MedITok generalizes well to 3D volumes via slice-by-slice aggregation (achieving 4.94 rFID on SLIVER07), native 3D volumetric tokenization remains an open frontier.
  • Caption Dataset Scaling: Stage 2 utilized 2.4M image-text pairs; scaling to tens of millions of curated pairs could further deepen multimodal reasoning.

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