Large language models have ushered in a new era of artificial intelligence research. However, their substantial training costs hinder further development and widespread adoption. In this paper, inspired by the redundancy in the parameters of large language models, we propose a novel training paradigm: Evolving Subnetwork Training (EST). EST samples subnetworks from the layers of the large language model and from commonly used modules within each layer, Multi-Head Attention (MHA) and Multi-Layer Perceptron (MLP). By gradually increasing the size of the subnetworks during the training process, EST can save the cost of training. We apply EST to train GPT2 model and TinyLlama model, resulting in 26.7\% FLOPs saving for GPT2 and 25.0\% for TinyLlama without an increase in loss on the pre-training dataset. Moreover, EST leads to performance improvements in downstream tasks, indicating that it benefits generalization. Additionally, we provide intuitive theoretical studies based on training dynamics and Dropout theory to ensure the feasibility of EST. Our code is available at https://github.com/OpenDFM/EST.
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(腾讯微信人工智能部)
Functional Subnetwork Localization for Efficient Continual Learning in Large Language Models
School of Computer Science and Technology, Harbin Institute of Technology (Shenzhen)(哈尔滨工业大学(深圳)计算机科学与技术学院);School of Science, Harbin Institute of Technology (Shenzhen)(哈尔滨工业大学(深圳)理学院);China Academy of Engineering Physics(中国工程物理研究院);Peng Cheng Laboratory(鹏城实验室);Huaqiao University(华侨大学)
Where to Begin: Efficient Pretraining via Subnetwork Selection and Distillation
University of Freiburg, Germany(弗赖堡大学);ELLIS Institute Tübingen, Germany(图宾根ELLIS研究所);Charles University, Faculty of Mathematics and Physics(查尔斯大学数学与物理系);PriorLabs;The Czech Academy of Sciences, Institute of Computer Science(捷克科学院计算机科学研究所)
A Win-win Deal: Towards Sparse and Robust Pre-trained Language Models
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);Peking University(北京大学);University of Chinese Academy of Sciences(中国科学院大学);Tencent Inc(腾讯公司)
尽管预训练语言模型(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://g…
Microsoft Corporation(微软公司);University of Texas at Austin(德克萨斯大学奥斯汀分校);Tsinghua University(清华大学)
大规模的预训练最近彻底改变了视觉和语言(VL)的研究。LXMERT和UNITER等型号在广泛的VL任务中显著提升了最先进的水平。然而,这些模型中的大量参数阻碍了它们在实践中的应用。与此同时,彩票假说(LTH)的研究表明,深度神经网络包含小的匹配子网络,在孤立训练时,这些子网络可以达到与密集网络相当甚至更好的性能。在这项工作中,我们进行了第一次实证研究,以评估这种可训练的子网络是否也存在于预训练的VL模型中。我们使用UNITER作为主要测试平台(同时在LXMERT和ViLT上进行测试),整合了7个具有代表性的VL任务进行实验,包括视觉问答、视觉常识推理、视觉蕴涵、指称表达理解、图文检索、GQA和NLVR $^2$。通过综合分析,我们总结了我们的主要发现如下。($i$)很难找到与完整模型的性能严格匹配的子网。然而,我们可以找到“放松”的中奖彩票在50%-70%的稀疏度,保持99%的完全准确性。($ii$)通过特定任务修剪找到的子网络可以很好地转移到其他任务,而在60%/70%稀疏度的预训练任务上找到的子网络则普遍转移,在所有任务上平均匹配98%/96%的完全准确度。($iii$)除了UNITER之外,LXMERT、ViLT等其他机型也可以玩彩票。然而,我们可以为ViLT实现的最高稀疏性远远低于LXMERT和UNITER(30% vs. 70%)。($iv$)LTH在使用其他训练方法(例…