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

通过任务无关的掩码训练学习在BERT传输中赢得彩票

Learning to Win Lottery Tickets in BERT Transfer via Task-agnostic Mask Training

Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院);WeChat AI, Tencent Inc(腾讯微信人工智能部)

Yuanxin Liu, Fandong Meng, Zheng Lin, Peng Fu, Yanan Cao, Weiping Wang, Jie Zhou

摘要:

最近对彩票假说(LTH)的研究表明,像BERT这样的预训练语言模型(PLM)包含与原始PLM具有相似迁移学习性能的匹配子网络。这些子网络使用基于幅度的修剪。在本文中,我们发现,BERT子网络有更多的潜力比这些研究表明。首先,我们发现幅度修剪的成功可以归因于保留的预训练性能,这与下游可移植性相关。受此启发,我们建议直接优化子网络结构,以实现预训练目标,这可以更好地保持预训练性能。具体来说,我们在预训练任务上通过模型权重训练二进制掩码,目的是保持子网络的通用可转移性,这对任何特定的下游任务都是不可知的。然后,我们在GLUE基准和SQuAD数据集上微调子网络。结果表明,与幅度剪枝相比,掩码训练能有效地发现BERT子网络,提高了下游任务的整体性能。此外,我们的方法在搜索子网络时也更有效,并且在一定范围内的数据稀缺性进行微调时更有利。我们的代码可在https://github.com/llyx97/TAMT上获得。

英文摘要:

Recent studies on the lottery ticket hypothesis (LTH) show that pre-trained language models (PLMs) like BERT contain matching subnetworks that have similar transfer learning performance as the original PLM. These subnetworks are found using magnitude-based pruning. In this paper, we find that the BERT subnetworks have even more potential than these studies have shown. Firstly, we discover that the success of magnitude pruning can be attributed to the preserved pre-training performance, which correlates with the downstream transferability. Inspired by this, we propose to directly optimize the subnetwork structure towards the pre-training objectives, which can better preserve the pre-training performance. Specifically, we train binary masks over model weights on the pre-training tasks, with the aim of preserving the universal transferability of the subnetwork, which is agnostic to any specific downstream tasks. We then fine-tune the subnetworks on the GLUE benchmark and the SQuAD dataset. The results show that, compared with magnitude pruning, mask training can effectively find BERT subnetworks with improved overall performance on downstream tasks. Moreover, our method is also more efficient in searching subnetworks and more advantageous when fine-tuning within a certain range of data scarcity. Our code is available at https://github.com/llyx97/TAMT.

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

↑