Explanatory Argument Extraction of Correct Answers in Resident Medical Exams

Iakes Goenaga, Aitziber Atutxa, Koldo Gojenola, Maite Oronoz, Rodrigo Agerri

Abstract

In the field of Evidence-Based Medicine (EBM), the ability of an AI to provide justifications for its decisions is as critical as the accuracy of the decisions themselves. This paper introduces the first Spanish-language dataset for medical Question Answering (QA) that focuses on extracting the underlying reasoning behind correct answers. By framing the problem as an extractive task—identifying specific justifications within expert-written commentaries—the researchers demonstrate that Large Language Models (LLMs) can effectively retrieve evidence-based explanations. The study reveals that multilingual models often outperform domain-specific ones and highlights the significant impact of intermediate fine-tuning on general QA benchmarks.

Introduction

While English-language benchmarks for medical QA are abundant, resources for other languages, particularly Spanish, remain scarce. Furthermore, most existing datasets focus on "generative" QA, where models synthesize their own explanations. Generative tasks are notoriously difficult to evaluate objectively without expensive manual review by medical professionals. This research addresses these gaps by creating a Spanish benchmark based on Resident Medical Exams (MIR) and shifting the focus to "extractive" QA. In this framework, the model must locate the correct justification within a gold-standard text authored by human experts.

The Extractive QA Task

The authors treated the problem as a SQuAD-style extractive task. Given a clinical case (C), a question (Q), a set of possible answers (P), and a doctor-written explanation (E), the model is tasked with identifying the specific text span (A) that justifies the correct answer.

Example of a document from the CasiMedicos dataset showing the Case, Question, Options, Explanation, and extracted Answer.

Datasets

The study introduced two primary data sources derived from Spanish medical exam preparation materials:

  1. CasiMedicos: A community-driven project featuring spontaneous, less structured explanations.
  2. MIR Asturias: A highly structured dataset from a private academy where explanations often follow predictable linguistic patterns (e.g., "Answer 1 is correct because...").
Statistical overview of the CasiMedicos and MIR Asturias datasets, including document counts and average word lengths.

Due to copyright restrictions, only the CasiMedicos dataset is being made publicly available for the research community.

Methodology

The researchers evaluated 12 different Pre-trained Language Models (PLMs), categorized by domain (General vs. Medical) and language (Monolingual Spanish vs. Multilingual). A key component of the methodology was STILT (Supplementary Training on Intermediate Labeled-data Tasks). Before processing medical data, models were fine-tuned on general Spanish QA datasets like SQuAD-es and SQAC. This "warm-up" phase helped models learn the mechanics of extraction before encountering complex medical terminology.

Key Results and Insights

  • The Multilingual Surprise: XLM-R-large, a massive multilingual model, frequently outperformed models specifically trained on Spanish medical corpora. This suggests that the scale and cross-lingual knowledge of larger models can compensate for a lack of domain-specific pre-training.
  • Top Performers: XLM-R-large achieved the best overall result on the CasiMedicos dataset (F1-score of 74.47), while the medical-domain model eriBERTa led on the MIR Asturias dataset (F1-score of 85.14).
  • Contextual Importance: Including the "Clinical Case" (patient symptoms and history) as part of the input consistently improved the model's ability to locate the correct explanation.
  • Complexity of Argumentation: The task is significantly more challenging than standard QA. While the average answer in SQuAD is approximately 3 words, the explanatory spans in this dataset averaged 32 words, requiring models to identify long, complex argumentative structures.

Limitations and Future Work

Error analysis revealed that models sometimes relied on "spurious clues" or linguistic pointers (like explicit mentions of answer numbers) rather than deep medical reasoning. Future work will focus on using unstructured versions of these datasets to force deeper semantic understanding. Additionally, the authors view this extractive framework as a vital stepping stone toward generative models that can be automatically and objectively evaluated against these extracted gold-standard justifications.

Summary updated

BibTeX
@article{goenaga2024explanatory,
  author = {Iakes Goenaga and Aitziber Atutxa and Koldo Gojenola and Maite Oronoz and Rodrigo Agerri},
  title = {{Explanatory Argument Extraction of Correct Answers in Resident Medical Exams}},
  journal = {Artif. Intell. Medicine},
  year = {2024},
  doi = {10.1016/j.artmed.2024.102985},
}
Figure