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

Elbert:快速Albert,具有基于置信窗口的提前退出

Elbert: Fast Albert with Confidence-Window Based Early Exit

Nanjing University(南京大学)

Keli Xie, Siyuan Lu, Meiqi Wang, Zhongfeng Wang

摘要:

尽管在自然语言处理(NLP)领域取得了巨大的成功,但由于大量的参数和缓慢的推理速度,像BERT这样的大型预训练语言模型并不适合资源受限或实时应用。近年来,压缩和加速BERT已成为重要的课题。通过引入参数共享策略,ALBERT大大减少了参数的数量,同时实现了具有竞争力的性能。尽管如此,ALBERT仍然遭受了很长的推理时间。在这项工作中,我们提出了ELBERT,由于所提出的基于置信窗口的早期退出机制,与ALBERT相比,它显着提高了平均推理速度,而不引入额外的参数或额外的训练开销。实验结果表明,ELBERT实现了自适应推理加速从2 $\times$到10 $\times$与ALBERT相比,在各种数据集上的精度下降可以忽略不计。此外,ELBERT比现有的提前退出方法加速BERT在相同的计算成本下,实现了更高的精度。此外,为了理解提前退出机制的原理,我们还在ELBERT中可视化了提前退出机制的决策过程。

英文摘要:

Despite the great success in Natural Language Processing (NLP) area, large pre-trained language models like BERT are not well-suited for resource-constrained or real-time applications owing to the large number of parameters and slow inference speed. Recently, compressing and accelerating BERT have become important topics. By incorporating a parameter-sharing strategy, ALBERT greatly reduces the number of parameters while achieving competitive performance. Nevertheless, ALBERT still suffers from a long inference time. In this work, we propose the ELBERT, which significantly improves the average inference speed compared to ALBERT due to the proposed confidence-window based early exit mechanism, without introducing additional parameters or extra training overhead. Experimental results show that ELBERT achieves an adaptive inference speedup varying from 2$\times$ to 10$\times$ with negligible accuracy degradation compared to ALBERT on various datasets. Besides, ELBERT achieves higher accuracy than existing early exit methods used for accelerating BERT under the same computation cost. Furthermore, to understand the principle of the early exit mechanism, we also visualize the decision-making process of it in ELBERT.

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

↑