Exploring Compositional Generalization of Multimodal LLMs for Medical Imaging

Zhenyang Cai, Junying Chen, Rongsheng Wang, Weihong Wang, Yonglin Deng, Dingjie Song, Yize Chen, Zixu Zhang, Benyou Wang

Introduction

Multimodal Large Language Models (MLLMs) have demonstrated an impressive ability to generalize across diverse medical imaging tasks. However, the mechanisms driving this performance have largely remained a "black box." While multi-task training is known to outperform single-task approaches, the specific internal relationships enabling this cross-task benefit were previously undefined.

This research identifies Compositional Generalization (CG) as the primary engine behind MLLM success in medical domains. CG is the ability of a model to recombine known "primitives"—individual elements of knowledge—to understand and solve novel, unseen scenarios.

The concept of Compositional Generalization: learning "White Cat" and "Black Dog" to understand "Black Cat," applied to medical imaging.

The MAT-Triplet Framework

To formalize the study of CG, the authors propose the MAT-Triplet framework. This framework posits that any medical image can be defined by three core components:

  1. Modality (M): The imaging technique used (e.g., CT, MRI, X-ray).
  2. Anatomy (A): The body part or region being imaged (e.g., Lung, Brain, Spine).
  3. Task (T): The clinical objective (e.g., Cancer detection, Fracture classification).

By categorizing data this way, researchers can test whether a model trained on an "MRI of the Brain" and a "CT of the Lung" can generalize to a "CT of the Brain"—a combination it has never encountered as a single unit.

The Med-MAT Benchmark

The study introduces Med-MAT, a massive, structured benchmark designed to evaluate CG. Med-MAT consolidates 106 medical datasets into a unified format.

  • Scale and Diversity: The benchmark covers 11 modalities, 14 anatomical regions, and 13 distinct tasks.
  • Standardization: To ensure consistent evaluation across different MLLMs, all image-label pairs are converted into a standardized Visual Question Answering (VQA) format using human-written templates.
  • Experimental Design: The 106 datasets are organized into 53 subsets based on unique MAT-Triplets. This allows for a "leave-one-out" training strategy where models are tested on specific triplets that were intentionally excluded from their training sets.
The process of integrating 106 datasets into the structured Med-MAT benchmark through QA pair construction.

Key Insights

The researchers evaluated several state-of-the-art backbones, including LLaVA-v1.5, Qwen2-VL, and Llama-3.2-Vision. Their findings provide strong evidence for the role of CG:

  • Primitives over Memorization: MLLMs do not merely memorize tasks; they learn the underlying primitives (e.g., the visual characteristics of a CT scan or the structure of a lung) and recombine them to solve new problems.
  • Data Efficiency: Leveraging CG allows models to achieve high performance with significantly less data. In one instance, multi-task training improved accuracy on a specific subset from 24% to 96% compared to single-task training.
  • Cross-Task Synergy: Training on spatial tasks (like detection) enhances performance on classification tasks, suggesting that different types of medical knowledge are complementary within the model's internal representation.
  • Impact of Disruption: When the overlap of MAT elements between training and test sets was intentionally removed, performance plummeted. This confirms that the "multi-task bonus" is directly tied to the model's ability to compose learned elements.

Conclusion and Future Directions

While the MAT-Triplet framework is a powerful tool for understanding MLLM generalization, it is not exhaustive. Factors such as patient demographics and highly specific disease sub-types still pose challenges. Future work will focus on more granular categorizations to further refine our understanding of how these models can be safely and effectively deployed in complex clinical environments.

Summary updated

BibTeX
@inproceedings{cai2025exploring,
  author = {Zhenyang Cai and Junying Chen and Rongsheng Wang and Weihong Wang and Yonglin Deng and Dingjie Song and Yize Chen and Zixu Zhang and Benyou Wang},
  title = {{Exploring Compositional Generalization of Multimodal LLMs for Medical Imaging}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure