CLAIDCLGMSFeb 12, 2021

Optimizing Inference Performance of Transformers on CPUs

arXiv:2102.06621v324 citations
Originality Incremental advance
AI Analysis

This addresses the need for faster inference in web services like search and translation, but it is incremental as it builds on existing methods without changing the model implementation.

The paper tackled the problem of improving inference performance for Transformer-based models like BERT on CPUs, achieving a speedup of up to 2.37x through optimizations that do not affect model accuracy.

The Transformer architecture revolutionized the field of natural language processing (NLP). Transformers-based models (e.g., BERT) power many important Web services, such as search, translation, question-answering, etc. While enormous research attention is paid to the training of those models, relatively little efforts are made to improve their inference performance. This paper comes to address this gap by presenting an empirical analysis of scalability and performance of inferencing a Transformer-based model on CPUs. Focusing on the highly popular BERT model, we identify key components of the Transformer architecture where the bulk of the computation happens, and propose three optimizations to speed them up. The optimizations are evaluated using the inference benchmark from HuggingFace, and are shown to achieve the speedup of up to x2.37. The considered optimizations do not require any changes to the implementation of the models nor affect their accuracy.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes