Federated Multilingual Models for Medical Transcript Analysis

Andre Manoel, Mirian del Carmen Hipolito Garcia, Tal Baumel, Shize Su, Jialei Chen, Robert Sim, Dan Miller, Danny Karmon, Dimitrios Dimitriadis

Abstract

Federated Learning (FL) is a machine learning approach that allows the model trainer to access more data samples by training across multiple decentralized data sources while enforcing data access constraints. Such trained models can achieve significantly higher performance beyond what can be done when trained on a single data source. In a FL setting, none of the training data is ever transmitted to any central location; i.e. sensitive data remains local and private. These characteristics make FL perfectly suited for applications in healthcare, where a variety of compliance constraints restrict how data may be handled. Despite these apparent benefits in compliance and privacy, certain scenarios such as heterogeneity of the local data distributions pose significant challenges for FL. Such challenges are even more pronounced in the case of a multilingual setting. This paper presents a FL system for pre-training a large-scale multi-lingual model suitable for fine-tuning on downstream tasks such as medical entity tagging. Our work represents one of the first such production-scale systems, capable of training across multiple highly heterogeneous data providers, and achieving levels of accuracy that could not be otherwise achieved by using central training with public data only. We also show that the global model performance can be further improved by a local training step.

Introduction

Medical data is a critical resource for advancing healthcare AI, yet it remains largely inaccessible due to stringent privacy regulations such as HIPAA and GDPR. "Data sovereignty" principles often dictate that clinical notes and patient transcripts cannot leave their home institution or country. This creates a significant barrier for developing multilingual Natural Language Understanding (NLU) models, as researchers cannot simply aggregate sensitive data from different regions into a central repository.

Beyond privacy, the authors address the challenge of statistical heterogeneity. In multilingual environments, data is often non-independent and identically distributed (non-i.i.d.). For instance, an English data silo may contain hundreds of millions of samples, while a Hebrew silo may contain only a few thousand. Standard machine learning algorithms often struggle with this imbalance, leading to models that favor majority languages at the expense of minority ones.

Methods

The researchers implemented a Federated Learning pipeline utilizing a "pre-train then fine-tune" strategy:

  1. Base Model: The system utilizes XLM-K, a transformer-based multilingual model, with continued pre-training via a Masked Language Modeling (MLM) task on medical text.
  2. Federated Optimization: A hierarchical approach was adopted where each data silo performs local training and transmits only "pseudo-gradients" (the difference between local and global weights) to a central server for aggregation.
  3. Personalization & Interpolation: To support smaller silos, the team employed model interpolation. This creates personalized versions of the model for each silo by blending global weights with locally fine-tuned versions, preventing overfitting in data-scarce environments.
  4. Production Architecture: Built on Azure Arc-enabled Kubernetes, the system scales across diverse cloud providers and physical locations while ensuring data remains within the customer's tenant.

Datasets

The study utilized a massive multilingual corpus covering nine languages. The data was partitioned into silos to simulate a real-world federated environment, combining public sources like Wikipedia and PubMed Central with proprietary clinical notes.

Multilingual dataset distribution across nine silos, highlighting the significant data imbalance between English and other languages.

Key Insights and Ideas

  • FL as a Performance Booster: Contrary to the view that FL is a compromise for privacy, this work demonstrates that FL can outperform centralized models trained on public data by unlocking access to "hidden" private datasets.
  • The Power of Interpolation: For under-resourced languages, the global model provides a robust foundation, while local fine-tuning handles site-specific nuances. Weighted interpolation between the two ensures optimal performance.
  • Strategic Sampling: The authors found that while large silos (English) should be sampled proportionally, small silos require a fixed minimum sample size per round to ensure they are not ignored by the global model.

Key Results

The Federated model achieved an overall test perplexity of 3.49, surpassing the Centralized baseline of 3.59. More importantly, the FL approach showed superior performance in downstream clinical tasks.

Performance comparison between Centralized Learning (CL) on public data and Federated Learning (FL) on proprietary data for NER and Relation Extraction tasks.

On proprietary medical data, the FL-trained model achieved a "strict" F1-score of 0.6628 for Named Entity Recognition (NER), significantly higher than the 0.5415 achieved by the public-only centralized model. Personalization also yielded gains; in German MLM tasks, the interpolated model reached an accuracy of 0.6024, outperforming both the pure global FL model and purely local models.

Limitations and Future Work

While the system is production-ready, several challenges remain for future exploration:

  • The "Straggler" Problem: The current synchronous system requires the server to wait for the slowest node. Future iterations will investigate asynchronous updates to improve efficiency.
  • Label Quality: The study assumes high-quality local data, but real-world medical labels are often noisy or inconsistent across institutions.
  • Communication Overhead: Transmitting large transformer weights is bandwidth-intensive. Future research will focus on gradient compression and more efficient communication protocols.

Summary updated

BibTeX
@inproceedings{manoel2023federated,
  author = {Andre Manoel and Mirian del Carmen Hipolito Garcia and Tal Baumel and Shize Su and Jialei Chen and Robert Sim and Dan Miller and Danny Karmon and Dimitrios Dimitriadis},
  title = {{Federated Multilingual Models for Medical Transcript Analysis}},
  booktitle = {CHIL},
  year = {2023},
  url = {https://openreview.net/forum?id=Chfb3xbYVO},
}
Figure