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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Myles, Craig, Schrempf, Patrick, Harris-Birtill, David
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918357200011264
author Myles, Craig
Schrempf, Patrick
Harris-Birtill, David
author_facet Myles, Craig
Schrempf, Patrick
Harris-Birtill, David
contents 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
format Preprint
id arxiv_https___arxiv_org_abs_2602_22483
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Importance of Prompt Optimisation for Error Detection in Medical Notes Using Language Models
Myles, Craig
Schrempf, Patrick
Harris-Birtill, David
Computation and Language
Artificial Intelligence
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
title Importance of Prompt Optimisation for Error Detection in Medical Notes Using Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2602.22483