Saved in:
Bibliographic Details
Main Authors: Qi, Xianbiao, Chen, Marco, Xiao, Wenjie, Ye, Jiaquan, He, Yelin, Li, Chun-Guang, Lin, Zhouchen
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2507.17501
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913956436639744
author Qi, Xianbiao
Chen, Marco
Xiao, Wenjie
Ye, Jiaquan
He, Yelin
Li, Chun-Guang
Lin, Zhouchen
author_facet Qi, Xianbiao
Chen, Marco
Xiao, Wenjie
Ye, Jiaquan
He, Yelin
Li, Chun-Guang
Lin, Zhouchen
contents Transformers have become the de facto backbone of modern deep learning, yet their training typically demands an advanced optimizer with adaptive learning rate like AdamW, rather than a momentum SGDW (mSGDW). Previous works show that it is mainly due to a heavy-tailed distribution of the gradients. In this paper, we introduce a Deeply Normalized Transformer (DNT), which is meticulously engineered to overcome this limitation enabling seamless training with vanilla mSGDW while yielding comparable performance to the Transformers trained via AdamW. To be specific, in DNT, we strategically integrate normalization techniques at proper positions in the Transformers to effectively modulate the Jacobian matrices of each layer, balance the influence of weights, activations, and their interactions, and thus enable the distributions of gradients concentrated. We provide both theoretical justifications of the normalization technique used in our DNT and extensive empirical evaluation on two popular Transformer architectures to validate that: a) DNT outperforms its counterparts (\ie, ViT and GPT), and b) DNT can be effectively trained with vanilla mSGDW.
format Preprint
id arxiv_https___arxiv_org_abs_2507_17501
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle DNT: a Deeply Normalized Transformer that can be trained by Momentum SGD
Qi, Xianbiao
Chen, Marco
Xiao, Wenjie
Ye, Jiaquan
He, Yelin
Li, Chun-Guang
Lin, Zhouchen
Machine Learning
Computation and Language
Computer Vision and Pattern Recognition
Transformers have become the de facto backbone of modern deep learning, yet their training typically demands an advanced optimizer with adaptive learning rate like AdamW, rather than a momentum SGDW (mSGDW). Previous works show that it is mainly due to a heavy-tailed distribution of the gradients. In this paper, we introduce a Deeply Normalized Transformer (DNT), which is meticulously engineered to overcome this limitation enabling seamless training with vanilla mSGDW while yielding comparable performance to the Transformers trained via AdamW. To be specific, in DNT, we strategically integrate normalization techniques at proper positions in the Transformers to effectively modulate the Jacobian matrices of each layer, balance the influence of weights, activations, and their interactions, and thus enable the distributions of gradients concentrated. We provide both theoretical justifications of the normalization technique used in our DNT and extensive empirical evaluation on two popular Transformer architectures to validate that: a) DNT outperforms its counterparts (\ie, ViT and GPT), and b) DNT can be effectively trained with vanilla mSGDW.
title DNT: a Deeply Normalized Transformer that can be trained by Momentum SGD
topic Machine Learning
Computation and Language
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2507.17501