Assessing Large Language Models for Medical Question Answering in Portuguese: Open-Source Versus Closed-Source Approaches

Large language models (LLMs) show promise in medical knowledge assessment. This study benchmarked a closed-source (GPT-4o, OpenAI, San Francisco, CA) and an open-source (LLaMA 3.1 405B, Meta AI, Menlo Park, CA) LLM on 148 multiple-choice questions from the 2023 Portuguese National Residency Access Examination across five clinical domains. Using five distinct prompting strategies, models provided single-best-answer predictions. GPT-4o consistently outperformed LLaMA 3.1 by 7-11% accuracy across all prompts. Chain-of-thought prompting yielded the highest numerical accuracy for GPT-4o, though this improvement was not statistically significant over simpler prompts in post-hoc analyses, while offering minimal benefit when applied to LLaMA 3.1. Both models performed best in pediatrics and less accurately in surgery and psychiatry questions. Bias assessment indicated GPT-4o aligned well with correct answer distributions, unlike LLaMA 3.1, which showed prompt-dependent skew. Closed-source models currently demonstrate higher accuracy on Portuguese medical questions, likely due to extensive training. However, open-source models remain valuable for data control, though domain-focused fine-tuning may be needed for optimal performance in high-stakes applications.

Authors

Institutions

Publication Details

Journal
Cureus
Published
2025-05-15
DOI
https://doi.org/10.7759/cureus.84165
Citations
1
Primary Topic
Artificial Intelligence in Healthcare and Education
Type
article
Field-Weighted Citation Impact
0.65
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Assessing Large Language Models for Medical Question Answering in Portuguese: Open-Source Versus Closed-Source Approaches

João Abrantes
1 citations
Cureus
Artificial Intelligence in Healthcare and Education
0.65
article

Assessing Large Language Models for Medical Question Answering in Portuguese: Open-Source Versus Closed-Source Approaches

João Abrantes
article en
1 citations

Abstract

Large language models (LLMs) show promise in medical knowledge assessment. This study benchmarked a closed-source (GPT-4o, OpenAI, San Francisco, CA) and an open-source (LLaMA 3.1 405B, Meta AI, Menlo Park, CA) LLM on 148 multiple-choice questions from the 2023 Portuguese National Residency Access Examination across five clinical domains. Using five distinct prompting strategies, models provided single-best-answer predictions. GPT-4o consistently outperformed LLaMA 3.1 by 7-11% accuracy across all prompts. Chain-of-thought prompting yielded the highest numerical accuracy for GPT-4o, though this improvement was not statistically significant over simpler prompts in post-hoc analyses, while offering minimal benefit when applied to LLaMA 3.1. Both models performed best in pediatrics and less accurately in surgery and psychiatry questions. Bias assessment indicated GPT-4o aligned well with correct answer distributions, unlike LLaMA 3.1, which showed prompt-dependent skew. Closed-source models currently demonstrate higher accuracy on Portuguese medical questions, likely due to extensive training. However, open-source models remain valuable for data control, though domain-focused fine-tuning may be needed for optimal performance in high-stakes applications.

CureusVol. 17(5)
University of Trás-os-Montes and Alto Douro (PT), Artificial Intelligence in Medicine (Canada) (CA)
Quality Education
Openalex Percentile: Top 25%
Artificial Intelligence in Healthcare and Education
0.65
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Assessing Large Language Models for Medical Question Answering in Portuguese: Open-Source Versus Closed-Source Approaches — João Abrantes · Cureus (2025) | TGRS Research Map | TGRS