English

Robust Transfer Learning with Pretrained Language Models through Adapters

Computation and Language 2021-08-06 v1

Abstract

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.

Keywords

Cite

@article{arxiv.2108.02340,
  title  = {Robust Transfer Learning with Pretrained Language Models through Adapters},
  author = {Wenjuan Han and Bo Pang and Yingnian Wu},
  journal= {arXiv preprint arXiv:2108.02340},
  year   = {2021}
}

Comments

Accepted to ACL 2021

R2 v1 2026-06-24T04:50:36.214Z