Skip to main content
QUICK REVIEW

[论文解读] Activation Functions in Deep Learning: A Comprehensive Survey and Benchmark

Shiv Ram Dubey, Satish Kumar Singh|arXiv (Cornell University)|Sep 29, 2021
Currency Recognition and DetectionComputer Science被引用 17
一句话总结

本文对图像、文本和语音任务中的18种最先进激活函数(AFs)进行了全面的综述与基准测试。基于非线性、梯度流动性和计算效率对AFs进行评估,发现Swish、Mish、PReLU、GELU和PAU在多种网络架构和数据集上表现一致优于其他函数,尤其在语音识别和残差网络中表现突出。

ABSTRACT

Neural networks have shown tremendous growth in recent years to solve numerous problems. Various types of neural networks have been introduced to deal with different types of problems. However, the main goal of any neural network is to transform the non-linearly separable input data into more linearly separable abstract features using a hierarchy of layers. These layers are combinations of linear and nonlinear functions. The most popular and common non-linearity layers are activation functions (AFs), such as Logistic Sigmoid, Tanh, ReLU, ELU, Swish and Mish. In this paper, a comprehensive overview and survey is presented for AFs in neural networks for deep learning. Different classes of AFs such as Logistic Sigmoid and Tanh based, ReLU based, ELU based, and Learning based are covered. Several characteristics of AFs such as output range, monotonicity, and smoothness are also pointed out. A performance comparison is also performed among 18 state-of-the-art AFs with different networks on different types of data. The insights of AFs are presented to benefit the researchers for doing further research and practitioners to select among different choices. The code used for experimental comparison is released at: \url{https://github.com/shivram1987/ActivationFunctions}.

研究动机与目标

  • 提供深度学习中激活函数的系统性分类与分析,包括传统型、ReLU型、ELU型及学习型变体。
  • 识别激活函数的关键特性,如输出范围、单调性、平滑性及梯度流动特性。
  • 在多个网络(如VGG、GoogleNet、MobileNet)和数据集(ImageNet、LibriSpeech等)上,对18种SOTA激活函数进行大规模实证基准测试。
  • 根据数据模态、网络架构和训练动态,为研究人员和实践者提供选择最优激活函数的指导。
  • 发布代码以确保可复现性,并为未来深度学习中激活函数的基准测试提供支持。

提出的方法

  • 将激活函数分为五类:基于Logistic Sigmoid/Tanh的、ReLU型的、ELU型的、指数型的以及学习型(自适应)AFs。
  • 利用关键属性分析18种SOTA激活函数:输出范围、单调性、平滑性及梯度行为。
  • 在四个基准数据集上进行实验:ImageNet(图像分类)、CIFAR-10/100,以及LibriSpeech(语音识别)。
  • 使用标准网络架构(如VGG16、GoogleNet、MobileNet、CNN-RNN混合模型)训练模型,所有AFs采用固定超参数。
  • 通过5次随机试验测量性能指标,包括准确率、字符错误率(CER)和词错误率(WER),以确保鲁棒性。
  • 使用PyTorch(特定版本:torch 1.4.0,torchaudio 0.4.0)和标准训练协议(如SGD,批量大小10,训练10个周期)以保证一致性。

实验结果

研究问题

  • RQ1在多种深度学习架构和数据模态中,哪些激活函数能持续优于ReLU?
  • RQ2不同AF类别(如ReLU变体、Swish、Mish、PAU)在收敛速度、准确率和训练稳定性方面如何比较?
  • RQ3非零均值输出和梯度消失对Logistic Sigmoid和Tanh型AFs性能有何影响?
  • RQ4自适应或可学习激活函数(如PReLU、PAU)相比固定非线性函数在泛化能力方面有何提升?
  • RQ5在图像分类、语言翻译和语音识别等特定任务中,哪些激活函数最为合适?

主要发现

  • Swish、Mish、PReLU、GELU和PAU在语音识别任务中表现优异,5次试验中均实现了最低的平均CER和WER。
  • 在VGG16和GoogleNet等残差网络中,ReLU、LReLU、ELU、GELU、CELU和PDELU表现优于其他函数,尤其在图像分类任务中。
  • 参数化AFs(如PReLU和PAU)由于可学习参数能自适应数据分布,表现出更快的收敛速度。
  • ReLU、SELU、GELU和Softplus在训练速度与准确率之间实现了最佳平衡,而PDELU和SRS显著增加了训练时间。
  • 基于指数的AFs(如ELU、SELU)通过更有效地利用负值改善了非线性,增强了特征表示能力。
  • Logistic Sigmoid和Tanh AFs在CNN中表现不佳,因收敛性差,但在RNN中作为门控机制仍具有效性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。