DeFormer: Decomposing Pre-trained Transformers for Faster Question Answering

By Qingqing Cao, Harsh Trivedi, Aruna Devi Balasubramanian, Niranjan Balasubramanian. 2020

71 citations recorded by the source corpus.

Transformer-based QA models use input-wide self-attention – i.e. across both the question and the input passage – at all layers, causing them to be slow and memory-intensive. It turns out that we can get by without input-wide self-attention at all layers, especially in the lower layers. We introduce DeFormer, a decomposed transformer, which substitutes the full self-attention with question-wide and passage-wide self-attentions in the lower layers. This allows for question-independent processing of the input text representations, which in turn enables pre-computing passage representations reducing runtime compute drastically. Furthermore, because DeFormer is largely similar to the original model, we can initialize DeFormer with the pre-training weights of a standard transformer, and directly fine-tune on the target QA dataset. We show DeFormer versions of BERT and XLNet can be used to speed up QA by over 4.3x and with simple distillation-based losses they incur only a 1% drop in accuracy. We open source the code at https://github.com/StonyBrookNLP/deformer.

Subfields: Artificial Intelligence, Management Science and Operations Research, Natural Language Processing

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. Pascale Fung
  2. Andrea Madotto
  3. Jinhyuk Lee
  4. Danqi Chen
  5. Yonatan Belinkov
  6. Genta Indra Winata
  7. Jaewoo Kang
  8. Zihan Liu

In Management Science and Operations Research

  1. Jaewoo Kang
  2. Dan Su
  3. Mujeen Sung
  4. Zihan Liu
  5. Yonatan Belinkov
  6. Andrea Madotto
  7. Pascale Fung
  8. Jinhyuk Lee

In Natural Language Processing

  1. Pascale Fung
  2. Jinhyuk Lee
  3. Danqi Chen
  4. Andrea Madotto
  5. Yonatan Belinkov
  6. Jaewoo Kang
  7. Zihan Liu
  8. Genta Indra Winata

Citations in the corpus