Calibration and uncertainty improve trust in medical AI answers
Calibration and Conformal Prediction for Medical Question Answering in Arabic and English: Evidence from Two Non-Parallel Benchmarks
Machine Learning
Summary
Medical exam questions are used to test smart language models, but simply knowing if they're right or wrong doesn't tell us how much to trust their answers. The authors studied how two open-source AI models performed with English and Arabic medical questions and found these models often gave answers with too much confidence. They used methods to adjust this confidence to better show uncertainty, so users can decide when to trust the answers. They also identified that when the model feels more confident, it tends to be more accurate.
What this means in practice
- •For medical ai developers: Use temperature scaling and conformal prediction to improve the trustworthiness of AI-generated medical question answers in English and Arabic.
- •For healthcare software engineers: Incorporate uncertainty estimates into medical AI systems to reduce diagnostic errors by focusing on the most confident AI answers.
Authors
Mariya
Abstract
Large language models (LLMs) are increasingly tested on medical exam questions, but accuracy alone does not show when an answer can be trusted. I study the calibration and uncertainty of two open-weight models, Qwen2.5-7B-Instruct and Jais-adapted-7B-chat (both run in 4-bit precision), on 2,816 English multiple-choice questions from MedMCQA and 4,927 Arabic multiple-choice questions from MedAraBench. Accuracy was 0.561 (English) and 0.430 (Arabic) for Qwen, and 0.369 and 0.308 for Jais. Raw option probabilities were overconfident in all four settings (expected calibration error 0.242 to 0.486), and a single temperature parameter removed 82% to 93% of that error. Split conformal prediction reached its nominal coverage in all 24 settings I tested (within 0.006), but the sets were large when accuracy was low: at 90% coverage, temperature-scaled sets contained on average 63% (Qwen, English), 78% (Qwen, Arabic), 86% (Jais, English) and 89% (Jais, Arabic) of the options. The margin between the top two option probabilities separated correct from incorrect answers best for Qwen on English (AUROC 0.734) and worst for Jais on Arabic (0.579). Answering only the 20% most confident questions lowered Qwen's English error from 0.439 to 0.098. Jais showed a strong prior for option C (49% of English and 60% of Arabic predictions). Scoring Latin letters only cut the Arabic share to 29% but left accuracy, raw ECE and AUROC nearly unchanged. Because the two benchmarks differ in subject, level and number of options, I do not attribute differences between languages to language itself. Code is available at https://github.com/Mariyaaleem/arabic-english-medqa-uncertainty.