PeruMedQA: Benchmarking Large Language Models (LLMs) on Peruvian Medical Exams -- Dataset Construction and Evaluation
This paper introduces PeruMedQA, a dataset of 8,380 Peruvian medical exam questions in Spanish, and demonstrates that while the 27-billion-parameter MedGemma model achieves the highest baseline accuracy, fine-tuning the smaller 4-billion-parameter MedGemma model via LoRA significantly enhances its performance to rival much larger models, offering a cost-effective solution for medical AI in Spanish-speaking Latin American contexts.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
The Big Picture: A Medical Exam Challenge in Peru
Imagine a massive library of medical questions used in Peru to test doctors who want to become specialists (like heart surgeons or pediatricians). These questions are written in Spanish and cover everything from rare tropical diseases to common chronic conditions.
The authors of this paper wanted to see if Artificial Intelligence (AI) could pass these exams. They didn't just ask one AI; they gathered a "class" of ten different AI models (ranging from small, lightweight ones to massive, heavy-duty ones) and asked them to take the test.
The Setup: Building the "PeruMedQA" Dataset
Before the AI could take the test, the researchers had to build the test itself.
- The Source: They downloaded official exam PDFs from the Peruvian National Council of Medical Residencies (CONAREME) spanning from 2018 to 2025.
- The Cleanup: They used computer code to turn these PDFs into a digital list of 8,380 questions. They even had a human double-check the answers to ensure the computer didn't make any mistakes (it only messed up 16 out of 8,380, which is incredibly accurate).
- The Standardization: Some years had 4 answer choices (A, B, C, D), and others had 5 (A, B, C, D, E). To make it a fair race, they added a "None of the above" option to the 4-choice questions so every question had exactly 5 options.
- The Result: They created a new, open-access dataset called PeruMedQA. Think of this as a standardized "Peruvian Medical Board Exam" for AI.
The Race: Small vs. Big AI Models
The researchers ran the ten AI models through this dataset. Here is how the different "athletes" performed:
The Heavyweights (The Big Models):
- The Star Player: The medgemma-27b model (a 27-billion-parameter model) was the clear champion. It got the highest scores across almost every specialty, hitting nearly 90% accuracy in Psychiatry. It was like the Olympic gold medalist.
- The Giant: The Llama3-OpenBioLLM-70B (a 70-billion-parameter model) was huge and powerful, but it didn't always beat the slightly smaller 27-billion model. It proved that "bigger isn't always better" if the training data isn't quite right.
- The Specialist: The OctoMed-7B (a 7-billion model) was surprisingly strong. In two specific areas—Neurosurgery and Radiology—it actually beat the giant 27-billion model. It was like a sprinter who beat the marathon runner in a short dash.
The Lightweights (The Small Models):
- Most models with fewer than 10 billion parameters struggled. They often scored below 50%, which is barely better than guessing.
- The Hallucination Problem: Some of these smaller models were so confused they didn't even follow the rules. Instead of saying "A, B, C, D, or E," they would invent new letters (like "K") or write long essays instead of picking an answer. This is called "hallucinating." The meditron-7b model was the worst offender, failing to give a valid answer 66% of the time!
The Secret Weapon: Fine-Tuning
The researchers took the smallest, most resource-friendly model (medgemma-4b-it) and gave it a special training session. This process is called Fine-Tuning (specifically using a technique called LoRA).
- The Analogy: Imagine a smart student who knows general medicine but has never seen a Peruvian exam. The researchers took this student and gave them a crash course using only the past 8,000 Peruvian questions (excluding the 2025 test).
- The Result: This "trained" version of the small model (medgemma-4b-it-FT) became a superhero.
- It stopped hallucinating completely.
- It outperformed all the other small models.
- It even beat the massive 70-billion parameter model in several tests.
- It was the only model that could uniquely solve questions that no other AI could answer.
The Key Takeaways
- Context Matters: AI models trained mostly on US or English data struggle with the specific mix of diseases and medical styles found in Peru.
- Size Isn't Everything: A massive 70-billion parameter model didn't automatically win. A 27-billion model with better training data, or a tiny 4-billion model that was specifically "tuned" on local data, performed better.
- The Winner: For anyone in Peru or similar Spanish-speaking countries needing medical AI, the paper recommends using medgemma-27b-text-it for the best overall performance. However, if you need something that runs on smaller computers, the fine-tuned medgemma-4b-it is a fantastic, efficient alternative that rivals the giants.
What the Paper Doesn't Say
The paper strictly evaluates how well these AIs can answer multiple-choice questions. It does not claim that these AIs are ready to diagnose real patients, replace doctors, or be used in hospitals yet. It is a benchmark test, not a medical tool launch. The authors emphasize that before using these models in the real world, they must be tested carefully to ensure they don't make dangerous mistakes.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.