FedMLLM: Federated Fine-tuning MLLM on Multimodal Heterogeneity Data

Binqian Xu, Xiangbo Shu, Haiyang Mei, Guo-Sen Xie, Basura Fernando, Jinhui Tang · DOI · OpenReview

TL;DR

This paper introduces FedMLLM, a novel benchmark and framework for federated fine-tuning of Multimodal Large Language Models (MLLMs) in the face of significant data heterogeneity across clients. By developing new multimodal scenarios and modality-agnostic strategies, FedMLLM demonstrates how federated learning can effectively enhance MLLM performance on private, diverse datasets.

What Problem Does This Paper Address?

Multimodal Large Language Models (MLLMs) are powerful tools for understanding and processing diverse data types like text and images. Fine-tuning these models using Federated Learning (FL) is an attractive approach to leverage private, decentralized data without compromising privacy. However, existing research in this area is limited, particularly concerning the significant "multimodal heterogeneity" found in real-world applications. This heterogeneity arises when different clients have varying combinations or availability of modalities (e.g., some clients have images and text, others only text, or images are missing). This imbalance poses a challenge for traditional FL methods, which often assume more uniform data distributions. The paper aims to address this gap by creating a comprehensive benchmark and a robust framework to evaluate and improve MLLM performance under these challenging heterogeneous conditions.

Methods

The core of this work is the FedMLLM framework and its associated benchmark.

  • Benchmark Construction: The authors define four multimodal scenarios to simulate real-world heterogeneity:
  • Aligned Modal Scenario: Clients have complete multimodal data, similar to standard FL.
  • Missing Modal Scenario: Samples have a certain probability of missing one or more modalities.
  • Cross Modal Scenario: Clients are specialized, with some having only image data and others only text data.
  • Hybrid Modal Scenario: A combination of the above, where clients can have single or multiple modalities. These scenarios are populated using five diverse datasets.

  • FedMLLM Framework: This framework integrates classic FL algorithms with two novel modality-agnostic strategies to combat heterogeneity:

  • Prompt Strategy: The original prompts are augmented to explicitly instruct the model to disregard modality when making predictions, making it more robust to missing or varied modalities.
  • Regularization Strategy: An adaptive regularization technique is proposed to prevent overfitting to specific modalities and stabilize training in heterogeneous settings. This strategy is inspired by FedProx but adapted for multimodal data.
  • Lightweight MLLMs: To make FL feasible on resource-constrained clients, the authors use lightweight MLLMs (MiniCPM-V-2_6int4 and MiniCPM-Llama3-V-2_5int) and fine-tune them using LoRA (Low-Rank Adaptation).

Datasets

The benchmark utilizes five datasets across three domains:

  • Hateful-Memes [20]: Social media, classification task (image & text).
  • CrisisMMD [2]: Natural disasters, classification task (image & text).
  • MedAlpaca [11]: Medical knowledge, text-based task.
  • VQA-RAD [23]: Medical knowledge, visual question answering (image-based).
  • SLAKE [30]: Medical knowledge, visual question answering (image-based), used as an unseen dataset for zero-shot testing.

The paper also introduces the four multimodal scenarios (Aligned, Missing, Cross, Hybrid) as part of its benchmark, which are constructed from these datasets to simulate varying degrees of data distribution and modality availability across clients.

Key Insights and Ideas

  • Multimodal Heterogeneity is a Major Hurdle: The study clearly demonstrates that simply applying standard FL to MLLMs without addressing multimodal heterogeneity leads to significant performance degradation. The proposed scenarios effectively highlight these challenges.
  • Modality-Agnostic Strategies are Crucial: The introduction of prompt and regularization strategies that explicitly account for or mitigate modality differences proves effective in improving MLLM performance in heterogeneous FL settings. This suggests that simply aggregating model weights isn't enough; the training process itself needs to be adapted.
  • Lightweight MLLMs + LoRA are Viable for FL: The successful fine-tuning of MLLMs on client-side using lightweight models and LoRA shows that federated MLLM training is becoming more practical, especially in cross-silo settings.
  • Federated Learning Offers Benefits Beyond Privacy: The paper emphasizes that FL not only protects data privacy but also expands the available training data scope, leading to better generalization and performance compared to local-only training, even with heterogeneity.

Key Results

  • Performance Improvement: The proposed FedMLLM framework, incorporating modality-agnostic strategies, consistently outperforms "Zero-shot" (untuned MLLM) and "Local" (client-only training) baselines across various multimodal scenarios and datasets.
  • Specific Gains: For instance, in the Hybrid Modal Scenario on CrisisMMD, FedAdagrad with both modality-agnostic strategies showed a significant gain of 5.01% compared to its baseline.
  • Cross-Silo Feasibility: The communication cost for LoRA-based fine-tuning is shown to be affordable, making cross-silo FL for MLLMs practical.
  • Scenario Impact: The Cross Modal scenario exhibited the widest performance distribution, indicating its challenging nature. The Hybrid Modal scenario also showed significant performance drops compared to the Aligned Modal scenario.

Limitations and Future Work

  • Limited Modalities: The current benchmark focuses on image-text multimodal data. Future work could explore other modalities like video and audio, which present additional training and deployment challenges, especially for resource-constrained clients.
  • Cross-Device FL: The study primarily focuses on cross-silo FL. Extending this to cross-device FL, with potentially thousands of devices, remains a significant challenge and a future research direction.
  • Dataset Diversity: While the benchmark uses five datasets, the authors encourage the adaptation of their framework to even more diverse datasets.
  • Assessment Adequacy: The paper acknowledges that while their assessment is comprehensive, future research could explore even more nuanced evaluation metrics and scenarios.
  • Efficiency: Optimizing the efficiency of federated MLLM training, especially with larger models or more complex scenarios, is a key area for future work.

Summary updated

BibTeX
@misc{xu2024fedmllm,
  author = {Binqian Xu and Xiangbo Shu and Haiyang Mei and Guo-Sen Xie and Basura Fernando and Jinhui Tang},
  title = {{FedMLLM: Federated Fine-tuning MLLM on Multimodal Heterogeneity Data}},
  year = {2024},
  eprint = {2411.14717},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.14717},
}
Figure