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

使用积分推导激活函数

Deriving Activation Functions Using Integration

EPFL(洛桑联邦理工学院);ETH Zürich(苏黎世联邦理工学院)

Allen Hao Huang, Imanol Schlag

AI总结:

提出基于积分推导激活函数的新方法,设计了可训练分段激活函数xIELU,结合ReLU$^2$和xSiLU的特性处理正负输入,在Llama模型实验中以相同计算和参数成本实现了比ReLU$^2$和SwiGLU更低的困惑度。

摘要:

我们的工作提出了一种设计激活函数的新方法,重点关注其梯度并使用积分推导相应的激活函数。我们引入了指数线性单元的扩展积分(xIELU),这是一种通过对应用于指数线性单元(ELU)的可训练仿射变换进行积分而推导出的可训练分段激活函数。xIELU结合了梯度的两个关键特性:(1)针对正输入的线性递增可训练梯度,类似于平方ReLU(ReLU$^2$),以及(2)针对负输入可取负值的可训练梯度,受扩展SiLU(xSiLU)启发。从概念上讲,xIELU可被视为ReLU$^2$的扩展,以处理负输入。xIELU中的可训练参数使其能够自适应地降低网络深层中更高层表示的非线性。在使用FineWeb Edu的125B token训练的1.1B和3B参数Llama模型的实验中,在计算成本和参数量相同的情况下,与ReLU$^2$和SwiGLU等流行激活函数相比,xIELU实现了更低的困惑度。参考实现可在https://github.com/Anonymous5823/xielu获取。

英文摘要:

Our work proposes a novel approach to designing activation functions by focusing on their gradients and deriving the corresponding activation functions using integration. We introduce the Expanded Integral of the Exponential Linear Unit (xIELU), a trainable piecewise activation function derived by integrating trainable affine transformations applied to the Exponential Linear Unit (ELU). xIELU combines two key properties for the gradient: (1) a trainable and linearly increasing gradient for positive inputs, similar to Squared ReLU (ReLU$^2$), and (2) a trainable gradient that can take negative values for negative inputs, inspired by Expanded SiLU (xSiLU). Conceptually, xIELU can be viewed as an extension of ReLU$^2$ to handle negative inputs. The trainable parameters in xIELU allow it to adaptively reduce its nonlinearity for higher-level representations deeper in the network. In experiments with 1.1B and 3B parameter Llama models trained on 125B tokens of FineWeb Edu, xIELU achieves lower perplexity compared to popular activation functions like ReLU$^2$ and SwiGLU when matched for the same compute cost and parameter count. A reference implementation is available at https://github.com/Anonymous5823/xielu.

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

↑