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

神之仁慈是$x^2$:GLU的扩展速度比MLP更快

Divine Benevolence is an $x^2$: GLUs scale asymptotically faster than MLPs

Alejandro Francisco Queiruga

AI总结:

本文提出门控二次单元,通过数值分析揭示GLU在函数重建中具有比MLP更快的扩展斜率,推动了大模型架构设计的理论发展。

摘要:

缩放定律可以从基础的数值分析中理解,其中传统函数逼近理论可以解释模型架构选择的变化。GLU变体现在主导了前沿的大语言模型,并且类似的外积架构在排序模型中也很普遍。这些架构的成功大多只是经验发现。在本文中,我们应用数值分析工具,揭示了一个关键因素:这些模型具有$x^2$,使它们在渐近上比MLP扩展得更快。GLU具有分段二次函数形式,足以表现出二次近似顺序。我们的主要贡献是证明在函数重建问题中,GLU的$L(P)$扩展斜率是$L(P)\propto P^{-3}$,而MLP仅为$L(P)=P^{-2}$。我们为1D函数逼近提供了参数构造和实证验证这些斜率。从第一原理中我们发现,我们迈出了一步,并提出了“门控二次单元”,其$L(P)$斜率比GLU和MLP更陡峭。这开启了从第一原理数值理论中进行架构设计的可能性,以解锁大型模型中的优越扩展性。复制代码可在https://github.com/afqueiruga/divine_scaling获取。

英文摘要:

Scaling laws can be understood from ground-up numerical analysis, where traditional function approximation theory can explain shifts in model architecture choices. GLU variants now dominate frontier LLMs and similar outer-product architectures are prevalent in ranking models. The success of these architectures has mostly been left as an empirical discovery. In this paper, we apply the tools of numerical analysis to expose a key factor: these models have an $x^2$ which enables \emph{asymptotically} faster scaling than MLPs. GLUs have piecewise quadratic functional forms that are sufficient to exhibit quadratic order of approximation. Our key contribution is to demonstrate that the $L(P)$ scaling slope is $L(P)\propto P^{-3}$ for GLUs but only $L(P)=P^{-2}$ for MLPs on function reconstruction problems. We provide a parameter construction and empirical verification of these slopes for 1D function approximation. From the first principles we discover, we make one stride and propose the ``Gated Quadratic Unit'' which has an even steeper $L(P)$ slope than the GLU and MLP. This opens the possibility of architecture design from first principles numerical theory to unlock superior scaling in large models. Replication code is available at https://github.com/afqueiruga/divine_scaling.

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

↑