MEDFIT-LLM: Medical Enhancements through Domain-Focused Fine Tuning of Small Language Models
Authors:
- 7 May 2025
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-5
Abstract
This research explores the efficacy of fine-tuning small Large Language Models (LLMs) for AI-based healthcare chatbots. We present a novel approach to dataset creation using synthetic data generation and fine-tuning of various LLMs. The study compares the performance of base models against their fine-tuned counterparts using a carefully curated dataset of healthcare-related questions and answers. Our methodology involves the use of phi 4 for synthetic data generation, supplemented with domain-specific questions derived from existing research. We employ LORA fine-tuning on MLX for four distinct models: Gemma 2 9B 4bit, LLama 3.2 3B Instruct, Mistral 7B, and Qwen2 7B Instruct 8 bit. The results demonstrate the potential of fine-tuning in enhancing the performance of LLMs in specialized healthcare contexts, contributing to the ongoing development of more accurate and reliable AI-powered healthcare chatbots. The code is available at https://github.com/adityak74/medfit-llm.Keywords
This publication has 9 references indexed in Scilit:
- Fine-Tuning Large Language Models for Specialized Use CasesMayo Clinic Proceedings: Digital Health, 2024
- PharmaLLM: A Medicine Prescriber Chatbot Exploiting Open-Source Large Language ModelsHuman-Centric Intelligent Systems, 2024
- Comparative Analysis of RAG, Fine-Tuning, and Prompt Engineering in Chatbot Development2024
- AutoPureData: Automated Filtering of Undesirable Web Data to Update LLM KnowledgeJournal of Mathematical & Computer Applications, 2024
- Towards Reliable Healthcare LLM Agents: A Case Study for Pilgrims during HajjInformation, 2024
- Large language models in medicineNature Medicine, 2023
- ChatGPT and Other Large Language Models Are Double-edged SwordsRadiology, 2023
- Artificial Intelligence Applications in Health Care Practice: Scoping ReviewJournal of Medical Internet Research, 2022
- Big Data and Machine Learning in Health CareJAMA, 2018