[Paper Review] The Impact of LoRA Adapters on LLMs for Clinical Text Classification Under Computational and Data Constraints
This study evaluates LoRA adapters for fine-tuning large language models (LLMs) in clinical NLP under data and computational constraints. It finds that simpler Transformer-based models trained from scratch outperform adapter-fine-tuned biomedical LLMs, with the Gated Residual Network (GRN) adapter achieving the best performance (F1 score of 0.88), while reducing training time from over 1000 hours to under 6 hours.
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.
Motivation & Objective
- Address the challenge of fine-tuning LLMs for clinical text classification in low-resource, data-limited hospital environments with strict privacy and computational constraints.
- Evaluate the effectiveness of four LoRA-based adapter structures—Adapter, Lightweight, TinyAttention, and Gated Residual Network (GRN)—for enhancing biomedical LLMs in clinical note classification.
- Compare the performance and training efficiency of pre-trained biomedical LLMs (e.g., CamemBERT-bio, AliBERT, DrBERT) with adapters against simpler Transformer-based models trained from scratch.
- Identify the most effective adapter architecture and training strategy for clinical NLP tasks in resource-constrained settings.
- Provide a practical, computationally efficient alternative to full fine-tuning of large LLMs in clinical decision support systems.
Proposed method
- Fine-tuned biomedical pre-trained LLMs (CamemBERT-bio, AliBERT, DrBERT) and two general Transformer-based models using four adapter architectures: Adapter, Lightweight, TinyAttention, and Gated Residual Network (GRN).
- Implemented Low-Rank Adaptation (LoRA) by introducing learnable low-rank matrices to fine-tune specific layers of the pre-trained models without updating the full parameters.
- Designed the GRN adapter with a Gated Linear Unit (GLU) that combines linear and sigmoid-gated transformations via element-wise multiplication, enabling dynamic information flow control.
- Integrated residual connections, layer normalization, dropout, and projection layers in the GRN to stabilize training and prevent overfitting.
- Trained all models on a clinical note classification dataset from CHU Sainte-Justine, focusing on cardiac failure detection, under strict computational and data constraints.
- Used standard metrics—accuracy, precision, recall, and F1 score—for model evaluation, with training time recorded as a key efficiency metric.
Experimental results
Research questions
- RQ1Does applying LoRA adapters to biomedical pre-trained LLMs significantly improve performance in clinical text classification under data scarcity?
- RQ2How do different adapter architectures (Adapter, Lightweight, TinyAttention, GRN) compare in terms of classification performance and training efficiency?
- RQ3Can simpler Transformer-based models trained from scratch outperform adapter-fine-tuned biomedical LLMs in low-resource clinical NLP settings?
- RQ4What is the trade-off between model performance and training time when using pre-trained LLMs with adapters versus training smaller models from scratch?
- RQ5Which adapter architecture yields the best balance of performance and computational efficiency for clinical NLP in resource-constrained hospitals?
Key findings
- Adapter fine-tuning of biomedical pre-trained LLMs (e.g., CamemBERT-bio, AliBERT, DrBERT) did not yield significant performance improvements over training simpler Transformer-based models from scratch.
- The Gated Residual Network (GRN) adapter achieved the highest classification performance with an F1 score of 0.88, along with 0.88 accuracy, precision, and recall.
- Training time for pre-trained LLMs with adapters ranged from 30 to 50 hours per experiment, while training simpler Transformer-based models from scratch took less than one hour.
- Total training time for LLMs exceeded 1000 hours across all experiments, compared to under 6 hours for the simpler models, highlighting a major efficiency gap.
- Simpler Transformer-based models trained from scratch outperformed or matched the performance of adapter-fine-tuned LLMs while requiring drastically less computational time and resources.
- The GRN adapter demonstrated strong regularization and stability, making it a practical choice for enhancing clinical note classification without relying on large, computationally expensive models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.