0

DeeBERT: Dynamic Early Exiting for Accelerating BERT Inference

DeeBERT accelerates BERT inference by allowing early exits from the model, reducing inference time with minimal impact on performance.

Year
2020
Venue
deebert-dynamic-early-exiting-for-1
Authors
5
Hosting
Abstract onlyARXIV-DEFAULT

Cite

Notes

Only stored in your browser.

Attribution

Abstract & full text
arxiv.org/abs/2004.12993ARXIV-DEFAULT
TL;DR
Semantic Scholar
Attribution policy →

Abstract

Large-scale pre-trained language models such as BERT have brought significant improvements to NLP applications. However, they are also notorious for being slow in inference, which makes them difficult to deploy in real-time applications. We propose a simple but effective method, DeeBERT, to accelerate BERT inference. Our approach allows samples to exit earlier without passing through the entire model. Experiments show that DeeBERT is able to save up to ~40% inference time with minimal degradation in model quality. Further analyses show different behaviors in the BERT transformer layers and also reveal their redundancy. Our work provides new ideas to efficiently apply deep transformer-based models to downstream tasks. Code is available at https://github.com/castorini/DeeBERT.

Authors

5