Multimodal Federated Learning with Missing Modality via Prototype Mask and Contrast

Guangyin Bao, Qi Zhang, Duoqian Miao, Zixuan Gong, Liang HuarXiv 2023 · DOI

Abstract

Federated Learning (FL) faces significant hurdles when dealing with multimodal data in decentralized environments, particularly when clients possess incomplete data (missing modalities). This paper introduces PmcmFL (Prototype Mask and Contrast for Multimodal Federated Learning), a novel framework that utilizes a global prototype library to bridge the gap between unimodal and multimodal learning. By employing class-specific prototypes as masks and a contrastive loss for feature alignment, PmcmFL achieves substantial performance gains, notably a 23.8% accuracy improvement in extreme missing-data scenarios.

Introduction

In real-world applications like healthcare or mobile sensing, data is inherently multimodal. While Federated Learning allows for privacy-preserving collaborative training, it often assumes that all clients have access to the same modalities. In practice, some clients may only have images, others only text, and some both. This discrepancy leads to task drift, where local optimization directions diverge, and non-IID data challenges, where the global model fails to generalize across heterogeneous client distributions.

Comparison of task scenarios between previous multimodal FL methods and the proposed PmcmFL.

As shown in the figure above, previous methods often required extra training data at the server or specific client types to handle missing modalities. PmcmFL operates without server-side training data, directly addressing clients with missing modalities through a shared prototype mechanism.

The PmcmFL Framework

The core of PmcmFL is a Prototype Library maintained on the server. A prototype represents the centroid of features for a specific class and modality across the federation.

1. Prototypes as Task-Calibrated Masks

Unlike traditional "zero-masking," which ignores missing information, PmcmFL fills missing modalities with their corresponding global prototypes. This ensures that the model's fusion layers are always trained on meaningful representations, maintaining the multimodal nature of the task even when local data is unimodal.

2. Prototype-based Contrastive Loss

To mitigate client drift, a proximal term is added to the local loss function. This contrastive objective pulls local representations toward their respective global prototypes and pushes them away from prototypes of different classes. This alignment ensures that all clients, regardless of their available modalities, map features into a consistent global latent space.

The PmcmFL architecture featuring the global prototype library and the Multiway Transformer encoder.

3. Multiway Transformer and Inference

The framework utilizes a Multiway Transformer architecture that employs modality-specific experts and shared fusion layers. During inference, if a modality is missing, the system retrieves the most semantically similar prototype from the library to "complete" the input, allowing the multimodal model to remain robust even with unimodal inputs.

Experimental Evaluation

The authors evaluated PmcmFL on a Tiny VQA dataset (a subset of VQAv2) with 30 clients under severe non-IID conditions ($\alpha=0.1$).

  • Superior Accuracy: PmcmFL consistently outperformed standard baselines like FedAvg and FedProx, showing improvements of up to 3.7% in general scenarios.
  • Extreme Robustness: In inference tests where 100% of a modality was missing, PmcmFL provided a 23.8% boost over standard zero-masking techniques.
  • Efficiency: The communication overhead for sharing the prototype library is minimal (+0.32% parameters), yet it leads to faster convergence than competing methods like FedHKD.

Conclusion

PmcmFL provides a robust solution for multimodal federated learning by treating missing modalities as a "global prior" problem rather than a data absence problem. By aligning local models through a shared prototype space, it enables effective collaborative learning across highly heterogeneous and incomplete datasets. Future work may explore more complex prototype distributions and synthetic data generation to further enhance performance.

Summary updated

BibTeX
@misc{bao2023multimodal,
  author = {Guangyin Bao and Qi Zhang and Duoqian Miao and Zixuan Gong and Liang Hu},
  title = {{Multimodal Federated Learning with Missing Modality via Prototype Mask and Contrast}},
  year = {2023},
  eprint = {2312.13508},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.13508},
}
Figure