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.
MerA: Merging Pretrained Adapters For Few-Shot Learning
University of Maryland, College Park(马里兰大学帕克分校);The University of Sydney(悉尼大学);University of Chinese Academy of Sciences(中国科学院大学);JD Explore Academy(京东探索研究院)
AdapterSoup: Weight Averaging to Improve Generalization of Pretrained Language Models
Center for Information and Language Processing, LMU Munich(慕尼黑大学信息与语言处理中心);Munich Center for Machine Learning(慕尼黑机器学习中心);Allen Institute for Artificial Intelligence(艾伦人工智能研究所)
On the Effectiveness of Adapter-based Tuning for Pretrained Language Model Adaptation
National University of Singapore(新加坡国立大学);DAMO Academy, Alibaba Group(阿里巴巴集团达摩院);Nanyang Technological University(南洋理工大学);Singapore University of Technology and Design(新加坡科技设计大学)
Common Sense or World Knowledge? Investigating Adapter-Based Knowledge Injection into Pretrained Transformers
Data and Web Science Group, University of Mannheim(曼海姆大学数据与网络科学组);Wluper;Ubiquitous Knowledge Processing (UKP) Lab, TU Darmstadt(达姆施塔特工业大学普适知识处理(UKP)实验室)
X-LoRA: Mixture of Low-Rank Adapter Experts, a Flexible Framework for Large Language Models with Applications in Protein Mechanics and Molecular Design
Academy for Science and Design (ASD)(科学设计学院);Massachusetts Institute of Technology (MIT)(麻省理工学院)