Block-Skim: Efficient Question Answering for Transformer
Not on the map. Why?
Abstract (arXiv)
Transformer models have achieved promising results on natural language processing (NLP) tasks including extractive question answering (QA). Common Transformer encoders used in NLP tasks process the hidden states of all input tokens in the context paragraph throughout all layers. However, different from other tasks such as sequence classification, answering the raised question does not necessarily need all the tokens in the context paragraph. Following this motivation, we propose Block-skim, which learns to skim unnecessary context in higher hidden layers to improve and accelerate the Transformer performance. The key idea of Block-Skim is to identify the context that must be further processed and those that could be safely discarded early on during inference. Critically, we find that such information could be sufficiently derived from the self-attention weights inside the Transformer model. We further prune the hidden states corresponding to the unnecessary positions early in lower layers, achieving significant inference-time speedup. To our surprise, we observe that models pruned in this way outperform their full-size counterparts. Block-Skim improves QA models' accuracy on different datasets and achieves 3 times speedup on BERT-base model.
Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Builds on 35 of its 44 references that are in the map. First posted on arXiv 16 Dec 2021.
Builds on
35 of 44 references.
References · 35
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
23 more
- 2020Reformer: The Efficient Transformercited by 1,658
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2020Efficient Transformers: A Surveycited by 784
- 2018Universal Transformerscited by 613
- 2016NewsQA: A Machine Comprehension Datasetcited by 330
- 2017A Structured Self-attentive Sentence Embeddingcited by 318
- 2019Revealing the Dark Secrets of BERTcited by 300
- 2020BERT Loses Patience: Fast and Robust Inference with Early Exitcited by 267
- 2017SearchQA: A New Q&A Dataset Augmented with Context from a Search Enginecited by 221
- 2020Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processingcited by 161
- 2020Lite Transformer with Long-Short Range Attentioncited by 127
- 2020Length-Adaptive Transformer: Train Once with Length Drop, Use Anytime with Searchcited by 76
- 2017Skip RNN: Learning to Skip State Updates in Recurrent Neural Networkscited by 49
- 2020Accelerating Sparse DNN Models without Hardware-Support via Tile-Wise Sparsitycited by 30
- 2020DeFormer: Decomposing Pre-trained Transformers for Faster Question Answeringcited by 29
- 2019Adversarial Defense Through Network Profiling Based Path Extractioncited by 22
- 2017Learning to Skim Textcited by 18
- 2019Neural Speed Reading with Structural-Jump-LSTMcited by 17
- 2017Neural Speed Reading via Skim-RNNcited by 14
- 2020Ptolemy: Architecture Support for Robust Deep Learningcited by 12
- 2020PoWER-BERT: Accelerating BERT Inference via Progressive Word-vector Eliminationcited by 10
- 2020How Far Does BERT Look At:Distance-based Clustering and Analysis of BERT's Attentioncited by 9
Built on by
Citing papers per year: 2022: 5; 2023: 4; 2024: 6; 2025: 1.
16 papers.
Sort:
By area:
- 2024Mobile Edge Intelligence for Large Language Models: A Contemporary Surveycited by 125
- 2022SQuant: On-the-Fly Data-Free Quantization via Diagonal Hessian Approximationcited by 51
- 2022ANT: Exploiting Adaptive Numerical Data Type for Low-bit Deep Neural Network Quantizationcited by 42
- 2022Transkimmer: Transformer Learns to Layer-wise Skimcited by 21
- 2022A Survey for Efficient Open Domain Question Answeringcited by 20
- 2024Nimbus: Secure and Efficient Two-Party Inference for Transformerscited by 15
- 2025Towards Efficient Multi-LLM Inference: Characterization and Analysis of LLM Routing and Hierarchical Techniquescited by 5
- 2023Core Building Blocks: Next Gen Geo Spatial GPT Applicationcited by 4
- 2024DIOR-ViT: Differential Ordinal Learning Vision Transformer for Cancer Classification in Pathology Imagescited by 4
- 2023Chatbots as Problem Solvers: Playing Twenty Questions with Role Reversalscited by 3
- 2023Fovea Transformer: Efficient Long-Context Modeling with Structured Fine-to-Coarse Attentioncited by 2
- 2024MATTER: Memory-Augmented Transformer Using Heterogeneous Knowledge Sourcescited by 2
4 more
- 2022Tri-Attention: Explicit Context-Aware Attention Mechanism for Natural Language Processingcited by 1
- 2023Input-length-shortening and text generation via attention valuescited by 1
- 2024emrQA-msquad: A Medical Dataset Structured with the SQuAD V2.0 Framework, Enriched with emrQA Medical Informationcited by 0
- 2024QLSC: A Query Latent Semantic Calibrator for Robust Extractive Question Answeringcited by 0
- 2025Towards Efficient Multi-LLM Inference: Characterization and Analysis of LLM Routing and Hierarchical Techniques6 Jun 2025
- 2024Nimbus: Secure and Efficient Two-Party Inference for Transformers24 Nov 2024
- 2024DIOR-ViT: Differential Ordinal Learning Vision Transformer for Cancer Classification in Pathology Images10 Jul 2024
- 2024Mobile Edge Intelligence for Large Language Models: A Contemporary Survey9 Jul 2024
- 2024MATTER: Memory-Augmented Transformer Using Heterogeneous Knowledge Sources7 Jun 2024
- 2024QLSC: A Query Latent Semantic Calibrator for Robust Extractive Question Answering30 Apr 2024
- 2024emrQA-msquad: A Medical Dataset Structured with the SQuAD V2.0 Framework, Enriched with emrQA Medical Information18 Apr 2024
- 2023Fovea Transformer: Efficient Long-Context Modeling with Structured Fine-to-Coarse Attention13 Nov 2023
- 2023Core Building Blocks: Next Gen Geo Spatial GPT Application17 Oct 2023
- 2023Input-length-shortening and text generation via attention values14 Mar 2023
- 2023Chatbots as Problem Solvers: Playing Twenty Questions with Role Reversals1 Jan 2023
- 2022A Survey for Efficient Open Domain Question Answering15 Nov 2022
4 more
- 2022Tri-Attention: Explicit Context-Aware Attention Mechanism for Natural Language Processing5 Nov 2022
- 2022ANT: Exploiting Adaptive Numerical Data Type for Low-bit Deep Neural Network Quantization30 Aug 2022
- 2022Transkimmer: Transformer Learns to Layer-wise Skim15 May 2022
- 2022SQuant: On-the-Fly Data-Free Quantization via Diagonal Hessian Approximation14 Feb 2022
- 2024Mobile Edge Intelligence for Large Language Models: A Contemporary Surveycited by 125
- 2022SQuant: On-the-Fly Data-Free Quantization via Diagonal Hessian Approximationcited by 51
- 2022ANT: Exploiting Adaptive Numerical Data Type for Low-bit Deep Neural Network Quantizationcited by 42
- 2022Transkimmer: Transformer Learns to Layer-wise Skimcited by 21
- 2022A Survey for Efficient Open Domain Question Answeringcited by 20
- 2024Nimbus: Secure and Efficient Two-Party Inference for Transformerscited by 15
- 2025Towards Efficient Multi-LLM Inference: Characterization and Analysis of LLM Routing and Hierarchical Techniquescited by 5
- 2023Core Building Blocks: Next Gen Geo Spatial GPT Applicationcited by 4
- 2024DIOR-ViT: Differential Ordinal Learning Vision Transformer for Cancer Classification in Pathology Imagescited by 4
- 2023Fovea Transformer: Efficient Long-Context Modeling with Structured Fine-to-Coarse Attentioncited by 2
- 2022Tri-Attention: Explicit Context-Aware Attention Mechanism for Natural Language Processingcited by 1
- 2023Input-length-shortening and text generation via attention valuescited by 1
12 most cited of 14 All 14 (JSON)
- 2025Towards Efficient Multi-LLM Inference: Characterization and Analysis of LLM Routing and Hierarchical Techniques6 Jun 2025
- 2024Nimbus: Secure and Efficient Two-Party Inference for Transformers24 Nov 2024
- 2024DIOR-ViT: Differential Ordinal Learning Vision Transformer for Cancer Classification in Pathology Images10 Jul 2024
- 2024Mobile Edge Intelligence for Large Language Models: A Contemporary Survey9 Jul 2024
- 2024QLSC: A Query Latent Semantic Calibrator for Robust Extractive Question Answering30 Apr 2024
- 2024emrQA-msquad: A Medical Dataset Structured with the SQuAD V2.0 Framework, Enriched with emrQA Medical Information18 Apr 2024
- 2023Fovea Transformer: Efficient Long-Context Modeling with Structured Fine-to-Coarse Attention13 Nov 2023
- 2023Core Building Blocks: Next Gen Geo Spatial GPT Application17 Oct 2023
- 2023Input-length-shortening and text generation via attention values14 Mar 2023
- 2022A Survey for Efficient Open Domain Question Answering15 Nov 2022
- 2022Tri-Attention: Explicit Context-Aware Attention Mechanism for Natural Language Processing5 Nov 2022
- 2022ANT: Exploiting Adaptive Numerical Data Type for Low-bit Deep Neural Network Quantization30 Aug 2022
12 newest of 14 All 14 (JSON)