mlsanityData to 7 Oct 2026

Block-Skim: Efficient Question Answering for Transformer

arXiv 2112.08560 ↗First posted 16 Dec 2021cs.CLcited by 16

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
  5. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  6. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  7. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
  8. 2020Longformer: The Long-Document Transformercited by 3,362
  9. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  10. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  11. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
  12. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
23 more
  1. 2020Reformer: The Efficient Transformercited by 1,658
  2. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  3. 2019Are Sixteen Heads Really Better than One?cited by 803
  4. 2020Efficient Transformers: A Surveycited by 784
  5. 2018Universal Transformerscited by 613
  6. 2016NewsQA: A Machine Comprehension Datasetcited by 330
  7. 2017A Structured Self-attentive Sentence Embeddingcited by 318
  8. 2019Revealing the Dark Secrets of BERTcited by 300
  9. 2020BERT Loses Patience: Fast and Robust Inference with Early Exitcited by 267
  10. 2017SearchQA: A New Q&A Dataset Augmented with Context from a Search Enginecited by 221
  11. 2020Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processingcited by 161
  12. 2020Lite Transformer with Long-Short Range Attentioncited by 127
  13. 2020Length-Adaptive Transformer: Train Once with Length Drop, Use Anytime with Searchcited by 76
  14. 2017Skip RNN: Learning to Skip State Updates in Recurrent Neural Networkscited by 49
  15. 2020Accelerating Sparse DNN Models without Hardware-Support via Tile-Wise Sparsitycited by 30
  16. 2020DeFormer: Decomposing Pre-trained Transformers for Faster Question Answeringcited by 29
  17. 2019Adversarial Defense Through Network Profiling Based Path Extractioncited by 22
  18. 2017Learning to Skim Textcited by 18
  19. 2019Neural Speed Reading with Structural-Jump-LSTMcited by 17
  20. 2017Neural Speed Reading via Skim-RNNcited by 14
  21. 2020Ptolemy: Architecture Support for Robust Deep Learningcited by 12
  22. 2020PoWER-BERT: Accelerating BERT Inference via Progressive Word-vector Eliminationcited by 10
  23. 2020How Far Does BERT Look At:Distance-based Clustering and Analysis of BERT's Attentioncited by 9

Built on by

Cited by year

Citing papers per year: 2022: 5; 2023: 4; 2024: 6; 2025: 1.

16 papers.

Sort:

By area:

  1. 2024Mobile Edge Intelligence for Large Language Models: A Contemporary Surveycited by 125
  2. 2022SQuant: On-the-Fly Data-Free Quantization via Diagonal Hessian Approximationcited by 51
  3. 2022ANT: Exploiting Adaptive Numerical Data Type for Low-bit Deep Neural Network Quantizationcited by 42
  4. 2022Transkimmer: Transformer Learns to Layer-wise Skimcited by 21
  5. 2022A Survey for Efficient Open Domain Question Answeringcited by 20
  6. 2024Nimbus: Secure and Efficient Two-Party Inference for Transformerscited by 15
  7. 2025Towards Efficient Multi-LLM Inference: Characterization and Analysis of LLM Routing and Hierarchical Techniquescited by 5
  8. 2023Core Building Blocks: Next Gen Geo Spatial GPT Applicationcited by 4
  9. 2024DIOR-ViT: Differential Ordinal Learning Vision Transformer for Cancer Classification in Pathology Imagescited by 4
  10. 2023Chatbots as Problem Solvers: Playing Twenty Questions with Role Reversalscited by 3
  11. 2023Fovea Transformer: Efficient Long-Context Modeling with Structured Fine-to-Coarse Attentioncited by 2
  12. 2024MATTER: Memory-Augmented Transformer Using Heterogeneous Knowledge Sourcescited by 2
4 more
  1. 2022Tri-Attention: Explicit Context-Aware Attention Mechanism for Natural Language Processingcited by 1
  2. 2023Input-length-shortening and text generation via attention valuescited by 1
  3. 2024emrQA-msquad: A Medical Dataset Structured with the SQuAD V2.0 Framework, Enriched with emrQA Medical Informationcited by 0
  4. 2024QLSC: A Query Latent Semantic Calibrator for Robust Extractive Question Answeringcited by 0