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

RomeBERT:多出口BERT的鲁棒训练

RomeBERT: Robust Training of Multi-Exit BERT

Rutgers University(罗格斯大学);The Chinese University of Hong Kong(香港中文大学)

Shijie Geng, Peng Gao, Zuohui Fu, Yongfeng Zhang

摘要:

BERT在自然语言理解(NLU)任务上取得了卓越的性能。然而,BERT拥有大量的参数,并且需要某些资源来部署。为了加速,最近提出了动态提前退出BERT(DeeBERT),它包含多个出口,并采用动态提前退出机制,以确保有效的推理。多出口BERT在取得效率-性能折衷的同时,早出口的性能明显劣于晚出口。本文利用梯度正则化自蒸馏方法对多出口BERT(Multi-Exit BERT)进行鲁棒训练,有效地解决了早期出口和晚期出口之间的性能不平衡问题。此外,建议的多出口和BERT骨干,而DeeBERT需要两个阶段,需要更多的训练时间的联合训练策略,采用一个阶段的并行BERT。在GLUE数据集上进行了大量的实验,以证明我们的方法的优越性。我们的代码可在https://github.com/romebert/RomeBERT上获得。

英文摘要:

BERT has achieved superior performances on Natural Language Understanding (NLU) tasks. However, BERT possesses a large number of parameters and demands certain resources to deploy. For acceleration, Dynamic Early Exiting for BERT (DeeBERT) has been proposed recently, which incorporates multiple exits and adopts a dynamic early-exit mechanism to ensure efficient inference. While obtaining an efficiency-performance tradeoff, the performances of early exits in multi-exit BERT are significantly worse than late exits. In this paper, we leverage gradient regularized self-distillation for RObust training of Multi-Exit BERT (RomeBERT), which can effectively solve the performance imbalance problem between early and late exits. Moreover, the proposed RomeBERT adopts a one-stage joint training strategy for multi-exits and the BERT backbone while DeeBERT needs two stages that require more training time. Extensive experiments on GLUE datasets are performed to demonstrate the superiority of our approach. Our code is available at https://github.com/romebert/RomeBERT.

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

↑