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

搜索激活函数

Searching for Activation Functions

Google Brain(谷歌大脑)

Prajit Ramachandran, Barret Zoph, Quoc V. Le

摘要:

深度网络中激活函数的选择对训练动态和任务性能有显著影响。目前,最成功和广泛使用的激活函数是整流线性单元(ReLU)。尽管已经提出了各种手工设计的ReLU替代方案,但由于收益不一致,没有一个能够成功取代它。在这项工作中,我们建议利用自动搜索技术来发现新的激活函数。使用穷举和基于强化学习的搜索的组合,我们发现了多个新的激活函数。我们验证的搜索的有效性进行实证评估与最好的发现激活函数。我们的实验表明,最好的激活函数$f(x) = x \cdot \text{sigmoid}(βx)$,我们将其命名为Swish,在许多具有挑战性的数据集上,在更深层次的模型上往往比ReLU更好地工作。例如,简单地将ReLU替换为Swish单元,可以将Mobile NASNet-A和Inception-ResNet-v2的前1分类准确率分别提高0.9%和0.6%。Swish的简单性及其与ReLU的相似性使从业者可以轻松地在任何神经网络中用Swish单元替换ReLU。

英文摘要:

The choice of activation functions in deep networks has a significant effect on the training dynamics and task performance. Currently, the most successful and widely-used activation function is the Rectified Linear Unit (ReLU). Although various hand-designed alternatives to ReLU have been proposed, none have managed to replace it due to inconsistent gains. In this work, we propose to leverage automatic search techniques to discover new activation functions. Using a combination of exhaustive and reinforcement learning-based search, we discover multiple novel activation functions. We verify the effectiveness of the searches by conducting an empirical evaluation with the best discovered activation function. Our experiments show that the best discovered activation function, $f(x) = x \cdot \text{sigmoid}(βx)$, which we name Swish, tends to work better than ReLU on deeper models across a number of challenging datasets. For example, simply replacing ReLUs with Swish units improves top-1 classification accuracy on ImageNet by 0.9\% for Mobile NASNet-A and 0.6\% for Inception-ResNet-v2. The simplicity of Swish and its similarity to ReLU make it easy for practitioners to replace ReLUs with Swish units in any neural network.

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

↑