arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.01575cs.LG
收藏

论仅编码器浅层 Transformer 的收敛性

On the Convergence of Encoder-only Shallow Transformers

EPFL(洛桑联邦理工学院);University of Warwick(华威大学);University of Wisconsin-Madison(威斯康星大学麦迪逊分校)

Yongtao Wu, Fanghui Liu, Grigorios G Chrysos, Volkan Cevher

AI总结:

针对有限宽度仅编码器浅层 Transformer,本文分析 softmax、缩放与 He/LeCun 初始化,证明二次超参数化足以实现全局收敛,并辅以 NTK 比较。

摘要:

本文旨在有限宽度情形下,从架构、初始化和缩放的角度,在现实设定中建立仅编码器浅层 Transformer 的全局收敛理论。难点在于如何处理 Transformer 核心成分——自注意力机制中的 softmax。具体而言,我们诊断了缩放方案,谨慎处理 softmax 的输入/输出,并证明在实践中常用的 He/LeCun 初始化下,二次超参数化足以保证浅层 Transformer 的全局收敛。此外,本文还给出了基于神经正切核(NTK)的分析,以促进全面比较。我们的理论揭示了不同缩放方案与初始化在重要性上的分离。我们相信,这些结果能够为更好地理解现代 Transformer,尤其是训练动态,铺平道路。

英文摘要:

In this paper, we aim to build the global convergence theory of encoder-only shallow Transformers under a realistic setting from the perspective of architectures, initialization, and scaling under a finite width regime. The difficulty lies in how to tackle the softmax in self-attention mechanism, the core ingredient of Transformer. In particular, we diagnose the scaling scheme, carefully tackle the input/output of softmax, and prove that quadratic overparameterization is sufficient for global convergence of our shallow Transformers under commonly-used He/LeCun initialization in practice. Besides, neural tangent kernel (NTK) based analysis is also given, which facilitates a comprehensive comparison. Our theory demonstrates the separation on the importance of different scaling schemes and initialization. We believe our results can pave the way for a better understanding of modern Transformers, particularly on training dynamics.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑