Parameter-Efficient Fine-Tuning of LLaMA for the Clinical Domain

Aryo Pradipta Gema, Pasquale Minervini, Luke Daines, Tom Hope, Beatrice Alex
7/6/2023
cs.CLcs.LG

Official code: aryopg/clinical_peft (18 stars, last commit 2024-04-23).

Abstract

Adapting pretrained language models to novel domains, such as clinical applications, traditionally involves retraining their entire set of parameters. Parameter-Efficient Fine-Tuning (PEFT) techniques for fine-tuning language models significantly reduce computational requirements by selectively fine-tuning small subsets of parameters. In this study, we propose a two-step PEFT framework and evaluate it in the clinical domain. Our approach combines a specialised PEFT adapter layer designed for clinical domain adaptation with another adapter specialised for downstream tasks. We evaluate the framework on multiple clinical outcome prediction datasets, comparing it to clinically trained language models. Our framework achieves a better AUROC score averaged across all clinical downstream tasks compared to clinical language models. In particular, we observe large improvements of 4-5% AUROC in large-scale multilabel classification tasks, such as diagnoses and procedures classification. To our knowledge, this study is the first to provide an extensive empirical analysis of the interplay between PEFT techniques and domain adaptation in an important real-world domain of clinical applications.

View on arXivView PDF

Code Implementations(1)

Parameter-efficient Fine Tuning for Clinical LLMs

182Shell, PythonApr 27, 20232 years ago

Similar Papers

Cite this paper

@article{gema2023parameterefficient,
  title  = {Parameter-Efficient Fine-Tuning of LLaMA for the Clinical Domain},
  author = {Aryo Pradipta Gema and Pasquale Minervini and Luke Daines and Tom Hope and Beatrice Alex},
  year   = {2023},
  eprint = {2307.03042},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.03042v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.03042.svg)](https://codeofpaper.com/paper/2307.03042)

Discussion