Early Exiting BERT for Efficient Document Ranking

By Ji Xin, Rodrigo Nogueira, Yaoliang Yu, Jimmy J. Lin. 2020

49 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Management Science and Operations Research, Natural Language Processing, 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. Furu Wei
  2. Julian McAuley
  3. Hinrich Schütze
  4. Luke S. Zettlemoyer
  5. Mohit Bansal
  6. Jimmy J. Lin
  7. Tommi S. Jaakkola
  8. Regina Barzilay

In Management Science and Operations Research

  1. Canwen Xu
  2. Julian McAuley
  3. Hinrich Schütze
  4. Jimmy J. Lin
  5. Francesco Restuccia
  6. Wangchunshu Zhou
  7. Marco Levorato
  8. Regina Barzilay

In Natural Language Processing

  1. Hinrich Schütze
  2. Furu Wei
  3. Timo Schick
  4. Tommi S. Jaakkola
  5. Regina Barzilay
  6. Jimmy J. Lin
  7. Hannaneh Hajishirzi
  8. Luke S. Zettlemoyer

In Efficiency & Compression

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

Citations in the corpus