Introduction
The development of generalist medical foundation models (FMs) faces a significant paradox: while these models require vast, diverse datasets to achieve clinical utility, the most valuable medical data remains locked within decentralized, highly regulated silos. Privacy frameworks such as HIPAA and GDPR prevent the centralized aggregation of patient records, imaging, and physiological signals. Consequently, existing medical FMs often remain specialized—proficient in specific modalities like radiology but unable to generalize across the broader clinical spectrum.
To bridge this gap, we present FEDKIM (Federated Knowledge Injection into Medical foundation models). FEDKIM is a novel framework designed to scale the capabilities of medical FMs by "injecting" knowledge from private, decentralized healthcare data using federated learning. By employing an adaptive Multitask Multimodal Mixture of Experts ($M^3OE$) module, FEDKIM enables a centralized foundation model to learn from diverse medical modalities and tasks without ever accessing sensitive patient data, significantly boosting its zero-shot generalization capabilities.
Methodology
The FEDKIM framework operates through a three-phase pipeline designed to extract, align, and inject specialized clinical knowledge into a large-scale foundation model (specifically MMedLM-2).
1. Federated Knowledge Extraction
In the initial phase, local clients (e.g., individual hospitals or clinics) train lightweight, modality-specific encoders on their private datasets. These encoders capture the nuances of specific data types, such as 12-lead ECGs or chest X-rays. Crucially, only the resulting model parameters—not the raw patient data—are transmitted to a central server, ensuring strict adherence to privacy protocols.
2. Feature Alignment
Once the local encoders are aggregated at the server, they must be integrated into the foundation model's architecture. FEDKIM utilizes a small amount of public data to align the embedding spaces of these diverse local encoders with the latent space of the primary foundation model. This ensures that features extracted from disparate sources (like vital signs and medical images) are represented in a consistent format that the FM can interpret.
3. Adaptive $M^3OE$ Injection
The core innovation of FEDKIM is the Multitask Multimodal Mixture of Experts ($M^3OE$) module. Rather than traditional fine-tuning, which can lead to catastrophic forgetting or rigid specialization, FEDKIM employs a set of Low-Rank Adaptation (LoRA) experts.
An adaptive router uses text-based descriptions of the specific task and modality to dynamically "route" information through the most relevant experts. For example, if the model is tasked with detecting pneumonia from an X-ray, the router prioritizes experts trained on similar visual-spatial tasks. This allows the model to adjust its internal logic dynamically based on the clinical context, effectively creating a meta-strategy for which "experts" to trust for specific clinical scenarios.
Experimental Evaluation
The efficacy of FEDKIM was evaluated across an expansive suite of 12 tasks spanning 7 modalities, utilizing well-known benchmarks like MIMIC-III, CheXpert, PTB-XL, and RSNA Pneumonia Detection.
- Training Tasks: Included COVID-19 detection (X-ray), lung opacity identification (X-ray), ECG abnormality detection, and mortality prediction (multimodal: vitals, labs, etc.).
- Zero-Shot Generalization: To test the model's ability to handle unseen clinical scenarios, it was evaluated on tasks such as Sepsis Prediction, Medical Visual Question Answering (MedVQA-RAD and MedVQA-Slake), and Signal Noise Clarification (SNC) for ECGs.
Key Results and Insights
FEDKIM consistently outperformed established federated learning baselines, such as FedPlug and FedPlugL, across both fine-tuning and zero-shot scenarios.
Zero-Shot Performance
The most significant gains were observed in zero-shot scenarios, where the model encountered tasks it had not seen during the federated training phase. FEDKIM achieved a remarkable 82.36% improvement over standard federated baselines in Signal Noise Clarification (SNC) and a 43.92% improvement in Pleural Effusion Detection (PED). These results suggest that the "knowledge injection" process helps the model build a more robust and transferable internal representation of medical concepts.
Cross-Modality Generalization
A striking finding was that training on classification tasks (e.g., "Is this patient positive for COVID-19?") improved the model's performance on generative tasks (e.g., answering complex questions about an image) that it hadn't been trained on. This indicates that the $M^3OE$ module successfully captures high-level medical semantics that transcend specific task formats.
Fine-Tuning Success
On tasks included in the training set, FEDKIM reached near-perfect accuracy in certain categories, such as a 98.9% accuracy rate for COVID-19 detection, while significantly outperforming baselines on complex longitudinal tasks like Mortality Prediction. The system also proved robust across different federated backbones, including FedAvg and FedProx.
Discussion and Future Work
While FEDKIM represents a significant step forward for medical AI, several challenges remain. The current implementation relies on Parameter-Efficient Fine-Tuning (PEFT) via LoRA to manage computational costs. While effective, full-parameter fine-tuning might unlock even greater performance if the associated resource constraints can be mitigated. Additionally, while the framework was validated on a 7-billion parameter model, future research will explore whether these benefits scale linearly with even larger foundation models.
In conclusion, FEDKIM provides a scalable, privacy-preserving pathway for building generalist medical AI. By treating decentralized data as a source of "knowledge" rather than just "raw input," it enables foundation models to learn from the vast, untapped expertise residing in hospitals worldwide.
Summary updated