GELU is an activation function that views nonlinearity as a transformation driven by stochastic regularization.
Because it has a probabilistic nature, it is more complex.
GELU multiplies the input by the probability that a standard normal variable is at most (the cumulative distribution function (CDF) of the standard normal distribution): . The formula below is a tanh-based approximation of it.
- The standard normal distribution is a normal distribution with mean 0 and standard deviation 1.
- The CDF (cumulative distribution function) gives "the probability that the value is less than or equal to a given value."
- Example: CDF(1.0) = 0.8413 → "the probability that the value is at most 1.0 is about 84.13%"
GELU is an activation function well suited to networks with residual connections, such as ResNet50 and SENet18, and to networks that concatenate layer outputs, such as DenseNet121. The activation functions that the survey by Dubey et al. (2022) found suitable for these networks are:
In the same survey's experiments on CIFAR-100, PAU converged fastest, and GELU also converged quickly and consistently. The activation functions reported to converge consistently are:
Furthermore, GELU is an activation function well suited to speech recognition. The activation functions that the survey by Dubey et al. (2022) found most suitable for speech recognition are:
