Preprint
Large Language Models

Optimization of hepatological clinical guidelines interpretation by large language models: a retrieval augmented generation-based framework

Simone Kresevic(University of Trieste), Mauro Giuffrè(Yale Cancer Center), Miloš Ajčević(University of Trieste), Agostino Accardo(University of Trieste), Lory Saveria Crocè(University of Trieste), Dennis Shung(Yale University)
April 23, 2024npj Digital Medicine187 citations

187

Citations

9

Influential Citations

npj Digital Medicine

Venue

2024

Year

Abstract

Large language models (LLMs) can potentially transform healthcare, particularly in providing the right information to the right provider at the right time in the hospital workflow. This study investigates the integration of LLMs into healthcare, specifically focusing on improving clinical decision support systems (CDSSs) through accurate interpretation of medical guidelines for chronic Hepatitis C Virus infection management. Utilizing OpenAI's GPT-4 Turbo model, we developed a customized LLM framework that incorporates retrieval augmented generation (RAG) and prompt engineering. Our framework involved guideline conversion into the best-structured format that can be efficiently processed by LLMs to provide the most accurate output. An ablation study was conducted to evaluate the impact of different formatting and learning strategies on the LLM's answer generation accuracy. The baseline GPT-4 Turbo model's performance was compared against five experimental setups with increasing levels of complexity: inclusion of in-context guidelines, guideline reformatting, and implementation of few-shot learning. Our primary outcome was the qualitative assessment of accuracy based on expert review, while secondary outcomes included the quantitative measurement of similarity of LLM-generated responses to expert-provided answers using text-similarity scores. The results showed a significant improvement in accuracy from 43 to 99% (p < 0.001), when guidelines were provided as context in a coherent corpus of text and non-text sources were converted into text. In addition, few-shot learning did not seem to improve overall accuracy. The study highlights that structured guideline reformatting and advanced prompt engineering (data quality vs. data quantity) can enhance the efficacy of LLM integrations to CDSSs for guideline delivery.

Analysis

Why This Paper Matters

This paper addresses a critical bottleneck in deploying large language models (LLMs) in healthcare: the accurate interpretation of complex, multi-source clinical guidelines. While LLMs like GPT-4 show promise for clinical decision support, their tendency to hallucinate or misinterpret nuanced medical protocols has hindered real-world adoption. The authors tackle this by combining retrieval augmented generation (RAG) with meticulous prompt engineering, achieving a dramatic accuracy leap from 43% to 99% for chronic Hepatitis C management guidelines.

The significance lies in the systematic ablation study that isolates the impact of different data formatting and learning strategies. The finding that structured context provision—converting non-text sources (e.g., tables, algorithms) into coherent text—outperforms few-shot learning challenges the prevailing assumption that more examples always improve LLM performance. This has immediate practical implications: healthcare AI developers should prioritize data quality and formatting over simply adding more examples.

Technical Contributions

  • RAG-based framework: Integrates retrieval of relevant guideline sections with GPT-4 Turbo generation, ensuring the model accesses authoritative context.
  • Structured guideline reformatting: Converts heterogeneous guideline sources (text, tables, flowcharts) into a unified, coherent text corpus optimized for LLM processing.
  • Ablation study design: Compares five experimental setups: baseline GPT-4 Turbo, in-context guidelines, guideline reformatting, and few-shot learning variants.
  • Expert-reviewed accuracy assessment: Primary outcome uses qualitative expert review; secondary outcome uses text-similarity scores for quantitative comparison.
  • Statistical rigor: Reports p-values for accuracy improvements, confirming significance.

Results

  • Baseline GPT-4 Turbo accuracy: 43%.
  • Best-performing setup (structured context with non-text conversion): 99% accuracy (p < 0.001).
  • Few-shot learning did not improve accuracy beyond the structured context approach.
  • Text-similarity scores corroborated expert assessments.
  • The study highlights that data quality (formatting, coherence) matters more than data quantity (few-shot examples) for guideline interpretation.

Significance

This work provides a blueprint for integrating LLMs into clinical decision support systems (CDSSs) with high reliability. By demonstrating that careful data preprocessing and prompt engineering can nearly eliminate errors in guideline interpretation, it lowers a key barrier to LLM adoption in healthcare. The methodology is transferable to other medical domains where guidelines are available in structured or semi-structured formats. For AI practitioners, the key takeaway is that investing in data curation and formatting can yield outsized accuracy gains, potentially reducing the need for complex fine-tuning or large few-shot datasets. This paper also underscores the importance of domain-specific evaluation (expert review) over generic metrics like BLEU or ROUGE for clinical applications.