arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2108.02340cs.CL
收藏

基于适配器预训练语言模型的鲁棒迁移学习

Robust Transfer Learning with Pretrained Language Models through Adapters

Beijing Institute for General Artificial Intelligence(北京通用人工智能研究院);University of California, Los Angeles(加利福尼亚大学洛杉矶分校)

Wenjuan Han, Bo Pang, Yingnian Wu

摘要:

使用像BERT这样的大型预训练的基于transformer的语言模型进行迁移学习已经成为大多数NLP任务的主要方法。简单地在下游任务上微调这些大语言模型或将其与特定于任务的预训练相结合通常并不健壮。特别地,性能随着随机种子的变化或预训练和/或微调迭代的数量的变化而显著变化,并且微调的模型容易受到对抗攻击。我们提出了一种简单而有效的基于适配器的方法来缓解这些问题。具体来说,我们插入小瓶颈层(即,适配器),然后固定预训练层并在下游任务数据上训练适配器层,其中(1)任务特定的无监督预训练,然后(2)任务特定的监督训练(例如,分类、序列标记)。我们的实验表明,这样的训练方案导致改善的稳定性和对抗鲁棒性的迁移学习到各种下游任务。

英文摘要:

Transfer learning with large pretrained transformer-based language models like BERT has become a dominating approach for most NLP tasks. Simply fine-tuning those large language models on downstream tasks or combining it with task-specific pretraining is often not robust. In particular, the performance considerably varies as the random seed changes or the number of pretraining and/or fine-tuning iterations varies, and the fine-tuned model is vulnerable to adversarial attack. We propose a simple yet effective adapter-based approach to mitigate these issues. Specifically, we insert small bottleneck layers (i.e., adapter) within each layer of a pretrained model, then fix the pretrained layers and train the adapter layers on the downstream task data, with (1) task-specific unsupervised pretraining and then (2) task-specific supervised training (e.g., classification, sequence labeling). Our experiments demonstrate that such a training scheme leads to improved stability and adversarial robustness in transfer learning to various downstream tasks.

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

↑