DeeBERT: Dynamic Early Exiting for Accelerating BERT Inference

By Ji Xin, Raphael Tang, Jaejun Lee, Yaoliang Yu, Jimmy J. Lin. 2020

534 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Efficiency & Compression

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Iryna Gurevych
  2. Jianfeng Gao
  3. Furu Wei
  4. Mohit Bansal
  5. Percy Liang
  6. Luke S. Zettlemoyer
  7. Xipeng Qiu
  8. Jimmy J. Lin

In Computer Vision and Pattern Recognition

  1. Dacheng Tao
  2. Jimmy J. Lin
  3. Iryna Gurevych
  4. Furu Wei
  5. Xinchao Wang
  6. Jonas Pfeiffer
  7. Julian McAuley
  8. Luc Van Gool

In Efficiency & Compression

  1. Canwen Xu
  2. Julian McAuley
  3. Furu Wei
  4. Jimmy J. Lin
  5. Tao Ge
  6. Wangchunshu Zhou
  7. Tal Schuster
  8. Adam Fisch

Citations in the corpus