一个双赢的交易:走向稀疏和鲁棒的预训练语言模型
A Win-win Deal: Towards Sparse and Robust Pre-trained Language Models
摘要:
尽管预训练语言模型(PLM)取得了显著的成功,但它们仍然面临两个挑战:首先,大规模PLM在内存占用和计算方面效率低下。其次,在下游任务中,PLM倾向于依赖数据集偏差,并且难以推广到分布外(OOD)数据。为了解决效率问题,最近的研究表明,密集的PLM可以用稀疏的子网络代替,而不会损害性能。这样的子网络可以在三种情况下找到:1)微调的PLM,2)原始PLM,然后单独微调,甚至在3)没有任何参数微调的PLM内部。然而,这些结果仅在分销(ID)环境中获得。在本文中,我们扩展的PLM子网络的OOD设置的研究,调查是否稀疏性和鲁棒性数据集偏差可以同时实现。为此,我们使用预训练的BERT模型对三个自然语言理解(NLU)任务进行了广泛的实验。我们的研究结果表明,\textbf{sparse and robust subnetworks (SRNets) can consistently be found in BERT},在上述三种情况下,使用不同的训练和压缩方法。此外,我们探讨了上界SRNets使用的OOD信息,并表明,\textbf{there exist sparse and almost unbiased BERT subnetworks}。最后,我们提出了1)一个分析研究,提供了如何提高效率的SRNets搜索过程的见解和2)解决方案,以提高子网的性能在高稀疏。该代码可在https://github.com/llyx97/sparse-and-robust-PLM上获得。
英文摘要:
Despite the remarkable success of pre-trained language models (PLMs), they still face two challenges: First, large-scale PLMs are inefficient in terms of memory footprint and computation. Second, on the downstream tasks, PLMs tend to rely on the dataset bias and struggle to generalize to out-of-distribution (OOD) data. In response to the efficiency problem, recent studies show that dense PLMs can be replaced with sparse subnetworks without hurting the performance. Such subnetworks can be found in three scenarios: 1) the fine-tuned PLMs, 2) the raw PLMs and then fine-tuned in isolation, and even inside 3) PLMs without any parameter fine-tuning. However, these results are only obtained in the in-distribution (ID) setting. In this paper, we extend the study on PLMs subnetworks to the OOD setting, investigating whether sparsity and robustness to dataset bias can be achieved simultaneously. To this end, we conduct extensive experiments with the pre-trained BERT model on three natural language understanding (NLU) tasks. Our results demonstrate that \textbf{sparse and robust subnetworks (SRNets) can consistently be found in BERT}, across the aforementioned three scenarios, using different training and compression methods. Furthermore, we explore the upper bound of SRNets using the OOD information and show that \textbf{there exist sparse and almost unbiased BERT subnetworks}. Finally, we present 1) an analytical study that provides insights on how to promote the efficiency of SRNets searching process and 2) a solution to improve subnetworks' performance at high sparsity. The code is available at https://github.com/llyx97/sparse-and-robust-PLM.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。