Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

AdapterSoup: Weight Averaging to Improve Generalization of Pretrained Language Models

About

Pretrained language models (PLMs) are trained on massive corpora, but often need to specialize to specific domains. A parameter-efficient adaptation method suggests training an adapter for each domain on the task of language modeling. This leads to good in-domain scores but can be impractical for domain- or resource-restricted settings. A solution is to use a related-domain adapter for the novel domain at test time. In this paper, we introduce AdapterSoup, an approach that performs weight-space averaging of adapters trained on different domains. Our approach is embarrassingly parallel: first, we train a set of domain-specific adapters; then, for each novel domain, we determine which adapters should be averaged at test time. We present extensive experiments showing that AdapterSoup consistently improves performance to new domains without extra training. We also explore weight averaging of adapters trained on the same domain with different hyper-parameters, and show that it preserves the performance of a PLM on new domains while obtaining strong in-domain results. We explore various approaches for choosing which adapters to combine, such as text clustering and semantic similarity. We find that using clustering leads to the most competitive results on novel domains.

Alexandra Chronopoulou, Matthew E. Peters, Alexander Fraser, Jesse Dodge• 2023

Related benchmarks

TaskDatasetResultRank
Time Series ForecastingETTm2--
382
Short-term forecastingM4 Quarterly
MASE9.171
141
Short-term forecastingM4 Monthly
MASE9.032
125
Natural Language UnderstandingSuperGLUE
SGLUE Score58.73
84
Time Series ForecastingETTh2
MASE1.414
66
General Language UnderstandingGLUE v1 (test dev)
MNLI63.47
40
Natural Language UnderstandingGLUE and SuperGLUE (test val)
SST-294.04
37
Time Series ForecastingM4 Daily
MASE8.415
31
Time Series ForecastingGIFT-Eval bizitobs-application-60
MASE3.691
27
Natural Language UnderstandingGLUE RoBERTa LARGE (test dev)
MNLI Accuracy65.83
22
Showing 10 of 20 rows

Other info

Follow for update