Abstract
The Rectified Linear Unit (ReLU) has become the standard activation function in deep learning due to its ability to mitigate the vanishing gradient problem. However, ReLUs and their common variants are restricted to convex functions. This paper presents the S-shaped Rectified Linear Unit (SReLU), which mimics the non-convex, adaptive responses observed in biological sensory systems. By employing three piecewise linear segments with four learnable parameters per channel, SReLU can represent a wide variety of functional forms, including those that suppress high-intensity signals. We evaluate SReLU on several benchmark datasets, showing that it consistently outperforms ReLU and its predecessors in architectures such as GoogLeNet and Network-in-Network, while adding negligible computational cost.
Introduction
The success of modern deep neural networks is deeply tied to the choice of activation function. While ReLU, Leaky ReLU, and PReLU have enabled the training of very deep architectures, they share a fundamental limitation: they are essentially convex. In contrast, biological neurons—the original inspiration for artificial neural networks—often exhibit more complex, non-convex responses.
Two fundamental laws in psychophysics, the Webner-Fechner law (logarithmic response) and Stevens law (power-law response), describe how sensory systems compress or amplify signals based on their intensity. For instance, our visual system dampens the response to extremely bright light to maintain sensitivity across a wide range of conditions. Existing flexible activations often impose rigid constraints that prevent them from capturing these nuances. The SReLU was designed to bridge this gap between biological plausibility and deep learning efficiency.
Methods
The S-shaped Rectified Linear Unit (SReLU) is defined by three piecewise linear segments. For a given input $x$, the output $y$ is determined by four learnable parameters per channel: two thresholds ($t^r, t^l$) and two slopes ($a^r, a^l$).
- Middle segment: A fixed linear function with unit slope ($y=x$) for inputs between $t^l$ and $t^r$.
- Right segment: Handles inputs greater than $t^r$ with slope $a^r$.
- Left segment: Handles inputs less than $t^l$ with slope $a^l$.
This formulation allows SReLU to adaptively learn various shapes, including standard ReLUs, Leaky ReLUs, and non-convex "S-shapes" that dampen high-magnitude signals. To ensure stable training, the authors propose a "freezing" initialization method. Initially, SReLU acts as a standard Leaky ReLU. After several epochs, the thresholds are initialized based on the actual distribution of the mini-batch data (e.g., setting the right threshold to the $k$-th largest value) before being unfrozen and learned jointly with the network parameters via backpropagation.
Key Results
The SReLU was rigorously tested on MNIST, CIFAR-10, CIFAR-100, and ImageNet (ILSVRC 2014) using Network-in-Network (NIN) and GoogLeNet architectures. The results consistently favored the SReLU over standard ReLU and PReLU baselines:
- CIFAR-10: NIN with SReLU reduced the error rate to 8.41%, down from 10.41% with standard ReLU.
- CIFAR-100: The error rate dropped from 35.68% to 31.10%.
- ImageNet: GoogLeNet with SReLU achieved a top-1 error of 9.86%, a significant 1.24% absolute improvement over the original GoogLeNet (11.1%).
- MNIST: The model achieved a state-of-the-art error rate of 0.35%.
Discussion and Insights
A key insight from this work is the importance of non-convexity. In deeper layers, SReLU often learns to suppress high-magnitude activations (slopes < 1), providing a form of adaptive normalization or scaling. This behavior mimics how biological sensors adjust to high-intensity stimuli to avoid saturation.
Furthermore, the increase in model complexity is minimal. For GoogLeNet, SReLU adds only 21.6K parameters to a 5-million-parameter model—a negligible overhead for a substantial performance gain. The authors observed that SReLUs in different layers learn distinct shapes: lower layers tend toward linear responses, while higher layers develop complex S-shapes to process highly transformed features.
Conclusion
SReLU provides a biologically-inspired, flexible, and efficient alternative to standard activation functions. By allowing networks to learn non-convex mappings, it significantly enhances representational power across diverse visual recognition tasks. While the current study focuses on Computer Vision, exploring SReLU in other domains like Natural Language Processing remains a promising direction for future research.
Summary updated