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 · DOI

Introduction

Machine learning in healthcare faces a significant "language barrier." Different hospital systems often utilize heterogeneous coding systems or terminologies to describe identical clinical realities. For instance, one site might record a symptom as "fever," while another uses a specific billing code or the term "high temperature."

This lack of standardization makes transfer learning—the process of applying a model trained at one hospital to another—notoriously difficult. Traditional "one-hot encoding" methods treat each symptom as a unique, isolated ID, carrying no semantic information. Consequently, a model cannot inherently recognize that "chills" and "fever" are clinically related. This study investigates whether the semantic knowledge embedded in domain-specific Large Language Models (LLMs) can bridge this gap and improve influenza detection across geographically distinct healthcare systems.

Methodology

The researchers developed a pipeline to transform tabular Electronic Health Record (EHR) data into semantic vector representations suitable for deep learning.

Embedding Generation

Clinical features, including symptoms, age groups, and temperature, were mapped to vector representations using several models:

  • Baseline: One-Hot encoding (no semantic meaning).
  • Generic LLMs: Original BERT and OpenAI’s third-generation embeddings (OpenAI-S and OpenAI-L).
  • Domain-Specific LLMs: BioBERT (trained on PubMed) and Med-BERT (trained specifically on structured EHR data).

Model Architecture

The study employed a 1-D Convolutional Neural Network (CNN). In this architecture, CNN filters act as feature detectors, scanning clinical embeddings to identify patterns. For example, a "body pain filter" can learn to recognize various synonymous descriptions of aches because their embedding vectors are mathematically similar.

Figure 4: The 1-D CNN architecture pipeline, illustrating the transformation from tabular EHR data to clinical concept embeddings, followed by convolution, max-pooling, and final binary classification.

Transfer Scenarios

Three adaptation strategies were tested when moving a model from a "source" hospital to a "target" hospital:

  1. Direct Sharing: Using the source model without modification.
  2. Linear Tuning: Updating only the final classification layer.
  3. Full Tuning: Updating both the CNN filters and the linear layer.

Datasets

The study utilized Emergency Department encounter data for influenza diagnosis from two distinct regions:

  • Allegheny County (AC), Pennsylvania: 16,952 encounters.
  • Salt Lake County (SLC), Utah: 49,560 encounters.

The data spanned seven years (2008–2015) and included 69 clinical findings extracted via Natural Language Processing (NLP) from clinical notes, alongside demographic and physiological data.

Key Results

Local Performance

In local scenarios (training and testing at the same site), Med-BERT consistently achieved the highest AUROC, significantly outperforming the One-Hot baseline and generic LLM embeddings. Med-BERT reached an AUROC of 0.7398 in AC and 0.7428 in SLC, compared to the baseline's 0.6639 and 0.6733, respectively.

Figure 6: Comparison of AUROC performance across different embedding types for local models in Allegheny County (AC) and Salt Lake County (SLC). Med-BERT shows the strongest performance in both regions.

Transfer Success

When transferring models from SLC to AC, Med-BERT with only linear layer tuning achieved an AUROC of 0.7319. This performance nearly matched that of a model trained locally from scratch, demonstrating the high portability of domain-specific semantic embeddings.

Discussion

The "Tuning Paradox"

A key finding was the trade-off in fine-tuning. While generic models (like OpenAI’s) required "Full Tuning" to reach peak performance, domain-specific models like Med-BERT often performed better with less tuning. In some cases, full tuning decreased Med-BERT's performance, suggesting that excessive updates can "wash away" the high-quality clinical knowledge already present in the pre-trained embeddings.

Semantic Robustness

LLM embeddings allow models to recognize clinical synonyms. If a model learns that "generalized aches" is a predictor for flu at one hospital, it can successfully apply that knowledge to "body pain" at another site because their embedding vectors occupy similar positions in the semantic space.

Conclusion

This research demonstrates that domain-specific LLM embeddings—specifically Med-BERT—significantly improve the performance and portability of clinical prediction models. By representing medical concepts as semantic vectors rather than simple codes, researchers can build models that transfer more effectively between different hospital systems with minimal fine-tuning, addressing a major hurdle in healthcare AI deployment.

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