paper-with-me

Papers

Optimizing Inference Performance of Transformers on CPUs

2021-02-12 · Dave Dice, Alex Kogan

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.

📄 PDF Abstract BibTeX arXiv:2102.06621

Code (0)

등록된 구현이 없습니다.

Tasks

Question AnsweringTranslation

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Residual Connection 설명 없음
Weight Decay 설명 없음
Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…

Similar Papers 제목 키워드 기반

Efficient LLM Inference on CPUs

2023-11-01 · Haihao Shen, Hanwen Chang, Bo Dong, Yu Luo 외

Large language models (LLMs) have demonstrated remarkable performance and tremendous potential across a wide range of tasks. However, deploying these models has been challenging due to the astronomical amount of model pa…

Quantization

Inference Performance Optimization for Large Language Models on CPUs

2024-07-10 · Pujiang He, Shan Zhou, Wenhuan Huang, Changqing Li 외

Large language models (LLMs) have shown exceptional performance and vast potential across diverse tasks. However, the deployment of LLMs with high performance in low-resource environments has garnered significant attenti…

CPUGPUInference Optimization

IceFormer: Accelerated Inference with Long-Sequence Transformers on CPUs

2024-05-05 · Yuzhen Mao, Martin Ester, Ke Li

One limitation of existing Transformer-based models is that they cannot handle very long sequences as input since their self-attention operations exhibit quadratic time and space complexity. This problem becomes especial…

QuAKE: Speeding up Model Inference Using Quick and Approximate Kernels for Exponential Non-Linearities

2024-11-30 · Sai Kiran Narayanaswami, Gopalakrishnan Srinivasan, Balaraman Ravindran

As machine learning gets deployed more and more widely, and model sizes continue to grow, improving computational efficiency during model inference has become a key challenge. In many commonly used model architectures, i…

Computational Efficiency

Nimble: Efficiently Compiling Dynamic Neural Networks for Model Inference

2020-06-04 · Haichen Shen, Jared Roesch, Zhi Chen, Wei Chen 외

Modern deep neural networks increasingly make use of features such as dynamic control flow, data structures and dynamic tensor shapes. Existing deep learning systems focus on optimizing and executing static neural networ…

Deep LearningDynamic neural networks