计算机科学 > 计算与语言
[提交于 2021年2月19日]
标题:Learning Dynamic BERT via Trainable Gate Variables and a Bi-modal Regularizer
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Seohyeong Jeong[v1] 2021年2月19日 星期五 03:59:23 UTC