Adaptive Prototype Knowledge Transfer for Federated Learning with Mixed Modalities and Heterogeneous Tasks

Keke Gai, Mohan Wang, Jing Yu, Dongjue Wang, Qi WuarXiv 2025 · DOI

Abstract

Federated Learning (FL) has emerged as a powerful paradigm for decentralized machine learning, yet its application to multimodal data remains challenging due to real-world data heterogeneity. Standard Multimodal Federated Learning (MFL) approaches often assume that all clients possess identical modalities and perform the same tasks. This paper presents AproMFL, an adaptive prototype-based framework designed to handle clients with mixed modalities (image-only, text-only, or both) and heterogeneous tasks (classification and retrieval). AproMFL utilizes adaptive local prototypes and a client relationship graph to facilitate cross-modal knowledge transfer without requiring shared labels or public datasets. Experimental results demonstrate that AproMFL significantly outperforms existing baselines in accuracy, retrieval performance, and robustness to data skew.

Introduction

In decentralized environments, data is rarely uniform. While one participant might contribute image-text pairs from social media, another might only have text logs or security camera footage. This "mixed modality" setting poses significant hurdles for traditional MFL. Most existing solutions struggle with label inconsistency, where clients do not share a common label space, and task heterogeneity, where different clients optimize for different objectives like classification or cross-modal retrieval. Furthermore, many methods rely on shared public datasets to align modalities, which introduces privacy risks and practical dependencies.

Comparison of different Multimodal Federated Learning (MFL) scenarios. (a) Homogeneous modalities/tasks. (b) Partial missing modalities. (c) The proposed mixed modality and heterogeneous task setting.

AproMFL addresses these challenges by enabling a diverse neighborhood of clients to collaborate effectively. It focuses on transferring knowledge from multimodal clients—who possess a holistic view of data relationships—to unimodal clients, ensuring that even those with limited data types benefit from the collective intelligence of the network.

The AproMFL Framework

The AproMFL framework is built upon three core pillars designed to bridge the gap between diverse clients:

  1. Adaptive Local Prototype Construction: To bridge the gap between different tasks and modalities, AproMFL uses "prototypes"—representative feature centroids. Unimodal clients (image or text) generate prototypes based on their local class labels. Multimodal clients, which are assumed to lack explicit labels in this setup, employ K-means clustering and contrastive learning to derive pseudo-labels, creating paired image-text prototypes that capture cross-modal semantics.
  2. Server-side Adaptive Aggregation: The server plays a crucial role in harmonizing these diverse updates. Through "Semantic Completion," the server fills in missing modalities for unimodal prototypes by identifying the most similar multimodal prototypes from other participants. To mitigate model drift caused by task differences, the server constructs a Client Relationship Graph. This graph weights model aggregation based on the similarity of clients' mapping modules, ensuring that updates from related tasks are prioritized.
  3. Modality Knowledge Transfer: Once global prototypes are aggregated, they are distributed back to clients. Clients then optimize their local models using two specialized loss functions: Global Prototype Knowledge Transfer ($L_{GPT}$) and Global Model Knowledge Transfer ($L_{GMT}$). These functions align local features with the global consensus, facilitating knowledge flow across the network without exposing raw data.
The AproMFL architecture, featuring adaptive local prototype construction, adaptive aggregation, and modality knowledge transfer.

Experimental Evaluation

The framework was rigorously tested using modified versions of CIFAR-10 (image classification), AG-NEWS (text classification), and Flickr30k (multimodal retrieval). To simulate non-IID (Independent and Identically Distributed) conditions, the authors applied a Dirichlet distribution ($\alpha = 0.1$ and $5.0$), where a smaller $\alpha$ represents higher data heterogeneity.

AproMFL consistently surpassed baselines such as FedIoT, MM-FedProx, and CreamFL. In classification tasks, it achieved accuracy improvements of up to 6.09% over FedIoT. In retrieval tasks on Flickr30k, recall metrics (R@1) improved by 1.6% to 3.89%. Notably, the system proved highly robust under extreme data heterogeneity ($\alpha = 0.1$), where traditional methods often fail due to significant model divergence. UMAP visualizations further confirmed that AproMFL-generated embeddings were more spatially compact and better aligned across modalities compared to local training.

Discussion and Conclusion

AproMFL represents a significant step forward in making Federated Learning practical for complex, real-world data ecosystems. By treating prototypes as a universal language and using a relationship graph to guide aggregation, it overcomes the limitations of label gaps and task diversity.

However, some limitations remain. The current assumption that unimodal clients have labels while multimodal ones do not may not always hold in the wild. Additionally, the computational overhead of building a client relationship graph on the server could scale poorly with thousands of concurrent clients. Future work will focus on optimizing these mapping modules and exploring more flexible label assumptions to further enhance the framework's versatility.

Summary updated

BibTeX
@misc{gai2025adaptive,
  author = {Keke Gai and Mohan Wang and Jing Yu and Dongjue Wang and Qi Wu},
  title = {{Adaptive Prototype Knowledge Transfer for Federated Learning with Mixed Modalities and Heterogeneous Tasks}},
  year = {2025},
  eprint = {2502.04400},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.04400},
}
Figure