What is: Gaussian Error Linear Units?
Source | Gaussian Error Linear Units (GELUs) |
Year | 2000 |
Data Source | CC BY-SA - https://paperswithcode.com |
The Gaussian Error Linear Unit, or GELU, is an activation function. The GELU activation function is , where the standard Gaussian cumulative distribution function. The GELU nonlinearity weights inputs by their percentile, rather than gates inputs by their sign as in ReLUs (). Consequently the GELU can be thought of as a smoother ReLU.
if .
One can approximate the GELU with or but PyTorch's exact implementation is sufficiently fast such that these approximations may be unnecessary. (See also the SiLU which was also coined in the paper that introduced the GELU.)