UniMedVL: Unifying Medical Multimodal Understanding and Generation through Observation-Knowledge-Analysis


Abstract

Medical workflows routinely combine reading images with producing visual and textual outputs, making both image understanding and generation central to medical AI. Most existing systems, however, address these abilities in isolated models, losing the shared knowledge that a unified architecture could exploit. To bridge this gap, we present UniMedVL, the first unified medical model that seamlessly integrates multimodal understanding and generation capabilities within a single model without switching weights. We achieve this via a tailored progressive training pipeline where understanding and generation mutually reinforce each other. To effectively train UniMedVL, we curate UniMedVL-5M, the first large-scale medical dataset comprising over 5.6M instances across 8 medical imaging modalities, tailored for multimodal input-output tasks in unified medical understanding and generation. Experimental results demonstrate that UniMedVL achieves competitive performance on five medical understanding benchmarks. Crucially, UniMedVL natively supports diverse interleaved generation tasks, e.g., virtual staining, super-resolution, cross-modal synthesis, essential for complex medical workflows. Our code and dataset are publicly available.

the@affilaff1

the@affilaff2

the@affilaff3

the@affilaff4

the@affilaff5

the@affilaff6

the@affilaff7

the@affilaff8

the@affilaff9

the@affilaff10

the@affilaff11

the@affilaff12

the@affilaff13

1 Introduction↩︎

Medical diagnosis fundamentally follows a structured multi-level reasoning pipeline that is inherently multimodal in both inputs and outputs. Physicians systematically observe multimodal raw data, e.g., imaging patterns, patient histories, and symptom descriptions [1], [2], integrate this with medical knowledge, e.g., medical literature, domain expertise, and cross-modal associations [3], [4], and analyse to produce diverse diagnostic outputs: textual reports explaining findings, visual annotations localizing abnormalities, and comparative imagery for treatment planning [5][8].

Consider a radiologist examining suspected lung pathology: they process chest X-rays, prior CT scans, and patient history to generate multiple complementary outputs: detailed reports describing findings, visual annotations highlighting specific regions, and comparative visualizations for surgical planning. This exemplifies how a typical medical diagnosis requires unified processing of multimodal inputs to generate diverse multimodal outputs, where neither textual reports alone nor visual annotations alone suffice. However, existing medical AI systems can only understand medical images or produce visual annotations using separate models [9][13], rather than unifying them within a single model, as shown in Fig. 1. The limitation primarily originates from three critical levels: (i) Data: Medical datasets remain predominantly single-modal despite clear evidence that multimodal integration substantially improves diagnostic accuracy [14][16]. (ii) Learning Paradigm: Although existing medical multimodal models accept multimodal inputs, current approaches essentially apply naive two-stage training strategies, i.e., continual pre-training and instruction tuning, and thus lack a systematic progressive learning paradigm that can effectively capture deep cross-modal relationships between visual and textual information. Recent progress in large language models shows that a well-designed learning paradigm can elicit emergent cross-task generalization at scale, yet such a paradigm remains absent in medical multimodal modeling. (iii) Capability Convergence: While general-domain models have made progress toward unified architectures, the medical domain still lacks truly unified models. For instance, although HealthGPT [11] demonstrates both understanding and generation capabilities for medical tasks, it requires loading different model checkpoints depending on the task type. However, the design compels domain experts to manually select different checkpoints for different tasks, hindering seamless multi-task operation in medical workflows. Hence, this raises a central question for medical multimodal modeling: can image understanding and image generation share a single medical model and mutually reinforce each other, or does joint training inevitably compromise either capability?

Figure 1: Motivation and Overview of UniMedVL. (a) Conventional medical AI deploys task-specific models for visual question answering, report generation, segmentation, and image generation, each producing a distinct output from a shared input. (b) UniMedVL replaces the four task-specific models with a single model that shares one multimodal representation across all tasks.

To bridge this gap, we cast unified medical multimodal modeling as a three-level alignment problem through the Observation-Knowledge-Analysis (OKA) paradigm, directly mapping it to the three bottlenecks above: data, learning paradigm, and capability convergence. At the Observation Level, we reformat existing single-modal medical datasets across various tasks into multimodal input-output pairs and construct UniMedVL-5M, comprising over 5.6M samples; this directly exposes the model to large-scale cross-modal pairings instead of disjoint single-modal data and address the data silo that bottlenecks current medical multimodal learning. At the Knowledge Integration Level, we design Progressive Curriculum Learning with three stages: foundation training for basic medical vision–language alignment, instruction tuning for task-following on high-quality data, and a final unified multimodal training stage that jointly optimizes understanding and generation with interleaved inputs and outputs. At the Analysis Level, we introduce UniMedVL, a unified medical model that performs both understanding and generation with a single set of parameters trained jointly under the curriculum above.

Experiments provide evidence that, in medical multimodal modeling, aligned multimodal supervision and Progressive Curriculum Learning enable bidirectional transfer between image understanding and generation within a single model. Our experiments suggest two insights: (1) unified medical training captures cross-modal correlations that transfer across medical tasks and benefit both understanding and generation; and (2) the learned unified representation can be effectively adapted to downstream tasks via task-specific fine-tuning. Our contributions are as follows, as illustrated in Fig. [fig:teaser]:

  • Medical Multimodal Dataset. We construct and release UniMedVL-5M, a 5.6M-sample multimodal medical dataset covering 8 imaging modalities. It provides a standardized training scheme that jointly supports medical image understanding and generation.

  • Progressive Multimodal Learning Paradigm. We propose a three-stage training pipeline with stage-specific data enhancements and a final unified multimodal training stage, offering a reusable recipe for unified medical model training.

  • Unified Medical Vision-Language Model. We introduce UniMedVL, a medical vision-language model with a single set of parameters for both medical image understanding and generation. UniMedVL unifies inference across task types and demonstrates competitive performance.

2 Related Work↩︎

2.1 Medical Multimodal Large Language Models↩︎

Early medical MLLMs largely adopted adapter-style fusion between medical vision encoders and general LLMs [17], [18], enabling visual question answering and report generation, but often generalizing poorly to real-world medical tasks. A data-centric effort, HuatuoGPT-Vision, converts PubMed papers into large-scale medical image-caption and VQA data [19]; however, it remains primarily comprehension-oriented with limited medical reasoning. Reasoning-focused systems including BioMedGPT and Med-PaLM 2 improved biomedical reasoning [20], zhang2023biomedgpt?, and a recent study further systematizes medical output evaluation [21]; however, these works do not unify image-level generation with textual reasoning. Recently, [11] proposed HealthGPT as the first medical MLLM for unified multimodal inputs and outputs. It introduces MoE LoRA to mitigate task interference and support diverse tasks. Its unification relies on multiple task-specific models during inference. Thus, these capabilities are not consolidated into a single end-to-end model that performs all tasks in a unified manner.

2.2 Unified Image Understanding and Generation↩︎

Outside the medical domain, unified multimodal research spans several paradigms. Autoregressive models [22][24] treat images as discrete tokens in decoder-only Transformers, providing architectural unity but constraining high-resolution synthesis due to long sequences and discrete reconstruction. Dual-encoder designs [25], [26] mitigate the granularity conflict between semantic understanding and pixel-level generation via separate visual pathways, improving task performance at higher inference cost. Hybrid objectives jointly optimize complementary generative losses, as in Transfusion [27] and Show-O [28], while modular approaches [29][31] connect frozen MLLMs to diffusion models via learnable connectors, trading end-to-end differentiability for flexibility. Representation advances narrow the semantics–fidelity gap via multi-codebook quantization [32], contrastive-aligned tokenization [33], and unified CLIP semantic spaces [34]. Recent autoregressive methods [35], [36] further improve interleaved generation through deeper fusion. Despite these advances, balancing semantic understanding with pixel-level image generation remains challenging in the medical field, where supervision is fragmented and objectives are heterogeneous.

3 Methodology↩︎

We present UniMedVL through an observation–knowledge–analysis framework, which first curates large-scale medical multimodal observations, then builds task capability through progressive curriculum learning, and finally unifies medical understanding and generation within a single model.

Figure 2: Observation–Knowledge framework. Observation (top): Data curation pipeline (sources, quality control, interleaved-task construction). Knowledge (bottom): Three-stage progressive curriculum (Foundation Training, Instruction Tuning, Unified Multimodal Training).

3.1 Observation Level↩︎

At the observation level, we address the data bottleneck by reformulating fragmented medical datasets into aligned multimodal input-output pairs.

Data Source and Modality Coverage. UniMedVL-5M is built through systematic re-curation and re-creation of heterogeneous medical resources into a unified multimodal learning corpus. It spans 8 primary medical imaging modalities and supports understanding, generation, and interleaved generation tasks through standardized multimodal input-output instances. Detailed dataset statistics are provided in Appendix 6.2.

Quality Control Pipeline. The data curation process is formalized as sequential quality filters: \[\label{eq:data95pipeline} \mathcal{D}_{\mathrm{qc}} = \mathcal{F}_{\mathrm{align}} \circ \mathcal{F}_{\mathrm{coarse}}(\mathcal{D}_{\mathrm{raw}})\tag{1}\] where \(\mathcal{F}_{\mathrm{coarse}}\) and \(\mathcal{F}_{\mathrm{align}}\) retain image-text pairs \((x, t) \in \mathcal{X} \times \mathcal{T}\) satisfying progressively stricter criteria. Expert validation is performed on a stratified subset of \(\mathcal{D}_{\mathrm{qc}}\) as an audit.

  • Coarse Filtering (\(\mathcal{F}_{\mathrm{coarse}}\)). We apply standard modality-specific preprocessing and light text cleaning/tokenization and retain samples based on the quality indicator: \(\phi(x, t) = \boldsymbol{1}[\min\{H(x), W(x)\} \geq 128] \cdot \boldsymbol{1}[\tau_{\min} \leq \ell(t) \leq \tau_{\max}]\), where \(H(x)\) and \(W(x)\) denote image height and width, and \(\ell(t)\) is the text length in characters with bounds \(\tau_{\min}=10\), \(\tau_{\max}=1024\).

  • Medical Alignment (\(\mathcal{F}_{\mathrm{align}}\)). To preserve pathological findings, we compute a composite alignment score. MedGemma-27b [37] generates \(K=5\) candidate captions \(\mathcal{C}(x) = \{c_k\}_{k=1}^K\) per image. The alignment score combines semantic similarity and medical-specific matching: \[\label{eq:align95score} \begin{align} S(x,t) &= \max_{c \in \mathcal{C}(x)} \cos(E(t), E(c)),\\ M(x,t) &= S_{\mathrm{MedSigLIP}}(x, t),\\ S_{\mathrm{final}}(x, t) &= \lambda \cdot S(x,t) + M(x,t) \end{align}\tag{2}\]

    where \(E(\cdot)\) denotes E5-large-v2 embeddings [38], \(S_{\mathrm{MedSigLIP}}\) is obtained via MedSigLIP [37], and \(\lambda=0.5\). We normalize both \(S(x,t)\) and \(M(x,t)\) to \([0,1]\) before combination. We retain the top 50% of pairs ranked by \(S_{\mathrm{final}}\) to obtain a higher-quality subset of training data.

  • Expert Validation. Five medical experts independently assess a stratified subset spanning medical modalities, with sampling proportional to each modality’s frequency. Each sample is rated along seven medically grounded dimensions. We aggregate the seven scores into a mean quality metric, \(\bar{Q}=\frac{1}{7}\sum_{j=1}^{7} Q_j\). We note that MedGemma-27b is used only for alignment scoring during filtering, not to generate the retained training targets; the retained pairs remain original image–text pairs from human-validated open datasets. Expert validation serves as a quality audit on a representative subset, but not a guarantee of zero error across the full dataset.

Interleaved Tasks Construction. We curate data from 5 interleaved tasks, including medical image prompt segmentation, super-resolution, counterfactual generation, virtual immunohistochemistry staining, and cross-modal synthesis. Since the original datasets contain only images, we develop a two-stage construction pipeline to formulate them into structured multimodal input-output pairs: Templatization and MLLM Refinement. First, we instantiate structured multimodal input-output pairs by sampling textual prompts and responses from a task-specific template library. Then, we leverage MedGemma-27b to refine the linguistic diversity and medical expressiveness of the input prompts and output explanations. This two-stage design lets us scale interleaved supervision from image-only sources while keeping the textual prompts and explanations clinically faithful. The resulting instances provide aligned multimodal targets that directly support the curriculum described next.

3.2 Knowledge Level: Progressive Curriculum Learning↩︎

At the knowledge level, we address heterogeneous objectives in medical multimodal modeling with Progressive Curriculum Learning. The curriculum first learns medical vision–language alignment, then strengthens instruction following, and couples understanding and generation through interleaved multimodal tasks.

  • Stage 1: Foundation Training. We conduct foundation training on the UniMedVL-5M dataset to equip the model with basic medical image understanding and generation capabilities. At this stage, training emphasizes learning general medical vision-language alignments without task-specific constraints.

  • Stage 2: Instruction Tuning. In this stage, we conduct instruction tuning on our curated high-quality instruction data to improve the model’s instruction-following capability for solving complex medical tasks. The instruction-formatted medical tasks follow the format \((q, x_v, k) \rightarrow (a_t, a_v)\) where query \(q\), visual input \(x_v\), and knowledge context \(k\), e.g., patient history, imaging modality metadata, or medical guidelines relevant to the query, generate textual \(a_t\) and visual \(a_v\) responses. We implement enhancement strategies for distinct task types: For medical understanding tasks such as medical VQAs, we augment standard responses with existing Distilled Chain of Thought (DCOT) data that explicitly articulate the reasoning pathway from visual observation to medical conclusions. For generation tasks, we employ Caption Augmented Generation (CAG) pipeline to enhance caption quality, which incorporates structured planning steps that guide the visual synthesis process. The details are provided in Appendix 6.4.

  • Stage 3: Unified Multimodal Training. We further adapt the stage-2 model using our curated interleaved tasks, where the model jointly processes image inputs and textual prompts to produce corresponding visual content and explanatory text. This stage is designed to establish interleaved multimodal reasoning, which requires our model to integrate understanding and generation within unified sequences. The model consolidates previously learned capabilities while unlocking the ability to generate visual and textual contents simultaneously.

3.3 Analysis Level: UniMedVL↩︎

At the analysis level, UniMedVL uses a single set of parameters to perform both medical understanding and generation.

Task Organization. Model training is systematically organized into three primary task families that reflect the fundamental capabilities required for unified medical multimodal systems: (i) Understanding tasks, which emphasize medical image comprehension, visual question answering, diagnostic reasoning, image captioning, and medical report generation; (ii) Generation tasks, which focus on conditional medical image synthesis and planning-guided text-to-image generation; and (iii) Interleaved tasks, which involve coupled visual-textual inputs and outputs. Unlike single-direction understanding or generation tasks, interleaved tasks require the model to perform bidirectional multimodal grounding, maintain cross-modal semantic consistency and combine both of textual and visual responses within a unified sequence.

Model Architecture Overview. Following [30], we adopt a unified architecture with dual visual encoders and a Transformer backbone. The understanding-oriented encoder \(E_{\mathrm{VIT}}\) extracts semantic tokens \(z_{\mathrm{VIT}} = E_{\mathrm{VIT}}(x_v)\) for multimodal comprehension tasks, while the generation-oriented encoder \(E_{\mathrm{VAE}}\) produces latent representations \(z_{\mathrm{VAE}} = E_{\mathrm{VAE}}(x_v)\) for visual synthesis tasks. The transformer backbone consists of specialized FFN layers for the understanding and generation tasks, with shared self-attention layers. The VIT tokens \(z_{\mathrm{VIT}}\) and VAE tokens \(z_{\mathrm{VAE}}\) are first processed by the specialized FFN layers and then concatenated with text tokens \(x_{\text{text}}\) to form a single token sequence. This sequence is fed into shared self-attention layers to predict the next text tokens and the velocity on the VAE latent features. For generation outputs, the decoder \(D_{\mathrm{VAE}}\) reconstructs the VAE latent features to images.

3pt

Table 1: Comparison of UniMedVL with Other LVLMs and Unified Multi-Modal Models on Medical Visual Understanding Tasks. Best in bold, second-best underlined (same convention applies to all tables).
Model Params Medical VQA-RAD SLAKE PathVQA OmniMedVQA GMAI-MMBench Avg
Understanding Only
LLaVA-v1.5 7B \(\times\) 42.8 37.7 31.4 44.7 38.23 38.97
InternVL2 8B \(\times\) 49.0 50.1 31.9 54.5 43.47 45.79
Med-Flamingo 8.3B \(✔\) 43.0 25.5 31.3 34.9 12.74 29.49
LLaVA-Med 7B \(✔\) 48.1 44.8 35.7 41.3 20.54 38.09
RadFM 14B \(✔\) 50.6 34.6 14.33 23.5 22.34 29.07
HuatuoGPT-Vision-7B 7B \(✔\) 53.0 49.1 32.0 50.0 50.22 46.86
MedGemma-4B 4B \(✔\) 67.6 71.2 33.7 68.4 44.0 56.98
Lingshu-7B 7B \(✔\) 62.7 77.0 59.6 82.0 52.3 66.72
Lingshu-32B 32B \(✔\) 71.4 84.7 61.3 80.4 52.7 70.10
GMAI-VL 7B \(✔\) 66.3 72.9 39.8 88.5 61.74 65.85
GPT-4o Closed \(\times\) 64.08 72.11 54.50 71.06 57.27 63.80
Claude Sonnet 4 Closed \(\times\) 67.60 70.60 54.20 63.22 44.26 59.98
Gemini-2.5-Flash Closed \(\times\) 67.41 76.03 59.70 71.33 59.05 66.70
Unified Understanding and Generation
Janus 1.3B \(\times\) 52.8 26.9 27.9 45.7 39.30 38.52
Bagel 14B \(\times\) 60.09 58.91 39.05 71.13 48.11 55.46
HealthGPT-M3 3.8B \(✔\) 55.9 56.4 39.7 68.5 42.08 52.52
HealthGPT-L14 14B \(✔\) 58.3 64.5 44.4 74.4 43.1 56.94
UniMedVL (Ours) 14B \(✔\) 61.9 75.4 53.5 85.8 60.75 67.47

Training Objectives. We train a single model for multimodal understanding and conditional image generation. Given an image-text pair \((X,T)\) with \(T=(T_{\mathrm{in}},T_{\mathrm{out}})\), we extract two latent features \(z_{\mathrm{VIT}}=E_{\mathrm{VIT}}(X)\) and \(z_{\mathrm{VAE}}=E_{\mathrm{VAE}}(X)\), and define the unified condition \(C=(T_{\mathrm{in}}, z_{\mathrm{VIT}})\). To motivate the unified training objective, we observe a standard information-theoretic identity: jointly modeling the output distribution \((T_{\mathrm{out}}, z_{\mathrm{VAE}})\) can exploit cross-task correlations that conditionally factorized (independent) training cannot. Specifically, the joint conditional entropy is bounded by the sum of individual entropies, with the gap quantifying the redundancy reduction: \[\label{eq:info95bound} \begin{align} & \left[H(T_{\mathrm{out}}\mid C)+H(z_{\mathrm{VAE}}\mid C)\right] - H(T_{\mathrm{out}}, z_{\mathrm{VAE}}\mid C) \\ & \quad = I(T_{\mathrm{out}}; z_{\mathrm{VAE}}\mid C) \ge 0. \end{align}\tag{3}\] This inequality implies that a unified model can exploit cross-modal correlations (\(I > 0\)) to achieve a lower Bayes-optimal uncertainty than separate models. This perspective suggests that joint training can outperform factorized training when the two outputs share non-trivial conditional dependencies. Full derivations are provided in Appendix 6.9. Motivated by this theoretical lower bound, we train the model with a combined objective of next-token prediction (NTP) \(\mathcal{L}_{\mathrm{NTP}}\) and rectified flow matching \(\mathcal{L}_{\mathrm{flow}}\): \[\label{eq:main95obj} \mathcal{L}(\theta) = \mathcal{L}_{\mathrm{NTP}} + \mathcal{L}_{\mathrm{flow}},\tag{4}\] where the individual loss terms are \[\label{eq:main95obj95terms} \begin{align} \mathcal{L}_{\mathrm{NTP}} &= -\sum_{i=1}^{n} \log p_\theta\!\left(t_{i+1}\mid t_{\le i}, z_{\mathrm{VIT}}\right), \\ \mathcal{L}_{\mathrm{flow}} &= \mathbb{E}_{t,\epsilon}\!\left[\left\|v_\theta(\tilde{z}_{\mathrm{VAE}}, t, C) - v\right\|_2^2\right], \end{align}\tag{5}\] with \(\tilde{z}_{\mathrm{VAE}}\) and \(v\) following the standard rectified-flow construction.

4 Experiments↩︎

4.1 Benchmarks and Baselines↩︎

Evaluation Benchmarks. We evaluate UniMedVL across medical visual understanding and generation benchmarks. For image understanding tasks, we employ VQA-RAD [39], SLAKE [40], PathVQA [41], OmniMedVQA [42], and GMAI-MMBench [43], which cover diverse medical scenarios. For image generation tasks, we split the image–caption pairs in the proposed dataset into 80% for training and 20% for testing. We use the test set to evaluate UniMedVL’s text-to-image generation performance. For interleaved tasks, we utilize the BCI dataset [44] for the virtual immunohistochemistry staining task. The IXI dataset [45] is leveraged to evaluate the super-resolution task, and the BraTS 2023 dataset [46] is used for evaluating the cross-modal synthesis task. We use the ICG-CXR dataset [47] to evaluate the counterfactual generation task.

Baseline Methods. We consider two categories: specialized models and unified multimodal models. For specialized models, we include understanding-only models such as Med-Flamingo [48], LLaVA-Med [18], HuatuoGPT-Vision [19], RadFM [49], GMAI-VL[9], Lingshu[50], LLaVA-v1.5 [51], and InternVL2 [52]. We compare against modality-specialized medical generative models, including RetinaLogos [10] for color fundus photographs, MedSyn [53] for CT, CheXGen [54] for chest X-ray, and PathLDM [55] for histopathology. We compare with image translation models including CycleGAN [56], pix2pix [57], pix2pixHD [58], pyramid pix2pix [44], SRCNN [59], VDSR [60], SwinIR [61], Restormer [62], AMIR [63], ResViT [64], and TransUNet [65]. Additionally, to determine the model performance of medical imaging generation capability, we finetuned LlamaGen-MediTok [66]. For unified multimodal models, we include general models like Janus [25] and Bagel [30], as well as a medical model HealthGPT [11].

Evaluation Metrics. We employ task-specific metrics aligned with medical relevance. For image understanding tasks, we utilize accuracy as the evaluation metric. For image generation tasks, we employ generation FID (gFID) and BioMedCLIP score (CS) to evaluate the quality of synthesized images. For interleaved tasks, we leverage PSNR and SSIM as evaluation metrics for virtual immunohistochemistry staining, super-resolution, and cross-modal synthesis tasks. For counterfactual generation, we follow the experimental setup of ProgEmu [47], using gFID, AUC-ROC, and F1 to evaluate the quality of synthesized images, and BLEU-3, METEOR, and ROUGE-L to assess the quality of the explanatory text.

4.2 Performance of UniMedVL↩︎

Medical Visual Understanding Performance. We evaluate the understanding capabilities of UniMedVL across diverse medical VQA and image comprehension benchmarks. Table 1 compares UniMedVL with existing medical VLLMs and unified multimodal models. Despite supporting both understanding and generation within a single architecture, UniMedVL achieves competitive or superior performance across medical domains. Notably, compared with HealthGPT, which requires separate model checkpoints for different tasks, UniMedVL achieves 85.8% on OmniMedVQA versus HealthGPT-L14’s 74.4% while enabling seamless task switching.

3.0pt

Table 2: Multi-modality generation quality: FID scores across eight medical imaging modalities.
Method CFP CXR CT HIS MRI OCT Ultra. Endo. Avg
LlamaGen-MediTok 89.14 68.16 - 198.63 - - 358.11 - 171.85
Bagel 217.19 182.80 163.78 206.18 175.74 307.80 255.78 214.61 215.49
UniMedVL-Gen 77.35 190.38 79.84 107.20 82.99 107.06 100.44 121.89 108.40
UniMedVL (Ours) 53.20 73.04 73.04 149.01 90.36 99.27 95.38 133.11 96.29
Figure 3: Multi-Modality Performance: BioMedCLIP Score radar chart. UniMedVL (green region) consistently achieves the highest BioMedCLIP Scores across all 8 medical imaging modalities.

3pt

Table 3: External evaluation on held-out image-generation datasets excluded from UniMedVL-5M training. CS denotes BioMedCLIP Score.
Model Metric CFP CXR CT HIS MRI OCT Ultra. Endo.
LlamaGen-MediTok FID \(\downarrow\) 57.96 140.56 104.56 211.40 113.27 114.99 65.86 188.36
CS \(\uparrow\) 0.71 0.62 0.63 0.61 0.65 0.71 0.69 0.65
Bagel FID \(\downarrow\) 231.92 126.53 167.70 185.27 134.80 245.51 280.50 158.24
CS \(\uparrow\) 0.64 0.65 0.61 0.62 0.63 0.63 0.65 0.68
UniMedVL-Gen FID \(\downarrow\) 134.41 130.41 74.25 107.34 61.87 69.68 56.81 126.89
CS \(\uparrow\) 0.71 0.67 0.68 0.67 0.71 0.72 0.71 0.70
UniMedVL (Ours) FID \(\downarrow\) 60.00 63.54 100.09 102.31 87.54 54.20 86.63 94.04
CS \(\uparrow\) 0.72 0.71 0.70 0.72 0.73 0.70 0.70 0.70

3pt

Table 4: Comparison with modality-specialized generators. Cells report FID \(\downarrow\) / BioMedCLIP Score \(\uparrow\).
Model CFP CXR CT HIS
RetinaLogos 60.45/0.711 - - -
CheXGen - 90.70/0.689 - -
MedSyn - - 174.42/0.626 -
PathLDM - - - 241.53/0.617
UniMedVL (Ours) 53.20/0.708 73.04/0.702 73.04/0.696 149.01/0.704

3.5pt

Table 5: Performance on Histological Staining and MRI Super-Resolution. (Left) H&E to IHC staining transformation; (Right) MRI 4\(\times\) super-resolution. \(\dagger\) indicates fine-tuning variant.
H&E\(\rightarrow\)IHC Staining MRI Super-Resolution
1-2 (lr)3-4 Method PSNR/SSIM Method PSNR/SSIM
CycleGAN 16.20/0.373 SRCNN 28.81/0.892
Pix2Pix 18.65/0.419 VDSR 30.04/0.914
Pix2PixHD 19.63/0.471 SwinIR 31.55/0.933
Pyramid Pix2pix 21.16/0.477 Restormer 31.85/0.938
AMIR 31.99/0.939
HealthGPT-M3 15.81/0.242 HealthGPT-M3 18.37/0.580
UniMedVL \(^{\dagger}\) 18.11/0.401 UniMedVL \(^{\dagger}\) 19.64/0.602
UniMedVL  20.27/0.456 UniMedVL  27.29/0.890

Medical Image Generation Performance. Table 2 and Figure 3 evaluate generation quality across eight medical imaging modalities. Comparing UniMedVL-Gen (generation-only training) with UniMedVL reveals that incorporating understanding training substantially improves generation fidelity, reducing the average gFID from 108.40 to 96.29. UniMedVL also achieves BioMedCLIP scores of 0.706 on average across modalities in Figure 3, which indicates strong semantic alignment between generated images and medical text descriptions.

This challenges the conventional assumption that joint training compromises individual task performance and shows that medical multimodal learning benefits from task synergy. To verify generalization beyond the training distribution, we evaluate on a held-out external benchmark of text-to-image generation. As Table 3 shows, UniMedVL achieves the lowest average FID and highest average BioMedCLIP Score across eight modalities. This suggests that the generation gains extend beyond the training distribution. We further compare four modality-specialized generation models in Table 4. Despite its unified design, UniMedVL achieves lower FID than all four models, suggesting that unified training can preserve domain-specific generation quality. Across modalities, UniMedVL keeps FID below 100 on six out of eight medical imaging modalities. This suggests that, in our setting, understanding and generation can reinforce rather than compete within a single model.

[t]
    \centering
    \caption{\textbf{Performance on Medical Image Translation.}
    Bidirectional translation between T$_2$ and FLAIR MRI sequences. 
    $\dagger$ indicates  fine-tuning variant.}
    \label{tab:medical95translation}
    \small
    \setlength{\tabcolsep}{3.5pt}
    \adjustbox{width=0.85\textwidth,center}{
    \begin{tabular}{lccc}
    \toprule
    \textbf{Method} & \textbf{T$_2$ $\rightarrow$FLAIR} & \textbf{FLAIR$\rightarrow$T$_2$} & \textbf{Avg} \\
    \midrule
    ResViT & \textbf{24.97}/0.870 & \textbf{25.78}/\textbf{0.908} & \textbf{25.38}/\textbf{0.889} \\
    pGAN & 24.01/0.864 & 25.09/\underline{0.894} & 24.55/0.879 \\
    pix2pix & 23.15/0.869 & 24.52/0.883 & 23.84/0.876 \\
    A-UNet & 23.69/\underline{0.873} & 24.56/0.891 & 24.13/0.882 \\
    SAGAN & 24.02/0.860 & 25.10/0.893 & 24.56/0.877 \\
    \midrule
    HealthGPT-M3 & 18.88/0.745 & 19.30/0.750 & 19.09/0.748 \\
    \methodname$^{\dagger}$ & 23.99/0.711 & 23.49/0.732 & 23.74/0.722 \\
    \rowcolor{cyan!20}
    \textbf{\methodname} & \underline{24.90}/\textbf{0.881} & \underline{25.23}/0.883 & \underline{25.07}/\underline{0.882} \\
    \bottomrule
    \end{tabular}
    }
Figure 4: Comprehensive visualization of UniMedVL ’s multimodal capabilities. Demonstration of diverse medical imaging tasks, including text-to-image generation, virtual staining, super resolution, counterfactual generation, and cross-modal synthesis.
Table 6: Comparison of UniMedVL with baseline methods on medical counterfactual generation using the ICG-CXR dataset. \(\dagger\) indicates the fine-tuning variant.
Method Counterfactual Image Explanatory Text
2-4 (lr)5-7 gFID\(\downarrow\) AUROC\(\uparrow\) F1\(\uparrow\) BLEU-3\(\uparrow\) METEOR\(\uparrow\) ROUGE-L\(\uparrow\)
CXR-IRGen 35.39 0.5236 0.7609 0.0448 0.2115 0.1846
ProgEmu 29.21 0.7921 0.8914 0.1241 0.4097 0.2606
UniMedVL \(^{\dagger}\) 27.17 0.7970 0.8731 0.2641 0.4486 0.4649

Performance on interleaved tasks. In Table 5, for virtual immunohistochemistry staining from H&E to IHC, UniMedVL reports 20.27 PSNR, exceeding HealthGPT-M3 by 28%. On MRI super-resolution, our model obtains 27.29 PSNR and 0.890 SSIM, indicating a clear gain over the unified baseline. For T2-to-FLAIR cross-modal synthesis in Table [tab:medical95translation], UniMedVL achieves an average PSNR of 25.07, narrowing the gap to specialized models [67] while preserving unified multimodal capabilities. Figure 4 presents qualitative examples of these results. The comparison between UniMedVL\(^\dagger\) and the full model further shows consistent gains across tasks, indicating that the complete progressive training paradigm captures cross-modal relationships beyond simple fine-tuning.

Table 6 evaluates counterfactual generation with accompanying explanatory text. UniMedVL\(^\dagger\) obtains 27.17 gFID and higher text-quality metrics than specialized baselines. Its counterfactual check rate of 0.797 AUROC further indicates that unified training can generate medically plausible scenarios while producing coherent textual explanations.

4.3 Ablation Study↩︎

Figure 5: Bidirectional Transfer between understanding and generation in UniMedVL . (a) Adding generation training to a U-only model lifts accuracy on the reported medical understanding benchmark. (b) Progressive curriculum trajectory: relative to the One-Stage baseline.

2.2pt

Table 7: Ablation on Understanding-Generation Synergy (Stage 1). Joint training outperforms single-task variants. CS: BioMedCLIP Score.
Model Training GMAI-MMB\(\uparrow\) SLAKE\(\uparrow\) PathVQA\(\uparrow\) OMVQA\(\uparrow\) gFID\(\downarrow\) CS\(\uparrow\)
F-Baseline None 0.481 0.589 0.390 0.711 212.73 0.662
C-G-only Gen - - - - 118.60 0.699
B-U-only Und 0.505 0.548 0.367 0.772 - -
H-Joint-Base Joint 0.593 0.684 0.365 0.856 121.02 0.683

Understanding-Generation Synergy. Table 7 shows that joint training (H-Joint-Base) benefits both directions during the foundation stage, surpassing the single-task variants. On understanding, adding generation training lifts GMAI-MMBench accuracy from 0.505 to 0.593, with similar relative gains of 24.8% on SLAKE and 10.9% on OMVQA. On generation, adding understanding training reduces the average gFID by 11.2% over the generation-only variant in Table 2, indicating that semantic supervision benefits generation fidelity. The lone exception is PathVQA, where a 0.5% dip is recovered through instruction tuning in Stage 2.

-4pt

2.0pt

Table 8: Ablation on Progressive Training Stages. Each stage brings cumulative improvements. CS: BioMedCLIP Score.
Stage Data GMAI-MMB\(\uparrow\) SLAKE\(\uparrow\) PathVQA\(\uparrow\) OMVQA\(\uparrow\) gFID\(\downarrow\) CS\(\uparrow\)
One-Stage U+G 0.535 0.656 0.495 0.778 123.48 0.695
Stage 1 U+G 0.593 0.684 0.365 0.856 121.02 0.683
Stage 2 High-quality 0.600 0.742 0.513 0.863 120.04 0.699
Stage 3 +Interleaved 0.608 0.754 0.535 0.858 96.29 0.706

Progressive Training Stages. Table 8 shows that progressive staging further reinforces the synergy between understanding and generation. One-stage joint training obtains 0.535 on GMAI-MMBench and 123.48 gFID, whereas the three-stage progressive approach reaches 0.608 and 96.29, corresponding to a 13.5% gain on GMAI-MMBench and a 22.0% reduction in gFID, respectively. The most pronounced gain in generation appears at Stage 3, where gFID decreases from 120.04 to 96.29 after introducing interleaved tasks that require simultaneous understanding and generation, indicating that these tasks are a key driver for connecting the two capabilities. While joint training already yields synergy in the earliest stage, the largest generation gain arrives only at Stage 3, where interleaved supervision couples the two capabilities most tightly.

4.0pt

Table 9: Ablation on Data Augmentation for Understanding Tasks. DCOT: Distilled Chain of Thought. Higher values (\(\uparrow\)) indicate better performance.
Data Strategy GMAI-MMB\(\uparrow\) SLAKE\(\uparrow\) PathVQA\(\uparrow\) OMVQA\(\uparrow\) Type
Basic instructions (U) 0.505 0.548 0.367 0.772 U-only
+DCOT 0.543 0.603 0.453 0.817 U-only
U+G 0.593 0.684 0.365 0.856 Joint
High-quality U+G 0.600 0.742 0.513 0.863 Joint
+Interleaved 0.608 0.754 0.535 0.858 Joint

4.0pt

Table 10: Ablation on Data Augmentation for Generation Quality. CAG: Caption Augmented Generation. CS: BioMedCLIP Score.
Data Strategy gFID\(\downarrow\) CS\(\uparrow\) \(\Delta\) (gFID/CS) Type
Basic captions (G) 118.60 0.699 G-only
+CAG 108.40 0.698 -10.20/-0.001 G-only
U+G 121.02 0.683 Joint
High-quality U+G 120.04 0.699 -0.98/+0.016 Joint
+Interleaved 96.29 0.706 -24.73/+0.023 Joint

Data Augmentation Strategies. Tables 9 and 10 assess our data enhancement approaches across understanding and generation tasks separately. For understanding tasks, DCOT raises PathVQA from 0.367 to 0.453, with joint training further improving SLAKE to 0.754. For generation tasks, CAG lowers gFID from 118.60 to 108.40, while interleaved joint training delivers the strongest generation quality. These results indicate that data-quality and training-strategy improvements are complementary: DCOT and CAG enhance understanding and generation data respectively, while progressive staging with interleaved tasks provides the optimization curriculum.

5 Conclusion↩︎

We presented UniMedVL, a unified framework for medical image understanding and generation within a single model, built on two medical-specific design choices: the UniMedVL-5M corpus of over 5.6M multimodal medical samples and a three-stage Progressive Curriculum Learning pipeline that progressively activates bidirectional transfer between understanding and generation. Ablation studies further indicate that joint training and progressive staging benefit both understanding and generation. These findings highlight the value of aligning data construction, training curriculum, and model objectives in a unified medical multimodal framework. UniMedVL achieves competitive understanding performance on five medical benchmarks while maintaining competitive generation quality across eight imaging modalities. We position this work as a step toward unified medical multimodal modeling rather than a deployable clinical solution. More broadly, we hope that the released dataset, UniMedVL-5M, will offer a convenient starting point for further study of how understanding and generation can be trained in unified medical settings.

5.0.0.1 Limitations.

The current study is restricted to 2D medical imaging and does not yet extend to volumetric modalities such as 3D CT or MRI volumes. Evaluation relies on standard automatic metrics for reproducibility; however, these do not substitute for clinical validation, and deployment in real-world clinical settings would therefore require further clinical investigation. In addition, as a single model trained across many tasks, UniMedVL does not yet match the strongest task-specific systems on every individual benchmark; we regard narrowing this gap while preserving unification as an important direction for future work.

Acknowledgements↩︎

This work was supported by Shanghai Artificial Intelligence Laboratory.

Impact Statement↩︎

This paper presents work whose goal is to advance the field of Machine Learning in AI4Health. The potential societal consequences of our work include both positive impacts (improved diagnostic accuracy, reduced clinical workload) and considerations that warrant attention (model reliability in clinical settings, potential biases in medical data).

This work does not involve experiments on human subjects, patient interventions, or the collection of private medical data. All datasets used in this study are publicly available, including CheXpertPlus, SLAKE, PathVQA, OmniMedVQA, IXI, BraTS 2023, and other open-access medical datasets. Data sources were used in accordance with their respective licenses, and all materials were de-identified prior to use. The purpose of this research is to advance the scientific understanding of unified multimodal modelling for healthcare data rather than to deploy clinical decision-support systems. No patient-level decisions or clinical predictions were made based on model outputs. Expert audits were limited to quality control of publicly available samples and did not involve identifiable patient information.

To ensure reproducibility, all implementation details, model configurations, and training hyperparameters are provided in the Appendix. The full code and configuration files are available at https://huggingface.co/datasets/General-Medical-AI/UniMedVL-5M. The UniMedVL-5M dataset construction process, including data sources, quality control criteria, and interleaved task synthesis, is fully documented in the Appendix and illustrated in Figure 2. All benchmarks used for evaluation, VQA-RAD, SLAKE, PathVQA, OmniMedVQA, BraTS 2023, and IXI, are publicly available or derived from publicly available sources.

6 Appendix↩︎

Appendix Contents↩︎



6.1 Implementation Details↩︎

6.1.1 Training Hyperparameters↩︎

Table 11: Training hyperparameters and configurations for the three-stage curriculum learning strategy in UniMedVL.
Stage 1 Stage 2 Stage 3
(Foundation) (Instruction Tuning) (Unified Multimodal)
Hyperparameters
Learning rate \(5 \times 10^{-5}\) \(2.5 \times 10^{-5}\) \(1.0 \times 10^{-5}\)
Optimizer AdamW
Training steps 85K 120K 70K
EMA ratio 0.995
Image Resolution (VAE) 512-1024 512-1024 32-1024
Image Resolution (ViT) 378-980 224-518 378-980
Max tokens per sample 18.5K 20K 27K
Dropout Text: 0.3, ViT/VAE: 0.05
ViT training Trainable Frozen Frozen
VAE training Frozen
Understanding branch Trainable
LLM training Trainable
Data Sampling Ratio (%)
Text-Only 5 5 3
Text-to-Image (T2I) 25 45 35
Image-to-Text (I2T) 75 40 37
Interleaved - 10 25

Detailed Training Strategy Implementation. Our training employs a three-stage curriculum learning approach that implements the Knowledge component within the OKA framework. We use the AdamW optimizer throughout all stages:

  • Stage 1 (Foundation Training) establishes basic medical understanding over 85K steps with a learning rate of \(5 \times 10^{-5}\). The data composition prioritizes image-to-text tasks (75%), complemented by text-to-image generation (25%) and pure text data (5%). This stage trains both ViT and LLM components end-to-end while keeping the VAE frozen. The image resolution is restricted with the range from 512-1024 pixels for the generation branch and 378-980 pixels for the understanding branch.

  • Stage 2 (Instruction Tuning) extends training to 120K steps with a reduced learning rate of \(2.5 \times 10^{-5}\). The data mixture evolves to balance text-to-image (45%) and image-to-text (40%) tasks, while introducing interleaved multimodal datasets (10%). The ViT encoder is frozen at this stage to preserve learned visual features. Token capacity increases to 20K per sample.

  • Stage 3, Unified Multimodal Training, focuses on interleaved generation capabilities over 70K steps with a learning rate of \(1.0 \times 10^{-5}\). This stage significantly increases interleaved dataset usage to 25% while maintaining balanced generation at 35% and understanding at 37% tasks. The expanded token budget, 27K, and broader image resolution range, 32 to 1024 pixels for generation, support interleaved tasks, including medical image super-resolution, modality translation, and counterfactual generation.

Hardware Requirements and Training Infrastructure. Our model training was conducted using 8× A800 GPUs, 80GB memory each, for experimental validation. However, for optimal training efficiency and to fully exploit the model’s capacity, we recommend a minimum configuration of 16× A800 GPUs or equivalent hardware.

Technical Implementation Details. The training employs a unified loss function that balances understanding and generation objectives with a CE:MSE weight ratio of 0.25:1.0. We apply consistent dropout rates across all stages (Text: 0.3, ViT/VAE: 0.05) to prevent overfitting. The EMA coefficient is set to 0.995 for stable model convergence. Throughout training, the VAE remains frozen to maintain stable latent representations.

6.1.2 Pretrained VAE Diagnostic for Medical Imaging↩︎

Rationale for Using Pretrained VAE without Fine-tuning. Our approach leverages a general-purpose pretrained VAE model from FLUX [68] without medical domain-specific fine-tuning. This design choice addresses two core questions: (1) the reconstruction capability of pretrained VAE on medical imaging modalities, and (2) the cost-benefit trade-off of fine-tuning versus preserving existing capabilities. Regarding the first question, we conducted comprehensive reconstruction experiments across eight medical imaging modalities to evaluate performance. For the second question, considering that our training data is not specifically designed for reconstruction optimization, we did not pursue domain-specific fine-tuning to avoid potential degradation of the model’s general-purpose capabilities while maintaining stable latent representations throughout our progressive training stages.

Table 12: Reconstruction quality evaluation of pretrained VAE models on medical imaging modalities.
Metric Model \(f_d\) CFP CT CXR Endoscopy HIS MRI OCT Ultrasound
rFID (Lower is Better)
VAE (FLUX) 8 13.22 5.81 5.42 11.77 10.00 10.58 13.23 9.64
Direct End-to-end VAE (FLUX) 8 14.05 30.59 23.28 39.56 44.64 37.95 17.33 31.58
VQGAN 8 27.22 15.97 18.66 27.33 67.68 21.33 - 29.48
Emu3-VQ 8 16.27 11.83 11.99 20.83 69.89 13.52 - 25.43
MedITok 16 14.39 7.88 6.55 10.66 46.54 6.32 - 17.64
PSNR (Higher is Better)
VAE (FLUX) 8 34.58 37.34 37.09 35.33 34.50 34.30 34.58 33.59
Direct End-to-end VAE (FLUX) 8 35.11 34.43 31.28 31.98 29.69 34.82 30.83 35.17
VQGAN 8 35.40 31.13 31.68 25.60 20.42 29.54 - 24.79
Emu3-VQ 8 39.64 36.11 35.81 28.96 22.08 34.32 - 27.57
MedITok 16 37.72 36.32 34.42 29.19 23.54 33.55 - 28.49
SSIM (Higher is Better)
VAE (FLUX) 8 0.892 0.951 0.973 0.934 0.922 0.921 0.892 0.938
Direct End-to-end VAE (FLUX) 8 0.842 0.848 0.904 0.900 0.938 0.934 0.867 0.816
VQGAN 8 0.923 0.885 0.911 0.768 0.484 0.844 - 0.682
Emu3-VQ 8 0.943 0.928 0.955 0.847 0.547 0.957 - 0.751
MedITok 16 0.953 0.937 0.954 0.890 0.660 0.972 - 0.839
Figure 6: Qualitative comparison of VAE reconstruction quality across diverse medical imaging modalities. Visual examples demonstrating reconstruction fidelity across eight medical imaging modalities (CFP, CT, CXR, Endoscopy, HIS, MRI, OCT, Ultrasound) using the pretrained FLUX VAE without domain-specific fine-tuning.

The empirical evaluation demonstrates that the VAE (FLUX) achieves competitive reconstruction performance across eight distinct medical imaging modalities without requiring domain-specific fine-tuning. With a compression factor of \(f_d = 8\), the model consistently delivers low rFID scores, competitive PSNR values, and robust SSIM scores. To evaluate the necessity of domain-specific adaptation, we performed direct end-to-end fine-tuning of the FLUX VAE on medical imaging data (highlighted in red in Table 12). The empirical results demonstrate that domain-specific fine-tuning yields negligible performance improvements for generation tasks across medical modalities, exhibiting inconsistent variations in rFID scores with marginal changes in corresponding metrics. Consequently, these observations validate the deployment of pretrained VAE models without domain-specific fine-tuning for 2D medical imaging generation applications within our experimental framework.

6.1.3 Reconstruction Fidelity for Medically Important Small Lesions↩︎

While Table 12 demonstrates competitive aggregate reconstruction metrics (rFID, PSNR, SSIM) across diverse medical modalities, these metrics may not fully capture the preservation of small but medically critical structures such as polyps in endoscopy, dermatoscopic features in skin lesions, or fractures in radiographs. To address this concern, we conducted targeted qualitative analysis focusing on the reconstruction fidelity of fine anatomical details and pathological findings that are essential for medical interpretation.

Figure 7: Preservation of medically important small lesions in VAE reconstruction. Comparison of original images (top row) and VAE-reconstructed images (bottom row) across three medical imaging scenarios. Left: Endoscopy image showing a polyp (highlighted in red box). Middle: Dermoscopy image displaying skin lesion with globules (highlighted in red box). Right: X-ray image with fractures (highlighted in red box). Original denotes the original image, and Zoom-in denotes the zoomed-in view of the lesion within the red boxes. The magnified views demonstrate that the FLUX VAE preserves fine structural details essential for medical interpretation, despite being a general-purpose encoder not specifically fine-tuned for medical imaging.

We selected representative cases from three imaging modalities where small lesion detection is medically critical: (1) an endoscopy image containing a polyp, (2) a dermoscopy image with skin lesion with globules, and (3) an X-ray image. For each case, we compared the original image with its VAE-reconstructed counterpart, examining both full-field views and magnified regions of interest (ROIs) centered on the lesions.

Figure 7 illustrates that the pretrained FLUX VAE maintains visually discernible fidelity for small pathological features. In the endoscopy image, the polyp’s morphology and surface texture remain well preserved in the reconstruction, with boundary definition comparable to the original. For the dermoscopy image, the characteristic globular patterns, key diagnostic features for distinguishing benign nevi from melanoma—are clearly visible in both the original and reconstructed versions. In the X-ray image, the highlighted region and surrounding anatomical structures maintain structural coherence post-reconstruction. These qualitative observations suggest that the general-purpose VAE also preserves medically relevant fine-grained details that are useful for downstream tasks within our unified framework.

6.2 Dataset Statistics↩︎

6.2.1 Dataset Composition Details↩︎

Table 13: Overview of training stage data distribution, showing data composition, task types, and scale statistics across different stages. Stage 2 utilized the high-quality subset of stage 1 datasets.
Training Stage Total Entries Task Categories
Stage 1: Foundation Training
Understanding Tasks 4.0M Image comprehension, VQA
Generation Tasks 1.6M Text-to-image, controllable generation
2-3 Stage 1 Subtotal 5.6M Foundation capabilities
Stage 2: Instruction Tuning
Understanding Tasks 698K Image CoT, clinical reasoning
Generation Tasks 668K Enhanced T2I, medical translation
CoT Understanding 317K Chain-of-thought reasoning
Text-only Tasks 230K Medical QA, clinical dialogue
2-3 Stage 2 Subtotal 1.9M Knowledge integration
Stage 3: Unified Multimodal Training.
Interleaved Tasks 330K 5 interleaved tasks
2-3 Stage 3 Subtotal 0.33M Unified capabilities
Total Dataset 5.6M All medical tasks

6.2.2 Medical Domain and Modality Distribution↩︎

Table 14: Major datasets detailed information, showing key dataset contributions sorted by data volume. For open-source datasets, the reported numbers indicate the actual subset sizes used in our training pipeline after filtering. Part of this curation effort contributes to the [69].
Dataset Name Total Entries Primary Tasks
PMC-OA [70] 1.0M Image Captioning
Quilt-1m [71] 644K Histopathology Understanding
Healthgpt [11] 638K Clinical Reasoning, Image Caption
PubMedVision [19] 385K Controllable T2I Generation
Gmai-vl [9] 288K Enhanced T2I Generation
Bigbio [72] 262K Clinical Reasoning with CoT
CheXpertPlus [73] 223K Medical Report Understanding
PMC VQA [74] 204K Image Caption
Internvl [75] 188K Disease Classification, Clinical Reasoning
Medicat [76] 132K Controllable T2I Generation
Medical-diff-vqa [77] 129K Image Caption, Entity Recognition
PMC-Inline [78] 121K Multi-image Understanding
IXI T2/T1 SR 4x [45] 161K Super resolution
BraTS23 Modality Tran [79] 52K Cross modal synthesis
SynthRAD Brain (MR to CT/CT to MR) [80] 66K Cross modal synthesis
SynthRAD Pelvis (MR to CT/CT to MR) [80] 42K Cross modal synthesis
ICG-CXR dataset [47] 10K Counterfactual generation
BCI dataset [81] 5K Virtual immunohistochemistry staining
Total (Selected Datasets) 4.55M
Other Datasets 1.05M
Grand Total 5.6M All Tasks
Figure 8: Task taxonomy of UniMedVL . Diverse medical tasks unified under one model, grouped into Understanding, Generation, and Multimodal input and output.

6.3 Data Enhancement Pipeline: CAG Implementation↩︎

This section presents the complete prompt templates used in our Caption Augmented Generation (CAG) pipeline for image generation tasks, as described in Section [sec:method]. The CAG pipeline consists of two main stages: (1) structured medical description generation for quality control, and (2) caption fusion that combines original captions with generated descriptions.

6.3.1 Stage 1: Structured Description Generation↩︎

Purpose: Generate four-level structured medical image descriptions for quality control and similarity computation

You are a universally expert medical image analyst, proficient in all
imaging modalities and anatomical systems.
Your input is a single medical image, with no supplementary information.
Your only task is to provide a comprehensive, objective, and structured
description at four distinct levels, from the highest overview down to
the most specific and exceptional findings.
You must not offer any diagnostic, interpretive, or clinical advice.

---

Output Structure (Four-Level, Top-to-Bottom — definitions for your
internal guidance; do NOT reproduce these headings in your answer)

LEVEL 1: IMAGE TYPE & GLOBAL CONTEXT
• In one sentence, state the presumed imaging modality (if visually
  clear), main body region(s), and overall image category (e.g.,
  cross-sectional, projectional, histological).
• Example: "This is an axial CT image of the abdomen and pelvis,
  showing cross-sectional anatomy at the level of the lower kidneys."

LEVEL 2: MACRO-ANATOMICAL OVERVIEW
• In 2–4 concise lines, summarize the global distribution and layout
  of major anatomical regions, dominant structures, and any clearly
  visible large-scale abnormalities, masses, or disease patterns.
• Describe anatomical orientation, symmetry, major organ relationships,
  and other visually prominent features.

LEVEL 3: ORGAN / SUBREGION DETAILS — must be the most detailed section
• In 6–12 lines (use complete sentences), describe the visual
  appearance of individual organs, vessels, bones, or other relevant
  subregions.
• Provide precise, granular, reproducible details so that all main
  features can be reconstructed.
• Maintain strict objectivity; do not include diagnostic language.

LEVEL 4: SPECIAL OR INCIDENTAL FINDINGS
• List any unusual devices, postsurgical changes, image artifacts,
  rare morphologic features, or observations not already mentioned above.
• If none are visible, explicitly state: "No distinct pathological
  or incidental findings are visible."

Writing Instructions
1. Write the entire description as one continuous paragraph that
   implicitly follows the LEVEL 1 → LEVEL 4 order—do not include
   level headings, bullet points, or numbered lists in the paragraph.
2. Do not use bullet points elsewhere (except within the examples).
3. For more complex images, the portion corresponding to LEVEL 3 should
   naturally be longer; for simpler cases, keep it proportionally concise.
4. Avoid any clinical judgement or speculation—describe only what is
   directly visible.

6.3.2 Stage 2: Caption Fusion Enhancement↩︎

This stage fuses original captions with Stage 1 generated structured descriptions to create enhanced descriptions for image generation tasks.

Purpose: Fuse original captions with structured descriptions for enhanced image generation prompts

You are a universally expert medical image analyst, proficient in all
imaging modalities and anatomical systems.

CRITICAL CONSTRAINT: You must maintain absolute anatomical consistency.
NEVER change, assume, or modify the anatomical location described in the
original caption. Do not make assumptions about different anatomical locations or
transfer descriptions between different body parts.

Your input consists of:
1. A structured, objective, four-level description derived from a locally
   deployed AI model (following a strict hierarchy from global overview
   to specific findings).
2. An original, data-derived textual description containing high-density,
   potentially diagnostic or interpretative information, which may lack
   structured clarity.

Your task is to:
• First, critically review and confirm the completeness of the structured
  description generated by the local model.
• Then, systematically extract and objectively incorporate relevant,
  visually verifiable details from the original data-derived description,
  enhancing information density without including diagnostic, interpretive,
  or clinical judgement.
• Clearly indicate and explicitly include visually evident anatomical
  abnormalities, structural deviations, or incidental observations present
  in the original data but omitted in the structured description.

Output Structure (Four-Level, Top-to-Bottom)
LEVEL 1: IMAGE TYPE & GLOBAL CONTEXT
• In one sentence, state the presumed imaging modality, main body
  region(s), and overall image category.

LEVEL 2: MACRO-ANATOMICAL OVERVIEW
• In 2--4 concise lines, summarize global anatomical distribution,
  dominant structures, anatomical symmetry or deviations, and clearly
  visible large-scale abnormalities.

LEVEL 3: ORGAN / SUBREGION DETAILS -- must be the most detailed section
• In 6--12 complete sentences, describe individual organs, bones,
  vessels, and other relevant anatomical subregions in precise,
  reproducible detail.
• Objectively highlight visually confirmed abnormalities or structural
  deviations derived from the original data description.

LEVEL 4: SPECIAL OR INCIDENTAL FINDINGS
• Explicitly mention unusual devices, postsurgical changes, rare
  morphological features, or visually detectable anomalies present in
  the original description yet absent in the structured description.
• Clearly state the absence of commonly expected baseline anatomical
  or pathological features if definitively not observed in the image.

Writing Instructions
1. Write the final enhanced description as a single, continuous paragraph
   implicitly following LEVEL 1 → LEVEL 4 order--do not include explicit
   level headings, bullet points, or numbered lists.
2. Avoid any clinical judgement, diagnostic language, or speculative
   interpretation--include only details directly verifiable from visual
   inspection.
3. Start your output with "Please generate a realistic [modality] image
   showing" to make it a proper generation instruction.

6.3.3 Stage 3: Thinking-Enhanced Response Generation↩︎

This stage aims to elicit the reasoning process from the medical foundation model (MedGemma-27B-IT) by prompting it to explicitly generate its internal thinking steps. We leverage this specialized medical model to simulate detailed reasoning processes through the structured prompt format. The resulting data, which includes both the explicit thinking traces and the final responses, is then used to train our model.

Purpose: Generate medical image responses with thinking tags for enhanced reasoning and quality control

System: You are a medical image generator. You create [modality] images based
  on clinical descriptions. Your responses should describe what features you
  have generated in the image from the creator's perspective. Use bullet points
  to organize the anatomical structures and clinical features you have included
  in your generated image.
  
  User: Based on this clinical description: "[clinical_description]"
  
  You have been given the corresponding medical image. Please provide a response
  following this format:
  
  Required format:
  <think>Analyzing the clinical description, I need to generate an image that
  captures: 1) The key pathological process described, 2) The anatomical
  structures involved, 3) The specific imaging characteristics for [modality].
  Based on the clinical presentation, I should include [key features reasoning].
  [structured_caption if available]</think>
  
  Here/This is the generated [modality] image that displays:
  • [anatomical structure or clinical finding 1]
  • [anatomical structure or clinical finding 2]
  • [anatomical structure or clinical finding 3]
  
  IMPORTANT:
  1. In the <think> tag, reason through WHAT you need to generate and WHY based
     on medical knowledge
  2. Respond from the GENERATOR perspective - describe what features you have
     CREATED/GENERATED in the image
  3. Use the exact format above with bullet points (•) to list features
  4. Start with 'Here is the generated [modality] image that displays:'
  5. Each bullet point should describe a specific anatomical structure,
     clinical finding, or visual feature that you have included
  6. Do NOT use observational language like 'shows', 'visible', 'can be seen'
     - instead use generative language like 'displays', 'includes',
     'features', 'contains'
  
  Note: The thinking tag should reflect your decision-making process: "I need
  to generate X because Y", "The clinical description indicates I should
  include Z", etc.

The enhanced captions from Stage 2 (if the process "generating" is not generated successfully) and Stage 3 (if the process "thinking" is generated successfully) are sampled and then submitted to the Expert Review system (Section 6.4) for final validation.

6.4 Expert Review Validation System↩︎

This section presents an expert review validation system that evaluates the quality of our UniMedVL-5M dataset construction and two caption generation approaches described in the Data Enhancement Pipeline (Section 6.3):

Simple approach: Caption fusion that combines structured descriptions from Stage 1 with original captions (Stage 2 of CAG pipeline).

Thinking-enhanced approach: Incorporates an additional planning process with <think> tags that integrates reasoning steps before medical image generation (Stage 3 of CAG pipeline). The validation system evaluates both data quality and methodological effectiveness.

6.4.1 Expert Review Framework Overview↩︎

Our expert review validation system is designed around a seven-dimensional medical evaluation framework that assesses medical AI performance.

Our evaluation framework encompasses seven dimensions that assess the synthetic quality of medical image captions. All dimensions are scored on a 0 to 5 scale, except Modality Match which uses a binary 0 to 1 scale. The framework begins with Modality Match, which measures consistency between images and declared medical imaging modalities, followed by Factual Accuracy that evaluates the precision of anatomical structure and pathological finding descriptions. Information Completeness assesses coverage of diagnostically relevant key information, while Position/Quantity Accuracy measures precision in anatomical localization and quantitative assessments. The framework also incorporates Professionalism to evaluate adherence to medical reporting standards, Planning Coherence to assess systematic thinking and logical organization quality, and finally Clinical Reasoning, a Turing-test style judgment, to measure approximation to human expert-level performance.

Expert Validation Protocol: Experts conducted audits of 200 samples across all seven dimensions, with mean quality score \(\bar{Q}\ge 0.85\) consistently achieved across all dimensions.

6.4.2 Evaluation Dimension Analysis↩︎

Figure 9 presents the correlation analysis and comparative results. Figure 9 (a) shows inter-dimensional correlations, while Figure 9 (b) compares the two generation approaches.

a
b

Figure 9: Expert evaluation analysis. (a) Correlation matrix revealing inter-dimensional relationships, with Pearson correlation coefficients ranging from 0.60 to 0.92. (b) Score difference heatmap comparing thinking and simple approaches, where negative values indicate the simple approach scores higher; all dimensions are scored on a 0 to 5 scale except Modality Match, which uses a 0 to 1 scale.. a — Correlation matrix between evaluation dimensions., b — Score difference heatmap comparing thinking and simple approaches.

6.4.3 Dataset Quality Comparison Analysis↩︎

Figure 10 compares the two generation approaches across all evaluation dimensions. The radar chart (Figure 10 (a)) shows closely aligned performance profiles.

a
b

Figure 10: Expert validation overview. (a) Radar chart comparing performance profiles of thinking and simple approaches across all seven evaluation dimensions. (b) Pie chart showing balanced representation across medical imaging modalities, ensuring comprehensive coverage.. a — Performance comparison: Thinking vs Simple approaches across evaluation dimensions., b — Medical imaging modalities distribution

6.4.4 Medical Modality-Specific Analysis↩︎

Figure 11 presents modality-specific performance across eight medical imaging modalities. Figure 11 (a) shows statistical comparisons, and Figure 11 (b) displays detailed performance metrics.

a
b

Figure 11: Comprehensive performance analysis. (a) Bar chart showing mean scores with confidence intervals. (b) Heatmap displaying modality-specific performance scores.. a — Statistical comparison between thinking and simple approaches., b — Modality-specific performance analysis.

Across the evaluation figures above, the simple approach yields marginally higher scores on caption-fidelity dimensions. The simple approach stays close to the original human-validated captions with minimal extrapolation, whereas the thinking-enhanced approach introduces explicit reasoning traces that target downstream planning and counterfactual generation rather than caption fidelity.

6.5 Downstream Task Results↩︎

6.5.1 Medical Report Generation↩︎

Figure 12: Medical report generation examples showing input images and generated reports.

6.5.2 Multi-Round Medical VQAs↩︎

Figure 13: Visual question answering examples across different medical imaging modalities.

6.5.3 Medical Image Generation↩︎

Figure 14: Medical image generation examples with text prompts.
Figure 15: Medical image generation examples with text prompts.

6.5.4 Interleaved Tasks↩︎

Figure 16: Medical Image Prompt Segmentation.
Figure 17: Medical Imaging Super-Resolution.
Figure 18: CXR Counterfactual Generation.
Figure 19: Virtual Immunohistochemistry Staining.
Figure 20: CT-MRI cross-modal synthesis.

6.6 Additional Experimental Results on Downstream Tasks↩︎

6.6.1 Blinded Expert Study on Generation Realism↩︎

We conducted a blinded expert study to assess the realism of generated images. We randomly selected 100 images (50 real, 50 generated) and asked two experts to distinguish real from generated samples. The true positive rate for generated images was 64%, the true negative rate for real images was 80%, and the balanced accuracy was 72%, providing evidence that UniMedVL generates visually realistic medical images beyond what automatic metrics capture.

6.6.2 Fine-Tuning Performance on Medical VQA↩︎

While the main paper emphasizes unified zero-shot capability, UniMedVL can also adapt effectively to downstream medical VQA settings through task-specific fine-tuning.

Table 15: Fine-tuning results on medical VQA benchmarks. Accuracy is reported using the VLMEvalKit protocol, with accuracy for both open-set and closed-set questions.
Model VQA-RAD SLAKE PathVQA
Lingshu-7B [50] 62.7 77.0 59.6
GMAI-VL [9] 66.3 72.9 39.8
HuatuoGPT-Vision-7B [19] 53.0 49.1 32.0
UniMedVL (zero-shot) 61.9 75.4 53.5
UniMedVL-finetune 66.96 91.61 62.61

Fine-tuning improves performance by +5.06 on VQA-RAD, +16.21 on SLAKE, and +9.11 on PathVQA over zero-shot UniMedVL.

Aligned protocol comparison. To enable direct comparison with prior work using recall for open-set and accuracy for closed-set questions, we additionally evaluated under this protocol:

3pt

Table 16: Fine-tuning comparison under aligned evaluation protocol, with recall for open-set and accuracy for closed-set questions.
Model VQA-RAD (avg) SLAKE (avg) PathVQA (avg) Overall
LLaVA-Med [18] 72.64 83.43 64.06 73.37
ExGra-Med [82] 74.91 85.46 63.87 74.75
UniMedVL (zero-shot) 57.63 75.26 50.06 60.98
UniMedVL-finetune 64.78 92.58 62.59 73.32

Under the aligned protocol, UniMedVL-finetune achieves an overall score of 73.32, comparable to LLaVA-Med at 73.37 and ExGra-Med at 74.75. UniMedVL-finetune shows particular strength on SLAKE with a score of 92.58, outperforming both baselines by a notable margin, while remaining competitive on VQA-RAD and PathVQA. The original gap was largely attributable to protocol differences.

6.6.3 Segmentation Task Comparison↩︎

We compare UniMedVL on the segmentation task with existing text-guided segmentation models, including SAM3 [83] in the general domain and Medical SAM3 in the medical field.

4pt

Table 17: Comparison with segmentation models on 8 segmentation tasks. Dice scores are reported.
Model KiTS QaTa BUSI CVC Glas ISIC Kvasir REFUGE Overall
SAM3 [83] 39.28 0 0 0 0 44.39 0 60.04 17.96
Medical SAM3 [84] 25.61 38.96 49.04 83.76 22.28 65.59 79.16 44.71 51.14
UniMedVL (Ours) 13.54 24.35 14.87 35.84 52.86 48.62 35.55 55.86 33.51

Compared to Medical SAM3, UniMedVL still exhibits a performance gap overall, 33.51 vs., while it outperforms general-domain SAM3 at 17.96. This is expected, as Medical SAM3 is a specialized segmentation model, whereas UniMedVL is a unified model that simultaneously supports understanding, generation, and segmentation without task-specific checkpoints.

6.6.4 CXR Lung Opacity Image Translation↩︎

image
image

6.6.5 Medical Report Generation↩︎

3pt

Table 18: Report Generation Performance on MIMIC-CXR Dataset. NLG metrics (BLEU, METEOR, ROUGE-L) and clinical efficacy metrics (CE) are reported.
Model Medical meteor bleu4 rouge1 rougeL RaTE
Medical LVLMs < 10B
MedGemma-1.5-4B-IT \(✔\) 0.2001 0.0325 0.3062 0.2949 0.5486
Hulu-Med-7B \(✔\) 0.2241 0.0470 0.2905 0.2800 0.5382
Lingshu-7B [50] \(✔\) 0.1995 0.0218 0.3039 0.2923 0.5037
MedGemma-4B-IT \(✔\) 0.2021 0.0175 0.2705 0.2556 0.5229
HuatuoGPT-V-7B [19] \(✔\) 0.1926 0.0072 0.2312 0.2184 0.4769
QoQ-Med-VL-7B \(✔\) 0.1771 0.0049 0.1724 0.1630 0.4820
MedVLM-R1-2B \(✔\) 0.1489 0.0016 0.2111 0.1980 0.4161
BioMediX2-8B \(✔\) 0.1251 0.0005 0.2077 0.1959 0.4432
GMAI-VL [9] \(✔\) 0.0838 0.0153 0.1450 0.1415 0.5088
LLaVA-Med-7B [18] \(✔\) 0.0827 0.0001 0.1670 0.1559 0.4206
Medical LVLMs > 10B
Hulu-Med-32B \(✔\) 0.2418 0.0486 0.3218 0.3106 0.5405
Hulu-Med-14B \(✔\) 0.2304 0.0509 0.2864 0.2726 0.5295
Lingshu-32B [50] \(✔\) 0.1839 0.0183 0.2894 0.2778 0.5012
MedDr-40B \(✔\) 0.1741 0.0184 0.2757 0.2617 0.4845
MedGemma-27B-IT \(✔\) 0.2052 0.0147 0.2413 0.2294 0.5015
HuatuoGPT-V-34B [19] \(✔\) 0.1933 0.0078 0.2314 0.2194 0.4770
QoQ-Med-VL-32B \(✔\) 0.1396 0.0011 0.1446 0.1369 0.4111
Medical Comp. & Gen. LVLMs
UniMedVL (Ours) \(✔\) 0.2193 0.0235 0.2843 0.2727 0.5138
HealthGPT-M3 \(✔\) 0.2080 0.0081 0.2264 0.2137 0.4588
HealthGPT-L14 \(✔\) 0.1800 0.0051 0.2261 0.2140 0.4647
General Comp. & Gen. LVLMs
Show-o2 \(\times\) 0.1767 0.0066 0.2254 0.2109 0.4418
Bagel \(\times\) 0.1863 0.0056 0.2119 0.2000 0.4525
Janus-pro-7b \(\times\) 0.1521 0.0025 0.2180 0.2069 0.4483
Figure 21: Per-category RaTE score on MIMIC-CXR report generation. [M-Unified]: Medical Unified models; [M-VLM]: specialized Medical VLMs. Higher is better.
Figure 22: Heatmap breakdown of MIMIC-CXR report-generation performance across multiple metrics. [M-Unified]: Medical Unified models; [M-VLM]: specialized Medical VLMs. Cell shading encodes the metric value; higher is better unless noted otherwise.

6.7 Efficiency Analysis↩︎

We measure inference efficiency with single expert activation for a controlled comparison. Comparison with BLIP3-o, Janus, and HealthGPT is provided in Table  [tab:throughput95gen].

Image generation (Table [tab:throughput95gen](a)). UniMedVL (14B) requires 40.03 TFLOPs per image and 28.39 GB peak memory, whereas BLIP3-o 8B requires 142.59 TFLOPs per image and 25.55 GB. This corresponds to approximately 3.6x lower compute per image for UniMedVL, while peak memory rises only about 11%, from 25.55 to 28.39 GB, even though UniMedVL uses a dual-encoder and a transformer backbone with distinct FFN layers for understanding and generation tasks and shared self-attention layers, and has almost twice the parameters. UniMedVL’s compute cost is also close to that of Janus 7.42B (35.56 TFLOPs per image) while providing a larger unified model.

VQA on GMAI-MMBench (Table [tab:throughput95vqa](b)). UniMedVL achieves 25.86 tokens/s with 2.256 TFLOPs per sample and 28.25 GB peak memory, compared with BLIP3-o’s 30.40 tokens/s, 9.307 TFLOPs per sample, and 18.21 GB. Thus, UniMedVL attains an approximately 4.1x reduction in FLOPs per sample with comparable throughput (about 85% of BLIP3-o’s tokens/s), at the cost of higher peak memory due to the dual-encoder design. Compared to another 14B unified model, HealthGPT-L14 (12.57 tokens/s, 3.009 TFLOPs, 29.22 GB), UniMedVL is roughly twice as fast in throughput and more compute-efficient.

(a) Image Generation Throughput

Warm up with 10 images and measure efficiency over 20 images
Model Parameters FLOPs/Image (TFLOPs) Peak Mem (GB)
Janus 1B 10.01 5.19
HealthGPT-M3 3.8B 15.22 10.23
Janus 7.42B 35.56 17.10
BLIP3-o 8B 142.59 25.55
UniMedVL 14B 40.03 28.39

(b) VQA Understanding Throughput (GMAI-MMBench validation set)

Table 19: Efficiency Evaluation. Comparison of throughput and computational costs across unified medical multimodal models with batch size 1.
Warm up with 50 questions and measure efficiency over 150 VQA questions
Model Parameters Tokens/s FLOPs/Sample (TFLOPs) Peak Mem (GB)
Janus 1B 70.11 0.498 4.46
HealthGPT-M3 3.8B 22.13 1.304 8.79
Janus 7.42B 52.94 1.894 14.59
BLIP3-o 8B 30.40 9.307 18.21
UniMedVL 14B 25.86 2.256 28.25
HealthGPT-L14 14B 12.57 3.009 29.22

6.8 Failure Cases and Analysis↩︎

We present representative failure cases of UniMedVL organized by task type: medical image generation, medical image editing, and medical image understanding, with illustrative examples shown in Figures 23 and 24.

6.8.1 Medical Image Generation↩︎

6.8.1.1 Global appearance and background artefacts.

Although UniMedVL generally produces realistic images across modalities, a characteristic failure mode in text-to-image generation concerns embedded text and annotations (Figure 23). In some synthesised samples, the model hallucinates spurious on-image text or renders partially legible words, labels, or font styles that do not appear in the corresponding real medical images or do not match typical acquisition overlays. These artefacts do not alter the main anatomical content but introduce visually unnatural patterns. As shown in Figure 23, the generated chest X-ray exhibits spurious text overlays (red boxes highlight the artefacts), the ultrasound image contains hallucinated text labels that deviate from standard medical annotations, and the CT scan shows partially corrupted metadata text at the bottom that does not match typical DICOM overlay formatting.

6.8.2 Medical Image Editing↩︎

Figure 23: Text and annotation artefacts in medical image generation. Representative examples in the medical image generation task showing hallucinated or corrupted text elements across different imaging modalities. Left: Chest X-ray with spurious text overlay in the upper region (red box). Center: Ultrasound image displaying hallucinated text labels that do not conform to standard medical annotation conventions (red box). Right: CT scan showing partially corrupted metadata text at the bottom edge that deviates from typical DICOM overlay formatting (red box).

6.8.2.1 Structure preservation in generation and editing.

For interleaved editing-style tasks (e.g., virtual staining, super-resolution, cross-modal synthesis, counterfactual generation), UniMedVL does not always perfectly preserve all spatial structures outside the region being semantically edited (Figure 24). For instance, in some counterfactual CXR generations, small devices or lines (e.g., catheters) can become slightly blurred or shifted, even when the main pathological change is correctly applied. Figure 24 illustrates these challenges across three representative cases: in the brain MRI cross-modal synthesis tasks (top two rows), the generated images show subtle structural discrepancies in the cerebellar and temporal regions compared to ground truth, and in the chest X-ray counterfactual generation (bottom row), while the model successfully modifies the target pathological region, minor shifts and blurring are occasionally in the cardiac silhouette boundaries.

Figure 24: Structural preservation challenges in interleaved generation and editing tasks. Comparative analysis in the medical image editing task across different medical image translation scenarios. Each row presents a triplet of Input, Ground Truth, and Generated Image. Top row: Brain MRI cross-modal synthesis, where the generated image exhibits subtle structural distortions in the cerebellar region compared to the ground truth. Middle row: Reverse brain MRI synthesis shows minor misalignment in the temporal lobe structures. Bottom row: Chest X-ray counterfactual generation task demonstrating reduction of pleural effusion; while the target pathological modification is applied, the generated image shows slight blurring and positional shifts in the cardiac silhouette and mediastinal borders.

6.8.3 Medical Image Understanding↩︎

Table 20: UniMedVL performance on GMAI-MMBench validation set. Accuracy across 18 medical VQA sub-categories.
Task Category Accuracy
Overall 0.607
Attribute Recognition 0.659
Blood Vessels Recognition 0.593
Bone 0.623
Cell Recognition 0.513
Counting 0.457
Disease Diagnosis 0.669
Image Quality Grading 0.440
Microorganism Recognition 0.793
Muscle 0.580
Nervous Tissue 0.925
Organ Recognition – Abdomen 0.657
Organ Recognition – Head and Neck 0.845
Organ Recognition – Pelvic 0.560
Organ Recognition – Thorax 0.747
Severity Grading 0.372
Surgeon Action Recognition 0.287
Surgical Instrument Recognition 0.310
Surgical Workflow Recognition 0.471

6.8.3.1 Medical demanding quantitative and fine-grained recognition scenarios.

In medical demanding tasks that require precise quantitative reasoning or fine-grained visual recognition, the unified model shows clear limitations across multiple task categories. Table 21 presents UniMedVL’s performance on GMAI-MMBench validation set, revealing particularly low accuracy on surgical video recognition tasks: Surgeon Action Recognition, Surgical Instrument Recognition, and Surgical Workflow Recognition.

Figure 25: Counting failure in lymphocyte quantification. Green indicates the correct answer, and red indicates our model’s prediction.
Figure 26: Surgeon Action Recognition failure. Green indicates the correct answer, and red indicates our model’s prediction.
Figure 27: Surgical Instrument Recognition failure. Green indicates the correct answer, and red indicates our model’s prediction.
Figure 28: Surgical Workflow Recognition failure. Green indicates the correct answer, and red indicates our model’s prediction.
Figure 29: Image Quality Grading failure. Green indicates the correct answer, and red indicates our model’s prediction.
Figure 30: Severity Grading failure. Green indicates the correct answer, and red indicates our model’s prediction.

6.9 Information-Theoretic Advantages of Unified Understanding and Generation↩︎

6.9.0.1 Setup.

Let \((X,T)\sim p_{\mathrm{data}}\) denote paired training data, where \(X\) is an image and \(T=(T_{\mathrm{in}},T_{\mathrm{out}})\) is the text sequence split into an input prompt \(T_{\mathrm{in}}\) and a target continuation \(T_{\mathrm{out}}\). We form two deterministic latent views of \(X\): \(z_{\mathrm{VIT}}=E_{\mathrm{VIT}}(X)\) (for understanding) and \(z_{\mathrm{VAE}}=E_{\mathrm{VAE}}(X)\) (for generation). The unified condition is \(C:=(T_{\mathrm{in}}, z_{\mathrm{VIT}})\) with embedding \(c:=g(C)\). All entropies and mutual informations below are computed under the joint distribution induced by \(p_{\mathrm{data}}\) and these encoders.

6.9.0.2 Training objective (context).

We optimize understanding tasks via next-token prediction (NTP) and generation tasks via rectified flow matching: \[\label{eq:supp95obj} \begin{align} \mathcal{L}(\theta) &=\mathcal{L}_{\mathrm{NTP}}+\mathcal{L}_{\mathrm{flow}},\\ \mathcal{L}_{\mathrm{NTP}} &=-\sum_i \log p_\theta\!\left(t_{i+1}\mid t_{\le i}, z_{\mathrm{VIT}}\right),\\ \mathcal{L}_{\mathrm{flow}} &=\mathbb{E}_{t,\varepsilon}\!\left[\left\|v_\theta(\tilde{z}_{\mathrm{VAE}},t,c)-v\right\|_2^2\right], \end{align}\tag{6}\] where \(\tilde{z}_{\mathrm{VAE}}\) and \(v\) follow the standard rectified-flow construction.

6.9.0.3 Information-theoretic guarantees.

The following statements are distributional and hold independent of the particular optimizer.

Lemma 1 (Bayes risk under log-loss). For any random variables \((Y,X)\), the Bayes-optimal conditional log-loss equals the conditional entropy: \(\inf_q \mathbb{E}[-\log q(Y\mid X)] = H(Y\mid X)\).

Proof. For any conditional predictor \(q(\cdot\mid X)\), \[\mathbb{E}\!\left[-\log q(Y\mid X)\right] = H(Y\mid X) + \mathbb{E}\!\left[D_{\mathrm{KL}}\!\left(p(\cdot\mid X)\,\|\,q(\cdot\mid X)\right)\right] \ge H(Y\mid X).\] Equality holds if and only if \(q(\cdot\mid X)=p(\cdot\mid X)\) almost surely. ◻

Proposition 1 (Benefit of joint modeling). Let \(C=(T_{\mathrm{in}}, z_{\mathrm{VIT}})\) denote the multimodal context. Let \(\mathcal{R}_{\mathrm{indep}}\) and \(\mathcal{R}_{\mathrm{joint}}\) denote the Bayes-optimal risks for independent and joint models, respectively. Then: \[\label{eq:supp95gain95final} \Delta \mathcal{R} = \mathcal{R}_{\mathrm{indep}} - \mathcal{R}_{\mathrm{joint}} = I(T_{\mathrm{out}}; z_{\mathrm{VAE}} \mid C) \ge 0.\qquad{(1)}\]

Proof. By Lemma 1, the independent risk decomposes as: \[\label{eq:supp95derivation} \mathcal{R}_{\mathrm{indep}} - \mathcal{R}_{\mathrm{joint}} = \Big[ H(T_{\mathrm{out}} \mid C) + H(z_{\mathrm{VAE}} \mid C) \Big] - H(T_{\mathrm{out}}, z_{\mathrm{VAE}} \mid C).\tag{7}\] Applying the chain rule for conditional entropy: \[\label{eq:supp95chain95rule} H(T_{\mathrm{out}}, z_{\mathrm{VAE}} \mid C) = H(T_{\mathrm{out}} \mid C) + H(z_{\mathrm{VAE}} \mid T_{\mathrm{out}}, C).\tag{8}\] Substituting equation 8 into equation 7 : \[\begin{align} \Delta \mathcal{R} &= H(z_{\mathrm{VAE}} \mid C) - H(z_{\mathrm{VAE}} \mid T_{\mathrm{out}}, C) \\ &= I(T_{\mathrm{out}}; z_{\mathrm{VAE}} \mid C) \ge 0. \end{align}\] ◻

Proposition 1 quantifies the information-theoretic gain of unified modeling. While factorized modeling implicitly assumes \(p(T, z \mid C) = p(T \mid C)\,p(z \mid C)\), the joint objective captures the cross-modal mutual information \(I(T_{\mathrm{out}}; z_{\mathrm{VAE}} \mid C)\). Unified joint modeling is therefore never worse than separate task-specific models, and yields strict improvements whenever the tasks share mutual information—i.e., whenever understanding informs generation or vice versa.

References↩︎

[1]
S.-C. Huang, A. Pareek, S. Seyyedi, I. Banerjee, and M. P. Lungren, “Fusion of medical imaging and electronic health records using deep learning: A systematic review and implementation guidelines,” NPJ digital medicine, vol. 3, no. 1, p. 136, 2020.
[2]
X. Xing, J. Ning, Y. Nan, and G. Yang, “Deep generative models unveil patterns in medical images through vision-language conditioning,” arXiv preprint arXiv:2410.13823, 2024.
[3]
F. Khader et al., “Multimodal deep learning for integrating chest radiographs and clinical parameters: A case for transformers,” Radiology, vol. 309, no. 1, p. e230806, 2023.
[4]
Y. Fang et al., “Cyclic vision-language manipulator: Towards reliable and fine-grained image interpretation for automated report generation,” in Proceedings of the thirty-fourth international joint conference on artificial intelligence, 2025, pp. 357–366.
[5]
D. Nguyen, C. Chen, H. He, and C. Tan, “Pragmatic radiology report generation,” in Machine learning for health (ML4H), 2023, pp. 385–402.
[6]
T. Tanida, P. Müller, G. Kaissis, and D. Rueckert, “Interactive and explainable region-guided radiology report generation,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2023, pp. 7433–7442.
[7]
Y. Gao et al., “Anatomy-guided radiology report generation with pathology-aware regional prompts,” IEEE Open Journal of Engineering in Medicine and Biology, 2026.
[8]
H. Xu et al., “Medground-r1: Advancing medical image grounding via spatial-semantic rewarded group relative policy optimization,” in International conference on medical image computing and computer-assisted intervention, 2025, pp. 391–401.
[9]
T. Li et al., “Gmai-vl & gmai-vl-5.5 m: A large vision-language model and a comprehensive multimodal dataset towards general medical ai,” in Proceedings of the AAAI conference on artificial intelligence, 2026, vol. 40, pp. 23177–23185.
[10]
J. Ning et al., “Retinalogos: Fine-grained synthesis of high-resolution retinal images through captions,” in International conference on medical image computing and computer-assisted intervention, 2025, pp. 470–480.
[11]
T. Lin et al., “Healthgpt: A medical large vision-language model for unifying comprehension and generation via heterogeneous knowledge adaptation,” arXiv preprint arXiv:2502.09838, 2025.
[12]
S. Zhang, J. Wu, J. Ning, and G. Yang, “Dmrn: A dynamical multi-order response network for the robust lung airway segmentation,” in 2025 IEEE/CVF winter conference on applications of computer vision (WACV), 2025, pp. 4036–4045.
[13]
Y. Su et al., “Gmai-vl-r1: Harnessing reinforcement learning for multimodal medical reasoning,” arXiv preprint arXiv:2504.01886, 2025.
[14]
E. Warner et al., “Multimodal machine learning in image-based and clinical biomedicine: Survey and prospects,” International journal of computer vision, vol. 132, no. 9, pp. 3753–3769, 2024.
[15]
S.-C. Huang et al., “INSPECT: A multimodal dataset for patient outcome prediction of pulmonary embolisms,” Advances in Neural Information Processing Systems, vol. 36, pp. 17742–17772, 2023.
[16]
J. Huang et al., “Label decoupling and reconstruction: A two-stage training framework for long-tailed multi-label medical image recognition,” in Proceedings of the 32nd ACM international conference on multimedia, 2024, pp. 2861–2869.
[17]
O. C. Thawakar et al., “Xraygpt: Chest radiographs summarization using large medical vision-language models,” in Proceedings of the 23rd workshop on biomedical natural language processing, 2024, pp. 440–448.
[18]
C. Li et al., “Llava-med: Training a large language-and-vision assistant for biomedicine in one day,” Advances in Neural Information Processing Systems, vol. 36, pp. 28541–28564, 2023.
[19]
J. Chen et al., “Towards injecting medical visual knowledge into multimodal llms at scale,” in Proceedings of the 2024 conference on empirical methods in natural language processing, 2024, pp. 7346–7370.
[20]
K. Singhal et al., “Toward expert-level medical question answering with large language models,” Nature medicine, vol. 31, no. 3, pp. 943–950, 2025.
[21]
X. Ren et al., “Medical reasoning with large language models: A survey and MR-bench.” 2026, [Online]. Available: https://arxiv.org/abs/2604.08559.
[22]
C. Team, “Chameleon: Mixed-modal early-fusion foundation models,” arXiv preprint arXiv:2405.09818, 2024.
[23]
X. Wang et al., “Multimodal learning with next-token prediction for large multimodal models,” Nature, pp. 1–7, 2026.
[24]
J. Lu et al., “Unified-io 2: Scaling autoregressive multimodal models with vision language audio and action,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2024, pp. 26439–26455.
[25]
C. Wu et al., “Janus: Decoupling visual encoding for unified multimodal understanding and generation,” in Proceedings of the computer vision and pattern recognition conference, 2025, pp. 12966–12977.
[26]
Y. Ma et al., “Janusflow: Harmonizing autoregression and rectified flow for unified multimodal understanding and generation,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2025, pp. 7739–7751.
[27]
C. Zhou et al., “Transfusion: Predict the next token and diffuse images with one multi-modal model,” in International conference on learning representations, 2025, vol. 2025, pp. 6446–6469.
[28]
J. Xie et al., “Show-o: One single transformer to unify multimodal understanding and generation,” in International conference on learning representations, 2025, vol. 2025, pp. 28240–28264.
[29]
S. Wu et al., “Openuni: A simple baseline for unified multimodal understanding and generation,” arXiv preprint arXiv:2505.23661, 2025.
[30]
C. Deng et al., “Emerging properties in unified multimodal pretraining,” arXiv preprint arXiv:2505.14683, 2025.
[31]
S. Wu, H. Fei, L. Qu, W. Ji, and T.-S. Chua, “Next-gpt: Any-to-any multimodal llm,” in Forty-first international conference on machine learning, 2024.
[32]
C. Ma et al., “Unitok: A unified tokenizer for visual generation and understanding,” Advances in Neural Information Processing Systems, vol. 38, pp. 129274–129297, 2026.
[33]
Y. Wu et al., “Vila-u: A unified foundation model integrating visual understanding and generation,” in International conference on learning representations, 2025, vol. 2025, pp. 93620–93638.
[34]
J. Chen et al., “Blip3-o: A family of fully open unified multimodal models-architecture, training and dataset,” arXiv preprint arXiv:2505.09568, 2025.
[35]
C. Liao et al., “Mogao: An omni foundation model for interleaved multi-modal generation,” arXiv preprint arXiv:2505.05472, 2025.
[36]
H. Zhang et al., “Nexus-gen: Unified image understanding, generation, and editing via prefilled autoregression in shared embedding space,” arXiv preprint arXiv:2504.21356, 2025.
[37]
A. Sellergren et al., “Medgemma technical report,” arXiv preprint arXiv:2507.05201, 2025.
[38]
L. Wang et al., “Text embeddings by weakly-supervised contrastive pre-training,” arXiv preprint arXiv:2212.03533, 2022.
[39]
J. J. Lau, S. Gayen, A. Ben Abacha, and D. Demner-Fushman, “A dataset of clinically generated visual questions and answers about radiology images,” Scientific data, vol. 5, no. 1, p. 180251, 2018.
[40]
B. Liu, L.-M. Zhan, L. Xu, L. Ma, Y. Yang, and X.-M. Wu, “Slake: A semantically-labeled knowledge-enhanced dataset for medical visual question answering,” in 2021 IEEE 18th international symposium on biomedical imaging (ISBI), 2021, pp. 1650–1654.
[41]
X. He, Y. Zhang, L. Mou, E. Xing, and P. Xie, “Pathvqa: 30000+ questions for medical visual question answering,” arXiv preprint arXiv:2003.10286, 2020.
[42]
Y. Hu et al., “Omnimedvqa: A new large-scale comprehensive evaluation benchmark for medical lvlm,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2024, pp. 22170–22183.
[43]
P. Chen et al., “Gmai-mmbench: A comprehensive multimodal evaluation benchmark towards general medical ai,” Advances in Neural Information Processing Systems, vol. 37, pp. 94327–94427, 2024.
[44]
S. Liu, C. Zhu, F. Xu, X. Jia, Z. Shi, and M. Jin, “Bci: Breast cancer immunohistochemical image generation through pyramid pix2pix,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2022, pp. 1815–1824.
[45]
J. Chen, E. C. Frey, Y. He, W. P. Segars, Y. Li, and Y. Du, “Transmorph: Transformer for unsupervised medical image registration,” Medical image analysis, vol. 82, p. 102615, 2022.
[46]
M. Adewole et al., “The brain tumor segmentation (brats) challenge 2023: Glioma segmentation in sub-saharan africa patient population (brats-africa),” ArXiv, pp. arXiv–2305, 2023.
[47]
C. Ma et al., “Towards interpretable counterfactual generation via multimodal autoregression,” in International conference on medical image computing and computer-assisted intervention, 2025, pp. 611–620.
[48]
M. Moor et al., “Med-flamingo: A multimodal medical few-shot learner,” in Machine learning for health (ML4H), 2023, pp. 353–367.
[49]
C. Wu, X. Zhang, Y. Zhang, H. Hui, Y. Wang, and W. Xie, “Towards generalist foundation model for radiology by leveraging web-scale 2d&3d medical data,” Nature Communications, vol. 16, no. 1, p. 7866, 2025.
[50]
W. Xu et al., “Lingshu: A generalist foundation model for unified multimodal medical understanding and reasoning,” arXiv preprint arXiv:2506.07044, 2025.
[51]
H. Liu, C. Li, Y. Li, and Y. J. Lee, “Improved baselines with visual instruction tuning,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2024, pp. 26296–26306.
[52]
O. Team, “Internvl2: Better than the best—expanding performance boundaries of open-source multimodal models with the progressive scaling strategy.” Accessed, 2024.
[53]
Y. Xu et al., “MedSyn: Text-guided anatomy-aware synthesis of high-fidelity 3-d CT images,” IEEE Transactions on Medical Imaging, vol. 43, no. 10, pp. 3648–3660, 2024.
[54]
Y. Ji et al., “A generative foundation model for chest radiography,” NEJM AI, vol. 3, no. 5, p. AIoa2500799, 2026.
[55]
S. Yellapragada, A. Graikos, P. Prasanna, T. Kurc, J. Saltz, and D. Samaras, “Pathldm: Text conditioned latent diffusion model for histopathology,” in Proceedings of the IEEE/CVF winter conference on applications of computer vision, 2024, pp. 5182–5191.
[56]
J.-Y. Zhu, T. Park, P. Isola, and A. A. Efros, “Unpaired image-to-image translation using cycle-consistent adversarial networks,” in Proceedings of the IEEE international conference on computer vision, 2017, pp. 2223–2232.
[57]
P. Isola, J.-Y. Zhu, T. Zhou, and A. A. Efros, “Image-to-image translation with conditional adversarial networks,” in Proceedings of the IEEE conference on computer vision and pattern recognition, 2017, pp. 1125–1134.
[58]
T.-C. Wang, M.-Y. Liu, J.-Y. Zhu, A. Tao, J. Kautz, and B. Catanzaro, “High-resolution image synthesis and semantic manipulation with conditional gans,” in Proceedings of the IEEE conference on computer vision and pattern recognition, 2018, pp. 8798–8807.
[59]
C. Dong, C. C. Loy, K. He, and X. Tang, “Image super-resolution using deep convolutional networks,” IEEE transactions on pattern analysis and machine intelligence, vol. 38, no. 2, pp. 295–307, 2015.
[60]
J. Kim, J. K. Lee, and K. M. Lee, “Accurate image super-resolution using very deep convolutional networks,” in Proceedings of the IEEE conference on computer vision and pattern recognition, 2016, pp. 1646–1654.
[61]
J. Liang, J. Cao, G. Sun, K. Zhang, L. Van Gool, and R. Timofte, “Swinir: Image restoration using swin transformer,” in Proceedings of the IEEE/CVF international conference on computer vision, 2021, pp. 1833–1844.
[62]
S. W. Zamir, A. Arora, S. Khan, M. Hayat, F. S. Khan, and M.-H. Yang, “Restormer: Efficient transformer for high-resolution image restoration,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2022, pp. 5728–5739.
[63]
Z. Yang et al., “All-in-one medical image restoration via task-adaptive routing,” in International conference on medical image computing and computer-assisted intervention, 2024, pp. 67–77.
[64]
O. Dalmaz, M. Yurt, and T. Çukur, “ResViT: Residual vision transformers for multimodal medical image synthesis,” IEEE Transactions on Medical Imaging, vol. 41, no. 10, pp. 2598–2614, 2022.
[65]
J. Chen et al., “Transunet: Transformers make strong encoders for medical image segmentation,” arXiv preprint arXiv:2102.04306, 2021.
[66]
C. Ma et al., “MedITok: A unified tokenizer for medical image synthesis and interpretation,” arXiv preprint arXiv:2505.19225, 2025.
[67]
J. Liu et al., “Multi-modal MRI translation via evidential regression and distribution calibration,” in International conference on medical image computing and computer-assisted intervention, 2025, pp. 363–373.
[68]
Black Forest Labs, GitHub repository“Flux.” 2024, [Online]. Available: https://github.com/black-forest-labs/flux.
[69]
Z. Deng et al., “Project imaging-x: A survey of 1000+ open-access medical imaging datasets for foundation model development,” arXiv preprint arXiv:2603.27460, 2026.
[70]
W. Lin et al., “Pmc-clip: Contrastive language-image pre-training using biomedical documents,” in International conference on medical image computing and computer-assisted intervention, 2023, pp. 525–536.
[71]
W. Ikezogwo et al., “Quilt-1m: One million image-text pairs for histopathology,” Advances in neural information processing systems, vol. 36, pp. 37995–38017, 2023.
[72]
J. Fries et al., “Bigbio: A framework for data-centric biomedical natural language processing,” Advances in Neural Information Processing Systems, vol. 35, pp. 25792–25806, 2022.
[73]
P. Chambon et al., “Chexpert plus: Augmenting a large chest x-ray dataset with text radiology reports, patient demographics and additional image formats,” arXiv preprint arXiv:2405.19538, 2024.
[74]
X. Zhang et al., “Development of a large-scale medical visual question-answering dataset,” Communications Medicine, vol. 4, no. 1, p. 277, 2024.
[75]
Z. Chen et al., “Internvl: Scaling up vision foundation models and aligning for generic visual-linguistic tasks,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2024, pp. 24185–24198.
[76]
S. Subramanian et al., “Medicat: A dataset of medical images, captions, and textual references,” in Findings of the association for computational linguistics: EMNLP 2020, 2020, pp. 2112–2120.
[77]
X. Hu et al., “Medicaldiff-vqa: A large-scale medical dataset for difference visual question answering on chest x-ray images,” PhysioNet, vol. 12, p. 13, 2023.
[78]
C. Wu, X. Zhang, Y. Zhang, H. Hui, Y. Wang, and W. Xie, “Towards generalist foundation model for radiology by leveraging web-scale 2d&3d medical data,” Nature Communications, vol. 16, no. 1, p. 7866, 2025.
[79]
I. M. Baltruschat, P. Janbakhshi, and M. Lenga, “Brasyn 2023 challenge: Missing mri synthesis and the effect of different learning objectives,” in International challenge on cross-modality domain adaptation for medical image segmentation, Springer, 2023, pp. 58–68.
[80]
A. Thummerer et al., “SynthRAD2025 grand challenge dataset: Generating synthetic CTs for radiotherapy from head to abdomen,” Medical physics, vol. 52, no. 7, p. e17981, 2025.
[81]
S. Liu, C. Zhu, F. Xu, X. Jia, Z. Shi, and M. Jin, “Bci: Breast cancer immunohistochemical image generation through pyramid pix2pix,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2022, pp. 1815–1824.
[82]
D. MH Nguyen et al., “Exgra-med: Extended context graph alignment for medical vision-language models,” Advances in Neural Information Processing Systems, vol. 38, pp. 109568–109611, 2026.
[83]
N. Carion et al., “Sam 3: Segment anything with concepts,” arXiv preprint arXiv:2511.16719, 2025.
[84]
C. Jiang et al., “Medical SAM3: A foundation model for universal prompt-driven medical image segmentation,” arXiv preprint arXiv:2601.10880, 2026.