Evaluating Prompt Engineering Techniques for Accuracy and Confidence Elicitation in Medical LLMs

Nariman Naderi, Zahra Atf, Peter R Lewis, Aref Mahjoub far, Seyed Amir Ahmad Safavi-Naini +1 more
5/29/2025
cs.CYcs.AIcs.CL

No official code found. Best implementation: narimannr2x/Evaluating-Prompt-Engineering-Techniques-for-Accuracy-and-Confidence-Elicitation-in-Medical-LLMs (0 stars, last commit 2025-05-22).

Abstract

This paper investigates how prompt engineering techniques impact both accuracy and confidence elicitation in Large Language Models (LLMs) applied to medical contexts. Using a stratified dataset of Persian board exam questions across multiple specialties, we evaluated five LLMs - GPT-4o, o3-mini, Llama-3.3-70b, Llama-3.1-8b, and DeepSeek-v3 - across 156 configurations. These configurations varied in temperature settings (0.3, 0.7, 1.0), prompt styles (Chain-of-Thought, Few-Shot, Emotional, Expert Mimicry), and confidence scales (1-10, 1-100). We used AUC-ROC, Brier Score, and Expected Calibration Error (ECE) to evaluate alignment between confidence and actual performance. Chain-of-Thought prompts improved accuracy but also led to overconfidence, highlighting the need for calibration. Emotional prompting further inflated confidence, risking poor decisions. Smaller models like Llama-3.1-8b underperformed across all metrics, while proprietary models showed higher accuracy but still lacked calibrated confidence. These results suggest prompt engineering must address both accuracy and uncertainty to be effective in high-stakes medical tasks.

View on arXivView PDF

Code Implementations(1)

the codes for paper "Evaluating Prompt Engineering Techniques for Accuracy and Confidence Elicitation in Medical LLMs".

00Python, Jupyter NotebookMay 22, 20251 years ago

Similar Papers

Cite this paper

@article{naderi2025evaluating,
  title  = {Evaluating Prompt Engineering Techniques for Accuracy and Confidence Elicitation in Medical LLMs},
  author = {Nariman Naderi and Zahra Atf and Peter R Lewis and Aref Mahjoub far and Seyed Amir Ahmad Safavi-Naini and Ali Soroush},
  year   = {2025},
  eprint = {2506.00072},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.00072v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.00072.svg)](https://codeofpaper.com/paper/2506.00072)

Discussion