DeFormer: Decomposing Pre-trained Transformers for Faster Question Answering
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 29 papers in the map (data through 7 Oct 2026). First posted on arXiv 2 May 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 11; 2022: 7; 2023: 8; 2024: 2; 2025: 1.
29 papers.
Sort:
By area:
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 831
- 2021TR-BERT: Dynamic Token Reduction for Accelerating BERT Inferencecited by 40
- 2022Enable Deep Learning on Mobile Devices: Methods, Systems, and Applicationscited by 32
- 2021Retrieval-Free Knowledge-Grounded Dialogue Response Generation with Adapterscited by 23
- 2021Distilled Dual-Encoder Model for Vision-Language Understandingcited by 21
- 2022Transkimmer: Transformer Learns to Layer-wise Skimcited by 21
- 2021Block-Skim: Efficient Question Answering for Transformercited by 16
- 2023Vesper: A Compact and Effective Pretrained Model for Speech Emotion Recognitioncited by 16
- 2022Exploring Extreme Parameter Compression for Pre-trained Language Modelscited by 15
- 2022Differentially Private Model Compressioncited by 13
- 2021A Survey on Deep Learning Event Extraction: Approaches and Applicationscited by 12
- 2021Adapting by Pruning: A Case Study on BERTcited by 11
17 more
- 2021Modeling Context in Answer Sentence Selection Systems on a Latency Budgetcited by 9
- 2022RAAT: Relation-Augmented Attention Transformer for Relation Modeling in Document-Level Event Extractioncited by 8
- 2021Optimizing Inference Performance of Transformers on CPUscited by 7
- 2021SDR: Efficient Neural Re-ranking using Succinct Document Representationcited by 7
- 2023BTR: Binary Token Representations for Efficient Retrieval Augmented Language Modelscited by 5
- 2023Investigating the Role of Feed-Forward Networks in Transformers Using Parallel Attention and Feed-Forward Net Designcited by 4
- 2023Improving Text Semantic Similarity Modeling through a 3D Siamese Networkcited by 4
- 2024EAVE: Efficient Product Attribute Value Extraction via Lightweight Sparse-layer Interactioncited by 4
- 2021VIRT: Improving Representation-based Models for Text Matching through Virtual Interactioncited by 3
- 2022Question Generation for Evaluating Cross-Dataset Shifts in Multi-modal Groundingcited by 3
- 2023Modularity in Deep Learning: A Surveycited by 3
- 2022Once is Enough: A Light-Weight Cross-Attention for Fast Sentence Pair Modelingcited by 2
- 2023AttMEMO : Accelerating Transformers with Memoization on Big Memory Systemscited by 2
- 2023A Monte Carlo Language Model Pipeline for Zero-Shot Sociopolitical Event Extractioncited by 2
- 2024Comparing Neighbors Together Makes it Easy: Jointly Comparing Multiple Candidates for Efficient and Effective Retrievalcited by 2
- 2025Reasoning Paths as Signals: Augmenting Multi-hop Fact Verification through Structural Reasoning Progressioncited by 1
- 2023Token-Event-Role Structure-based Multi-Channel Document-Level Event Extractioncited by 0
- 2025Reasoning Paths as Signals: Augmenting Multi-hop Fact Verification through Structural Reasoning Progression8 Jun 2025
- 2024EAVE: Efficient Product Attribute Value Extraction via Lightweight Sparse-layer Interaction10 Jun 2024
- 2024Comparing Neighbors Together Makes it Easy: Jointly Comparing Multiple Candidates for Efficient and Effective Retrieval21 May 2024
- 2023BTR: Binary Token Representations for Efficient Retrieval Augmented Language Models2 Oct 2023
- 2023Modularity in Deep Learning: A Survey2 Oct 2023
- 2023Vesper: A Compact and Effective Pretrained Model for Speech Emotion Recognition20 Jul 2023
- 2023Improving Text Semantic Similarity Modeling through a 3D Siamese Network18 Jul 2023
- 2023Token-Event-Role Structure-based Multi-Channel Document-Level Event Extraction30 Jun 2023
- 2023A Monte Carlo Language Model Pipeline for Zero-Shot Sociopolitical Event Extraction24 May 2023
- 2023Investigating the Role of Feed-Forward Networks in Transformers Using Parallel Attention and Feed-Forward Net Design22 May 2023
- 2023AttMEMO : Accelerating Transformers with Memoization on Big Memory Systems23 Jan 2023
- 2022Once is Enough: A Light-Weight Cross-Attention for Fast Sentence Pair Modeling11 Oct 2022
17 more
- 2022RAAT: Relation-Augmented Attention Transformer for Relation Modeling in Document-Level Event Extraction7 Jun 2022
- 2022Differentially Private Model Compression3 Jun 2022
- 2022Exploring Extreme Parameter Compression for Pre-trained Language Models20 May 2022
- 2022Transkimmer: Transformer Learns to Layer-wise Skim15 May 2022
- 2022Enable Deep Learning on Mobile Devices: Methods, Systems, and Applications25 Apr 2022
- 2022Question Generation for Evaluating Cross-Dataset Shifts in Multi-modal Grounding24 Jan 2022
- 2021Distilled Dual-Encoder Model for Vision-Language Understanding16 Dec 2021
- 2021Block-Skim: Efficient Question Answering for Transformer16 Dec 2021
- 2021VIRT: Improving Representation-based Models for Text Matching through Virtual Interaction8 Dec 2021
- 2021SDR: Efficient Neural Re-ranking using Succinct Document Representation3 Oct 2021
- 2021A Survey on Deep Learning Event Extraction: Approaches and Applications5 Jul 2021
- 2021TR-BERT: Dynamic Token Reduction for Accelerating BERT Inference25 May 2021
- 2021Retrieval-Free Knowledge-Grounded Dialogue Response Generation with Adapters13 May 2021
- 2021Adapting by Pruning: A Case Study on BERT7 May 2021
- 2021Probing Classifiers: Promises, Shortcomings, and Advances24 Feb 2021
- 2021Optimizing Inference Performance of Transformers on CPUs12 Feb 2021
- 2021Modeling Context in Answer Sentence Selection Systems on a Latency Budget28 Jan 2021
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 831
- 2022Enable Deep Learning on Mobile Devices: Methods, Systems, and Applicationscited by 32
- 2021Retrieval-Free Knowledge-Grounded Dialogue Response Generation with Adapterscited by 23
- 2021Distilled Dual-Encoder Model for Vision-Language Understandingcited by 21
- 2022Transkimmer: Transformer Learns to Layer-wise Skimcited by 21
- 2021Block-Skim: Efficient Question Answering for Transformercited by 16
- 2023Vesper: A Compact and Effective Pretrained Model for Speech Emotion Recognitioncited by 16
- 2022Exploring Extreme Parameter Compression for Pre-trained Language Modelscited by 15
- 2022Differentially Private Model Compressioncited by 13
- 2021A Survey on Deep Learning Event Extraction: Approaches and Applicationscited by 12
- 2021Adapting by Pruning: A Case Study on BERTcited by 11
- 2021Modeling Context in Answer Sentence Selection Systems on a Latency Budgetcited by 9
12 most cited of 26 All 26 (JSON)
- 2024EAVE: Efficient Product Attribute Value Extraction via Lightweight Sparse-layer Interaction10 Jun 2024
- 2024Comparing Neighbors Together Makes it Easy: Jointly Comparing Multiple Candidates for Efficient and Effective Retrieval21 May 2024
- 2023Modularity in Deep Learning: A Survey2 Oct 2023
- 2023Vesper: A Compact and Effective Pretrained Model for Speech Emotion Recognition20 Jul 2023
- 2023Improving Text Semantic Similarity Modeling through a 3D Siamese Network18 Jul 2023
- 2023Token-Event-Role Structure-based Multi-Channel Document-Level Event Extraction30 Jun 2023
- 2023A Monte Carlo Language Model Pipeline for Zero-Shot Sociopolitical Event Extraction24 May 2023
- 2023Investigating the Role of Feed-Forward Networks in Transformers Using Parallel Attention and Feed-Forward Net Design22 May 2023
- 2023AttMEMO : Accelerating Transformers with Memoization on Big Memory Systems23 Jan 2023
- 2022Once is Enough: A Light-Weight Cross-Attention for Fast Sentence Pair Modeling11 Oct 2022
- 2022RAAT: Relation-Augmented Attention Transformer for Relation Modeling in Document-Level Event Extraction7 Jun 2022
- 2022Differentially Private Model Compression3 Jun 2022
12 newest of 26 All 26 (JSON)