Expanded Gating Ranges Improve Activation Functions
Allen Hao Huang
TL;DR
The paper tackles the limitations of conventional self-gated activation functions that constrain gating to $[0,1]$ by introducing expanded gating ranges via a trainable scalar $ hoa$, applied to ArcTan Linear Unit (ATLU) and extended to xGELU, xSiLU, and GLU variants. Using OpenWebText2-scale transformer experiments, the authors show that xATLU, xGELU, and xSiLU outperform GELU and SiLU, with xATLU delivering the strongest gains due to its monotonically increasing first derivative and enhanced negative gradient flow. They also reveal that expanded gating ranges bridge the performance gap between first- and second-order GLUs, though second-order GLUs do not consistently benefit from expansion. The findings advance activation-function design by evidencing that gating-range expansion can yield meaningful improvements in training dynamics and model performance, with implications for broader neural architectures and future search for new gating functions.
Abstract
Activation functions are core components of all deep learning architectures. Currently, the most popular activation functions are smooth ReLU variants like GELU and SiLU. These are self-gated activation functions where the range of the gating function is between zero and one. In this paper, we explore the viability of using arctan as a gating mechanism. A self-gated activation function that uses arctan as its gating function has a monotonically increasing first derivative. To make this activation function competitive, it is necessary to introduce a trainable parameter for every MLP block to expand the range of the gating function beyond zero and one. We find that this technique also improves existing self-gated activation functions. We conduct an empirical evaluation of Expanded ArcTan Linear Unit (xATLU), Expanded GELU (xGELU), and Expanded SiLU (xSiLU) and show that they outperform existing activation functions within a transformer architecture. Additionally, expanded gating ranges show promising results in improving first-order Gated Linear Units (GLU).
