First Attentions Last: Better Exploiting First Attentions for Efficient Transformer Training
Not on the map. Why?
Abstract (arXiv)
As training billion-scale transformers becomes increasingly common, employing multiple distributed GPUs along with parallel training methods has become a standard practice. However, existing transformer designs suffer from significant communication overhead, especially in Tensor Parallelism (TP), where each block's MHA-MLP connection requires an all-reduce communication. Through our investigation, we show that the MHA-MLP connections can be bypassed for efficiency, while the attention output of the first layer can serve as an alternative signal for the bypassed connection. Motivated by the observations, we propose FAL (First Attentions Last), an efficient transformer architecture that redirects the first MHA output to the MLP inputs of the following layers, eliminating the per-block MHA-MLP connections. This removes the all-reduce communication and enables parallel execution of MHA and MLP on a single GPU. We also introduce FAL+, which adds the normalized first attention output to the MHA outputs of the following layers to augment the MLP input for the model quality. Our evaluation shows that FAL reduces multi-GPU training time by up to 44%, improves single-GPU throughput by up to 1.18x, and achieves better perplexity compared to the baseline GPT. FAL+ achieves even lower perplexity without increasing the training time than the baseline. Codes are available at: https://github.com/CASL-KU/FAL
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 51 of its 78 references that are in the map. First posted on arXiv 16 Oct 2025.
Builds on
51 of 78 references.
References · 51
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 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
- 2023GPT-4 Technical Reportcited by 18,396
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2016Densely Connected Convolutional Networkscited by 6,720
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2016Layer Normalizationcited by 5,669
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
38 more
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,371
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
- 2019Similarity of Neural Network Representations Revisitedcited by 1,755
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,565
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
- 2018Continual Lifelong Learning with Neural Networks: A Reviewcited by 1,330
- 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,301
- 2017Mixed Precision Trainingcited by 1,156
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,043
- 2020On Layer Normalization in the Transformer Architecturecited by 922
- 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 632
- 2022Efficiently Scaling Transformer Inferencecited by 539
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 419
- 2018WiC: the Word-in-Context Dataset for Evaluating Context-Sensitive Meaning Representationscited by 372
- 2022The Stack: 3 TB of permissively licensed source codecited by 359
- 2018An Empirical Model of Large-Batch Trainingcited by 281
- 2017Sparse Communication for Distributed Gradient Descentcited by 249
- 2020Do Wide and Deep Networks Learn the Same Things? Uncovering How Neural Network Representations Vary with Width and Depthcited by 245
- 2019PowerSGD: Practical Low-Rank Gradient Compression for Distributed Optimizationcited by 238
- 2020Understanding the Difficulty of Training Transformerscited by 210
- 2018ReCoRD: Bridging the Gap between Human and Machine Commonsense Reading Comprehensioncited by 200
- 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 141
- 2018PipeDream: Fast and Efficient Pipeline Parallel DNN Trainingcited by 117
- 2020Data Movement Is All You Need: A Case Study on Optimizing Transformerscited by 108
- 2021Scale Efficiently: Insights from Pre-training and Fine-tuning Transformerscited by 106
- 2021Self-Attention Networks Can Process Bounded Hierarchical Languagescited by 105
- 2021Colossal-AI: A Unified Deep Learning System For Large-Scale Parallel Trainingcited by 96
- 2022Cramming: Training a Language Model on a Single GPU in One Daycited by 81
- 2023Simplifying Transformer Blockscited by 37
- 2024Investigating Layer Importance in Large Language Modelscited by 36
- 2018Parallax: Sparsity-aware Data Parallel Training of Deep Neural Networkscited by 19
- 2023Optimus-CC: Efficient Large NLP Model Training with 3D Parallelism Aware Communication Compressioncited by 15
- 2024How Transformers Utilize Multi-Head Attention in In-Context Learning? A Case Study on Sparse Linear Regressioncited by 14
- 2020The Case for Strong Scaling in Deep Learning: Training Large 3D CNNs with Hybrid Parallelismcited by 11
- 2024Not All Adapters Matter: Selective Adapter Freezing for Memory-Efficient Fine-Tuning of Language Modelscited by 5
50 most cited of 51 All 51 (JSON)
Built on by
Not cited yet.