arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2205.01549cs.CLcs.AI
收藏

适配器

Adaptable Adapters

The University of Sheffield(谢菲尔德大学);Hessian Center for AI (hessian.AI)(黑森人工智能中心);Technical University of Darmstadt(达姆施塔特工业大学)

Nafise Sadat Moosavi, Quentin Delfosse, Kristian Kersting, Iryna Gurevych

摘要:

最先进的预训练NLP模型包含一亿到万亿个参数。适配器为完全微调提供了一种参数高效的替代方案,其中我们只能在预训练的权重之上微调轻量级神经网络层。适配器层随机初始化。然而,现有的工作使用相同的适配器架构-即,在预训练模型的每一层之上的相同适配器层--对于每个数据集,不管数据集的属性或可用的训练数据的量如何。在这项工作中,我们介绍了自适应适配器,其中包含(1)学习不同的激活函数为不同的层和不同的输入数据,和(2)一个可学习的开关,选择和只使用有益的适配器层。我们表明,适应性强的适配器实现与标准的适配器架构,同时使用一个相当少的适配器层的性能。此外,我们表明,所选择的适配器架构的自适应适配器传输以及不同的数据设置和类似的任务。我们建议使用自适应适配器设计高效和有效的适配器架构。由此产生的适配器(a)包含标准适配器的大约50%的学习参数,因此在训练和推理方面更有效,并且需要更少的存储空间,并且(b)在低数据设置中实现相当高的性能。

英文摘要:

State-of-the-art pretrained NLP models contain a hundred million to trillion parameters. Adapters provide a parameter-efficient alternative for the full finetuning in which we can only finetune lightweight neural network layers on top of pretrained weights. Adapter layers are initialized randomly. However, existing work uses the same adapter architecture -- i.e., the same adapter layer on top of each layer of the pretrained model -- for every dataset, regardless of the properties of the dataset or the amount of available training data. In this work, we introduce adaptable adapters that contain (1) learning different activation functions for different layers and different input data, and (2) a learnable switch to select and only use the beneficial adapter layers. We show that adaptable adapters achieve on-par performances with the standard adapter architecture while using a considerably smaller number of adapter layers. In addition, we show that the selected adapter architecture by adaptable adapters transfers well across different data settings and similar tasks. We propose to use adaptable adapters for designing efficient and effective adapter architectures. The resulting adapters (a) contain about 50% of the learning parameters of the standard adapter and are therefore more efficient at training and inference, and require less storage space, and (b) achieve considerably higher performances in low-data settings.

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

↑