arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2403.18415cs.LGmath.CT
收藏

Transformer 网络的 Topos

The Topos of Transformer Networks

Mattia Jacopo Villani, Peter McBurney

AI总结:

本文以 topos 理论分析 transformer 表达能力,指出常见网络位于分段线性函数的 pretopos,而 transformer 处于其 topos 完备化,从而对应高阶逻辑推理。

摘要:

Transformer 神经网络作为大语言模型背后的引擎,其表现已显著超越所有其他神经网络架构。我们借助 topos 理论的视角,对 transformer 架构的表达能力进行理论分析。从这一观点出发,我们表明许多常见神经网络架构(例如卷积网络、循环网络和图卷积网络)都可以嵌入到分段线性函数的 pretopos 中,而 transformer 则必然存在于其 topos 完备化中。特别地,这表明这两个网络家族体现了逻辑的不同片段:前者是一阶推理器,而 transformer 是高阶推理器。此外,我们还将其与架构搜索和梯度下降进行类比,把我们的分析整合到控制论智能体框架中。

英文摘要:

The transformer neural network has significantly out-shined all other neural network architectures as the engine behind large language models. We provide a theoretical analysis of the expressivity of the transformer architecture through the lens of topos theory. From this viewpoint, we show that many common neural network architectures, such as the convolutional, recurrent and graph convolutional networks, can be embedded in a pretopos of piecewise-linear functions, but that the transformer necessarily lives in its topos completion. In particular, this suggests that the two network families instantiate different fragments of logic: the former are first order, whereas transformers are higher-order reasoners. Furthermore, we draw parallels with architecture search and gradient descent, integrating our analysis in the framework of cybernetic agents.

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

↑