带层归一化的 transformer 架构中源于自注意力动力学的均场模型分析
Analysis of mean-field models arising from self-attention dynamics in transformer architectures with layer normalization
AI总结:
本文对带层归一化的自注意力 transformer 架构进行数学分析,通过在单位球面概率测度空间中建立梯度流模型,为研究自注意力动力学的驻点及相互作用能量的极值提供了严谨的理论框架。
摘要:
本文旨在对使用带层归一化的自注意力机制的 transformer 架构进行数学分析。具体而言,此类架构中观察到的类似聚类或均匀分布的模式引发了诸多具有挑战性的数学问题。我们关注一个特例,该特例在单位球面上的概率测度空间中,在特定度量下允许梯度流表示,这使我们能够以严谨的方式给出至少部分解答。所引发的数学问题类似于近期研究的聚合方程,但由于将动力学限制在球面上以及相互作用能量的特定形式,带来了额外的挑战。我们为研究梯度流提供了一个严谨的框架,这也为研究一般情况(即非由梯度流描述的情况)提出了一种可能的度量几何。我们进一步分析了诱导的自注意力动力学的驻点。后者与 Wasserstein 几何中相互作用能量的驻点相关,我们还进一步讨论了不同参数设置下的能量最小化器和最大化器。
英文摘要:
The aim of this paper is to provide a mathematical analysis of transformer architectures using a self-attention mechanism with layer normalization. In particular, observed patterns in such architectures resembling either clusters or uniform distributions pose a number of challenging mathematical questions. We focus on a special case that admits a gradient flow formulation in the spaces of probability measures on the unit sphere under a special metric, which allows us to give at least partial answers in a rigorous way. The arising mathematical problems resemble those recently studied in aggregation equations, but with additional challenges emerging from restricting the dynamics to the sphere and the particular form of the interaction energy. We provide a rigorous framework for studying the gradient flow, which also suggests a possible metric geometry to study the general case (i.e. one that is not described by a gradient flow). We further analyze the stationary points of the induced self-attention dynamics. The latter are related to stationary points of the interaction energy in the Wasserstein geometry, and we further discuss energy minimizers and maximizers in different parameter settings.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。