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

关于层归一化与动态激活函数的数学关系

On the Mathematical Relationship Between Layer Normalization and Dynamic Activation Functions

AI Sweden(瑞典人工智能)

Felix Stollenwerk

AI总结:

本文探讨了层归一化与动态激活函数的数学关系,从RMSNorm推导出DyISRU,并证明其在处理异常值上的准确性优于DyT。

摘要:

层归一化(LN)是现代神经网络的重要组成部分。尽管许多替代技术已被提出,但至今无人能取代LN。最新研究提出了一种名为动态双曲正切(DyT)的动态激活函数。尽管其在实践中具有吸引力,但缺乏理论基础。本文探讨了LN与动态激活函数的数学关系,特别从RMSNorm变体推导出DyT,并展示在导数空间中定义良好的解耦及近似是必要条件。通过在函数空间中应用相同的解耦过程,可以省去近似,获得RMSNorm的精确元素级对应物,称为动态逆平方根单元(DyISRU)。数值结果表明,DyISRU在处理异常值的归一化效果上比DyT更准确。

英文摘要:

Layer normalization (LN) is an essential component of modern neural networks. While many alternative techniques have been proposed, none of them have succeeded in replacing LN so far. The latest suggestion in this line of research is a dynamic activation function called Dynamic Tanh (DyT). Although it is empirically well-motivated and appealing from a practical point of view, it lacks a theoretical foundation. In this work, we shed light on the mathematical relationship between LN and dynamic activation functions. In particular, we derive DyT from the LN variant RMSNorm, and show that a well-defined decoupling in derivative space as well as an approximation are needed to do so. By applying the same decoupling procedure directly in function space, we are able to omit the approximation and obtain the exact element-wise counterpart of RMSNorm, which we call Dynamic Inverse Square Root Unit (DyISRU). We demonstrate numerically that DyISRU reproduces the normalization effect on outliers more accurately than DyT does.

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

↑