A Comprehensive Analysis of Adapter Efficiency

Nandini Mundra, Sumanth Doddapaneni, Raj Dabre, Anoop Kunchukuttan, Ratish Puduppully +1 more
5/12/2023
cs.CL

Official code: AI4Bharat/adapter-efficiency (10 stars, MIT, last commit 2023-06-17).

Abstract

Adapters have been positioned as a parameter-efficient fine-tuning (PEFT) approach, whereby a minimal number of parameters are added to the model and fine-tuned. However, adapters have not been sufficiently analyzed to understand if PEFT translates to benefits in training/deployment efficiency and maintainability/extensibility. Through extensive experiments on many adapters, tasks, and languages in supervised and cross-lingual zero-shot settings, we clearly show that for Natural Language Understanding (NLU) tasks, the parameter efficiency in adapters does not translate to efficiency gains compared to full fine-tuning of models. More precisely, adapters are relatively expensive to train and have slightly higher deployment latency. Furthermore, the maintainability/extensibility benefits of adapters can be achieved with simpler approaches like multi-task training via full fine-tuning, which also provide relatively faster training times. We, therefore, recommend that for moderately sized models for NLU tasks, practitioners should rely on full fine-tuning or multi-task training rather than using adapters. Our code is available at https://github.com/AI4Bharat/adapter-efficiency.

View on arXivView PDF

Code Implementations(1)

MIT
100PythonMar 7, 20233 years agoMIT

Similar Papers

Cite this paper

@article{mundra2023comprehensive,
  title  = {A Comprehensive Analysis of Adapter Efficiency},
  author = {Nandini Mundra and Sumanth Doddapaneni and Raj Dabre and Anoop Kunchukuttan and Ratish Puduppully and Mitesh M. Khapra},
  year   = {2023},
  eprint = {2305.07491},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.07491v1}
}

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

Discussion