arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.05656cs.LGmath.DS
收藏

层层流动:Transformer的连续动力系统视角

Flowing Through Layers: A Continuous Dynamical Systems Perspective on Transformers

Jacob Fein-Ashley

AI总结:

本研究将Transformer层更新视为连续动力系统的欧拉离散化,证明其收敛性及收缩性,为加速收敛和架构创新提供新视角。

摘要:

我们证明,Transformer层的标准离散更新规则可以自然地解释为连续动力系统的前向欧拉离散化。我们的Transformer流逼近定理表明,在标准Lipschitz连续性假设下,随着层数增加,token表示一致收敛到ODE的唯一解。此外,如果底层映射满足负常数的一侧Lipschitz条件,则所得动力学是收缩的,导致扰动在层间指数衰减。除了阐明Transformer模型的经验稳定性和表达能力外,这些见解将Transformer更新与更广泛的迭代推理框架联系起来,为加速收敛和受动力系统理论启发的架构创新开辟了新途径。

英文摘要:

We show that the standard discrete update rule of transformer layers can be naturally interpreted as a forward Euler discretization of a continuous dynamical system. Our Transformer Flow Approximation Theorem demonstrates that, under standard Lipschitz continuity assumptions, token representations converge uniformly to the unique solution of an ODE as the number of layers grows. Moreover, if the underlying mapping satisfies a one-sided Lipschitz condition with a negative constant, the resulting dynamics are contractive, causing perturbations to decay exponentially across layers. Beyond clarifying the empirical stability and expressivity of transformer models, these insights link transformer updates to a broader iterative reasoning framework, suggesting new avenues for accelerated convergence and architectural innovations inspired by dynamical systems theory.

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

↑