LightSeq2: Accelerated Training for Transformer-based Models on GPUs
Xiaohui Wang, Yang Wei, Ying Xiong, Guyue Huang, Xian Qian, Yufei, Ding, Mingxuan Wang, Lei Li

TL;DR
LightSeq2 is a GPU-optimized system that significantly accelerates training for various Transformer models, reducing training time and resource consumption across multiple architectures and benchmarks.
Contribution
The paper introduces LightSeq2, a novel GPU acceleration system specifically designed for diverse Transformer models, improving training speed and efficiency.
Findings
Achieves 1.4-3.5x faster training than previous systems.
Gains 308% speedup on WMT14 English-German translation benchmark.
Supports multiple Transformer architectures including BERT, GPT, and Vision Transformer.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Advanced Neural Network Applications
MethodsMulti-Head Attention · Attention Is All You Need · Linear Layer · Discriminative Fine-Tuning · WordPiece · Cosine Annealing · Adam · Softmax · Dropout · Dense Connections
