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

N-ODE Transformer:使用神经常微分方程的Transformer的深度自适应变体

N-ODE Transformer: A Depth-Adaptive Variant of the Transformer Using Neural Ordinary Differential Equations

Department of Applied Mathematics, University of Waterloo(滑铁卢大学应用数学系);University of Waterloo(滑铁卢大学)

Aaron Baier-Reinio, Hans De Sterck

摘要:

我们使用神经常微分方程制定的Transformer,这是深度自适应的意义上说,一个依赖于输入的时间步数的常微分方程求解器的一个变种。我们提出的N-ODE Transformer的目标是研究其深度自适应性是否有助于克服Transformer在处理非局部效应方面的一些特定的已知理论限制。具体来说,我们考虑的简单问题,确定奇偶校验的二进制序列,标准的Transformer具有已知的限制,只能通过使用足够大的层数或注意头克服。然而,我们发现,深度自适应的N-ODE Transformer不提供一个补救措施的奇偶校验问题的固有的非本地性质,并提供解释为什么会这样。接下来,我们通过惩罚ODE轨迹的弧长来实现N-ODE Transformer的正则化,但发现这无法提高N-ODE Transformer在具有挑战性的奇偶性问题上的精度或效率。我们建议未来的研究途径的修改和扩展的N-ODE Transformer,可能会导致提高精度和效率的序列建模任务,如神经机器翻译。

英文摘要:

We use neural ordinary differential equations to formulate a variant of the Transformer that is depth-adaptive in the sense that an input-dependent number of time steps is taken by the ordinary differential equation solver. Our goal in proposing the N-ODE Transformer is to investigate whether its depth-adaptivity may aid in overcoming some specific known theoretical limitations of the Transformer in handling nonlocal effects. Specifically, we consider the simple problem of determining the parity of a binary sequence, for which the standard Transformer has known limitations that can only be overcome by using a sufficiently large number of layers or attention heads. We find, however, that the depth-adaptivity of the N-ODE Transformer does not provide a remedy for the inherently nonlocal nature of the parity problem, and provide explanations for why this is so. Next, we pursue regularization of the N-ODE Transformer by penalizing the arclength of the ODE trajectories, but find that this fails to improve the accuracy or efficiency of the N-ODE Transformer on the challenging parity problem. We suggest future avenues of research for modifications and extensions of the N-ODE Transformer that may lead to improved accuracy and efficiency for sequence modelling tasks such as neural machine translation.

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

↑