English

Learning Dynamic BERT via Trainable Gate Variables and a Bi-modal Regularizer

Computation and Language 2021-02-22 v1 Artificial Intelligence

Abstract

The BERT model has shown significant success on various natural language processing tasks. However, due to the heavy model size and high computational cost, the model suffers from high latency, which is fatal to its deployments on resource-limited devices. To tackle this problem, we propose a dynamic inference method on BERT via trainable gate variables applied on input tokens and a regularizer that has a bi-modal property. Our method shows reduced computational cost on the GLUE dataset with a minimal performance drop. Moreover, the model adjusts with a trade-off between performance and computational cost with the user-specified hyperparameter.

Keywords

Cite

@article{arxiv.2102.09727,
  title  = {Learning Dynamic BERT via Trainable Gate Variables and a Bi-modal Regularizer},
  author = {Seohyeong Jeong and Nojun Kwak},
  journal= {arXiv preprint arXiv:2102.09727},
  year   = {2021}
}
R2 v1 2026-06-23T23:18:49.512Z