MEDFIT-LLM: Medical Enhancements through Domain-Focused Fine Tuning of Small Language Models
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.
Authors
- Sonam Naidu
- Arjun Jaggi (ORCID: https://orcid.org/0000-0002-7493-6958)
- Aditya Karnam Gururaj Rao
Institutions
- Lexicon Pharmaceuticals (United States) (US)
- HCL Technologies (United States) (US)
Publication Details
- Published
- 2025-05-07
- DOI
- https://doi.org/10.1109/rmkmate64874.2025.11042816
- Citations
- 1
- Primary Topic
- Natural Language Processing Techniques
- Type
- article
- Field-Weighted Citation Impact
- 2.48