Zorro: A Flexible and Differentiable Parametric Family of Activation Functions That Extends ReLU and GELU

Matias Roodschild, Jorge Gotay-Sardiñas, Victor A. Jimenez, Adrian Will
9/28/2024
cs.LGcs.NE

No confident code implementation found for this paper.

Abstract

Even in recent neural network architectures such as Transformers and Extended LSTM (xLSTM), and traditional ones like Convolutional Neural Networks, Activation Functions are an integral part of nearly all neural networks. They enable more effective training and capture nonlinear data patterns. More than 400 functions have been proposed over the last 30 years, including fixed or trainable parameters, but only a few are widely used. ReLU is one of the most frequently used, with GELU and Swish variants increasingly appearing. However, ReLU presents non-differentiable points and exploding gradient issues, while testing different parameters of GELU and Swish variants produces varying results, needing more parameters to adapt to datasets and architectures. This article introduces a novel set of activation functions called Zorro, a continuously differentiable and flexible family comprising five main functions fusing ReLU and Sigmoid. Zorro functions are smooth and adaptable, and serve as information gates, aligning with ReLU in the 0-1 range, offering an alternative to ReLU without the need for normalization, neuron death, or gradient explosions. Zorro also approximates functions like Swish, GELU, and DGELU, providing parameters to adjust to different datasets and architectures. We tested it on fully connected, convolutional, and transformer architectures to demonstrate its effectiveness.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{roodschild2024zorro,
  title  = {Zorro: A Flexible and Differentiable Parametric Family of Activation Functions That Extends ReLU and GELU},
  author = {Matias Roodschild and Jorge Gotay-Sardiñas and Victor A. Jimenez and Adrian Will},
  year   = {2024},
  eprint = {2409.19239},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.19239v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.19239.svg)](https://codeofpaper.com/paper/2409.19239)

Discussion