跳到主要导航 跳到搜索 跳到主要内容

BADGE: Speeding Up BERT Inference after Deployment via Block-wise BypAsses and DiverGence-Based Early Exiting

  • Wei Zhu
  • , Peng Wang
  • , Yuan Ni
  • , Guotong Xie
  • , Xiaoling Wang*
  • *此作品的通讯作者
  • East China Normal University
  • Tomorrow Advancing Life
  • Pingan Health Tech

科研成果: 书/报告/会议事项章节 › 会议稿件 › 同行评审

摘要

Early exiting can reduce the average latency of pre-trained language models (PLMs) via its adaptive inference mechanism and work with other inference speed-up methods like model pruning, thus drawing much attention from the industry. In this work, we propose a novel framework, BADGE, which consists of two off-the-shelf methods for improving PLMs' early exiting. We frst address the issues of training a multi-exit PLM, the backbone model for early exiting. We propose the novel architecture of block-wise bypasses, which can alleviate the conficts in jointly training multiple intermediate classifers and thus improve the overall performances of multi-exit PLM while introducing negligible additional fops to the model. Second, we propose a novel divergence-based early exiting (DGE) mechanism, which obtains early exiting signals by comparing the predicted distributions among the current layer and the previous layers' exits. Extensive experiments on three proprietary datasets and three GLUE benchmark tasks demonstrate that our method can obtain a better speedup-performance tradeoff than the existing baseline methods.

源语言英语
主期刊名Industry Track
出版商Association for Computational Linguistics (ACL)
页500-509
页数10
ISBN(电子版)9781959429685
DOI
出版状态已出版 - 2023
活动61st Annual Meeting of the Association for Computational Linguistics, ACL 2023 - Toronto, 加拿大
期限: 9 7月 2023 → 14 7月 2023

丛书

姓名Proceedings of the Annual Meeting of the Association for Computational Linguistics
卷5
ISSN(印刷版)0736-587X

会议

会议61st Annual Meeting of the Association for Computational Linguistics, ACL 2023
国家/地区加拿大
市Toronto
时期9/07/23 → 14/07/23

学术指纹

探究 'BADGE: Speeding Up BERT Inference after Deployment via Block-wise BypAsses and DiverGence-Based Early Exiting' 的科研主题。它们共同构成独一无二的学术指纹。

引用此