Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Token Dropping for Efficient BERT Pretraining

About

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.

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

Related benchmarks

TaskDatasetResultRank
Natural Language UnderstandingGLUE (dev)
SST-2 (Acc)94
504
Question AnsweringSQuAD v1.1 (dev)--
375
Question AnsweringSQuAD v2.0 (dev)--
158
Natural Language UnderstandingSuperGLUE (dev)--
91
Showing 4 of 4 rows

Other info

Follow for update