paper-with-me

홈 › Papers

LightSeq2: Accelerated Training for Transformer-based Models on GPUs

2021-10-12 · Xiaohui Wang, Yang Wei, Ying Xiong, Guyue Huang, Xian Qian, Yufei Ding, Mingxuan Wang, Lei LI

Transformer-based neural models are used in many AI applications. Training these models is expensive, as it takes huge GPU resources and long duration. It is challenging because typical data like sentences have variable lengths, and Transformer's computation patterns are more complex than convolutional neural networks. Existing systems either only focus on model inference or optimization for only BERT-like encoder models. In this paper, we present LightSeq2, a system to accelerate training for a general family of Transformer models on GPUs. We propose a series of GPU optimization techniques tailored to the specific computation flow and memory access patterns of Transformer models. LightSeq2 supports many model architectures, including BERT (encoder-only), GPT (decoder-only), Transformer (encoder-decoder), and vision Transformer. Our experiments for a variety of models and benchmarks show that LightSeq2 is consistently faster (1.4-3.5x) than previous systems on different GPUs. In particular, it gains 308% training speedup compared with existing systems on a large public machine translation benchmark (WMT14 English-German).

📄 PDF Abstract BibTeX arXiv:2110.05722

Code (1)

bytedance/lightseq 공식 구현 tf

Tasks

DecoderGPUMachine TranslationSpeech RecognitionTranslation

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Discriminative Fine-Tuning Discriminative Fine-Tuning is a fine-tuning strategy that is used for ULMFiT type models. Instead of using the same learning rate…
WordPiece 설명 없음
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
Adam 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

LightSeq: A High Performance Inference Library for Transformers

2020-10-23 · NAACL 2021 4 · Xiaohui Wang, Ying Xiong, Yang Wei, Mingxuan Wang 외

Transformer, BERT and their variants have achieved great success in natural language processing. Since Transformer models are huge in size, serving these models is a challenge for real industrial applications. In this pa…

GPUMachine TranslationTranslationVocal Bursts Intensity Prediction

Beyond 2:4: exploring V:N:M sparsity for efficient transformer inference on GPUs

2024-10-21 · Kang Zhao, Tao Yuan, Han Bao, Zhenfeng Su 외

To date, 2:4 sparsity has stood as the only sparse pattern that can be accelerated using sparse tensor cores on GPUs. In practice, 2:4 sparsity often possesses low actual speedups ($\leq 1.3$) and requires fixed sparse r…

DISTFLASHATTN: Distributed Memory-efficient Attention for Long-context LLMs Training

2023-10-05 · Dacheng Li, Rulin Shao, Anze Xie, Eric P. Xing 외

FlashAttention (Dao, 2023) effectively reduces the quadratic peak memory usage to linear in training transformer-based large language models (LLMs) on a single GPU. In this paper, we introduce DISTFLASHATTN, a distribute…

GPU

SLAMB: Accelerated Large Batch Training with Sparse Communication

2023-06-15 · The International Conference on Machine Learning (ICML) 2023 6 · Hang Xu, Wenxuan Zhang, Jiawei Fei, Yuzhe Wu 외

Distributed training of large deep neural networks requires frequent exchange of massive data between machines, thus communication efficiency is a major concern. Existing compressed communication methods are either not c…

Harnessing Manycore Processors with Distributed Memory for Accelerated Training of Sparse and Recurrent Models

2023-11-07 · Jan Finkbeiner, Thomas Gmeinder, Mark Pupilli, Alexander Titterton 외

Current AI training infrastructure is dominated by single instruction multiple data (SIMD) and systolic array architectures, such as Graphics Processing Units (GPUs) and Tensor Processing Units (TPUs), that excel at acce…

Efficient Neural Network