Global Convergence in Training Large-Scale Transformers

Cheng Gao, Yuan Cao, Zihao Li, Yihan He, Mengdi Wang +3 more
10/1/2024
transformer-attention

No confident code implementation found for this paper.

Abstract

Despite the widespread success of Transformers across various domains, their optimization guarantees in large-scale model settings are not well-understood. This paper rigorously analyzes the convergence properties of gradient flow in training Transformers with weight decay regularization.

Show full abstract

First, we construct the mean-field limit of large-scale Transformers, showing that as the model width and depth go to infinity, gradient flow converges to the Wasserstein gradient flow, which is represented by a partial differential equation. Then, we demonstrate that the gradient flow reaches a global minimum consistent with the PDE solution when the weight decay regularization parameter is sufficiently small. Our analysis is based on a series of novel mean-field techniques that adapt to Transformers. Compared with existing tools for deep networks (Lu et al., 2020) that demand homogeneity and global Lipschitz smoothness, we utilize a refined analysis assuming only $\textit{partial homogeneity}$ and $\textit{local Lipschitz smoothness}$. These new techniques may be of independent interest.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{gao2024global,
  title  = {Global Convergence in Training Large-Scale Transformers},
  author = {Cheng Gao and Yuan Cao and Zihao Li and Yihan He and Mengdi Wang and Han Liu and Jason M. Klusowski and Jianqing Fan},
  year   = {2024},
  eprint = {2410.23610},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2410.23610},
  url    = {https://arxiv.org/abs/2410.23610},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.23610.svg)](https://codeofpaper.com/paper/2410.23610)

Discussion