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

扩展门控范围改进激活函数

Expanded Gating Ranges Improve Activation Functions

EPFL(洛桑联邦理工学院)

Allen Hao Huang

AI总结:

本文提出通过引入可训练参数扩展门控函数范围,改进了如xATLU、xGELU和xSiLU等自门控激活函数,在transformer架构及一阶GLU中表现优异。

摘要:

激活函数是所有深度学习架构的核心组件。目前,最流行的激活函数是像GELU和SiLU这样的平滑ReLU变体。这些是自门控激活函数,其门控函数的范围在零和一之间。在本文中,我们探索了使用arctan作为门控机制的可行性。使用arctan作为其门控函数的自门控激活函数具有单调递增的一阶导数。为了使该激活函数具有竞争力,必须为每个MLP块引入一个可训练参数,以将门控函数的范围扩展到零和一之外。我们发现该技术也改进了现有的自门控激活函数。我们对扩展ArcTan线性单元(xATLU)、扩展GELU(xGELU)和扩展SiLU(xSiLU)进行了实证评估,并表明它们在transformer架构中优于现有的激活函数。此外,扩展门控范围在改进一阶门控线性单元(GLU)方面显示出有希望的结果。

英文摘要:

Activation functions are core components of all deep learning architectures. Currently, the most popular activation functions are smooth ReLU variants like GELU and SiLU. These are self-gated activation functions where the range of the gating function is between zero and one. In this paper, we explore the viability of using arctan as a gating mechanism. A self-gated activation function that uses arctan as its gating function has a monotonically increasing first derivative. To make this activation function competitive, it is necessary to introduce a trainable parameter for every MLP block to expand the range of the gating function beyond zero and one. We find that this technique also improves existing self-gated activation functions. We conduct an empirical evaluation of Expanded ArcTan Linear Unit (xATLU), Expanded GELU (xGELU), and Expanded SiLU (xSiLU) and show that they outperform existing activation functions within a transformer architecture. Additionally, expanded gating ranges show promising results in improving first-order Gated Linear Units (GLU).

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

↑