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

自适应地自定义各个层的激活函数

Adaptively Customizing Activation Functions for Various Layers

College of Computer Science and Technology, Zhejiang University of Technology(浙江工业大学计算机科学与技术学院);Key Laboratory of Visual Media Intelligent Processing Technology of Zhejiang Province(浙江省可视媒体智能处理技术重点实验室);School of Computer Science and Engineering, Tianjin University of Technology(天津理工大学计算机科学与工程学院)

Haigen Hu, Aizhu Liu, Qiu Guan, Xiaoxin Li, Shengyong Chen, Qianwei Zhou

摘要:

为了增强神经网络的非线性并提高其在输入和响应变量之间的映射能力,激活函数在对数据中更复杂的关系和模式进行建模时起着至关重要的作用。在这项工作中,提出了一种新的方法来自适应地定制激活函数,只需添加很少的参数到传统的激活函数,如Sigmoid,Tanh和ReLU。为了验证所提方法的有效性,对加速收敛和提高性能进行了理论和实验分析,并基于不同的网络模型(如AlexNet、VGGNet、GoogLeNet、ResNet和DenseNet)和不同的数据集(如CIFAR10、CIFAR100、miniImageNet、PASCAL VOC和COCO)进行了一系列实验。为了进一步验证该算法在各种优化策略和使用场景下的有效性和适用性,本文还对SGD、Momentum、AdaGrad、AdaDelta和ADAM等不同优化策略和分类、检测等不同识别任务进行了对比实验。结果表明,该方法非常简单,但在收敛速度,精度和泛化方面具有显着的性能,并且在几乎所有的实验中,它都可以超过其他流行的方法,如ReLU和自适应函数,如Swish。该代码可在https://github.com/HuHaigen/Adaptively-Customizing-Activation-Functions上公开获得。该软件包包括建议的三个自适应激活函数的再现性的目的。

英文摘要:

To enhance the nonlinearity of neural networks and increase their mapping abilities between the inputs and response variables, activation functions play a crucial role to model more complex relationships and patterns in the data. In this work, a novel methodology is proposed to adaptively customize activation functions only by adding very few parameters to the traditional activation functions such as Sigmoid, Tanh, and ReLU. To verify the effectiveness of the proposed methodology, some theoretical and experimental analysis on accelerating the convergence and improving the performance is presented, and a series of experiments are conducted based on various network models (such as AlexNet, VGGNet, GoogLeNet, ResNet and DenseNet), and various datasets (such as CIFAR10, CIFAR100, miniImageNet, PASCAL VOC and COCO) . To further verify the validity and suitability in various optimization strategies and usage scenarios, some comparison experiments are also implemented among different optimization strategies (such as SGD, Momentum, AdaGrad, AdaDelta and ADAM) and different recognition tasks like classification and detection. The results show that the proposed methodology is very simple but with significant performance in convergence speed, precision and generalization, and it can surpass other popular methods like ReLU and adaptive functions like Swish in almost all experiments in terms of overall performance.The code is publicly available at https://github.com/HuHaigen/Adaptively-Customizing-Activation-Functions. The package includes the proposed three adaptive activation functions for reproducibility purposes.

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

↑