arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2210.15976cs.CLcs.LG
收藏

BEBERT:高效且鲁棒的二进制集成BERT

BEBERT: Efficient and Robust Binary Ensemble BERT

Nanjing University(南京大学);University of Southern California(南加州大学)

Jiayi Tian, Chao Fang, Haonan Wang, Zhongfeng Wang

AI总结:

提出BEBERT,首个对二进制BERT采用集成技术的方法,在GLUE上以2倍训练加速、15倍FLOPs和13倍模型大小节省下,仅损失0.3%准确率,并优于其他压缩BERT达6.7%。

摘要:

预训练的BERT模型在自然语言处理(NLP)任务上取得了令人瞩目的准确率。然而,其过多的参数阻碍了它们在边缘设备上的高效部署。对BERT模型进行二值化可以显著缓解这一问题,但与全精度模型相比,这会导致严重的准确率下降。在本文中,我们提出了一种高效且鲁棒的二进制集成BERT(BEBERT)来弥合这一准确率差距。据我们所知,这是首次将集成技术应用于二进制BERT的工作,由此产生的BEBERT在保持计算效率的同时实现了卓越的准确率。此外,我们在集成过程中移除了知识蒸馏步骤,以在不牺牲准确率的情况下加速训练过程。在GLUE基准上的实验结果表明,所提出的BEBERT在准确率和鲁棒性上显著优于现有的二进制BERT模型,同时训练时间加速了2倍。此外,与全精度基线相比,我们的BEBERT仅有0.3%的微小准确率损失,同时在FLOPs和模型大小上分别节省了15倍和13倍。另外,BEBERT在准确率上还优于其他压缩BERT模型,最高可达6.7%。

英文摘要:

Pre-trained BERT models have achieved impressive accuracy on natural language processing (NLP) tasks. However, their excessive amount of parameters hinders them from efficient deployment on edge devices. Binarization of the BERT models can significantly alleviate this issue but comes with a severe accuracy drop compared with their full-precision counterparts. In this paper, we propose an efficient and robust binary ensemble BERT (BEBERT) to bridge the accuracy gap. To the best of our knowledge, this is the first work employing ensemble techniques on binary BERTs, yielding BEBERT, which achieves superior accuracy while retaining computational efficiency. Furthermore, we remove the knowledge distillation procedures during ensemble to speed up the training process without compromising accuracy. Experimental results on the GLUE benchmark show that the proposed BEBERT significantly outperforms the existing binary BERT models in accuracy and robustness with a 2x speedup on training time. Moreover, our BEBERT has only a negligible accuracy loss of 0.3% compared to the full-precision baseline while saving 15x and 13x in FLOPs and model size, respectively. In addition, BEBERT also outperforms other compressed BERTs in accuracy by up to 6.7%.

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

↑