arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.13518math.DScs.LGcs.SYeess.SY
收藏

Transformer中离散时间自注意力动力学的渐近分析

Asymptotic Analysis of Discrete-Time Self-Attention Dynamics in Transformers

Linköping University(林雪平大学)

Claudio Altafini

AI总结:

本文对Transformer的离散时间自注意力动力学开展渐近分析,分类其平衡点并研究稳定性,发现主要吸引子为共识平衡点,还存在局部稳定二分平衡点,且经真实Transformer权重矩阵验证。

摘要:

在机器学习中,自注意力动力学描述Transformer的注意力机制,通过将Transformer的层索引视为时间索引得到。尽管该动力学系统本质上是离散时间的,但多数研究以连续时间形式开展。本文旨在对离散时间版本的自注意力动力学进行全面研究:对其平衡点给出完整分类,并分别在单头和多头情形下研究其稳定性性质。研究表明,在两种情形下,该动力学的主要吸引子是与值矩阵主特征向量对齐的共识平衡点(单头情形下为值矩阵,多头情形下为对应的权重矩阵),不过至少在单头情形下还存在其他局部渐近稳定的二分平衡点。通过分析真实Transformer的学习权重矩阵,验证了上述行为。

英文摘要:

In machine learning, a self-attention dynamics describes the attention mechanism of transformers, and is obtained treating the layer index of a transformer as time index. Even though naturally discrete-time, this dynamical system is most often studied in continuous-time. Scope of this paper is to provide a thorough investigation of the discrete-time version of the self-attention dynamics: a complete classification of its equilibria is given, and their stability properties are studied, in both the single-head and the multihead case. We show that in both cases the main attractor of the dynamics is a consensus equilibrium aligned with the principal eigenvector of the value matrix (in the single-head case, a corresponding matrix of weights in the multihead case), even though other locally asymptotically stable bipartite equilibria can be show to exist at least in the single-head situation. The behavior is confirmed by looking at the learned weight matrices of a real transformer.

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

↑