Saved in:
Bibliographic Details
Main Authors: Paiola, Pedro Henrique, Garcia, Gabriel Lino, Manesco, João Renato Ribeiro, Roder, Mateus, Rodrigues, Douglas, Papa, João Paulo
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.00163
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913558135046144
author Paiola, Pedro Henrique
Garcia, Gabriel Lino
Manesco, João Renato Ribeiro
Roder, Mateus
Rodrigues, Douglas
Papa, João Paulo
author_facet Paiola, Pedro Henrique
Garcia, Gabriel Lino
Manesco, João Renato Ribeiro
Roder, Mateus
Rodrigues, Douglas
Papa, João Paulo
contents This study evaluates the performance of large language models (LLMs) as medical agents in Portuguese, aiming to develop a reliable and relevant virtual assistant for healthcare professionals. The HealthCareMagic-100k-en and MedQuAD datasets, translated from English using GPT-3.5, were used to fine-tune the ChatBode-7B model using the PEFT-QLoRA method. The InternLM2 model, with initial training on medical data, presented the best overall performance, with high precision and adequacy in metrics such as accuracy, completeness and safety. However, DrBode models, derived from ChatBode, exhibited a phenomenon of catastrophic forgetting of acquired medical knowledge. Despite this, these models performed frequently or even better in aspects such as grammaticality and coherence. A significant challenge was low inter-rater agreement, highlighting the need for more robust assessment protocols. This work paves the way for future research, such as evaluating multilingual models specific to the medical field, improving the quality of training data, and developing more consistent evaluation methodologies for the medical field.
format Preprint
id arxiv_https___arxiv_org_abs_2410_00163
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Adapting LLMs for the Medical Domain in Portuguese: A Study on Fine-Tuning and Model Evaluation
Paiola, Pedro Henrique
Garcia, Gabriel Lino
Manesco, João Renato Ribeiro
Roder, Mateus
Rodrigues, Douglas
Papa, João Paulo
Computation and Language
Artificial Intelligence
This study evaluates the performance of large language models (LLMs) as medical agents in Portuguese, aiming to develop a reliable and relevant virtual assistant for healthcare professionals. The HealthCareMagic-100k-en and MedQuAD datasets, translated from English using GPT-3.5, were used to fine-tune the ChatBode-7B model using the PEFT-QLoRA method. The InternLM2 model, with initial training on medical data, presented the best overall performance, with high precision and adequacy in metrics such as accuracy, completeness and safety. However, DrBode models, derived from ChatBode, exhibited a phenomenon of catastrophic forgetting of acquired medical knowledge. Despite this, these models performed frequently or even better in aspects such as grammaticality and coherence. A significant challenge was low inter-rater agreement, highlighting the need for more robust assessment protocols. This work paves the way for future research, such as evaluating multilingual models specific to the medical field, improving the quality of training data, and developing more consistent evaluation methodologies for the medical field.
title Adapting LLMs for the Medical Domain in Portuguese: A Study on Fine-Tuning and Model Evaluation
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2410.00163