arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.17451cs.CLcs.AIcs.LG
收藏

AdaMix:用于参数有效模型调整的混合自适应

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

Yaqing Wang, Sahaj Agarwal, Subhabrata Mukherjee, Xiaodong Liu, Jing Gao, Ahmed Hassan Awadallah, Jianfeng Gao

摘要:

针对下游任务的大型预训练语言模型(PLM)的标准微调需要更新数亿到数十亿个参数,并为每个任务存储PLM权重的大副本,从而导致存储、共享和服务模型的成本增加。为了解决这个问题,引入了参数高效微调(PEFT)技术,其中将小的可训练组件注入PLM中并在微调期间更新。我们提出AdaMix作为一种通用的PEFT方法,它可以调整每个Transformer层中引入的自适应模块的混合-给定选择的底层PEFT方法-同时保持大多数PLM权重冻结。例如,AdaMix可以利用像Houlsby这样的适配器的混合或像LoRA这样的低秩分解矩阵的混合,来改善完全监督和Few-Shot NLU和NLG任务的相应PEFT方法的下游任务性能。此外,我们设计AdaMix,使其与底层PEFT方法匹配相同的计算成本和可调参数数量。通过仅调整0.1-0.2%的PLM参数,我们表明AdaMix在NLU和NLG任务中的性能优于SOTA参数高效微调和全模型微调。

英文摘要:

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. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑