Lune

ICLR2025Top-tier venue

Taming Transformer Without Using Learning Rate Warmup

Xianbiao Qi, Yelin He, Jiaquan Ye, Chun-Guang Li, Bojia Zi, Xili Dai, Qin Zou, Rong Xiao

2025Year
4Top-tier citations

Abstract

Scaling Transformer to a large scale without using some technical tricks such as learning rate warump and using an obviously lower learning rate is an extremely challenging task, and is increasingly gaining more attention. In this paper, we provide a theoretical analysis for the process of training Transformer and reveal the rationale behind the model crash phenomenon in the training process, termed spectral energy concentration of W q ⊤ W k , which is the reason for a malignant entropy collapse, where W q and W k are the projection matrices for the query and the key in Transformer, respectively. To remedy this problem, motivated by Weyl's Inequality, we present a novel optimization strategy, i.e., making the weight updating in successive steps smooth-if the ratio ) is larger than a threshold, we will automatically bound the learning rate to a weighted multiple of σ 1 (W t -1 ) σ 1 (∇W t ) , where ∇W t is the updating quantity in step t . Such an optimization strategy can prevent spectral energy concentration to only a few directions, and thus can avoid malignant entropy collapse which will trigger the model crash. We conduct extensive experiments using ViT, Swin-Transformer and GPT, showing that our optimization strategy can effectively and stably train these Transformers without using learning rate warmup.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 27767bd8-27a6-4586-80a0-0107609eeb72

Cited by top-tier papers4

Ask how each one uses it

Builds on19

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines