paper-with-me

홈 › Papers

Early Exiting BERT for Efficient Document Ranking

2020-11-01 · EMNLP (sustainlp) 2020 11 · Ji Xin, Rodrigo Nogueira, YaoLiang Yu, Jimmy Lin

Pre-trained language models such as BERT have shown their effectiveness in various tasks. Despite their power, they are known to be computationally intensive, which hinders real-world applications. In this paper, we introduce early exiting BERT for document ranking. With a slight modification, BERT becomes a model with multiple output paths, and each inference sample can exit early from these paths. In this way, computation can be effectively allocated among samples, and overall system latency is significantly reduced while the original quality is maintained. Our experiments on two document ranking datasets demonstrate up to 2.5x inference speedup with minimal quality degradation. The source code of our implementation can be found at https://github.com/castorini/earlyexiting-monobert.

📄 PDF Abstract BibTeX

Code (1)

castorini/earlyexiting-monobert 공식 구현 pytorch

Tasks

Document Ranking

Similar Papers 제목 키워드 기반

Query-level Early Exit for Additive Learning-to-Rank Ensembles

2020-04-30 · Claudio Lucchese, Franco Maria Nardini, Salvatore Orlando, Raffaele Perego 외

Search engine ranking pipelines are commonly based on large ensembles of machine-learned decision trees. The tight constraints on query response time recently motivated researchers to investigate algorithms to make faste…

Learning-To-Rank

VEE-BERT: Accelerating BERT Inference for Named Entity Recognition via Vote Early Exiting

2022-01-16 · ACL ARR January 2022 1 · Anonymous

Named entity recognition (NER) is of great importance for a wide range of tasks, such as medical health record understanding, document analysis, dialogue understanding. BERT and its variants are the most performing model…

Dialogue Understandingnamed-entity-recognitionNamed Entity RecognitionNamed Entity Recognition (NER)+1

SmartBERT: A Promotion of Dynamic Early Exiting Mechanism for Accelerating BERT Inference

2023-03-16 · Boren Hu, Yun Zhu, Jiacheng Li, Siliang Tang

Dynamic early exiting has been proven to improve the inference speed of the pre-trained language model like BERT. However, all samples must go through all consecutive layers before early exiting and more complex samples …

Contrastive LearningLanguage ModellingRTEWNLI

BERxiT: Early Exiting for BERT with Better Fine-Tuning and Extension to Regression

2021-04-01 · EACL 2021 2 · Ji Xin, Raphael Tang, YaoLiang Yu, Jimmy Lin

The slow speed of BERT has motivated much research on accelerating its inference, and the early exiting idea has been proposed to make trade-offs between model quality and efficiency. This paper aims to address two weakn…

regression

DE$^3$-BERT: Distance-Enhanced Early Exiting for BERT based on Prototypical Networks

2024-02-03 · Jianing He, Qi Zhang, Weiping Ding, Duoqian Miao 외

Early exiting has demonstrated its effectiveness in accelerating the inference of pre-trained language models like BERT by dynamically adjusting the number of layers executed. However, most existing early exiting methods…