大规模Transformer训练中的全局收敛性
Global Convergence in Training Large-Scale Transformers
AI总结:
本文针对大规模Transformer训练的优化保证不明确的问题,通过适配Transformer的新型平均场技术,证明权重衰减足够小时训练梯度流可达全局最小值,放宽了现有分析的假设条件。
摘要:
尽管Transformer在多个领域已取得广泛成功,但人们对其在大规模模型场景下的优化保证仍缺乏充分理解。本文严格分析了使用权重衰减正则化训练Transformer时梯度流的收敛特性。首先,本文构建了大规模Transformer的平均场极限,证明当模型宽度和深度趋于无穷时,梯度流收敛于由偏微分方程表示的Wasserstein梯度流。随后,本文证明当权重衰减正则化参数足够小时,梯度流能达到与该偏微分方程解一致的全局最小值。本文的分析基于一系列适配Transformer的新型平均场技术。与现有深度网络分析工具(Lu等人,2020)要求齐次性和全局Lipschitz光滑性不同,本文采用精细化分析,仅假设$\textit{部分齐次性}$和$\textit{局部Lipschitz光滑性}$。这些新技术本身也具备独立研究价值。
英文摘要:
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. 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。