Parameter-Efficient Transfer Learning for NLP

Neil Houlsby, Andrei Giurgiu, Stanislaw Jastrzebski, Bruna Morrone, Quentin de Laroussilhe +3 more
2/2/2019
cs.LGcs.CLstat.ML

Official code: google-research/adapter-bert (503 stars, Apache-2.0, last commit 2023-10-25).

Abstract

Fine-tuning large pre-trained models is an effective transfer mechanism in NLP. However, in the presence of many downstream tasks, fine-tuning is parameter inefficient: an entire new model is required for every task. As an alternative, we propose transfer with adapter modules. Adapter modules yield a compact and extensible model; they add only a few trainable parameters per task, and new tasks can be added without revisiting previous ones. The parameters of the original network remain fixed, yielding a high degree of parameter sharing. To demonstrate adapter's effectiveness, we transfer the recently proposed BERT Transformer model to 26 diverse text classification tasks, including the GLUE benchmark. Adapters attain near state-of-the-art performance, whilst adding only a few parameters per task. On GLUE, we attain within 0.4% of the performance of full fine-tuning, adding only 3.6% parameters per task. By contrast, fine-tuning trains 100% of the parameters per task.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
50354PythonMay 21, 20192 years agoApache-2.0

Cite this paper

@article{houlsby2019parameterefficient,
  title  = {Parameter-Efficient Transfer Learning for NLP},
  author = {Neil Houlsby and Andrei Giurgiu and Stanislaw Jastrzebski and Bruna Morrone and Quentin de Laroussilhe and Andrea Gesmundo and Mona Attariyan and Sylvain Gelly},
  year   = {2019},
  eprint = {1902.00751},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1902.00751}
}

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/1902.00751.svg)](https://codeofpaper.com/paper/1902.00751)

Discussion