Fast DistilBERT on CPUs
Not on the map. Why?
Abstract (arXiv)
Transformer-based language models have become the standard approach to solving natural language processing tasks. However, industry adoption usually requires the maximum throughput to comply with certain latency constraints that prevents Transformer models from being used in production. To address this gap, model compression techniques such as quantization and pruning may be used to improve inference efficiency. However, these compression techniques require specialized software to apply and deploy at scale. In this work, we propose a new pipeline for creating and running Fast Transformer models on CPUs, utilizing hardware-aware pruning, knowledge distillation, quantization, and our own Transformer inference runtime engine with optimized kernels for sparse and quantized operators. We demonstrate the efficiency of our pipeline by creating a Fast DistilBERT model showing minimal accuracy loss on the question-answering SQuADv1.1 benchmark, and throughput results under typical production constraints and environments. Our results outperform existing state-of-the-art Neural Magic's DeepSparse runtime performance by up to 50% and up to 4.1x performance speedup over ONNX Runtime. Source code is publicly available at https://github.com/intel/intel-extension-for-transformers.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 15 of its 20 references that are in the map. First posted on arXiv 27 Oct 2022.
Builds on
15 of 20 references.
References · 15
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2015Distilling the Knowledge in a Neural Networkcited by 10,324
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,593
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,043
- 2022Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B, A Large-Scale Generative Language Modelcited by 559
- 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 526
- 2018HAQ: Hardware-Aware Automated Quantization with Mixed Precisioncited by 443
- 2020Movement Pruning: Adaptive Sparsity by Fine-Tuningcited by 403
- 2019Q8BERT: Quantized 8Bit BERTcited by 300
Built on by
Citing papers per year: 2023: 1; 2024: 1.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2021Greedy-layer Pruning: Speeding up Transformer Models for Natural Language Processing
- 2024Efficiency optimization of large-scale language models based on deep learning in natural language processing tasks
- 2021Magic Pyramid: Accelerating Inference with Early Exiting and Token Pruning
- 2023Quantization-Aware and Tensor-Compressed Training of Transformers for Natural Language Understanding
- 2024Model Compression and Efficient Inference for Large Language Models: A Survey
- 2022AutoDistill: an End-to-End Framework to Explore and Distill Hardware-Efficient Language Models
- 2026Distilling Sequential Computation in Transformer Language Models
- 2022Compressing Pre-trained Transformers via Low-Bit NxM Sparsity for Natural Language Understanding