The Impact of LoRA Adapters on LLMs for Clinical Text Classification Under Computational and Data Constraints

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Le, Thanh-Dung, Nguyen, Ti Ti, Ha, Vu Nguyen, Chatzinotas, Symeon, Jouvet, Philippe, Noumeir, Rita
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866908468814807040
author Le, Thanh-Dung
Nguyen, Ti Ti
Ha, Vu Nguyen
Chatzinotas, Symeon
Jouvet, Philippe
Noumeir, Rita
author_facet Le, Thanh-Dung
Nguyen, Ti Ti
Ha, Vu Nguyen
Chatzinotas, Symeon
Jouvet, Philippe
Noumeir, Rita
contents Fine-tuning Large Language Models (LLMs) for clinical Natural Language Processing (NLP) poses significant challenges due to domain gap, limited data, and stringent hardware constraints. In this study, we evaluate four adapter techniques-Adapter, Lightweight, TinyAttention, and Gated Residual Network (GRN) - equivalent to Low-Rank Adaptation (LoRA), for clinical note classification under real-world, resource-constrained conditions. All experiments were conducted on a single NVIDIA Quadro P620 GPU (2 GB VRAM, 512 CUDA cores, 1.386 TFLOPS FP32), limiting batch sizes to <8 sequences and maximum sequence length to 256 tokens. Our clinical corpus comprises only 580 000 tokens, several orders of magnitude smaller than standard LLM pre-training datasets. We fine-tuned three biomedical pre-trained LLMs (CamemBERT-bio, AliBERT, DrBERT) and two lightweight Transformer models trained from scratch. Results show that 1) adapter structures provide no consistent gains when fine-tuning biomedical LLMs under these constraints, and 2) simpler Transformers, with minimal parameter counts and training times under six hours, outperform adapter-augmented LLMs, which required over 1000 GPU-hours. Among adapters, GRN achieved the best metrics (accuracy, precision, recall, F1 = 0.88). These findings demonstrate that, in low-resource clinical settings with limited data and compute, lightweight Transformers trained from scratch offer a more practical and efficient solution than large LLMs, while GRN remains a viable adapter choice when minimal adaptation is needed.
format Preprint
id arxiv_https___arxiv_org_abs_2407_19299
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle The Impact of LoRA Adapters on LLMs for Clinical Text Classification Under Computational and Data Constraints
Le, Thanh-Dung
Nguyen, Ti Ti
Ha, Vu Nguyen
Chatzinotas, Symeon
Jouvet, Philippe
Noumeir, Rita
Computation and Language
Signal Processing
Fine-tuning Large Language Models (LLMs) for clinical Natural Language Processing (NLP) poses significant challenges due to domain gap, limited data, and stringent hardware constraints. In this study, we evaluate four adapter techniques-Adapter, Lightweight, TinyAttention, and Gated Residual Network (GRN) - equivalent to Low-Rank Adaptation (LoRA), for clinical note classification under real-world, resource-constrained conditions. All experiments were conducted on a single NVIDIA Quadro P620 GPU (2 GB VRAM, 512 CUDA cores, 1.386 TFLOPS FP32), limiting batch sizes to <8 sequences and maximum sequence length to 256 tokens. Our clinical corpus comprises only 580 000 tokens, several orders of magnitude smaller than standard LLM pre-training datasets. We fine-tuned three biomedical pre-trained LLMs (CamemBERT-bio, AliBERT, DrBERT) and two lightweight Transformer models trained from scratch. Results show that 1) adapter structures provide no consistent gains when fine-tuning biomedical LLMs under these constraints, and 2) simpler Transformers, with minimal parameter counts and training times under six hours, outperform adapter-augmented LLMs, which required over 1000 GPU-hours. Among adapters, GRN achieved the best metrics (accuracy, precision, recall, F1 = 0.88). These findings demonstrate that, in low-resource clinical settings with limited data and compute, lightweight Transformers trained from scratch offer a more practical and efficient solution than large LLMs, while GRN remains a viable adapter choice when minimal adaptation is needed.
title The Impact of LoRA Adapters on LLMs for Clinical Text Classification Under Computational and Data Constraints
topic Computation and Language
Signal Processing
url https://arxiv.org/abs/2407.19299