Towards Adapting Open-Source Large Language Models for Expert-Level Clinical Note Generation

Hanyin Wang, Chufan Gao, Bolun Liu, Qiping Xu, Guleid Hussein, Mohamad El Labban, Kingsley Iheasirim, Hariprasad Reddy Korsapati, Chuck Outcalt, Jimeng Sun

Introduction

Clinical documentation is a significant burden in healthcare, contributing heavily to physician burnout. While proprietary Large Language Models (LLMs) like GPT-4 demonstrate capabilities in summarizing clinical encounters, their adoption is hindered by HIPAA privacy concerns, high operational costs, and a lack of transparency. There is a critical need for open-source alternatives that can be hosted locally. However, existing medical-specific open-source models often prioritize medical knowledge (e.g., exam performance) over the structural and logical requirements of clinical note generation. Furthermore, inconsistent writing styles among physicians make establishing a "gold standard" benchmark challenging.

Methodology

To address these challenges, researchers from the Mayo Clinic and UIUC developed LLaMA-Clinic, a specialized adaptation of LLaMA-2 13B. The adaptation follows a rigorous five-step pipeline designed to transition the model from a general-purpose assistant to a clinical expert.

The five-step adaptation pipeline for LLaMA-Clinic, including continued pretraining, SFT, DistillDirect, RLHF, and expert evaluation.
  1. Continued Pretraining (CP): The model was exposed to 1.2 billion tokens of clinical text from the MIMIC-IV dataset to internalize medical terminology.
  2. Supervised Fine-Tuning (SFT): Training on doctor-patient dialogues paired with notes standardized into a "best practice" format to ensure structural consistency.
  3. DistillDirect (RLAIF): A novel reinforcement learning strategy where the model learns from its own sampled outputs compared against a teacher model (Gemini 1.0 Pro) in real-time.
  4. Reinforcement Learning from Human Feedback (RLHF): Final polishing using preferences from licensed internal medicine physicians.
  5. Blinded Expert Evaluation: A rigorous assessment by physicians to validate model performance against human and proprietary benchmarks.

Technical Innovation: DistillDirect

The primary technical contribution of this work is DistillDirect. Unlike standard "Distilled DPO," which typically uses a static, off-policy dataset, DistillDirect employs an on-policy approach. By sampling a "rejected" response from the current model and obtaining a "preferred" response from a teacher model (Gemini Pro) for the same prompt, the model effectively learns to correct its specific errors and better aligns with the target distribution.

Comparison of Distilled DPO, DistillDirect, and RLHF training strategies.

Results and Key Insights

LLaMA-Clinic achieved performance levels comparable to human physicians and proprietary models. In a blinded reader study, 92.8% of evaluations rated the model's notes as "acceptable" or higher across accuracy, completeness, and readiness. Notably, in the complex "Assessment and Plan" section, LLaMA-Clinic matched the real-world readiness scores of human-authored notes.

Beyond quality, the model offers significant practical advantages. LLaMA-Clinic provides a 3.75-fold reduction in inference costs compared to Gemini 1.0 Pro, making it a viable candidate for large-scale deployment in hospital systems. The study also highlighted that while continued pretraining provides a foundation, the structural logic of clinical notes is primarily acquired during the SFT and reinforcement learning stages.

Discussion and Limitations

Despite its success, several limitations remain. The scarcity of high-quality, publicly available clinical dialogues (e.g., the small size of ACI-BENCH) limits training scale. Additionally, the model is dependent on verbalized information; findings from physical exams not mentioned in the dialogue cannot be captured. Future work will focus on scaling training data and expanding the model's capabilities to other complex clinical tasks, such as full hospital discharge summaries.

Summary updated

BibTeX
@inproceedings{wang2025towards,
  author = {Hanyin Wang and Chufan Gao and Bolun Liu and Qiping Xu and Guleid Hussein and Mohamad El Labban and Kingsley Iheasirim and Hariprasad Reddy Korsapati and Chuck Outcalt and Jimeng Sun},
  title = {{Towards Adapting Open-Source Large Language Models for Expert-Level Clinical Note Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure