Clinical Prompt Learning With Frozen Language Models.

Journal: IEEE transactions on neural networks and learning systems
Published Date:

Abstract

When the first transformer-based language models were published in the late 2010s, pretraining with general text and then fine-tuning the model on a task-specific dataset often achieved the state-of-the-art performance. However, more recent work suggests that for some tasks, directly prompting the pretrained model matches or surpasses fine-tuning in performance with few or no model parameter updates required. The use of prompts with language models for natural language processing (NLP) tasks is known as prompt learning. We investigated the viability of prompt learning on clinically meaningful decision tasks and directly compared this with more traditional fine-tuning methods. Results show that prompt learning methods were able to match or surpass the performance of traditional fine-tuning with up to 1000 times fewer trainable parameters, less training time, less training data, and lower computation resource requirements. We argue that these characteristics make prompt learning a very desirable alternative to traditional fine-tuning for clinical tasks, where the computational resources of public health providers are limited, and where data can often not be made available or not be used for fine-tuning due to patient privacy concerns. The complementary code to reproduce the experiments presented in this work can be found at https://github.com/NtaylorOX/Public_Clinical_Prompt.

Authors

  • Niall Taylor
    Department of Psychiatry, University of Oxford, Oxford, United Kingdom. Electronic address: niall.taylor@st-hughs.ox.ac.uk.
  • Yi Zhang
    Department of Thyroid Surgery, China-Japan Union Hospital of Jilin University, Jilin University, Changchun, China.
  • Dan W Joyce
    Department of Primary Care and Mental Health, University of Liverpool, Liverpool, United Kingdom.
  • Ziming Gao
  • Andrey Kormilitzin
    University of Oxford, United Kingdom of Great Britain and Northern Ireland. Electronic address: andrey.kormilitzin@psych.ox.ac.uk.
  • Alejo Nevado-Holgado
    University of Oxford, United Kingdom of Great Britain and Northern Ireland. Electronic address: alejo.nevado-holgado@psych.ox.ac.uk.