arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.13240cs.CLcs.LG
收藏

Token丢弃以实现高效的BERT预训练

Token Dropping for Efficient BERT Pretraining

Google(谷歌);New York University(纽约大学);University of Maryland, College Park(马里兰大学帕克分校)

Le Hou, Richard Yuanzhe Pang, Tianyi Zhou, Yuexin Wu, Xinying Song, Xiaodan Song, Denny Zhou

摘要:

基于转换器的模型通常为给定序列中的每个令牌分配相同的计算量。我们开发了一种简单但有效的“令牌丢弃”方法来加速Transformer模型(如BERT)的预训练,而不会降低其在下游任务上的性能。简而言之,我们从模型的中间层开始丢弃不重要的标记,使模型专注于重要的标记;丢弃的标记稍后由模型的最后一层拾取,以便模型仍然产生全长序列。我们利用已经内置的掩码语言建模(MLM)损失来识别不重要的令牌,几乎没有计算开销。在我们的实验中,这种简单的方法将BERT的预训练成本降低了25%,同时在标准下游任务上实现了类似的整体微调性能。

英文摘要:

Transformer-based models generally allocate the same amount of computation for each token in a given sequence. We develop a simple but effective "token dropping" method to accelerate the pretraining of transformer models, such as BERT, without degrading its performance on downstream tasks. In short, we drop unimportant tokens starting from an intermediate layer in the model to make the model focus on important tokens; the dropped tokens are later picked up by the last layer of the model so that the model still produces full-length sequences. We leverage the already built-in masked language modeling (MLM) loss to identify unimportant tokens with practically no computational overhead. In our experiments, this simple approach reduces the pretraining cost of BERT by 25% while achieving similar overall fine-tuning performance on standard downstream tasks.

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

↑