DACT-BERT:有效BERT推理的可微分自适应计算时间
DACT-BERT: Differentiable Adaptive Computation Time for an Efficient BERT Inference
摘要:
大规模预训练的语言模型在各种NLP应用中表现出显着的效果。不幸的是,这些性能的提高伴随着计算时间和模型大小的显着增加,强调需要开发新的或补充的策略,以提高这些模型的效率。在本文中,我们提出了DACT-BERT,一个可微的自适应计算时间策略BERT类模型。DACT-BERT为BERT的常规处理管道添加了自适应计算机制,该机制控制推理时需要执行的Transformer块的数量。通过这样做,模型学会为手头的任务组合最合适的中间表示。我们的实验表明,我们的方法,当与基线相比,优于减少计算制度,并在其他限制较少的竞争力。
英文摘要:
Large-scale pre-trained language models have shown remarkable results in diverse NLP applications. Unfortunately, these performance gains have been accompanied by a significant increase in computation time and model size, stressing the need to develop new or complementary strategies to increase the efficiency of these models. In this paper we propose DACT-BERT, a differentiable adaptive computation time strategy for BERT-like models. DACT-BERT adds an adaptive computational mechanism to BERT's regular processing pipeline, which controls the number of Transformer blocks that need to be executed at inference time. By doing this, the model learns to combine the most appropriate intermediate representations for the task at hand. Our experiments demonstrate that our approach, when compared to the baselines, excels on a reduced computational regime and is competitive in other less restrictive ones.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。