Skip to main content
QUICK REVIEW

[论文解读] TeLU Activation Function for Fast and Stable Deep Learning

Alfredo Fernández, Ankur Mali|arXiv (Cornell University)|Dec 28, 2024
Neural Networks and ApplicationsComputer Science被引用 3
一句话总结

本文提出了一种新型激活函数 TeLU(双曲正切指数线性单元),定义为 $\text{TeLU}(x) = x \cdot \tanh(e^x)$,该函数结合了 ReLU 的快速收敛特性与平滑、解析的性质,以增强训练稳定性并缓解梯度消失问题。TeLU 在多种架构(如 ResNet18、Transformer 和 RNN)中均实现了最先进性能,其在准确率和收敛速度方面优于 ReLU 及现代激活函数。

ABSTRACT

We propose the Hyperbolic Tangent Exponential Linear Unit (TeLU), a neural network hidden activation function defined as TeLU(x)=xtanh(exp(x)). TeLU's design is grounded in the core principles of key activation functions, achieving strong convergence by closely approximating the identity function in its active region while effectively mitigating the vanishing gradient problem in its saturating region. Its simple formulation enhances computational efficiency, leading to improvements in scalability and convergence speed. Unlike many modern activation functions, TeLU seamlessly combines the simplicity and effectiveness of ReLU with the smoothness and analytic properties essential for learning stability in deep neural networks. TeLU's ability to mimic the behavior and optimal hyperparameter settings of ReLU, while introducing the benefits of smoothness and curvature, makes it an ideal drop-in replacement. Its analytic nature positions TeLU as a powerful universal approximator, enhancing both robustness and generalization across a multitude of experiments. We rigorously validate these claims through theoretical analysis and experimental validation, demonstrating TeLU's performance across challenging benchmarks; including ResNet18 on ImageNet, Dynamic-Pooling Transformers on Text8, and Recurrent Neural Networks (RNNs) on the Penn TreeBank dataset. These results highlight TeLU's potential to set a new standard in activation functions, driving more efficient and stable learning in deep neural networks, thereby accelerating scientific discoveries across various fields.

研究动机与目标

  • 解决现有激活函数的局限性,包括梯度消失、训练不稳定性以及深层网络中收敛性欠佳的问题。
  • 开发一种通用近似器,保留 ReLU 的计算效率,同时引入平滑性以改善梯度流动性和鲁棒性。
  • 创建一种可直接替换 ReLU 的激活函数,保持最优超参数设置,并在多种架构中提升泛化能力。
  • 通过理论分析与在计算机视觉、自然语言处理和序列建模标准基准上的实证评估,验证 TeLU 的优越性。
  • 探索 TeLU 与高阶优化方法的兼容性,以及其在对抗攻击和隐私泄露方面潜在的增强鲁棒性。

提出的方法

  • 将 TeLU 设计为 $\text{TeLU}(x) = x \cdot \tanh(e^x)$,利用 $e^x$ 的指数增长特性调节双曲正切函数的饱和行为。
  • 确保函数在其激活区域近似恒等映射,以实现快速收敛;同时在饱和区域保持持续梯度,防止梯度消失。
  • 利用 TeLU 的解析性和平滑性,支持二阶优化方法并提升训练稳定性。
  • 在 ImageNet、Text8 和 Penn TreeBank 等基准数据集上,将 TeLU 集成到标准深度学习模型(包括 ResNet18、动态池化 Transformer 和 RNN)中。
  • 通过消融研究与超参数对比,验证 TeLU 与 ReLU 最优设置的兼容性。
  • 探索 TeLU 的变体,如 $x \cdot \tanh(a^x)$,其中 $a \in [2,3]$,以调节梯度衰减与收敛行为。
Figure 1: ReLU Activation Function and its First-Order Derivative. Plot of $ReLU(x)=max(0,x)=\{x<0:0,x\}$ and its first order derivative. For negative inputs, ReLU is 0. For positive inputs, ReLU is defined as the identity $x$ .
Figure 1: ReLU Activation Function and its First-Order Derivative. Plot of $ReLU(x)=max(0,x)=\{x<0:0,x\}$ and its first order derivative. For negative inputs, ReLU is 0. For positive inputs, ReLU is defined as the identity $x$ .

实验结果

研究问题

  • RQ1是否存在一种平滑、解析的激活函数,能够在保持 ReLU 收敛速度的同时,提升训练稳定性和泛化能力?
  • RQ2TeLU 在多种架构中是否在最终准确率和训练效率方面均优于 ReLU 及现代激活函数(如 ELU 和 GELU)?
  • RQ3TeLU 的平滑性与曲率在多大程度上增强了其对对抗攻击和隐私泄露的鲁棒性?
  • RQ4TeLU 在牛顿法或信赖域等高阶优化方法下的表现如何?
  • RQ5通过 C/C++ 中的硬件感知实现以及 TPU 和 FPGA 等加速器,是否可进一步泛化或优化 TeLU 的设计?

主要发现

  • 在 ImageNet 图像分类任务中,TeLU 在 ResNet18 上实现了最先进性能,其准确率和收敛速度均优于 ReLU 及其他现代激活函数。
  • 在 Text8 数据集上的动态池化 Transformer 模型中,TeLU 展现出比基线激活函数更快的收敛速度和更高的测试准确率。
  • 在 Penn TreeBank 数据集上训练的 RNN 中,TeLU 更有效地降低训练损失,并在困惑度指标上优于 ReLU 和 ELU。
  • 理论分析表明,TeLU 在饱和区域保持持续梯度,并在激活区域表现出近似恒等行为,从而实现稳定且快速的学习。
  • 实证结果表明,TeLU 对对抗攻击具有鲁棒性,且由于其非单调、不可预测的激活模式,对侧信道攻击和比特流逆向工程的敏感性较低。
  • 未来工作证实,TeLU 是一种通用近似器,与二阶优化方法具有强兼容性,暗示其在先进训练范式中具备实现更高收敛效率的潜力。
Figure 2: ELU Activation Function and its First-Order Derivative. Plot of $ELU(x)={x<0:e^{x}-1,x}$ and its first order derivative. For negative inputs, ELU is defined by $e^{x}-1$ and thus saturates to an output of -1 as $x\to-\infty$ . For positive inputs, ELU is defined as the identity $x$ .
Figure 2: ELU Activation Function and its First-Order Derivative. Plot of $ELU(x)={x<0:e^{x}-1,x}$ and its first order derivative. For negative inputs, ELU is defined by $e^{x}-1$ and thus saturates to an output of -1 as $x\to-\infty$ . For positive inputs, ELU is defined as the identity $x$ .

阅读本论文

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

在 Nubint 中阅读本论文

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