A Systematic Analysis of Large Language Models with RAG-enabled Dynamic Prompting for Medical Error Detection and Correction. Ahmed, F., Jerome, J. A., Yetisgen, M., & Uzuner, Ö. arXiv preprint arXiv:2511.19858, 2025.
A Systematic Analysis of Large Language Models with RAG-enabled Dynamic Prompting for Medical Error Detection and Correction [link]Paper  abstract   bibtex   6 downloads  
Objective: Clinical documentation is prone to factual, diagnostic, and management errors that can compromise patient safety. Large language models (LLMs) offer potential for automatic error detection and correction, but their behavior under different prompting strategies remains poorly understood. This study systematically analyzes the strengths and weaknesses of zero-shot prompting, static prompting with random exemplars (SPR), and retrieval-augmented generation (RAG)- enabled dynamic prompting (RDP), to address medical error detection and correction through three subtasks: error flag detection, error sentence detection, and error correction. Methods: Using the MEDEC dataset, we evaluated nine instruction-tuned LLMs—including GPT, Claude, Gemini and OpenAI’s o-series variants—across the three subtasks. This diverse set of models, spanning compact and frontier-scale architectures, allowed us to assess how model size, architecture, and training strategies influence performance in medical error detection and correction. Performance on error flag and sentence detection was measured with Accuracy and Recall, FalsePositive Rate (FPR) measured performance on error flag detection, and Aggregate Score (AggScore) of ROUGE-1, BLEURT, and BERTScore measured performance on error correction. We analyzed LLM outputs, examining representative cases, failure patterns, and LLM–clinician differences to explain quantitative trends. Results: Zero-shot prompting exhibited low recall in error flag detection and error sentence detection, often missing atypical or abbreviation-heavy errors. SPR improved recall in both detection tasks but increased FPR. Across all nine LLMs, these trends remained consistent—RDP that retrieves semantically relevant exemplars during inference, reduced FPR by about 15% in error flag detection, increased recall by 5-10% in error sentence detection, and improved the contextual and semantic accuracy of error correction. Conclusion: Our systematic analysis of nine LLMs with three prompting strategies highlights limitations of zero-shot and SPR for medical error detection and correction. RDP outperforms zeroshot and SPR across all LLMs, grounding predictions in relevant exemplars for effective medical error detection and correction.
@article{ahmed2025systematic,
title={A Systematic Analysis of Large Language Models with RAG-enabled Dynamic Prompting for Medical Error Detection and Correction},
author={Ahmed, Farzad and Jerome, Joniel Augustine and Yetisgen, Meliha and Uzuner, {\"O}zlem},
journal={arXiv preprint arXiv:2511.19858},
year={2025},
abstract="Objective: Clinical documentation is prone to factual, diagnostic, and management errors that
can compromise patient safety. Large language models (LLMs) offer potential for automatic error
detection and correction, but their behavior under different prompting strategies remains poorly
understood. This study systematically analyzes the strengths and weaknesses of zero-shot prompting, static prompting with random exemplars (SPR), and retrieval-augmented generation (RAG)-
enabled dynamic prompting (RDP), to address medical error detection and correction through three
subtasks: error flag detection, error sentence detection, and error correction.

Methods: Using the MEDEC dataset, we evaluated nine instruction-tuned LLMs—including
GPT, Claude, Gemini and OpenAI’s o-series variants—across the three subtasks. This diverse set
of models, spanning compact and frontier-scale architectures, allowed us to assess how model size,
architecture, and training strategies influence performance in medical error detection and correction.
Performance on error flag and sentence detection was measured with Accuracy and Recall, FalsePositive Rate (FPR) measured performance on error flag detection, and Aggregate Score (AggScore)
of ROUGE-1, BLEURT, and BERTScore measured performance on error correction. We analyzed
LLM outputs, examining representative cases, failure patterns, and LLM–clinician differences to
explain quantitative trends.

Results: Zero-shot prompting exhibited low recall in error flag detection and error sentence
detection, often missing atypical or abbreviation-heavy errors. SPR improved recall in both detection tasks but increased FPR. Across all nine LLMs, these trends remained consistent—RDP that
retrieves semantically relevant exemplars during inference, reduced FPR by about 15% in error flag
detection, increased recall by 5-10% in error sentence detection, and improved the contextual and
semantic accuracy of error correction.

Conclusion: Our systematic analysis of nine LLMs with three prompting strategies highlights
limitations of zero-shot and SPR for medical error detection and correction. RDP outperforms zeroshot and SPR across all LLMs, grounding predictions in relevant exemplars for effective medical
error detection and correction.",
url = {Paper=https://arxiv.org/pdf/2511.19858}
}

Downloads: 6