VIVID-Med: LLM-Supervised Structured Pretraining for Deployable Medical ViTs

Xiyao Wang, Xiaoyu Tan, Yang Dai, Yuxuan Fu, Shuo Li, Xihe QiuarXiv 2026

TL;DR

VIVID-Med introduces a highly efficient framework that uses a frozen Large Language Model (LLM) as a structured semantic teacher to pretrain medical Vision Transformers (ViTs). By distilling clinical findings into verifiable JSON structures and discarding the heavy LLM post-training, it delivers a lightweight, deployable visual backbone that outperforms massive vision-language models while using up to 500× less data.

What Problem Does This Paper Address?

Medical vision-language pretraining has advanced significantly, but standard approaches suffer from a major dilemma. They typically supervise visual models using either rigid one-hot labels or free-form text.

One-hot labels treat clinical conditions (like pleural effusion and pulmonary edema) as completely independent, ignoring their deep clinical and pathophysiological relationships. Free-form text captures these relationships better but introduces massive linguistic noise and variability. Furthermore, state-of-the-art vision-language models require keeping resource-heavy LLMs active during inference, making them impractical and expensive to deploy in real-world clinical settings.

VIVID-Med bridges this gap by leveraging the continuous, structured semantic space of a frozen LLM during training, without paying the computational tax during deployment.

Methods

VIVID-Med decouples semantic supervision from the final deployment architecture using two key components:

  1. Unified Medical Schema (UMS) Supervision: Instead of raw text, clinical findings are converted into structured JSON field-state pairs (e.g., present, absent, uncertain, null). To keep the network from learning from unassessable data, UMS uses answerability-aware masking to filter out noisy gradients from null findings. It also employs Field Query Training to oversample rare, long-tail conditions.
  2. Structured Prediction Decomposition (SPD): To map visual features into the LLM's embedding space, an SPD projector splits cross-attention into multiple query groups. An orthogonality regularizer forces these groups to focus on distinct, complementary anatomical regions rather than overlapping.
Fig. 1. VIVID-Med overview. The frozen LLM provides structured token supervision during training only. Gradients update the parameters of the ViT and SPD projector, while the deployed model retains only the lightweight ViT backbone.

During training, the ViT and SPD projector are optimized via next-token prediction using teacher forcing from a frozen LLM (Qwen2.5-1.5B-Instruct). At inference time, the LLM and SPD projector are completely discarded, leaving only a standalone, lightweight ViT backbone (~86M parameters) ready for clinical deployment.

Fig. 2. Structured Prediction Decomposition (SPD). Multiple query groups perform cross-attention over shared ViT tokens. Orthogonality regularization encourages com- plementary branches before shared projection to the LLM embedding space.

Datasets

The authors evaluated VIVID-Med across three distinct paradigms:

  • CheXpert: 30k chest X-rays (CXRs) used for pretraining and in-domain 12-label linear probing evaluation.
  • NIH ChestX-ray14: 25,596 samples used to evaluate zero-shot cross-domain transfer robustness across 8 shared labels.
  • LIDC-IDRI: A CT scan dataset used for zero-shot cross-modality benign/malignant lung nodule classification.
  • OrganAMNIST: A CT dataset featuring 11-way organ classification to test cross-modality generalization.

Key Insights and Ideas

  • LLMs as Transient Teachers: You don't need to keep a massive language model active at runtime to benefit from its intelligence. Aligning a visual encoder to a frozen LLM's structured output space during pretraining is enough to bake rich clinical relationships directly into the visual weights.
  • Structure Beats Free-Text: Forcing the model to predict verifiable JSON formats rather than free-form text drastically reduces optimization noise, leading to extreme data efficiency.
  • Orthogonal Attention Discovers Anatomy: By penalizing overlap between attention groups, the model naturally forces different query heads to specialize in distinct anatomical structures (e.g., separating the heart, lungs, and clavicles), as shown below:
Fig. 3. SPD cross-attention maps for a frontal (top) and lateral (bottom) CXR. Each group attends to distinct anatomical regions.

Key Results

  • In-Domain Superiority: On CheXpert linear probing, VIVID-Med achieved an exceptional macro-AUC of 0.8588, outperforming BiomedCLIP by +6.65 points despite being pretrained on 500× less data (30k images vs. BiomedCLIP's 15 million image-text pairs).
  • Cross-Domain Robustness: When evaluated zero-shot on the highly imbalanced NIH ChestX-ray14 dataset, VIVID-Med reached a macro-AUC of 0.7225 (+5.00 over BiomedCLIP).
  • Cross-Modality Generalization: Despite being trained exclusively on 2D chest X-rays, the model generalized remarkably well to 3D CT slices, scoring 0.8413 AUC on LIDC-IDRI and a near-perfect 0.9969 macro-AUC on OrganAMNIST (with a +5.90 F1-score boost over BiomedCLIP).

Limitations and Future Work

The authors noted a high variance (std > 0.02) when evaluating on the LIDC-IDRI dataset, which they attribute to the small scale of the dataset (875 cases) and the inherent instability of small-scale clinical evaluations.

While not explicitly detailed as future work, the success of the Unified Medical Schema suggests that expanding this structured JSON approach to multi-modal pretraining datasets (combining X-rays, CTs, and MRIs simultaneously) could yield an even more powerful, universal medical visual backbone.

Summary updated

Abstract

Vision-language pretraining has driven significant progress in medical image analysis. However, current methods typically supervise visual encoders using one-hot labels or free-form text, neither of which effectively captures the complex semantic relationships among clinical findings. In this study, we introduce VIVID-Med, a novel framework that leverages a frozen large language model (LLM) as a structured semantic teacher to pretrain medical vision transformers (ViTs). VIVID-Med translates clinical findings into verifiable JSON field-state pairs via a Unified Medical Schema (UMS), utilizing answerability-aware masking to focus optimization. It then employs Structured Prediction Decomposition (SPD) to partition cross-attention into orthogonality-regularized query groups, extracting complementary visual aspects. Crucially, the LLM is discarded post-training, yielding a lightweight, deployable ViT-only backbone. We evaluated VIVID-Med across multiple settings: on CheXpert linear probing, it achieves a macro-AUC of 0.8588, outperforming BiomedCLIP by +6.65 points while using 500x less data. It also demonstrates robust zero-shot cross-domain transfer to NIH ChestX-ray14 (0.7225 macro-AUC) and strong cross-modality generalization to CT, achieving 0.8413 AUC on LIDC-IDRI lung nodule classification and 0.9969 macro-AUC on OrganAMNIST 11-organ classification. VIVID-Med offers a highly efficient, scalable alternative to deploying resource-heavy vision-language models in clinical settings.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
CheXpertVIVID-Medmacro-AUC0.8588linear-probe
Source quote
L128: Table~\ref{tab:main_combined} summarizes performance on CheXpert and NIH. In-domain, VIVID-Med achieves an exceptional 0.8588 macro-AUC on CheXpert, outperforming BiomedCLIP by {+}6.65 points despite using 500× less pretraining data. Conversely, self-supervised baselines (MAE, DINOv3) show competitive F1s but substantially lower AUCs, highlighting their inability to capture clinical ranking structures without explicit semantic guidance.
NIH ChestX-ray14VIVID-Medmacro-AUC0.72250-shot
Source quote
L4: Vision-language pretraining has driven significant progress in medical image analysis. However, current methods typically supervise visual encoders using one-hot labels or free-form text, neither of which effectively captures the complex semantic relationships among clinical findings. In this study, we introduce VIVID-Med, a novel framework that leverages a frozen large language model (LLM) as a structured semantic teacher to pretrain medical vision transformers (ViTs). VIVID-Med translates clinical findings into verifiable JSON field-state pairs via a Unified Medical Schema (UMS), utilizing answerability-aware masking to focus optimization. It then employs Structured Prediction Decomposition (SPD) to partition cross-attention into orthogonality-regularized query groups, extracting complementary visual aspects. Crucially, the LLM is discarded post-training, yielding a lightweight, deployable ViT-only backbone. We evaluated VIVID-Med across multiple settings: on CheXpert linear probing, it achieves a macro-AUC of 0.8588, outperforming BiomedCLIP by {+}6.65 points while using 500× less data. It also demonstrates robust zero-shot cross-domain transfer to NIH ChestX-ray14 (0.7225 macro-AUC) and strong cross-modality generalization to CT, achieving 0.8413 AUC on LIDC-IDRI lung nodule classification and 0.9969 macro-AUC on OrganAMNIST 11-organ classification. VIVID-Med offers a highly efficient, scalable alternative to deploying resource-heavy vision-language models in clinical settings.
LIDC-IDRIVIVID-MedAUC0.8413modality=CT slices · pretraining-modality=chest X-ray
Source quote
L4: Vision-language pretraining has driven significant progress in medical image analysis. However, current methods typically supervise visual encoders using one-hot labels or free-form text, neither of which effectively captures the complex semantic relationships among clinical findings. In this study, we introduce VIVID-Med, a novel framework that leverages a frozen large language model (LLM) as a structured semantic teacher to pretrain medical vision transformers (ViTs). VIVID-Med translates clinical findings into verifiable JSON field-state pairs via a Unified Medical Schema (UMS), utilizing answerability-aware masking to focus optimization. It then employs Structured Prediction Decomposition (SPD) to partition cross-attention into orthogonality-regularized query groups, extracting complementary visual aspects. Crucially, the LLM is discarded post-training, yielding a lightweight, deployable ViT-only backbone. We evaluated VIVID-Med across multiple settings: on CheXpert linear probing, it achieves a macro-AUC of 0.8588, outperforming BiomedCLIP by {+}6.65 points while using 500× less data. It also demonstrates robust zero-shot cross-domain transfer to NIH ChestX-ray14 (0.7225 macro-AUC) and strong cross-modality generalization to CT, achieving 0.8413 AUC on LIDC-IDRI lung nodule classification and 0.9969 macro-AUC on OrganAMNIST 11-organ classification. VIVID-Med offers a highly efficient, scalable alternative to deploying resource-heavy vision-language models in clinical settings.
OrganAMNISTVIVID-Medmacro-AUC0.9969modality=CT · pretraining-modality=chest X-ray
Source quote
L4: Vision-language pretraining has driven significant progress in medical image analysis. However, current methods typically supervise visual encoders using one-hot labels or free-form text, neither of which effectively captures the complex semantic relationships among clinical findings. In this study, we introduce VIVID-Med, a novel framework that leverages a frozen large language model (LLM) as a structured semantic teacher to pretrain medical vision transformers (ViTs). VIVID-Med translates clinical findings into verifiable JSON field-state pairs via a Unified Medical Schema (UMS), utilizing answerability-aware masking to focus optimization. It then employs Structured Prediction Decomposition (SPD) to partition cross-attention into orthogonality-regularized query groups, extracting complementary visual aspects. Crucially, the LLM is discarded post-training, yielding a lightweight, deployable ViT-only backbone. We evaluated VIVID-Med across multiple settings: on CheXpert linear probing, it achieves a macro-AUC of 0.8588, outperforming BiomedCLIP by {+}6.65 points while using 500× less data. It also demonstrates robust zero-shot cross-domain transfer to NIH ChestX-ray14 (0.7225 macro-AUC) and strong cross-modality generalization to CT, achieving 0.8413 AUC on LIDC-IDRI lung nodule classification and 0.9969 macro-AUC on OrganAMNIST 11-organ classification. VIVID-Med offers a highly efficient, scalable alternative to deploying resource-heavy vision-language models in clinical settings.
BibTeX
@misc{wang2026vivid,
  author = {Xiyao Wang and Xiaoyu Tan and Yang Dai and Yuxuan Fu and Shuo Li and Xihe Qiu},
  title = {{VIVID-Med: LLM-Supervised Structured Pretraining for Deployable Medical ViTs}},
  year = {2026},
  eprint = {2603.09109},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.09109},
}
Figure