arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2212.06011cs.LGcs.AI
收藏

Transformer层的神经ODE解释

A Neural ODE Interpretation of Transformer Layers

Siemens Technology(西门子技术研究院)

Yaofeng Desmond Zhong, Tongtao Zhang, Amit Chakraborty, Biswadip Dey

摘要:

Transformer层使用多头注意力和多层感知器(MLP)层的交替模式,为各种机器学习问题提供了有效的工具。由于Transformer层使用剩余连接来避免梯度消失的问题,因此它们可以被视为微分方程的数值积分。在这个扩展的摘要中,我们建立在这种连接的基础上,并提出了一个Transformer层的内部架构的修改。该模型将多头注意力子层和MLP子层并行放置。我们的实验表明,这种简单的修改提高了Transformer网络在多个任务中的性能。此外,对于图像分类任务,我们表明,使用神经ODE求解器与一个复杂的集成方案,进一步提高性能。

英文摘要:

Transformer layers, which use an alternating pattern of multi-head attention and multi-layer perceptron (MLP) layers, provide an effective tool for a variety of machine learning problems. As the transformer layers use residual connections to avoid the problem of vanishing gradients, they can be viewed as the numerical integration of a differential equation. In this extended abstract, we build upon this connection and propose a modification of the internal architecture of a transformer layer. The proposed model places the multi-head attention sublayer and the MLP sublayer parallel to each other. Our experiments show that this simple modification improves the performance of transformer networks in multiple tasks. Moreover, for the image classification task, we show that using neural ODE solvers with a sophisticated integration scheme further improves performance.

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

↑