计算机科学 > 计算与语言
[提交于 2020年4月26日 (v1),最后修订于 2020年10月11日 (此版本, v2)]
标题:Masking as an Efficient Alternative to Finetuning for Pretrained Language Models
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We present an efficient method of utilizing pretrained language models, where we learn selective binary masks for pretrained weights in lieu of modifying them through finetuning. Extensive evaluations of masking BERT and RoBERTa on a series of NLP tasks show that our masking scheme yields performance comparable to finetuning, yet has a much smaller memory footprint when several tasks need to be inferred simultaneously. Through intrinsic evaluations, we show that representations computed by masked language models encode information necessary for solving downstream tasks. Analyzing the loss landscape, we show that masking and finetuning produce models that reside in minima that can be connected by a line segment with nearly constant test accuracy. This confirms that masking can be utilized as an efficient alternative to finetuning.