[Paper Review] Generalization in Healthcare AI: Evaluation of a Clinical Large Language Model
This study evaluates ClinicLLM (trained on four hospitals’ clinical notes) for 30-day readmission prediction, analyzes generalization across hospitals and patient groups, and compares fine-tuning strategies to improve generalization.
Advances in large language models (LLMs) provide new opportunities in healthcare for improved patient care, clinical decision-making, and enhancement of physician and administrator workflows. However, the potential of these models importantly depends on their ability to generalize effectively across clinical environments and populations, a challenge often underestimated in early development. To better understand reasons for these challenges and inform mitigation approaches, we evaluated ClinicLLM, an LLM trained on [HOSPITAL]'s clinical notes, analyzing its performance on 30-day all-cause readmission prediction focusing on variability across hospitals and patient characteristics. We found poorer generalization particularly in hospitals with fewer samples, among patients with government and unspecified insurance, the elderly, and those with high comorbidities. To understand reasons for lack of generalization, we investigated sample sizes for fine-tuning, note content (number of words per note), patient characteristics (comorbidity level, age, insurance type, borough), and health system aspects (hospital, all-cause 30-day readmission, and mortality rates). We used descriptive statistics and supervised classification to identify features. We found that, along with sample size, patient age, number of comorbidities, and the number of words in notes are all important factors related to generalization. Finally, we compared local fine-tuning (hospital specific), instance-based augmented fine-tuning and cluster-based fine-tuning for improving generalization. Among these, local fine-tuning proved most effective, increasing AUC by 0.25% to 11.74% (most helpful in settings with limited data). Overall, this study provides new insights for enhancing the deployment of large language models in the societally important domain of healthcare, and improving their performance for broader populations.
Motivation & Objective
- Assess how well ClinicLLM generalizes across hospitals within a system and across patient groups (insurance, race, age, comorbidity).
- Identify factors driving generalization gaps (sample size, note content, patient characteristics, hospital traits).
- Evaluate strategies to improve generalization: local hospital-specific fine-tuning, instance-based augmentation, and cluster-based fine-tuning.
- Provide actionable insights for deploying clinical LLMs in diverse healthcare settings.
Proposed method
- Pretrain ClinicLLM on clinical notes from four hospitals using a BERT-base architecture with 109M parameters and MLM objective.
- Fine-tune ClinicLLM on History and Physical notes with binary readmission labels, using 80-10-10 train-val-test split and a temporal test set.
- Evaluate global fine-tuning (all notes) and hospital-specific local fine-tuning, instance-based augmented fine-tuning (matched samples by embedding similarity), and cluster-based fine-tuning (UMAP reduction + K-means clustering).
- Use AUC, AUPR, and ECE as primary metrics; assess generalization across hospitals, insurance types, races, ages, and comorbidity levels.
- Investigate factors via descriptive statistics, perplexity analysis, and a decision-tree based clustering to identify key features influencing generalization.
Experimental results
Research questions
- RQ1How does ClinicLLM generalize in predicting 30-day all-cause readmission across hospitals and patient subgroups?
- RQ2What are the main factors associated with lack of generalization (sample size, note length, age, comorbidity, insurance, race)?
- RQ3Do fine-tuning strategies (local, instance-based augmentation, cluster-based) improve generalization, and to what extent?
- RQ4Which strategy yields the largest proportional improvement in AUC for hospitals with limited data?
Key findings
- Hospital-level generalization is uneven; Hospital 3 and Hospital 4 show notably lower AUCs than Hospital 1, with 69.90% and 51.20% respectively in temporal tests.
- Insurance and race groups show variable performance, with government and other/unspecified insurance exhibiting lower AUCs than Self-Pay; Asian and American Indian groups show relatively higher AUCs while Native Hawaiian/Other Pacific Islander performs poorly.
- Age severely affects generalization, with Above 60 achieving 64.75% AUC, the lowest among groups.
- Higher comorbidity levels (CCI Level 3–4) correspond to lower AUC (61.43% and 58.08%), though AUPR increases with comorbidity level.
- Local hospital-specific fine-tuning yields the largest proportional AUC gains (up to 11.74% for Hospital 4) and better calibration across hospitals.
- Instance-based augmented and cluster-based fine-tuning provide smaller or variable improvements compared to local fine-tuning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.