arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.15142cs.LG
收藏

从多粒子动力学系统的观点重新设计Transformer体系结构

Redesigning the Transformer Architecture with Insights from Multi-particle Dynamical Systems

Jadavpur University(贾达普大学);IIIT-Delhi(德里印度信息技术学院);IIT-Bombay(孟买印度理工学院)

Subhabrata Dutta, Tanya Gautam, Soumen Chakrabarti, Tanmoy Chakraborty

摘要:

Transformer及其变体已被证明是许多不同领域中的有效序列学习器。尽管它们取得了惊人的成功,但一个关键问题是必须训练大量的参数(从$10^7$到$10^{11}$)以及点积注意力的二次复杂性。在这项工作中,我们调查的问题,近似的两个中心组成部分的Transformer -多头自关注和逐点前馈变换,减少参数空间和计算复杂性。我们建立在分析深度神经网络作为常微分方程的数值求解器的最新发展。利用Transformer阶段和多个相互作用的粒子的动力系统的演化之间的类比,我们制定了一个时间演化方案,transEvolve,绕过昂贵的点产品注意多个堆叠层。我们进行详尽的实验与TransEvolve著名的编码器解码器以及编码器的任务。我们观察到,近似的程度(或相反,参数减少的程度)对性能有不同的影响,这取决于任务。在编码器-解码器机制中,TransEvolve提供的性能可与原始Transformer媲美,在仅编码器任务中,它始终优于Transformer以及几个后续变体。

英文摘要:

The Transformer and its variants have been proven to be efficient sequence learners in many different domains. Despite their staggering success, a critical issue has been the enormous number of parameters that must be trained (ranging from $10^7$ to $10^{11}$) along with the quadratic complexity of dot-product attention. In this work, we investigate the problem of approximating the two central components of the Transformer -- multi-head self-attention and point-wise feed-forward transformation, with reduced parameter space and computational complexity. We build upon recent developments in analyzing deep neural networks as numerical solvers of ordinary differential equations. Taking advantage of an analogy between Transformer stages and the evolution of a dynamical system of multiple interacting particles, we formulate a temporal evolution scheme, TransEvolve, to bypass costly dot-product attention over multiple stacked layers. We perform exhaustive experiments with TransEvolve on well-known encoder-decoder as well as encoder-only tasks. We observe that the degree of approximation (or inversely, the degree of parameter reduction) has different effects on the performance, depending on the task. While in the encoder-decoder regime, TransEvolve delivers performances comparable to the original Transformer, in encoder-only tasks it consistently outperforms Transformer along with several subsequent variants.

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

↑