arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.05465cs.LGmath.APstat.ML
收藏

自注意力动力学中聚类的出现

The emergence of clusters in self-attention dynamics

Borjan Geshkovski, Cyril Letrouit, Yury Polyanskiy, Philippe Rigollet

AI总结:

研究揭示了自注意力机制中聚类现象的数学基础,证明了在特定条件下自注意力矩阵收敛为低秩布尔矩阵,并验证了Transformer处理序列时领导者出现的实证现象。

摘要:

将Transformer视为相互作用的粒子系统,我们描述了在权重不随时间变化时学习表示的几何结构。我们展示了粒子(代表标记)倾向于在时间趋于无穷大时聚集到特定的极限对象。聚类位置由初始标记决定,证实了Transformer学习的表示具有上下文感知性。利用动力系统和偏微分方程的技术,我们展示了出现的极限对象类型取决于值矩阵的谱。此外,在一维情况下,我们证明自注意力矩阵收敛到一个低秩布尔矩阵。这些结果的结合数学上证实了Vaswani等人[VSP'17]的实证观察,即在处理标记时领导者会在序列中出现。

英文摘要:

Viewing Transformers as interacting particle systems, we describe the geometry of learned representations when the weights are not time dependent. We show that particles, representing tokens, tend to cluster toward particular limiting objects as time tends to infinity. Cluster locations are determined by the initial tokens, confirming context-awareness of representations learned by Transformers. Using techniques from dynamical systems and partial differential equations, we show that the type of limiting object that emerges depends on the spectrum of the value matrix. Additionally, in the one-dimensional case we prove that the self-attention matrix converges to a low-rank Boolean matrix. The combination of these results mathematically confirms the empirical observation made by Vaswani et al. [VSP'17] that leaders appear in a sequence of tokens when processed by Transformers.

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

↑