arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.01834cs.LGcs.AI
收藏

感应transformer头的共感应指南

Coinductive guide to inductive transformer heads

Adam Nemecek

摘要:

我们认为,所有的构建块的Transformer模型可以表示为一个单一的概念:组合Hopf代数。Transformer学习的出现是由于组合Hopf代数的代数运算和共代数运算之间微妙的相互作用。从这个角度来看,Transformer模型变成了一个线性时不变系统,其中注意力机制计算广义卷积变换,而残留流充当单位脉冲。注意力Transformers器通过在这两条路径之间强制执行一个不变量来学习。我们称之为不变的霍普夫相干性。由于这一点,在一定程度上,人们可以将组合Hopf代数称为“具有内置损失函数梯度的张量”。该损失函数梯度发生在单层内,并且不需要向后传递。这与自动微分相反,自动微分发生在整个图上,需要显式的向后传递。这一性质是由于组合霍普夫代数具有通过重复平方计算特征值的惊人性质。

英文摘要:

We argue that all building blocks of transformer models can be expressed with a single concept: combinatorial Hopf algebra. Transformer learning emerges as a result of the subtle interplay between the algebraic and coalgebraic operations of the combinatorial Hopf algebra. Viewed through this lens, the transformer model becomes a linear time-invariant system where the attention mechanism computes a generalized convolution transform and the residual stream serves as a unit impulse. Attention-only transformers then learn by enforcing an invariant between these two paths. We call this invariant Hopf coherence. Due to this, with a degree of poetic license, one could call combinatorial Hopf algebras "tensors with a built-in loss function gradient". This loss function gradient occurs within the single layers and no backward pass is needed. This is in contrast to automatic differentiation which happens across the whole graph and needs a explicit backward pass. This property is the result of the fact that combinatorial Hopf algebras have the surprising property of calculating eigenvalues by repeated squaring.

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

↑