Uni-Med: A Unified Medical Generalist Foundation Model For Multi-Task Learning Via Connector-MoE

Multi-modal large language models (MLLMs) have shown impressive capabilities as a general-purpose interface for various visual and linguistic tasks. However, building a unified MLLM for multi-task learning in the medical field remains a thorny challenge. To mitigate the tug-of-war problem of multi-modal multi-task optimization in MLLMs, recent advances primarily focus on improving the LLM components, while neglecting the connector that bridges the gap between modalities. In this paper, we introduce Uni-Med, a novel medical generalist foundation model which consists of a universal visual feature extraction module, a connector mixture-of-experts (CMoE) module, and an LLM. Benefiting from the proposed CMoE that leverages a well-designed router with a mixture of projection experts at the connector, Uni-Med achieves efficient solution to the tug-of-war problem and can perform six different medical tasks including question answering, visual question answering, report generation, referring expression comprehension, referring expression generation and image classification. To the best of our knowledge, Uni-Med is the first effort to tackle multi-task interference at the connector in MLLMs. Extensive ablation experiments validate the effectiveness of introducing CMoE under any configuration, with up to an average 8% performance gains. We further provide interpretation analysis of the tug-of-war problem from the perspective of gradient optimization and parameter statistics. Compared to previous state-of-the-art medical MLLMs, Uni-Med achieves competitive or superior evaluation metrics on diverse tasks. Code and resources are available at https://github.com/tsinghua-msiip/Uni-Med.

Paper

References (65)

Scroll for more · 38 remaining

Similar papers

Peer review

Reviewer wK4x6/10 · confidence 5/52024-07-04

Summary

The paper introduces Uni-Med, a medical generalist foundation model designed for multi-task learning across six different medical tasks. The proposed CMoE module leverages a mixture of projection experts to align visual and language embedding spaces effectively. The model demonstrates significant performance improvements across diverse medical tasks, validated through extensive experiments and ablation studies.

Strengths

- The introduction of the CMoE module to address the tug-of-war problem at the connector level is novel and well-executed. - The paper provides thorough ablation studies to validate the effectiveness of the proposed CMoE module under various configurations. - Uni-Med achieves impressive performance with minimal training computational overhead, highlighting its efficiency in handling large-scale multi-modal medical data.

Weaknesses

- The ablation studies show that certain configurations (e.g., using a high number of projection experts) might lead to overfitting. This aspect could be discussed in more detail, including strategies to mitigate overfitting. - While the interpretation analysis only focus on visual features on different tasks, the analysis of visual features on different medical image modalities should be considered. - It could be better to add more work on evaluation of medical vision-language models in the section of related work to make sure that the relevant work is fully discussed, such as [1,2]. [1] Yan Q, He X, Yue X, et al. Worse than Random? An Embarrassingly Simple Probing Evaluation of Large Multimodal Models in Medical VQA[J]. arXiv preprint arXiv:2405.20421, 2024. [2] Xia P, Chen Z, Tian J, et al. CARES: A Comprehensive Benchmark of Trustworthiness in Medical Vision Language Models[J]. arXiv preprint arXiv:2406.06007, 2024.

Questions

- More detailed ablation studies. - The complete interpretation analysis. - More complete reference work.

Rating

6

Confidence

5

Soundness

3

Presentation

4

Contribution

3

Limitations

N/A

Reviewer b87p7/10 · confidence 4/52024-07-07

Summary

The paper presents Uni-Med, a medical generalist foundation model designed to perform multiple medical tasks efficiently through multi-task learning. This model introduces a Connector-Mixture-of-Experts (CMoE) module to mitigate the tug-of-war problem in multi-modal, multi-task optimization, which is a common issue in current models. Uni-Med achieves competitive or superior performance across six medical tasks without requiring task-specific fine-tuning.

Strengths

1. Multi-modal multi-task optimization is a complex and important question for large multimodal models, the introduction of the Connector-Mixture-of-Experts (CMoE) module, employs a mixture of projection experts to align visual and language embedding spaces, shows superior performance on multiple tasks. 2. The paper conducts a comprehensive interpretation analysis of the problem from the perspective of gradient optimization and parameter statistics. 3. Extensive experiments demonstrate Uni-Med's effectiveness across multiple tasks and datasets.

Weaknesses

1. The model currently supports only 2D images, whereas most commonly used medical imaging modalities, such as CT and MRI, are in 3D. 2. For the report generation task, the evaluation should include metrics like RadGraph Score and RadCliQ, as BLEU and ROUGE cannot fully assess the semantic accuracy.

Questions

Is the number of projection experts correlated with the number of tasks or the number of image modalities? Figure 5 shows that visual features of the same task are more tightly distributed. How would t-SNE behave for different modalities? Why are visual features related to tasks? For a single image, it can be used for both classification and report genertaion.

Rating

7

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

Yes.

Reviewer b87p2024-08-10

Thank you for the response. The authors have adequately addressed my primary concerns, and I have no further questions. I will maintain my previous rating.

Reviewer Snz83/10 · confidence 5/52024-07-11

Summary

The authors propose to build a medical generalist multi-modal foundation model using a novel "connector mixture of experts" module to solve the problem of "multi-task" learning. Their connector-MOE technique introduces a projection and routing module from the visual encoder into the LLM that is explicitly conditioned on the underlying task. The model is tested on a set of medical tasks, and benchmarked against several other multimodal medical models demonstrating improved performance.

Strengths

The explicit task conditioned projection is novel, and integrates an older concept of MoEs into a SOTA MLLM framework. The authors do an excellent job sourcing and assembling a large, multi-task, multi-modal set of medical benchmarks and performing an extensive set of ablations. The paper is benchmarked broadly across multiple tasks - fitting the definition of a foundation model.

Weaknesses

I disagree with the claim that there is limited research on connecting modalities in multi-modal models. This is an area of immense interest and extensive research broadly within the field of machine learning. I don't think that it is a unique medical issue, and the benchmarking of a novel architecture would be better served using more common datasets to the ML community. This is particularly important because, as the authors note, the medical datasets and models involved were hard for them to control for data leakage. Why not compare the routing technique against non-medical models on non-medical datasets where this issue won't be the case? The results are hard to follow in two very large Tables Table 2 and 3, particularly Table 3 which is the comparison to existing standards. The explanation of these comparisons is quite brief, and not well described in the text despite being the primary comparison for the paper. The paper cites data leakage as being an issue, but isn't dataset shift an issue too? If I understand correctly, Uni-Med is being tested on held-out samples from datasets it was trained on, while the other LLMs are being tested on a mixture of data that in some cases was even in their training datasets? A fairer comparison would be to utilize the same datasets across model architectures.

Questions

In the discussion of MOEs and the paper motivation I think that it could be clarified substantially. Line 97-105 clearly disambiguates the usage of the term MoE, and it might be helpful to do this sooner in the introduction to help clarify this work for readers. Generalist foundation model seems to be redundant? Isn't a "Foundation model" by definition "generalist"? A simple linear projection and purely autoregressive design with visual instruction fine-tuning like LLaVA learns to implicitly condition the projected visual tokens on task and is the appropriate benchmark for this explicit routing framework. I feel like the paper would, in general, benefit from framing it as an investigation into novel connectors with which to build any foundation model - medical or otherwise. Framing it as a novel medical foundation model focuses on the wrong thing, and makes me wonder why it isn't tested on a broader range of medical tasks and datasets, scaled up and down, and so forth.

Rating

3

Confidence

5

Soundness

2

Presentation

3

Contribution

2

Limitations

No limitations are mentioned, and I think that this is a missed opportunity. There are clearly limitations with regards to the comparisons to other models, datasets involved with these comparisons, and overall size of the involved models utilized in Uni-Med.

Reviewer mvVf8/10 · confidence 3/52024-07-13

Summary

This paper introduces Uni-Med, which applies mixture of experts at the connector level for efficient training toward a unified medical multi-modal foundation model. The contributions of this work include 1.) curation of indexes to quantify tug-of-war problem in multi-modal multi-task modal; 2.) a novel perspective of applying Connector MoE for multi-modal multi-task model, which enables efficient training; 3.) comprehensive ablative studies to evaluate various configurations for different modules; 4) commitment to providing open-source code and weights of the proposed method.

Strengths

1. It is a technically-solid work. The mitigation of the tug-of-war problem is justified from multiple perspectives, including developed indexes, parameter statistics scores, routing weights, and tSNE feature visualization. 2. The proposed framework is evaluated thoroughly in ablation studies. 3. Consistent improvements over existing open-source medical foundation models are observed. 4. The presentation is clear and easy to follow.

Weaknesses

1. While the reviewer appreciates the acknowledgment of several limitations of this work, it would be better to mention them in the main text, especially limitation no. 5 in lines 662-663. If the space is not sufficient, at least they should be briefly mentioned in the main text, and a reference to detailed limitations should be provided. 2. Confusion about the training/fine-tuning details: for models presented in Table 3, are they individually fine-tuned for each dataset based on the split introduced in the appendix? How is the fine-tuning implemented? Is it end-to-end or LoRA fine-tuning? For the Uni-Med, the reviewer understands that it is trained on all datasets appearing in Table 3, but there is no individual fine-tuning. Is this understanding correct?

Questions

1. Line 143 is missing an introduction about the soft router.

Rating

8

Confidence

3

Soundness

3

Presentation

4

Contribution

3

Limitations

Most of the limitations are discussed in the Appendix, while some of them are not addressable.

Reviewer wK4x2024-08-09

Official Comment by Reviewer wK4x

Thank you for the rebuttal, which addressed some of my concerns. I have increased my score and am looking forward to reading your revision in future venue.

Reviewer mvVf2024-08-12

Response to the rebuttal

I thank the author for their time and effort preparing for the rebuttal. After reading the rebuttal, I have a follow-up question about the comparison with open-source MLLM and Table 3 (correspond to Q2 and A2 above). Other models, such as LLaVA-Med and Med-Flamingo, are never trained on some of the other datasets. For instance, the authors used the LLaVA-Med checkpoints that are not trained on MIMIC-CXR and also did not fine-tune it on the MIMIC-CXR dataset. Rather, that checkpoint was directly applied to the test set of MIMIC-CXR, and the results were reported in Table 3. Is this understanding correct?

Authorsrebuttal2024-08-12

Thanks again for your patience and meticulousness! For the follow-up question mentioned above: - Your understanding in the comment is correct. Taking the evaluation of LLaVA-Med as an example, for Slake-VQA and Path-VQA, we use the checkpoints of the third stage (dataset-specific fine-tuning) for each dataset separately; For other datasets, we use the checkpoints of the second stage (medical instruction tuning). Some open-source medical MLLMs have never been trained on some of the datasets. In these cases, we have annotated "zero-shot" (i.e. gray background) in Table 3. - If you are concerned about the performance of other models using the same data and training strategy as Uni-Med, the experiments of the connector using linear layer or MLP in Table 2, to some extent, represent the results of XrayGPT and LLaVA-Med framework, respectively. - Furthermore, we would like to clarify the purpose of Table 3: (1) Uni-Med has covered more medical tasks than existing open-source medical MLLMs; (2) Uni-Med has achieved competitive or superior evaluation metrics on various medical tasks compared to other "task-specific" MLLMs (e.g. LLaVA-Med for VQA, XrayGPT for report generation). We hope these explanations are helpful for you to address your concerns.

Reviewer mvVf2024-08-12

Response

Thank you for your prompt reply. I have to admit that I overlooked this detail in my initial review, and I thought each comparing MLLM was not trained on all 12 datasets collected in this study but was fine-tuned on each task/dataset separately. If the other MLLMs are not fine-tuned for specific tasks and datasets (e.g., LLaVA-Med is not fine-tuned for report generation on MIMIC-CXR), the comparison in Table 3 is too unfair. What is the **challenge hindering you from at least partially fine-tuning via LoRA**? Even if the performance gap after fine-tuning is smaller, it could still justify the major contribution that Uni-Med covers more tasks and does not need any fine-tuning compared to some open-source medical MLLM.

Authorsrebuttal2024-08-13

Thanks for your suggestion! We think that there is a **misunderstanding/confusion** between the concepts of comparing model architecture capabilities and comparing existing models' capabilities. - **Comparing model architectures' capabilities.** A completely fair comparison across different model architectures is to use the same dataset split for training and testing. Table 2 represents the results of this comparison strategy. In particular, the experiments of the connector using linear layer or MLP, to some extent, represent the architectures' capabilities of XrayGPT and LLaVA-Med, respectively. - **Comparing existing models' capabilities**. Any method of fine-tuning will inevitably lead to **changes in the initial capability** of the model. Therefore, in Table 3, we directly compare the capabilities of our Uni-Med with existing open-source medical MLLMs through using available checkpoints. Under this comparison strategy, if a model has been trained on a certain dataset, it is **fair and comparable** to Uni Med on this dataset. The results indicate that Uni-Med has advantages over these models, which further demonstrate the effectiveness of our method. The **zero-shot results are listed for reference only, not for the purpose of comparing model capabilities**. Your comments and suggestions have sparked our deep thinking. Considering your concerns, we are very willing to **use LLaVA-Med as an example for fine-tuning on specific datasets**. We will do our best to provide you with corresponding results **before the discussion deadline**.

Authorsrebuttal2024-08-14

Thanks for your patience! Considering your concerns and suggestions, we have supplemented the relevant experiments with LLaVA-Med. Specifically, we use the checkpoints of the **second stage** (medical instruction tuning) to perform two strategies of LLM full parameter fine-tuning: (1) **dataset-specific fine-tuning**; (2) **joint training fine-tuning**. The data split and the prompt format are completely consistent with Uni-Med and LLaVA-Med, respectively. Both strategies last for **3 epochs** (the same as Uni-Med). The results are as follows: |Task|Dataset|Metric|LLaVA-Med|LLaVA-Med|Uni-Med| |------------------------------------|--------------|----------|----------------|------------------|----------------| ||||Joint Training|Dataset-specific|Joint Training| |Visual|Slake-VQA|BLEU-1|33.69|72.00|**82.12**| |Question||F1|35.83|73.07|**83.07**| |Answering|Path-VQA|BLEU-1|37.79|56.86|**58.07**| |||F1|38.55|57.51|**58.74**| |Report|MIMIC-CXR|BLEU-1|20.43|21.03|**27.79**| |Generation||BLEU-4|4.86|4.96|**6.46**| |||ROUGE-1|26.11|28.28|**28.81**| |||ROUGE-2|7.66|9.01|**9.62**| |||ROUGE-L|19.00|20.61|**22.58**| |||METEOR|8.73|8.89|**10.59**| ||MPx-Single|BLEU-1|15.11|14.63|**15.80**| |||BLEU-4|2.40|1.75|**2.47**| |||ROUGE-1|13.22|13.03|**14.32**| |||ROUGE-2|2.39|2.19|**2.68**| |||ROUGE-L|10.99|10.85|**12.29**| |||METEOR|5.83|5.79|**5.92**| |Image|DermaMNIST|Accuracy|25.84|**79.95**|76.96| |Classification|OrganSMNIST|Accuracy|66.80|77.84|**78.07**| |Referring|Slake-REC|IoU|4.07|22.41|**37.71**| |Expression||R\@0.5|1.99|18.41|**39.30**| |Comprehension|SA-Med2D-REC|IoU|8.64|17.67|**21.60**| |||R\@0.5|4.75|9.98|**14.42**| |Referring|Slake-REG|BLEU-1|27.21|50.79|**75.78**| |Expression||F1|30.97|53.15|**77.35**| |Generation||Accuracy|20.40|44.78|**68.16**| ||SA-Med2D-REG|BLEU-1|45.83|55.15|**61.47**| |||F1|47.11|55.98|**62.17**| |||Accuracy|40.80|50.92|**57.69**| We can observe that: - There is a **serious tug-of-war problem** when using the original LLaVA-Med architecture for joint fine-tuning on multiple tasks and datasets. The strategy of dataset-specific fine-tuning has significantly improved the evaluation mrtrics s of each dataset. - **It is worth noting that Uni-Med has achieved competitive and leading results through joint training**, without dataset-specific fine-tuning. It can be concluded that our method has achieved a **superior solution** to the tug-of-war problem, which **reduces interference and promotes more efficient knowledge sharing**.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC