Revisiting Token Dropping Strategy in Efficient BERT Pretraining

Qihuang Zhong, Liang Ding, Juhua Liu, Xuebo Liu, Min Zhang, Bo Du, Dacheng Tao

Abstract

Token dropping is an effective strategy for accelerating BERT pretraining by skipping computations for redundant tokens. However, it often leads to "semantic drift," degrading performance on complex linguistic tasks. This paper introduces SCTD (Semantic-Consistent Learning), a self-distillation framework that aligns the representations of token-dropped models with full-sequence baselines. SCTD reduces pretraining time by up to 57% while improving downstream accuracy, effectively bridging the gap between efficiency and semantic depth.

The Problem: Semantic Drift in Token Dropping

Training large-scale Transformer models like BERT is computationally intensive. Token dropping mitigates this by identifying and skipping "unimportant" tokens (e.g., punctuation or stop words) in middle layers. While this increases throughput, it compromises the structural integrity of the input. Probing experiments reveal that token-dropped models struggle with "semantic-intense" tasks, such as Recognizing Textual Entailment (RTE), which require deep logical understanding. Essentially, the model gains speed at the cost of a shallower semantic understanding.

Key Insights: The Penultimate Layer Vulnerability

A critical finding of this research is that semantic information in token-dropped models tends to collapse just before the final layer. Probing tasks focused on linguistic features like tense and subject number show a sharp performance drop at the 11th layer of a 12-layer model.

Probing tasks show a significant performance drop at the 11th layer for token-dropped models compared to the baseline.

Proposed Method: Semantic-Consistent Learning (SCTD)

To address this semantic loss, the authors propose SCTD, a self-distillation approach where the model acts as its own teacher.

  1. Dual-Level Alignment: SCTD uses KL divergence to align the output distributions of the final layer (global-level) and the penultimate layer (local-level) between a full-sequence pass and a token-dropped pass.
  2. Hybrid Training: To maintain efficiency, the model does not perform alignment at every step. Instead, it follows a hybrid schedule, performing standard token dropping for most steps and only executing the SCTD alignment pass once every $Fi$ steps (e.g., $Fi=10$).
  3. Self-Distillation: This "plug-and-play" method generates its own teacher signal on the fly, eliminating the need for a separate, expensive pre-trained teacher model.

Key Results and Efficiency

SCTD demonstrates significant improvements across the GLUE and SuperGLUE benchmarks. Notably, it achieves a +1.56% average improvement over vanilla token dropping and even outperforms the full-sequence baseline in several tasks, likely due to the regularization effect of the distillation process.

Average GLUE score vs. training steps, showing that SCTD reaches higher performance levels faster than both the baseline and vanilla token dropping.

In terms of efficiency, SCTD saves up to 57% of pretraining time compared to vanilla BERT. On the RTE task—previously the most affected by token dropping—SCTD improved performance by 3.4%, successfully closing the semantic gap.

Conclusion

SCTD proves that efficiency in pretraining does not have to come at the expense of semantic depth. By targeting the specific failure points of token dropping through periodic self-distillation, SCTD provides a scalable and effective method for training high-performance NLU models with significantly reduced computational resources. Future work will explore the applicability of SCTD to decoder-only architectures and larger-scale generative models.

Summary updated

BibTeX
@inproceedings{zhong2023revisiting,
  author = {Qihuang Zhong and Liang Ding and Juhua Liu and Xuebo Liu and Min Zhang and Bo Du and Dacheng Tao},
  title = {{Revisiting Token Dropping Strategy in Efficient BERT Pretraining}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.579},
}
Figure