arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.01247cs.LGcs.AIcs.CLcs.CVmath.AG
收藏

多项式、三角函数和热带激活函数

Polynomial, trigonometric, and tropical activations

Ismail Khalfaoui-Hassani, Stefan Kesselheim

AI总结:

本文提出多项式、三角函数和热带激活函数,通过简单初始化训练深度模型,解决激活和梯度爆炸问题,并提升大规模学习任务效率。

摘要:

哪些函数可以用于深度神经网络的激活函数?本文探讨了基于正交基的函数家族,包括Hermite多项式基和Fourier三角函数基,以及由多项式基热带化得到的基。我们的研究显示,通过简单的方差保持初始化和不使用额外的钳制机制,这些激活函数可以成功用于训练深度模型,如在OpenWebText上训练GPT-2进行下一个标记预测,以及在ImageNet上训练ConvNeXt进行图像分类。我们的工作解决了爆炸性和消失的激活和梯度问题,尤其是多项式激活函数普遍存在这些问题,并为提高大规模学习任务的效率打开了大门。此外,我们的方法提供了对神经网络结构的见解,揭示了具有多项式激活函数的网络可以被视为多变量多项式映射。最后,使用Hermite插值,我们展示了我们的激活函数可以通过匹配函数和其导数来接近预训练模型中的经典激活函数,使其在微调任务中特别有用。这些激活函数可通过torchortho库获取:https://github.com/K-H-Ismail/torchortho。

英文摘要:

Which functions can be used as activations in deep neural networks? This article explores families of functions based on orthonormal bases, including the Hermite polynomial basis and the Fourier trigonometric basis, as well as a basis resulting from the tropicalization of a polynomial basis. Our study shows that, through simple variance-preserving initialization and without additional clamping mechanisms, these activations can successfully be used to train deep models, such as GPT-2 for next-token prediction on OpenWebText and ConvNeXt for image classification on ImageNet. Our work addresses the issue of exploding and vanishing activations and gradients, particularly prevalent with polynomial activations, and opens the door for improving the efficiency of large-scale learning tasks. Furthermore, our approach provides insight into the structure of neural networks, revealing that networks with polynomial activations can be interpreted as multivariate polynomial mappings. Finally, using Hermite interpolation, we show that our activations can closely approximate classical ones in pre-trained models by matching both the function and its derivative, making them especially useful for fine-tuning tasks. These activations are available in the torchortho library via: https://github.com/K-H-Ismail/torchortho.

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

↑