Saved in:
Bibliographic Details
Main Authors: Kim, Gyudong, Na, Hyukju, Kim, Jin Hyeon, Jang, Hyunsung, Park, Jaemin, Hwang, Jaegi, Ha, Namkoo, Kim, Seungryong, Kim, Young Geun
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2510.14614
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918237520789504
author Kim, Gyudong
Na, Hyukju
Kim, Jin Hyeon
Jang, Hyunsung
Park, Jaemin
Hwang, Jaegi
Ha, Namkoo
Kim, Seungryong
Kim, Young Geun
author_facet Kim, Gyudong
Na, Hyukju
Kim, Jin Hyeon
Jang, Hyunsung
Park, Jaemin
Hwang, Jaegi
Ha, Namkoo
Kim, Seungryong
Kim, Young Geun
contents 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
format Preprint
id arxiv_https___arxiv_org_abs_2510_14614
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle First Attentions Last: Better Exploiting First Attentions for Efficient Transformer Training
Kim, Gyudong
Na, Hyukju
Kim, Jin Hyeon
Jang, Hyunsung
Park, Jaemin
Hwang, Jaegi
Ha, Namkoo
Kim, Seungryong
Kim, Young Geun
Machine Learning
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
title First Attentions Last: Better Exploiting First Attentions for Efficient Transformer Training
topic Machine Learning
url https://arxiv.org/abs/2510.14614