TL;DR
This paper explores using Large Language Models (LLMs) to automatically assess clinician adherence to heart failure medication guidelines. They found that while LLMs perform poorly out-of-the-box, task-specific fine-tuning dramatically improves performance, with general-domain LLMs showing comparable or even better results than medical-specific ones after fine-tuning.
What Problem Does This Paper Address?
Ensuring that healthcare professionals adhere to clinical guidelines, such as those for heart failure management, is crucial for optimal patient care. However, manually reviewing patient records to assess adherence to complex medication protocols is time-consuming and prone to errors. This study investigates whether Large Language Models (LLMs), a type of AI adept at understanding and generating text, can automate this assessment process, specifically focusing on the European Society of Cardiology (ESC) heart failure guidelines. The challenge lies in LLMs' inherent lack of specific medical knowledge and guideline understanding, necessitating methods to imbue them with this domain expertise.
Methods
The researchers employed a comparative approach to evaluate various open-source LLMs. They tested several general-domain LLMs (Llama-3-8B-Instruct, Mistral-7B-Instruct-v0.2, GLM-4-9B-Chat) and medical-specific LLMs (Med42-v2-8B, Llama-3-8B-UltraMedical, OpenBioLLM-8B). These models were evaluated under different prompting strategies: zero-shot (no examples), few-shot (a few examples), and Chain-of-Thought (CoT) prompting (encouraging step-by-step reasoning).
A key methodological innovation was the use of task-specific fine-tuning using a synthesized dataset derived from electronic health records (EHRs). This fine-tuning was performed using the Monolithic Preference Optimization without Reference Model (ORPO) method, which optimizes the model's output based on preferred and disfavored generations. They also conducted a learning curve analysis to determine the optimal amount of training data needed for effective fine-tuning. Performance was measured using the macro F1 score.
Datasets
The study utilized electronic health records (EHRs) data from 1,141 hospitalized heart failure patients at the Amsterdam UMC. This data included demographics, diagnoses, medication use, and free text notes. The researchers created a "ground truth" dataset by manually labeling patient records based on adherence to ESC-HF guidelines, categorizing them into three labels:
- All recommended medications present and target doses achieved.
- All recommended medications present, but target doses not met.
- One or more recommended medications missing.
This labeled data was then used to synthesize prompts for LLM evaluation and for fine-tuning.
Key Insights and Ideas
- Fine-tuning is Paramount: The most significant finding is that LLMs, regardless of whether they are general-domain or medical-specific, perform poorly (close to random guessing) without task-specific fine-tuning. Fine-tuning is essential for achieving high performance on specialized tasks like guideline adherence assessment.
- General vs. Medical LLMs: Surprisingly, after fine-tuning, general-domain LLMs often performed as well as, or even better than, medical-specific LLMs. This suggests that the architecture and pre-training of general LLMs, when combined with targeted fine-tuning, can be highly effective for medical tasks.
- Prompting Techniques Offer Limited Gains: While techniques like Chain-of-Thought prompting and providing detailed instruction templates showed some improvement over zero-shot or few-shot prompting, these gains were modest compared to the performance boost achieved through fine-tuning.
- Data Requirements Vary: The learning curve analysis revealed that different LLMs require varying amounts of training data to reach optimal performance. Some models plateaued earlier, while others needed more data to excel.
Key Results
- Baseline Performance: Before fine-tuning, all LLMs scored macro F1 scores below 0.40, with a baseline random guessing score of 0.333.
- Post-Fine-tuning Performance: After fine-tuning, four LLMs achieved macro F1 scores of 0.90 or higher. GLM-4-9B-Chat achieved the highest score of 0.989, followed by Mistral-7B-Instruct-v0.2 (0.977) and Llama-3-8B-UltraMedical (0.936).
- Suboptimal Fine-tuned Models: Llama3-8B-Instruct and OpenBioLLM-8B, even after fine-tuning, scored lower (0.794 and 0.787, respectively) compared to the top performers.
- Learning Curve Insights: GLM-4-9B-Chat and Mistral-7B-Instruct-v0.2 reached peak performance with approximately 50% of the training data, while others required more.
Limitations and Future Work
The authors acknowledge several limitations:
- Model Size: They only evaluated LLMs with fewer than 9 billion parameters, suggesting that larger models might yield different results.
- Generalizability: The study focused on a single task and prompt structure, and the generalizability of these findings to other medical adherence tasks or different guideline sets remains uncertain.
- Reasoning vs. Pattern Matching: It's unclear whether the LLMs truly acquired clinical reasoning abilities or simply learned to reproduce patterns from the training data.
- Data Nuances: Potential misclassification due to temporal mismatches in LVEF measurements and the exclusion of clinically justified deviations from adherence labeling were noted.
Future work suggested includes investigating the impact of model size, exploring simultaneous fine-tuning on multiple tasks, assessing robustness in real-world clinical settings with varied data representation (e.g., brand names for medications), and applying LLM methods to other clinical guidelines. The authors also propose exploring Retrieval-Augmented Generation (RAG) as an alternative or complementary approach to fine-tuning.
Summary updated