Manuscript Offprint

arXiv:2610.31586

Would an LLM Match into a Residency? Uncertainty, Reasoning and Image Use of Open Language Models on the Spanish MIR Examination

Miguel Fernandez-de-Retana, Unai Zulaika, Ruben Sanchez-Corcuera, Aritz Bilbao-Jayo, Aitor Almeida

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Miguel Fernandez-de-Retana i◯a†\textcircled{i}a^{\dagger}, Unai Zulaika i◯b\textcircled{i}b, Rubén Sánchez-Corcuera i◯c\textcircled{i}c, Aritz Bilbao-Jayo i◯d\textcircled{i}d and Aitor Almeida i◯e\textcircled{i}e

Faculty of Engineering, University of Deusto (Bilbao, Spain)

†^{\dagger}Corresponding author: m.fernandezderetana@deusto.es

Keywords: Clinical Reasoning, Large Language Models, Medical Question Answering, Open-Weight Models, Selective Prediction, Uncertainty Quantification, Vision-Language Models.

Abstract: Accuracy on medical examinations is common evidence offered for the clinical use of language models, yet a health system that intends to run an open model on its own hardware needs to know considerably more: whether the model recognizes when it is likely to be wrong, whether medical fine-tuning improves this ability, whether its correct answers rest on sound clinical reasoning, or whether it actually uses the images it is given. We examine these questions for four open models of 8 to 27 billion parameters on the Spanish MIR residency examination, scoring 1,552 questions from eight editions under the exam's own rules. Answering every question, the three larger models would rank among roughly the first 600 to 3,000 candidates, with 41 to 43 specialties still open to them. Abstention, however, never pays, because even their least confident answers are right more often than the 25% break-even. Medical fine-tuning reduced overconfidence at the cost of accuracy, without improving how well confidence separates right from wrong answers. Moreover, 13–38% of correct answers rejected a distractor for a clinically unsound reason that confidence did not reflect, and removing or swapping the provided contextual images left accuracy unchanged.

1 INTRODUCTION

Large language models (LLMs) now pass medical licensing examinations, often by a wide margin (Kung et al., 2023; Singhal et al., 2023; Nori et al., 2023; Kasai et al., 2023), and the Spanish residency examination is no exception (Guillen-Grima et al., 2023). Most of this evidence, however, comes from large proprietary models accessed through closed APIs, whose weights are not available and whose prompting, decoding or training data remain outside the user's control. A hospital that cannot send patient data beyond its own infrastructure must thus instead turn to open models that can run on its own hardware, which also gives it the ability to inspect, control and audit them (Riedemann et al., 2024; Thirunavukarasu et al., 2023). At the scale that fits on a single workstation GPU of reasonable cost and memory, i.e., models of a few tens of billions of parameters, accuracy on medical examinations is far from a solved problem, and the question is whether the performance of these models is good enough to support clinical decision-making or education purposes.

Yet, a headline accuracy figure answers none of the questions that a health system would need to ask before deploying such a model for clinical decision support or medical education (Hager et al., 2024). It says nothing about whether the model knows when it is wrong, whether medical fine-tuning improves that self-knowledge or merely changes accuracy, whether a correct answer is reached through reasoning that a physician would consider clinically sound, or whether the model actually looks at the image when a case comes with one. A model can thus be confidently wrong, or right for the wrong reasons, without either showing in its score.

The Spanish Médico Interno Residente (MIR) examination makes it possible to address all four questions under realistic conditions. Because it penalizes wrong answers, a candidate's score depends on when they choose to answer or abstain; because it allocates training locations and specialties by rank, a

a https://orcid.org/0009-0002-0883-1303

b https://orcid.org/0000-0002-7366-9579

c https://orcid.org/0000-0002-6361-0901

d https://orcid.org/0000-0001-7743-6652

e https://orcid.org/0000-0002-1585-4717 score translates directly into a specialty and hospital where different candidates would be placed under various degrees of competitiveness; and because physicians publish per-option commentaries on many of its questions, and about one question in eight includes a clinical image, it also lends itself to an analysis of reasoning and image use. We evaluate four open models, namely Qwen3-8B, Qwen3-14B, Gemma-3-27B and MedGemma-27B, the last two of which share a base model and differ only in medical tuning, and address the following research questions:

RQ1. Scored like a real candidate, where does each model land in the national ranking?

RQ2. Does medical fine-tuning improve a model's judgement of its own uncertainty, or only its accuracy/practical performance?

RQ3. When a model gets the answer right, does it reject the wrong options for reasons that a physician would consider clinically sound?

RQ4. Do vision language models actually use the clinical images they are given, or do they answer instead from the text alone?

Our results show that a score good enough to win a competitive residency hides substantial weaknesses. The three larger models would rank among the first few thousand candidates and could choose almost any specialty, yet none of the four can profit from the exam's penalty by abstaining, since even their least confident answers are right more often than the 25% break-even. Medical tuning makes a model less overconfident but also less accurate, and no better at telling its right answers from wrong ones. Between 13 and 38% of correct answers dismiss at least one wrong option for a clinically unsound reason, which the model's confidence does not reveal, and withholding or swapping the clinical image leaves accuracy unchanged.

In summary, our contributions are: (i) a corpus of 2,595 questions extracted from the last twelve official MIR exams, from 2014 to 2025, with answer keys, physician commentary, clinical plates and the published score-to-rank data of the 2023 and 2024 calls; (ii) an evaluation under the exam's own scoring and allocation rules of four open models of 8 to 27 billion parameters, with and without medical tuning; (iii) a controlled comparison of the effect of medical tuning on calibration, with an exam sat after the model training cutoff as a contamination control; and (iv) evidence on model reasoning and image use in questions with physician commentary and clinical plates.

References (39)

  • MedExpQA: Multilingual benchmarking of large language models for medical question answering
  • Verification of forecasts expressed in terms of probability
  • MIR 2024: Con qué nota media en el examen se escogió cada especialidad
  • MIR 2025: Cuántas respuestas netas y número de orden medio hubo que tener para entrar en cada especialidad
  • HEAD-QA v2: Expanding a healthcare benchmark for reasoning
  • An Introduction to the Bootstrap
  • Selective classification for deep neural networks
  • Gemma 3 Technical Report
  • Explanatory argument extraction of correct answers in resident medical exams
  • The Llama 3 Herd of Models
  • Evaluating the efficacy of ChatGPT in navigating the Spanish medical residency entrance examination (MIR): Promising horizons for AI in clinical medicine
  • On calibration of modern neural networks
  • Evaluation and mitigation of the limitations of large language models in clinical decision-making
  • A baseline for detecting misclassified and out-of-distribution examples in neural networks
  • A simple sequentially rejective multiple test procedure
  • What disease does this patient have? A large-scale open domain question answering dataset from medical exams
  • Hidden flaws behind expert-level accuracy of multimodal GPT-4 vision in medicine
  • Language Models (Mostly) Know What They Know
  • Why language models hallucinate (opens arXiv in a new tab)
  • Evaluating GPT-4 and ChatGPT on Japanese medical licensing examinations (opens arXiv in a new tab)
  • Performance of ChatGPT on USMLE: Potential for AI-assisted medical education using large language models
  • Harnessing ChatGPT and GPT-4 for evaluating the rheumatology questions of the Spanish access exam to specialized medical training
  • Note on the sampling error of the difference between correlated proportions or percentages
  • Obtaining well calibrated probabilities using Bayesian binning
  • Capabilities of GPT-4 on Medical Challenge Problems
  • Qwen3 Technical Report
  • The path forward for large language models in medicine is open
  • To the cutoff
  • NLP evaluation in trouble: On the need to measure LLM data contamination for each benchmark
  • MedGemma technical report (opens arXiv in a new tab)
  • Large language models encode clinical knowledge
  • Toward expert-level medical question answering with large language models
  • Large language models in medicine
  • Language models don’t always say what they think: Unfaithful explanations in chain-of-thought prompting
  • HEAD-QA: A healthcare dataset for complex reasoning
  • Probable inference, the law of succession, and statistical inference
  • Can LLMs express their uncertainty? An empirical evaluation of confidence elicitation in LLMs
  • Worse than random? An embarrassingly simple probing evaluation of large multimodal models in medical VQA. In Findings of the Association for Computational Linguistics: ACL 2025
  • Judging LLM-as-a-judge with MT-Bench and Chatbot Arena