Skip to main content
QUICK REVIEW

[Paper Review] Federated pretraining and fine tuning of BERT using clinical notes from multiple silos

Dianbo Liu, Timothy A. Miller|arXiv (Cornell University)|Feb 20, 2020
Topic ModelingComputer Science18 references23 citations
TL;DR

This paper proposes a federated learning framework for pretraining and fine-tuning BERT on clinical notes from multiple healthcare institutions without sharing raw data. By training BERT models in a decentralized manner across silos using MIMIC-III discharge summaries, the method achieves competitive performance—especially when pre-training is federated and fine-tuning is centralized—demonstrating feasibility for privacy-preserving clinical NLP.

ABSTRACT

Large scale contextual representation models, such as BERT, have significantly advanced natural language processing (NLP) in recently years. However, in certain area like healthcare, accessing diverse large scale text data from multiple institutions is extremely challenging due to privacy and regulatory reasons. In this article, we show that it is possible to both pretrain and fine tune BERT models in a federated manner using clinical texts from different silos without moving the data.

Motivation & Objective

  • To enable privacy-preserving pretraining of BERT on clinical text from multiple healthcare institutions without transferring raw data.
  • To investigate whether federated learning can effectively capture domain-specific linguistic patterns in clinical notes.
  • To evaluate the performance of federated fine-tuning for downstream NLP tasks like named entity recognition (NER).
  • To compare federated training performance against centralized training to quantify the 'federated communication loss'.
  • To analyze attention mechanisms in federated vs. centralized BERT models to assess model behavior and similarity to base BERT.

Proposed method

  • Simulated 5 healthcare silos by randomly splitting the MIMIC-III discharge summary dataset by patient.
  • Adapted the pre-processing and tokenization pipeline from Alsentzer et al. (2019) for clinical text.
  • Initialized identical BERT models across all silos and performed federated model aggregation via global parameter averaging after each round.
  • Conducted federated pre-training using masked language modeling on unlabelled clinical notes across silos.
  • Performed federated fine-tuning for NER using labeled i2b2 datasets, with model updates aggregated across sites.
  • Used Jensen-Shannon divergence and attention entropy to compare attention head behaviors across BERT variants.

Experimental results

Research questions

  • RQ1Can BERT be effectively pre-trained in a federated manner using clinical notes from multiple independent healthcare institutions?
  • RQ2How does the performance of a federated BERT model compare to a centrally trained model on downstream clinical NLP tasks like NER?
  • RQ3What is the impact of separating pre-training and fine-tuning across different data silos on model performance?
  • RQ4How do attention mechanisms in federated BERT models compare to those in centralized and base BERT models?
  • RQ5To what extent does federated learning preserve domain-specific linguistic characteristics in clinical text?

Key findings

  • Federated pre-training of BERT on clinical notes from multiple silos achieved an F1 score of 0.808 on the i2b2 2010 NER task and 0.715 on i2b2 2012, demonstrating feasibility without data sharing.
  • When pre-training was federated and fine-tuning centralized, the model achieved 0.820 F1 on i2b2 2010 and 0.735 on i2b2 2012, showing only a ~5% drop compared to full centralized training.
  • When pre-training was centralized and fine-tuning was federated, the F1 scores dropped by less than 2% (0.843 on i2b2 2010, 0.731 on i2b2 2012), indicating fine-tuning is more robust to decentralization.
  • When both pre-training and fine-tuning were conducted in a federated manner, the F1 scores were 0.808 (i2b2 2010) and 0.715 (i2b2 2012), showing a ~6% performance drop compared to centralized training.
  • Attention analysis revealed that the federated clinical BERT model had higher Spearman correlation (0.96) with the base BERT model than with the centralized ClinicalBERT model (0.27), suggesting it preserves more base BERT-like attention patterns.
  • The Jensen-Shannon divergence distance between the federated clinical BERT and base BERT was 8153.26, while the distance between federated and centralized ClinicalBERT was only 314.38, indicating closer attention behavior to the centralized model.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.