EYE-Llama, an in-domain large language model for ophthalmology
Tania HaghighiiD, Sina GholamiiD, Jared T. Sokol, Enaika Kishnani, Adnan Ahsaniyan, Holakou Rahmanian, Fares HedayatiiD, Theodore LengiD, Minhaj Nur AlamiD
Abstract
1BackgroundTraining Large Language Models (LLMs) with in-domain data can significantly enhance their performance, leading to more accurate and reliable question-answering (Q&A) systems essential for supporting clinical decision-making and educating patients. MethodsThis study introduces ophthalmic LLMs trained on in-domain, well-curated datasets. We present an open-source substantial ophthalmic language dataset for model training. Our models (EYE-Llama), were pre-trained on an ophthalmology-specific dataset, including paper abstracts, textbooks, and Wikipedia articles. Subsequently, the models underwent fine-tuning using a diverse range of QA pairs. Our models were compared to baseline Llama 2, ChatDoctor, Meditron, Llama 3, and ChatGPT (GPT3{middle dot}5) models, using four distinct test sets, and evaluated quantitatively (Accuracy, F1 score, BERTScore, BARTScore and BLEU score) and qualitatively by two ophthalmologists. FindingsUpon evaluating the models using the synthetic dialogue test set with three different metrics (BERTScore, BARTScore, and BLEU score), our models demonstrated superior performance. Specifically, when evaluated using BERTScore, our models surpassed Llama 2, Llama 3, Meditron, and ChatDoctor in terms of F1 score, and performed on par with ChatGPT, which was trained with 175 billion parameters (EYE-Llama: 0.57, Llama 2: 0.56, Llama 3: 0.55, Meditron: 0.50, ChatDoctor: 0.56, and ChatGPT: 0.57). Additionally, the EYE-Llama model outperformed the above models when evaluated using BARTScore and BLEU scores. When tested on the MedMCQA test set, the fine-tuned models exhibited higher accuracy compared to Llama 2, Meditron, and ChatDoctor models (EYE-Llama: 0.39, Llama 2: 0.33, ChatDoctor: 0.29, Meditron: 0.22). However, ChatGPT, and Llama 3 models outperformed EYE-Llama, achieving accuracies of 0.55, 0.78, and 0.90, respectively. On the PubmedQA test set, our model showed improved accuracy over all other models (EYE-Llama: 0.96, Llama 2: 0.90, Llama 3: 0.92, Meditron: 0.76, ChatGPT: 0.93, ChatDoctor: 0.92). InterpretationThe study shows that pre-training and fine-tuning LLMs like EYE-Llama enhances their performance in specific medical domains. Our EYE-Llama models surpass baseline Llama 2 in all evaluations, highlighting the effectiveness of specialized LLMs in medical QA systems. FundingFunded by NEI R15EY035804 (MNA), R21EY035271 (MNA), and UNC Charlotte Faculty Research Grant (MNA)
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 36
- FWCI
- 6.82
- Field percentile
- top 2%
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Compact Vision--Language Models Enable Efficient and Interpretable Automated OCT Analysis Through Layer Specific Multimodal Learning
Tania Haghighi, Sina Gholami, … Minhaj Nur Alam·bioRxiv·Aug 7, 2025
- A Study of Calibration as a Measurement of Trustworthiness of Large Language Models in Biomedical Research
Rodrigo de Oliveira, Matthew Garber, … Christina DeFilippo Mack·JAMIA OpenPeer-reviewed·Jul 3, 2025
- A corpus for differential diagnosis: an eye diseases use case
Antonio Jimeno Yepes, David Martínez, … Tinu Theckel Joy·bioRxiv·May 10, 2021
- MedMisBench: Measuring Epistemic Resilience of LLMs Under Misleading Medical Context
Hongjian Zhou, Xinyu Zou, … David A. Clifton·bioRxiv·Jun 10, 2026
- Classifying Domains, Benchmarking GPT-4, A Portuguese Dataset for Medical AI Q&A
Felipe Akio Matsuoka, Henrique Nunes Onaga·bioRxiv·Dec 17, 2024
- CALM-VLM: CALIBRATION AND SELECTIVE PREDICTION IN VISION-LANGUAGE MODELS FOR RELIABLE BRAIN MRI CLASSIFICATION
Nikhil J. Dhinagar, Chirag Jagad, … Paul M. Thompson·IEEE International Symposium on Biomedical Imaging (ISBI)Peer-reviewed·Apr 8, 2026