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

Xun Zhu, Ying Hu, Fanbin Mo, Miao Li, Ji Wu · DOI

Introduction

The development of a "Swiss Army Knife" for medical artificial intelligence—a single model capable of handling diverse tasks like image classification, visual question answering, and report generation—remains a significant challenge. While Multi-modal Large Language Models (MLLMs) have shown promise, they frequently encounter the "tug-of-war" problem in specialized domains. This phenomenon occurs when a model trained on multiple conflicting tasks suffers from performance degradation because shared parameters struggle to find an optimal middle ground. For instance, the features required to identify a minute lesion differ significantly from those needed to draft a comprehensive radiology report.

The Connector-MoE Architecture

Uni-Med addresses this interference by focusing on the connector, the module responsible for translating visual features into language embeddings. The authors argue that the connector is a neglected bottleneck where much of the task interference originates.

Comparison of architectural approaches to multi-task learning, highlighting the proposed Connector-MoE (CMoE) in (c) and (e) versus standard and LLM-based MoE methods.

The Uni-Med architecture consists of three primary stages:

  1. Universal Visual Feature Extraction: Utilizing a frozen ViT-G/14 (EVA-CLIP) and a resampler module to compress visual tokens, enhancing computational efficiency.
  2. Connector-MoE (CMoE): The core innovation. Instead of a static linear layer, the connector employs a set of "projection experts." A soft router determines the weighting of these experts by analyzing both image tokens and vision-level special task tokens.
  3. Large Language Model: A LLaMA2-Chat (7B) backbone, fine-tuned via Low-Rank Adaptation (LoRA).

Mitigating the Tug-of-War

By implementing MoE at the connector level rather than within the LLM's transformer layers, Uni-Med allows for task-specific feature projection without bloating the primary reasoning engine.

Detailed comparison between MoE integrated into the LLM Transformer layer (d) and the proposed Connector-MoE (e).

The authors validated this approach using gradient optimization analysis and parameter statistics, demonstrating that CMoE leads to more consistent optimization across diverse tasks. This mathematical framework confirms that the model achieves a more harmonious global optimum compared to standard architectures.

Experimental Results

Uni-Med was evaluated across 12 datasets covering six task categories, including Question Answering (MedQA), Report Generation (MIMIC-CXR), and Image Classification (DermaMNIST).

Key findings include:

  • Performance Gains: The CMoE architecture provided an average performance boost of up to 8% across all tasks compared to standard MLP connectors.
  • State-of-the-Art Performance: Uni-Med achieved results competitive with or superior to specialized medical MLLMs such as Med-Flamingo, RadFM, and LLaVA-Med.
  • Joint Training Resilience: Unlike many models that see performance drops when moving from task-specific to multi-task training, Uni-Med maintained high performance, proving its effectiveness in mitigating inter-task interference.

Conclusion and Future Directions

Uni-Med demonstrates that the "bridge" between vision and language is a critical site for resolving multi-modal task conflicts. While the current model processes 3D images as 2D slices—a limitation for spatial context—its efficient training (under 10 hours on a single A800 GPU) and robust generalist capabilities mark a significant step toward unified medical AI. Future work will explore scaling the dataset and extending the architecture to handle complex 3D medical scenarios more natively.

Summary updated

BibTeX
@inproceedings{zhu2024uni,
  author = {Xun Zhu and Ying Hu and Fanbin Mo and Miao Li and Ji Wu},
  title = {{Uni-Med: A Unified Medical Generalist Foundation Model For Multi-Task Learning Via Connector-MoE}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=oyl2Fnzune},
}
Figure