cs.CLFeb 25, 2026

Importance of Prompt Optimisation for Error Detection in Medical Notes Using Language Models

Authors: Craig Myles, Patrick Schrempf, David Harris-Birtill

Organizations: University of St Andrews, St Andrews, United Kingdom · Canon Medical Research Europe Ltd., Edinburgh, United Kingdom

Abstract

Errors in medical text can cause delays or even result in incorrect treatment for patients. Recently, language models have shown promise in their ability to automatically detect errors in medical text, an ability that has the opportunity to significantly benefit healthcare systems. In this paper, we explore the importance of prompt optimisation for small and large language models when applied to the task of error detection. We perform rigorous experiments and analysis across frontier language models and open-source language models. We show that automatic prompt optimisation with Genetic-Pareto (GEPA) improves error detection over the baseline accuracy performance from 0.669 to 0.785 with GPT-5 and 0.578 to 0.690 with Qwen3-32B, approaching the performance of medical doctors and achieving state-of-the-art performance on the MEDEC benchmark dataset. Code available on GitHub: https://github.com/CraigMyles/clinical-note-error-detection

Figures & tables

Appendix figures & tables2 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. MedRECT: A Bilingual Medical Reasoning Benchmark for Error Correction in Clinical Texts

    Nov 1, 2025Naoto Iwase, Hiroki Okuyama, Junichiro IwasawaMultilingual Language Model EvaluationHealthcare

  2. When Chain-of-Thought Backfires: Evaluating Prompt Sensitivity in Medical Language Models

    Mar 26, 2026Binesh Sadanandan, Vahid BehzadanPrompt SensitivityLLM Prompting

  3. MedGuards: Multi-Agent System for Reliable Medical Error Detection and Correction

    Jun 24, 2026Congbo Ma, Hu Wang, Yichun Zhang +1LLM GuardrailsLLM Safety