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

从凝聚到秩坍缩:Transformer训练动力学的两阶段分析

From Condensation to Rank Collapse: A Two-Stage Analysis of Transformer Training Dynamics

School of Mathematical Sciences, Shanghai Jiao Tong University(上海交通大学数学科学学院);Institute of Natural Sciences, MOE-LSC, CMA-Shanghai, Shanghai Jiao Tong University(上海交通大学自然科学院)

Zheng-An Chen, Tao Luo

AI总结:

本文提出两阶段框架分析Transformer训练动力学,揭示从凝聚到秩坍缩的演化过程,并推广了经典定向收敛结果。

摘要:

尽管基于Transformer的模型展现出了卓越的经验性能,但对其训练动力学的基本原理,除特定配置的研究外,仍缺乏充分的刻画。受语言模型中在较小初始化尺度下推理能力得到提升这一经验证据的启发,我们采用[Zhou等人,NeurIPS 2022]中建立的梯度流分析框架,系统研究了线性化Transformer的训练动力学。我们的理论分析将注意力模块的动力学解析为两个不同的阶段。在第一阶段,随机初始化产生的不对称权重扰动维持了参数矩阵中的非退化梯度动力学,从而促进系统性地逃离小初始化区域。随后,这些矩阵经历凝聚过程,逐渐向目标方向对齐。在第二阶段,先前静态的键-查询矩阵积极参与训练,驱动归一化矩阵走向渐近秩坍缩。这一两阶段框架推广了经典的定向收敛结果。

英文摘要:

Although transformer-based models have shown exceptional empirical performance, the fundamental principles governing their training dynamics are inadequately characterized beyond configuration-specific studies. Inspired by empirical evidence showing improved reasoning capabilities under small initialization scales in language models, we employ the gradient flow analytical framework established in [Zhou et al. NeurIPS 2022] to systematically investigate linearized Transformer training dynamics. Our theoretical analysis dissects the dynamics of attention modules into two distinct stages. In the first stage, asymmetric weight perturbations from random initialization sustain non-degenerate gradient dynamics in parameter matrices, facilitating systematic escape from small initialization regimes. Subsequently, these matrices undergo condensation, progressively aligning toward the target orientation. In the second stage, the previously static key-query matrices actively participate in training, driving the normalized matrices toward asymptotic rank collapse. This two-stage framework generalizes classical directional convergence results.

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

↑