BERT Loses Patience: Fast and Robust Inference with Early Exit

By Wangchunshu Zhou, Canwen Xu, Tao Ge, Julian McAuley, Ke Xu, Furu Wei. 2020

447 citations recorded by the source corpus.

In this paper, we propose Patience-based Early Exit, a straightforward yet effective inference method that can be used as a plug-and-play technique to simultaneously improve the efficiency and robustness of a pretrained language model (PLM). To achieve this, our approach couples an internal-classifier with each layer of a PLM and dynamically stops inference when the intermediate predictions of the internal classifiers remain unchanged for a pre-defined number of steps. Our approach improves inference efficiency as it allows the model to make a prediction with fewer layers. Meanwhile, experimental results with an ALBERT model show that our method can improve the accuracy and robustness of the model by preventing it from overthinking and exploiting multiple classifiers for prediction, yielding a better accuracy-speed trade-off compared to existing early exit methods.

Subfields: Artificial Intelligence, Large Language Models, 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. Jianfeng Gao
  2. Furu Wei
  3. Mohit Bansal
  4. Xipeng Qiu
  5. Kyunghyun Cho
  6. Caiming Xiong
  7. Luke S. Zettlemoyer
  8. Jimmy J. Lin

In Large Language Models

  1. Jimmy J. Lin
  2. Canwen Xu
  3. Julian McAuley
  4. Furu Wei
  5. Qun Liu
  6. Lu Hou
  7. Hany Hassan Awadalla
  8. Xin Jiang

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