BiMediX: Bilingual Medical Mixture of Experts LLM

Sara Pieri, Sahal Shaji Mullappilly, Fahad Shahbaz Khan, Rao Muhammad Anwer, Salman H. Khan, Timothy Baldwin, Hisham Cholakkal · DOI

TL;DR

This paper introduces BiMediX, the first bilingual medical Mixture-of-Experts (MoE) LLM capable of seamless interaction in both English and Arabic. It achieves state-of-the-art performance on medical benchmarks, significantly outperforms existing bilingual models, and offers an 8x faster inference speed, addressing a critical need for accessible and efficient AI in multilingual healthcare.

What Problem Does This Paper Address?

The healthcare domain presents a significant opportunity for AI-powered tools, particularly Large Language Models (LLMs), to enhance diagnostic accuracy and patient support. However, a major challenge is the scarcity of high-quality, bilingual (specifically Arabic-English) medical LLMs. Existing models often focus solely on English, leaving a large population underserved. Furthermore, developing robust Arabic medical LLMs is hindered by a lack of comprehensive datasets, evaluation benchmarks, and the unique linguistic complexities of Arabic. This paper aims to bridge this gap by creating a bilingual medical LLM and the necessary resources to support its development and evaluation.

Methods

The core of BiMediX is built upon the Mixtral-8x7B MoE architecture, known for its efficiency. The authors employ Parameter-Efficient Finetuning (PEFT) techniques, specifically QLoRA, to adapt Mixtral for medical tasks. This approach allows for significant model adaptation with minimal computational resources and fewer trainable parameters compared to full fine-tuning. A key innovation is a semi-automated iterative translation pipeline, which uses ChatGPT for initial English-to-Arabic translation, followed by automated quality scoring and human refinement for low-scoring samples. This pipeline is crucial for generating high-quality Arabic medical evaluation benchmarks and instruction sets. The model is then instruction-tuned on the newly created BiMed1.3M dataset.

Datasets

The paper introduces the BiMed1.3M dataset, an extensive Arabic-English bilingual instruction set comprising over 1.3 million diverse medical interactions. This dataset includes:

  • Multiple-Choice Question Answering (MCQA): Derived from existing English datasets like PubMedQA, MedMCQA, and MedQA, then translated into Arabic.
  • Open-Ended Question Answering (QA): Sourced from datasets like HealthCareMagic and iCliniq, also translated.
  • Synthesized Multi-turn Chats: Over 200,000 realistic doctor-patient conversations generated by leveraging ChatGPT, grounded on MCQA scenarios.

The dataset maintains a 1:2 Arabic-to-English ratio and contains over 632 million healthcare-specialized tokens. Additionally, the authors introduce a comprehensive Arabic medical evaluation benchmark, created by translating existing English medical benchmarks.

Key Insights and Ideas

  • Bilingual MoE for Medical AI: Demonstrates that a Mixture-of-Experts architecture, when specifically trained on bilingual medical data, can achieve superior performance and efficiency in healthcare applications.
  • Semi-Automated Translation Pipeline: The proposed iterative translation pipeline with human refinement is a practical and effective method for creating high-quality Arabic medical resources, addressing the data scarcity issue.
  • Dataset is Key: The creation of the BiMed1.3M dataset and the Arabic evaluation benchmark is a significant contribution, providing essential resources for future research in Arabic and bilingual medical AI.
  • Efficiency Matters: BiMediX achieves comparable or better performance than larger models while being significantly faster, highlighting the benefits of MoE architectures and efficient fine-tuning.

Key Results

  • English Performance: BiMediX outperforms state-of-the-art models like Med42 and Meditron by average absolute gains of 2.5% and 4.1% respectively, across multiple English medical benchmarks.
  • Arabic Performance: BiMediX significantly outperforms the generic bilingual LLM Jais-30B by average absolute gains of 10% on the newly created Arabic medical benchmark and 15% on bilingual evaluations.
  • Inference Speed: BiMediX operates at 8-times faster inference compared to Med42 and Meditron.
  • Dataset Impact: Bilingual instruction tuning with BiMed1.3M leads to an average absolute 10% gain over the base Mixtral model on bilingual evaluations.

Limitations and Future Work

The authors acknowledge that BiMediX, like other LLMs, may still exhibit issues such as hallucinations, toxicity, and stereotypes, stemming from the base models and pre-training data. While automatic and qualitative evaluations with medical professionals were conducted, they note that medical diagnoses and recommendations may not always be accurate, and extensive human evaluation is more reliable but costly. Future work will focus on enhancing security and alignment strategies to curb undesirable behaviors. The release of model weights is intended to facilitate research into mitigating application risks. The paper also emphasizes that the current release is for research purposes and not yet ready for clinical or commercial use, highlighting the need for further research to ensure safety and accuracy in clinical settings.

Summary updated

BibTeX
@inproceedings{pieri2024bimedix,
  author = {Sara Pieri and Sahal Shaji Mullappilly and Fahad Shahbaz Khan and Rao Muhammad Anwer and Salman H. Khan and Timothy Baldwin and Hisham Cholakkal},
  title = {{BiMediX: Bilingual Medical Mixture of Experts LLM}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.989},
}
Figure