AdaMix: Mixture-of-Adaptations for Parameter-efficient Model Tuning

Yaqing Wang, Sahaj Agarwal, Subhabrata Mukherjee, Xiaodong Liu, Jing Gao +2 more
10/31/2022
cs.CLcs.AIcs.LG
lora-peft-merging

Official code: microsoft/AdaMix (141 stars, Python, Apache-2.0, PyTorch, last commit 2023-08-14).

Abstract

Standard fine-tuning of large pre-trained language models (PLMs) for downstream tasks requires updating hundreds of millions to billions of parameters, and storing a large copy of the PLM weights for every task resulting in increased cost for storing, sharing and serving the models. To address this, parameter-efficient fine-tuning (PEFT) techniques were introduced where small trainable components are injected in the PLM and updated during fine-tuning.

Show full abstract

We propose AdaMix as a general PEFT method that tunes a mixture of adaptation modules -- given the underlying PEFT method of choice -- introduced in each Transformer layer while keeping most of the PLM weights frozen. For instance, AdaMix can leverage a mixture of adapters like Houlsby or a mixture of low rank decomposition matrices like LoRA to improve downstream task performance over the corresponding PEFT methods for fully supervised and few-shot NLU and NLG tasks. Further, we design AdaMix such that it matches the same computational cost and the number of tunable parameters as the underlying PEFT method. By only tuning 0.1-0.2% of PLM parameters, we show that AdaMix outperforms SOTA parameter-efficient fine-tuning and full model fine-tuning for both NLU and NLG tasks.

View on arXivView PDF

Code Implementations(1)

microsoft/AdaMixOfficial100%
PyTorchApache-2.0

This is the implementation of the paper AdaMix: Mixture-of-Adaptations for Parameter-efficient Model Tuning (https://arxiv.org/abs/2205.12410).

14110Python, Jupyter NotebookMay 24, 20223 years agoApache-2.0
adapterbertdartgluegpt-2+7 more

Similar Papers

Cite this paper

@article{wang2022adamix,
  title  = {AdaMix: Mixture-of-Adaptations for Parameter-efficient Model Tuning},
  author = {Yaqing Wang and Sahaj Agarwal and Subhabrata Mukherjee and Xiaodong Liu and Jing Gao and Ahmed Hassan Awadallah and Jianfeng Gao},
  year   = {2022},
  eprint = {2210.17451},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.17451}
}

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

Discussion