Table of Contents
Fetching ...

TeLU Activation Function for Fast and Stable Deep Learning

Alfredo Fernandez, Ankur Mali

TL;DR

TeLU defines the activation $TeLU(x)=x\tanh(e^{x})$, a smooth, analytic, non-monotonic function designed to combine ReLU-like fast convergence with stronger gradient flow in the saturating regime. The paper establishes TeLU as a universal analytic approximator and proves theoretical properties including persistent inactive-region gradients, near-linearity in the active region, computational efficiency, ReLU compatibility, and stability. Extensive experiments across MLPs, CNNs (DenseNet, ResNet), Transformers, VAEs, and RNNs (PTB) on ImageNet, Text8, CIFAR, MNIST, and more demonstrate superior convergence speed, robustness to initialization and depth, and competitive or improved accuracy relative to ReLU and other smooth activations. The work also discusses practical benefits such as easier ReLU replacement, compatibility with second-order optimization, and potential for broader application, including robustness to perturbations and efficient hardware deployment.

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.

TeLU Activation Function for Fast and Stable Deep Learning

TL;DR

TeLU defines the activation , a smooth, analytic, non-monotonic function designed to combine ReLU-like fast convergence with stronger gradient flow in the saturating regime. The paper establishes TeLU as a universal analytic approximator and proves theoretical properties including persistent inactive-region gradients, near-linearity in the active region, computational efficiency, ReLU compatibility, and stability. Extensive experiments across MLPs, CNNs (DenseNet, ResNet), Transformers, VAEs, and RNNs (PTB) on ImageNet, Text8, CIFAR, MNIST, and more demonstrate superior convergence speed, robustness to initialization and depth, and competitive or improved accuracy relative to ReLU and other smooth activations. The work also discusses practical benefits such as easier ReLU replacement, compatibility with second-order optimization, and potential for broader application, including robustness to perturbations and efficient hardware deployment.

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.
Paper Structure (82 sections, 15 theorems, 96 equations, 33 figures, 41 tables)

This paper contains 82 sections, 15 theorems, 96 equations, 33 figures, 41 tables.

Key Result

Theorem 5.1

Let $r(x) = \text{ReLU}(x) = \max(0, x)$ be defined as: This function has the following properties: Let $f(x)$ be a single continuous and differentiable function defined on $\mathbb{R}$ that satisfies the same properties as $r(x)$ for all $x \in \mathbb{R}$. Then, any such $f(x)$ that approximates $r(x)$ must be non-monotonic. In other words, $f(x)$ must both increase and decrease throughout its

Figures (33)

  • 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 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 3: SiLU Activation Function and its First-Order Derivative. Plot of $SiLU(x)= x \cdot \frac{1}{1+e^{-x}}$ and its first order derivative. As input $x \to -\infty$, SiLU saturates to a deactivation output of 0. As input $x \to \infty$, SiLU's active region approximates the identity $x$.
  • Figure 4: GELU Activation Function and its First-Order Derivative. Plot of $GELU(x)= \frac{x}{2} \cdot (1+erf( \frac{x}{\sqrt{2}}))$ and its first order derivative. As input $x \to -\infty$, GELU saturates to a deactivation output of 0. As input $x \to \infty$, GELU's active region approximates the identity $x$.
  • Figure 5: Mish Activation Function and its First-Order Derivative. Plot of $Mish(x)= x \cdot tanh( ln(1 + e^x))$ and its first order derivative. As input $x \to -\infty$, Mish saturates to a deactivation output of 0. As input $x \to \infty$, Mish's active region approximates the identity $x$.
  • ...and 28 more figures

Theorems & Definitions (20)

  • Definition 5.1
  • Definition 5.2
  • Definition 5.3
  • Theorem 5.1
  • Lemma 5.1
  • Definition 5.4
  • Lemma 5.2
  • Definition 5.5
  • Lemma 5.3
  • Theorem 5.2
  • ...and 10 more