Transfer Learning with Clinical Concept Embeddings from Large Language Models

Yuhe Gao, Runxue Bao, Yuelyu Ji, Yiming Sun, Chenxi Song, Jeffrey P. Ferraro, Ye Ye

TL;DR

This paper investigates how different Large Language Model (LLM) embeddings impact transfer learning for clinical classification tasks across separate healthcare institutions. The authors demonstrate that domain-specific embeddings like Med-BERT achieve superior performance with minimal adjustments, whereas generic embeddings require extensive fine-tuning—and over-tuning specialized models can actually degrade their performance.

What Problem Does This Paper Address?

Predictive modeling in healthcare often suffers from data scarcity at individual hospitals. While transfer learning allows institutions to share pre-trained models without compromising patient privacy, it faces a major hurdle: clinical concept heterogeneity. Different hospitals use varied clinical languages, abbreviations, and coding systems to describe identical conditions (e.g., "fever" vs. "high temperature" vs. a specific UMLS code).

Traditional exact-word matching fails to bridge this gap. This paper explores whether mapping clinical concepts into semantic embedding spaces using LLMs can mitigate this heterogeneity and enable effective cross-site knowledge transfer.

Methods

The researchers developed a pipeline that converts tabular Electronic Health Record (EHR) data—consisting of age groups, temperature grades, and 70 clinical findings—into 2D embeddings. They tested embeddings from two main families:

  • BERT-based models: Standard BERT (generic), BioBERT (biomedical literature), and Med-BERT (EHR and claims data).
  • OpenAI models: Third-generation text embeddings (text-embedding-3-small and text-embedding-3-large).
  • Baseline: A standard One-Hot encoding scheme with no semantic meaning.

These embeddings were fed into a 1-D Convolutional Neural Network (CNN) with a filter size of 1, allowing the model to evaluate each clinical concept independently of its order in the documentation.

Figure 1: Workflow overview

To evaluate transfer learning, models were trained on a source hospital dataset and adapted to a target hospital dataset using three distinct strategies:

  1. Direct Sharing: Deploying the source model directly on target data (zero-shot).
  2. Linear Tuning: Freezing the CNN layers and fine-tuning only the final linear classification layer.
  3. Full Tuning: Fine-tuning both the CNN layers and the linear layer simultaneously.

Datasets

The study utilized Emergency Department encounter data for influenza case classification spanning seven years (June 2008 to May 2015) from two geographically distinct healthcare systems:

  • Allegheny County (AC), Pennsylvania
  • Salt Lake County (SLC), Utah

Clinical concepts were extracted from de-identified clinical notes using an NLP tool called Topaz, which categorized findings as either "present" or "absent" (negated).

Key Insights and Ideas

  • Granular Domain Specificity Wins: Med-BERT consistently outperformed BioBERT. Even though both are specialized, BioBERT was trained on biomedical research articles, whereas Med-BERT was trained directly on EHR databases. This highlights that alignment with the format of the data (clinical records vs. literature) is just as important as the general scientific domain.
  • The Fine-Tuning Paradox: More tuning isn't always better. For highly specialized models like Med-BERT and standard BERT, full tuning actually decreased performance compared to linear tuning or direct sharing. The authors suggest these models already possess robust internal representations; unfreezing their weights allows target-site noise to disrupt these pre-trained features.
  • Generic Models Crave Adaptation: Conversely, generic models (OpenAI) and the One-Hot baseline significantly benefited from full tuning. Lacking specialized clinical knowledge out of the box, they required extensive weight adjustments to map out domain-specific relationships.

Key Results

Performance was measured using the Area Under the Receiver Operating Characteristic (AUROC) curve:

  • Local Performance: Med-BERT achieved the highest local AUROC scores in both environments (0.7398 in AC, 0.7428 in SLC), outperforming generic models and the baseline.
Figure 4: AUROCs of Local models on AC and SLC
  • Transfer Performance (SLC to AC): When directly sharing models without any tuning, Med-BERT led with an AUROC of 0.7308.
  • Tuning Effects: When transferring from SLC to AC, standard BERT reached its peak performance of 0.7363 via linear tuning, but dropped sharply to 0.6843 under full tuning. Meanwhile, OpenAI's large model improved from 0.6928 (direct share) to 0.7360 (full tuning).

Limitations and Future Work

The authors noted several limitations in their current work:

  • The classification task (influenza detection) was relatively simple and binary. More complex clinical tasks like disease staging or multimodal data analysis might alter embedding dynamics.
  • The CNN architecture and hyperparameters were fixed and not extensively optimized.
  • Absent clinical concepts were handled via simple negations, which may not capture complex clinical nuances perfectly.

For future directions, the authors suggest exploring parameter-efficient fine-tuning (PEFT) methods, such as Low-Rank Adaptation (LoRA) or adapter modules, to find a more optimal, computationally efficient balance for cross-site clinical knowledge transfer.

Summary updated

BibTeX
@misc{gao2024transfer,
  author = {Yuhe Gao and Runxue Bao and Yuelyu Ji and Yiming Sun and Chenxi Song and Jeffrey P. Ferraro and Ye Ye},
  title = {{Transfer Learning with Clinical Concept Embeddings from Large Language Models}},
  year = {2024},
  eprint = {2409.13893},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.13893},
}
Figure