Answer Fast: Accelerating BERT on the Tensor Streaming Processor
Not on the map. Why?
Abstract (arXiv)
Transformers have become a predominant machine learning workload, they are not only the de-facto standard for natural language processing tasks, but they are also being deployed in other domains such as vision and speech recognition. Many of the transformer-based applications are real-time systems such as machine translation and web search. These real time systems often come with strict end-to-end inference latency requirements. Unfortunately, while the majority of the transformer computation comes from matrix multiplications, transformers also include several non-linear components that tend to become the bottleneck during an inference. In this work, we accelerate the inference of BERT models on the tensor streaming processor. By carefully fusing all the nonlinear components with the matrix multiplication components, we are able to efficiently utilize the on-chip matrix multiplication units resulting in a deterministic tail latency of 130 μs for a batch-1 inference through BERT-base, which is 6X faster than the current state-of-the-art.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 15 of its 30 references that are in the map. First posted on arXiv 22 Jun 2022.
Builds on
15 of 30 references.
References · 15
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2016Layer Normalizationcited by 5,669
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
- 2020DeeBERT: Dynamic Early Exiting for Accelerating BERT Inferencecited by 332
- 2019Q8BERT: Quantized 8Bit BERTcited by 300
- 2020SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruningcited by 234
- 2020Integer Quantization for Deep Learning Inference: Principles and Empirical Evaluationcited by 188
- 2020A3: Accelerating Attention Mechanisms in Neural Networks with Approximationcited by 101
- 2020TurboTransformers: An Efficient GPU Serving System For Transformer Modelscited by 71
3 more
Built on by
Citing papers per year: 2023: 1; 2024: 2.
3 papers.