AdapterSoup:权重平均化提高预训练语言模型的泛化能力
AdapterSoup: Weight Averaging to Improve Generalization of Pretrained Language Models
摘要:
预训练的语言模型(PLM)是在大量语料库上训练的,但通常需要专门针对特定领域。一个参数有效的适应方法建议训练适配器的语言建模任务的每个领域。这导致了良好的域内得分,但对于域或资源受限的设置可能是不切实际的。一种解决方案是在测试时为新域使用相关域适配器。在本文中,我们介绍了AdapterSoup,这是一种对在不同域上训练的适配器进行权重空间平均的方法。我们的方法是并行的:首先,我们训练一组特定于域的适配器;然后,对于每个新的域,我们确定哪些适配器应该在测试时进行平均。我们提出了大量的实验表明,AdapterSoup一贯提高性能的新领域,而无需额外的训练。我们还探索了在具有不同超参数的相同域上训练的适配器的权重平均,并表明它在获得强大的域内结果的同时保留了PLM在新域上的性能。我们探讨了选择哪些适配器相结合,如文本聚类和语义相似性的各种方法。我们发现使用集群可以在新领域上产生最具竞争力的结果。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。