CrossMed: A Multimodal Cross-Task Benchmark for Compositional Generalization in Medical Imaging
Preprint
Abstract
Recent advances in multimodal large language models have enabled unified processing of visual and textual inputs, offering promising applications in general-purpose medical AI. However, their ability to generalize compositionally across unseen combinations of imaging modality, anatomy, and task type remains underexplored. We introduce CrossMed, a benchmark designed to evaluate compositional generalization (CG) in medical multimodal LLMs using a structured Modality-Anatomy-Task (MAT) schema. CrossMed reformulates four public datasets, CheXpert (X-ray classification), SIIM-ACR (X-ray segmentation), BraTS 2020 (MRI classification and segmentation), and MosMedData (CT classification) into a unified visual question answering (VQA) format, resulting in 20,200 multiple-choice QA instances. We evaluate two open-source multimodal LLMs, LLaVA-Vicuna-7B and Qwen2-VL-7B, on both Related and Unrelated MAT splits, as well as a zero-overlap setting where test triplets share no Modality, Anatomy, or Task with the training data. Models trained on Related splits achieve 83.2 percent classification accuracy and 0.75 segmentation cIoU, while performance drops significantly under Unrelated and zero-overlap conditions, demonstrating the benchmark difficulty. We also show cross-task transfer, where segmentation performance improves by 7 percent cIoU even when trained using classification-only data. Traditional models (ResNet-50 and U-Net) show modest gains, confirming the broad utility of the MAT framework, while multimodal LLMs uniquely excel at compositional generalization. CrossMed provides a rigorous testbed for evaluating zero-shot, cross-task, and modality-agnostic generalization in medical vision-language models.Keywords
All Related Versions
This publication has 11 references indexed in Scilit:
- Domain Generalization in Computational Pathology: Survey and GuidelinesACM Computing Surveys, 2025
- Pneumonia Disease Detection Using Chest X-Rays and Machine LearningAlgorithms, 2025
- Exploring Compositional Generalization of Multimodal LLMs for Medical Imaging2025
- Focus on What Matters: Enhancing Medical Vision-Language Models with Automatic Attention Alignment Tuning2025
- Guiding Medical Vision-Language Models with Diverse Visual Prompts: Framework Design and Comprehensive Exploration of Prompt Variations2025
- Overcoming data scarcity in biomedical imaging with a foundational multi-task modelNature Computational Science, 2024
- Automated pneumothorax segmentation and quantification algorithm based on deep learningIntelligent Systems with Applications, 2024
- Flamingo: A Visual Language Model for Few-Shot Learning2022
- The Multimodal Brain Tumor Image Segmentation Benchmark (BRATS)IEEE Transactions on Medical Imaging, 2015
- Pattern recognition as a concept for multiple-choice questions in a national licensing examBMC Medical Education, 2014