UniFed-VLM: Federated Instruction Tuning for Vision-Language Models with Multiple Heterogeneity
Abstract
Vision-Language Models (VLMs) have demonstrated strong performance in multimodal understanding and generation. However, fine-tuning of VLMs typically relies on centralized data, which raises privacy concerns in certain domains (e.g. healthcare). Federated Learning (FL) provides a natural solution by enabling model training without sharing raw data. However, applying FL to VLM instruction tuning is highly challenging. VLMs have substantial parameter scales, and in real-world scenarios, clients exhibit significant heterogeneity in tasks, modalities, and model architectures. Existing methods mainly focus on simplified settings and are unable to handle such multi-dimensional heterogeneous scenarios. In this work, we study federated instruction tuning under joint heterogeneity in tasks, modalities, and model architectures. We propose UniFed-VLM, a unified federated instruction tuning framework for VLMs that addresses multiple types of heterogeneity. It consists of two key components: 1) Federated Compensated Subspace Aggregation (FedCSA), which performs subspace-aligned aggregation of parameter-efficient adapters with dynamic weighting and compensation to mitigate heterogeneity-induced conflicts; 2) Two-stage Collaborative Distillation (TCoD), which enables effective knowledge transfer across heterogeneous models via a Mutual Distillation Adapter (MDA) and a mixture-of-experts-based distillation strategy. We conduct experiments on multiple benchmark datasets, and the results show that UniFed-VLM achieves stronger average performance across diverse tasks compared with existing FL methods. The source code is available at: https://github.com/wangpengyu2004/UniFed-VLM.
Figures & tables
| Scenario | Method | Fed-Nature | Fed-Crossdomain | ||||||
| VQA | Caption | VG | CLS | VQA | Caption | VG | CLS | ||
| Acc | CIDEr/R-L | IoU | Acc | Acc | CIDEr/R-L | IoU | Acc | ||
| Scenario 1 | LOCAL | 0.712 | 0.705/0.348 | 0.390 | 0.891 | 0.509 | 2.168/0.569 | 0.311 | 0.213 |
| FedAdam | 0.709 | 0.763/0.361 | 0.499 | 0.910 | 0.541 | 1.201/0.527 | 0.319 | 0.222 | |
| FedAvg | 0.734 | 0.744/0.349 | 0.465 | 0.912 | 0.542 | 2.501/0.624 | 0.378 | 0.226 | |
| FedProx | 0.702 | 0.753/0.357 | 0.457 | 0.906 | 0.550 | 1.748/0.579 | 0.367 | 0.234 | |
| Method | VQA | Caption | VG | CLS |
| Acc | CIDEr/R-L | IoU | Acc | |
| UniFed-VLM | 0.743 | 0.784/0.358 | 0.519 | 0.918 |
| w/o FedCSA (w/ FedAvg) | 0.708 | 0.746/0.361 | 0.445 | 0.907 |
| w/o FedCSA (w/ FedProx) | 0.711 | 0.781/0.365 | 0.484 | 0.901 |
| w/o TCoD | 0.707 | 0.766/0.361 | 0.458 | 0.911 |
| w/o Compensation | 0.726 | 0.774/0.357 | 0.503 | 0.915 |
| LoRA Rank | VQA | Caption | VG | CLS |
| Acc | CIDEr/R-L | IoU | Acc | |
| 8 / 8 | 0.743 | 0.784/0.358 | 0.519 | 0.918 |
| 16 / 16 | 0.732 | 0.805/0.365 | 0.533 | 0.915 |
| 32 / 32 | 0.736 | 0.824/0.371 | 0.522 | 0.922 |
| 16 / 8 | 0.717 | 0.792/0.367 | 0.492 | 0.915 |
| 8 / 16 | 0.712 | 0.756/0.360 | 0.487 | 0.913 |
| VQA | Caption Generation | Visual Grounding | CLS | |
| Acc | CIDEr/ROUGE-L | IoU | Acc | |
| 1024 | 0.726 | 0.783/0.363 | 0.499 | 0.910 |
| 2048 | 0.743 | 0.784/0.358 | 0.519 | 0.918 |
| 2560 | 0.718 | 0.778/0.366 | 0.478 | 0.910 |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Iter. | VQA | Caption Generation | Visual Grounding | CLS |
| Acc | CIDEr/ROUGE-L | IoU | Acc | |
| 100 | 0.724 | 0.782/0.363 | 0.504 | 0.912 |
| 200 | 0.743 | 0.784/0.358 | 0.519 | 0.918 |
| 300 | 0.737 | 0.792/0.368 | 0.497 | 0.910 |
| VQA | Caption Generation | Visual Grounding | CLS | |
| Acc | CIDEr/ROUGE-L | IoU | Acc | |
| 0.1 | 0.730 | 0.778/0.355 | 0.520 | 0.919 |
| 0.2 | 0.710 | 0.787/0.363 | 0.535 | 0.911 |
| 0.3 | 0.743 | 0.784/0.358 | 0.519 | 0.918 |
| 0.4 | 0.706 | 0.783/0.364 | 0.524 | 0.906 |
| VQA | Caption Generation | Visual Grounding | CLS | |
| Acc | CIDEr/ROUGE-L | IoU | Acc | |
| 0.3 | 0.738 | 0.762/0.358 | 0.526 | 0.912 |
| 0.4 | 0.743 | 0.784/0.358 | 0.519 | 0.918 |
| 0.5 | 0.726 | 0.782/0.360 | 0.529 | 0.916 |
| 0.6 | 0.724 | 0.781/0.359 | 0.519 | 0.911 |
| Layers | VQA | Caption Generation | Visual Grounding | CLS |
| Acc | CIDEr/ROUGE-L | IoU | Acc | |
| 2 | 0.694 | 0.776/0.363 | 0.513 | 0.912 |
| 3 | 0.743 | 0.784/0.358 | 0.519 | 0.918 |
| 4 | 0.721 | 0.847/0.374 | 0.516 | 0.907 |
| - | VQA | Caption Generation | Visual Grounding | CLS |
| Acc | CIDEr/ROUGE-L | IoU | Acc | |
| 0.7-0.1 | 0.729 | 0.777/0.355 | 0.513 | 0.912 |
| 0.7-0.3 | 0.739 | 0.729/0.352 | 0.515 | 0.918 |
| 0.7-0.2 | 0.743 | 0.784/0.358 | 0.519 | 0.918 |
| 0.6-0.2 | 0.727 | 0.788/0.362 | 0.520 | 0.914 |
| 0.8-0.2 | 0.722 | 0.821/0.371 | 0.517 | 0.905 |
| Method | VQA | Caption Generation | VG | CLS |
| Acc | CIDEr/ROUGE-L | IoU | Acc | |
| FedAvg | 0.725 | 0.777/0.348 | 0.347 | 0.892 |
| FedProx | 0.716 | 0.738/0.344 | 0.355 | 0.888 |
| HetLoRA | 0.717 | 0.766/0.342 | 0.342 | 0.891 |
| pFedLoRA | 0.571 | 0.665/0.324 | 0.307 | 0.837 |
| Ours | 0.738 | 0.765/0.346 | 0.365 | 0.899 |
| Method | VQA | Caption Generation | VG | CLS |
| Acc | CIDEr/ROUGE-L | IoU | Acc | |
| Ours | 0.743 | 0.784/0.358 | 0.519 | 0.918 |
| Ours (w/ DP) | 0.724 | 0.781/0.360 | 0.521 | 0.918 |