astral-fate/AraHealthQA-2025-MedArabiQA

Python

0

184 commits

updated Aug 8, 2025

See the code

README

MedLingua: Zero- and Few-Shot Prompting for Arabic Medical QA

MedLingua Project Banner

Fatimah Mohamed Emad Elden, Mumina Abukar

Cairo University & The University of South Wales

Paper Code License


🏆 Overview

This repository contains the code and resources for the MedLingua team's submission to the MedArabiQ2025 Shared Task (Track 2, Sub-Task 1: Multiple Choice Question Answering). Our approach centered on evaluating the zero-shot and few-shot capabilities of various Large Language Models (LLMs) on Arabic medical questions, as fine-tuning was not permitted.

We systematically tested a range of models, from general-purpose state-of-the-art LLMs like Google's Gemini 2.5 Pro to specialized medical models such as BiMediX2 and MedGemma. Our findings reveal that advanced, general-domain models significantly outperform specialized medical LLMs that are not optimized for Arabic. Our best-performing system, using Gemini 2.5 Pro, achieved an accuracy of 74% on the blind test set, securing the third-highest accuracy in the competition.


🔑 Key Findings

Our key contributions are as follows:

  • State-of-the-Art Prompting: We demonstrate that modern general-purpose LLMs can achieve high performance on Arabic medical QA using only zero-shot and few-shot prompting techniques, without any task-specific fine-tuning.
  • Model Performance Gap: Our core finding is the pronounced performance gap between large, multilingual general-purpose models (like Gemini 2.5 Pro) and available specialized medical LLMs. The former's superior understanding of Arabic proved to be a decisive advantage.
  • Robust System Architecture: We developed a comprehensive pipeline featuring dynamic prompt engineering (including Chain-of-Thought) and a hierarchical, rule-based response parser to ensure accurate extraction of answers.
  • Competitive Results: Our system ranked 3rd in the competition, highlighting the effectiveness of leveraging the in-context learning abilities of modern LLMs in a zero-resource fine-tuning scenario.

⚙️ Methodology & System Architecture

Our methodology was built entirely on in-context learning. The process follows five key stages: Input Data, Prompt Engineering, LLM Inference, Hierarchical Response Parsing, and Final Output. A key component of our strategy was the use of Chain-of-Thought (CoT) prompting, where we instructed models to perform step-by-step reasoning before providing a final answer.

The high-level architecture of our system is illustrated below:

System Architecture Diagram

A high-level overview of our data processing pipeline, from input data to the final parsed output.


📊 Results

Our experiments consistently showed that large, general-purpose LLMs outperformed specialized medical models. Our final submission, using Gemini 2.5 Pro, achieved 75% accuracy on the blind test set.

Blind Test Set Performance

ModelTest Accuracy
Gemini 2.5 Pro754
colosseum 355b51%
palmyra-med-70b-32k49%
OpenBioLLM 8B49%
qwen3-235b-a22b41%
MedGemma38%
BioMistral37%
BiMediX237%
deepseek-r1-distill-llama-70b22%

Development Set Performance (Top Models)

Model's NameFill in the BlankMultiple ChoiceMultiple Choice w/ Bias
qwen/qwen2-32b83%69%67%
google/medgemma-27b-it76%55%46%
colosseum 355b75%50%45%

📜 License & Citation

This project is released under the MIT License. For more details, please refer to the LICENSE file.

⚠️ Warning! This work is intended for research purposes. It is not ready for clinical or commercial use. The outputs should not be used for medical diagnoses or treatment decisions without verification by a qualified healthcare professional.

If you use our work in your research, please cite our paper:

@inproceedings{elden2025medlingua,
      title={{MedLingua at MedArabiQ2025: Zero- and Few-Shot Prompting of Large Language Models for Arabic Medical QA}},
      author={Elden, Fatimah Mohamed Emad and Abukar, Mumina},
      year={2025},
      booktitle={Proceedings of the MedArabiQ2025 Shared Task},
      eprint={25XX.XXXXX},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

astral-fate/AraHealthQA-2025-MedArabiQA

Python

0

184 commits

updated Aug 8, 2025

See the code

README

MedLingua: Zero- and Few-Shot Prompting for Arabic Medical QA

MedLingua Project Banner

Fatimah Mohamed Emad Elden, Mumina Abukar

Cairo University & The University of South Wales

Paper Code License


🏆 Overview

This repository contains the code and resources for the MedLingua team's submission to the MedArabiQ2025 Shared Task (Track 2, Sub-Task 1: Multiple Choice Question Answering). Our approach centered on evaluating the zero-shot and few-shot capabilities of various Large Language Models (LLMs) on Arabic medical questions, as fine-tuning was not permitted.

We systematically tested a range of models, from general-purpose state-of-the-art LLMs like Google's Gemini 2.5 Pro to specialized medical models such as BiMediX2 and MedGemma. Our findings reveal that advanced, general-domain models significantly outperform specialized medical LLMs that are not optimized for Arabic. Our best-performing system, using Gemini 2.5 Pro, achieved an accuracy of 74% on the blind test set, securing the third-highest accuracy in the competition.


🔑 Key Findings

Our key contributions are as follows:

  • State-of-the-Art Prompting: We demonstrate that modern general-purpose LLMs can achieve high performance on Arabic medical QA using only zero-shot and few-shot prompting techniques, without any task-specific fine-tuning.
  • Model Performance Gap: Our core finding is the pronounced performance gap between large, multilingual general-purpose models (like Gemini 2.5 Pro) and available specialized medical LLMs. The former's superior understanding of Arabic proved to be a decisive advantage.
  • Robust System Architecture: We developed a comprehensive pipeline featuring dynamic prompt engineering (including Chain-of-Thought) and a hierarchical, rule-based response parser to ensure accurate extraction of answers.
  • Competitive Results: Our system ranked 3rd in the competition, highlighting the effectiveness of leveraging the in-context learning abilities of modern LLMs in a zero-resource fine-tuning scenario.

⚙️ Methodology & System Architecture

Our methodology was built entirely on in-context learning. The process follows five key stages: Input Data, Prompt Engineering, LLM Inference, Hierarchical Response Parsing, and Final Output. A key component of our strategy was the use of Chain-of-Thought (CoT) prompting, where we instructed models to perform step-by-step reasoning before providing a final answer.

The high-level architecture of our system is illustrated below:

System Architecture Diagram

A high-level overview of our data processing pipeline, from input data to the final parsed output.


📊 Results

Our experiments consistently showed that large, general-purpose LLMs outperformed specialized medical models. Our final submission, using Gemini 2.5 Pro, achieved 75% accuracy on the blind test set.

Blind Test Set Performance

ModelTest Accuracy
Gemini 2.5 Pro754
colosseum 355b51%
palmyra-med-70b-32k49%
OpenBioLLM 8B49%
qwen3-235b-a22b41%
MedGemma38%
BioMistral37%
BiMediX237%
deepseek-r1-distill-llama-70b22%

Development Set Performance (Top Models)

Model's NameFill in the BlankMultiple ChoiceMultiple Choice w/ Bias
qwen/qwen2-32b83%69%67%
google/medgemma-27b-it76%55%46%
colosseum 355b75%50%45%

📜 License & Citation

This project is released under the MIT License. For more details, please refer to the LICENSE file.

⚠️ Warning! This work is intended for research purposes. It is not ready for clinical or commercial use. The outputs should not be used for medical diagnoses or treatment decisions without verification by a qualified healthcare professional.

If you use our work in your research, please cite our paper:

@inproceedings{elden2025medlingua,
      title={{MedLingua at MedArabiQ2025: Zero- and Few-Shot Prompting of Large Language Models for Arabic Medical QA}},
      author={Elden, Fatimah Mohamed Emad and Abukar, Mumina},
      year={2025},
      booktitle={Proceedings of the MedArabiQ2025 Shared Task},
      eprint={25XX.XXXXX},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}