Term
GELU
Meaning
The Gaussian error linear unit, a smooth element-wise nonlinearity that scales each input by an approximation of its Gaussian cumulative probability.
How papers use it 8 papers
MLP-Mixer: An all-MLP Architecture for Vision
Use Serves as the nonlinearity σ between the two fully-connected layers of each token-mixing and channel-mixing MLP block in Mixer layers.
Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelism
Use Applied after the first GEMM of the MLP block in the GPT-2 and BERT models studied here. Because it is nonlinear, the authors split the first GEMM by columns so that GeLU can be applied independently to each partition. The authors note that the original transformer used ReLU instead.
Meaning A Gaussian error linear unit, a smooth nonlinear activation function applied elementwise to a layer's pre-activations.
Gaussian Error Linear Units (GELUs)
Use The proposed nonlinearity, GELU(x) = xΦ(x).
Meaning An activation that multiplies its input by the standard normal cumulative distribution function.
BloombergGPT: A Large Language Model for Finance
Use Serves as the non-linearity inside the feed-forward network of each Transformer decoder block in BloombergGPT, sitting between the two linear projections of that sub-layer.
Meaning A smooth, non-linear activation function that weights an input by the probability that a Gaussian-distributed variable falls below it. It is used in neural network feed-forward layers to introduce non-linearity.
BERT4Rec: Sequential Recommendation with Bidirectional Encoder Representations from Transformer
Use The activation in the position-wise feed-forward network and in the output layer of BERT4Rec.
Meaning A smooth activation function defined as x times the standard Gaussian cumulative distribution function.
Restormer: Efficient Transformer for High-Resolution Image Restoration
Use Serves as the activation applied to one of the two parallel linear projections in the GDFN gating mechanism. The activated branch is multiplied element-wise with the other projection to control which features flow forward.
Meaning A smooth non-linear activation function that scales each input by a weight derived from the Gaussian distribution, so small negative values are passed through softly instead of being cut off sharply as in ReLU.
Run, Don't Walk: Chasing Higher FLOPS for Faster Neural Networks
Use Serves as the activation in the smaller FasterNet variants (T0 and T1 in the paper's choice), applied after the middle PWConv layer of each FasterNet block. The authors pick it over ReLU for these smaller models after weighing running time against effectiveness.
Meaning GELU, the Gaussian Error Linear Unit, is an element-wise activation function that scales each input by a smooth gate based on the Gaussian cumulative distribution function, so small negative values pass partially rather than being cut to zero.
TransMed: Transformers Advance Multi-modal Medical Image Classification
Use Serves as the nonlinearity between the two linear layers of the MLP block placed on top of the multi-head self-attention layer in the TransMed transformer branch.
Meaning The Gaussian error linear unit, a smooth activation function that scales each input by the probability that a Gaussian random variable is smaller than that input. It is a common alternative to ReLU in transformer networks.