Abstract
The Rectified Linear Unit (ReLU) has long been the standard activation function in deep learning, with recent alternatives like Swish offering performance gains through automated search. However, a unified theoretical understanding of these functions has been lacking. This paper introduces ACON (Activate Or Not), a new family of activation functions derived from a smooth maximum approximation. ACON provides a mathematical link between ReLU and Swish and introduces Meta-ACON, a mechanism that allows networks to learn the optimal degree of non-linearity for each neuron. Experimental results demonstrate that Meta-ACON consistently outperforms existing methods across architectures (e.g., +6.7% on MobileNetV1) and tasks like object detection and semantic segmentation, while maintaining high efficiency.
Introduction
For years, the Rectified Linear Unit (ReLU) has been the default choice for neural networks due to its simplicity and effectiveness. Recently, "searched" activations like Swish (discovered via Neural Architecture Search) have shown superior performance, yet the underlying reasons for their success remained poorly understood. Furthermore, most activation functions are static, applying the same transformation regardless of data context. This research addresses these gaps by providing a unified mathematical framework for activation functions and introducing a method for networks to adaptively customize their activation behavior.
The ACON Framework
The authors derive the ACON family using the Smooth Maximum formula, which provides a differentiable approximation of the max() function. This approach reveals that many popular activations are specific cases of a broader family.
Key derivations include:
- ACON-A: A smooth approximation of ReLU ($max(x, 0)$), which is mathematically identical to the Swish function ($x \cdot \sigma(\beta x)$). This identifies Swish as essentially a "Smooth ReLU."
- ACON-B & C: Approximations of more complex functions like PReLU or the Maxout family, offering increased flexibility.
Meta-ACON: Learning to Activate
The "killer app" of this framework is Meta-ACON. Instead of using a fixed switching factor ($\beta$) to determine the degree of non-linearity, the network employs a small sub-network to learn $\beta$ based on the input data. This allows the model to decide, for each channel or pixel, whether it should be "active" (non-linear) or "inactive" (linear).
This flexibility allows the network to "turn off" non-linearity where it isn't helpful. Unlike Swish, which has fixed bounds on its first derivative, ACON-C features learnable upper and lower bounds, facilitating more effective optimization in very deep models.
Experimental Results
The authors evaluated Meta-ACON on ImageNet-1K (classification), COCO (detection), and Cityscapes (segmentation). The performance gains were remarkably consistent across different model scales.
- Small Models: On MobileNetV1 (0.25), Meta-ACON improved ImageNet top-1 accuracy by a massive 6.7%.
- Large Models: On ResNet-152, it achieved a 1.8% improvement, nearly double the gain provided by the popular SENet modules.
- Downstream Tasks: In object detection (COCO), Meta-ACON improved mAP by 1.3 points over ReLU. In semantic segmentation (Cityscapes), it improved mean IoU by 1.1 points.
Crucially, these gains come with negligible computational overhead, making ACON a highly efficient drop-in replacement for standard activations.
Conclusion
ACON shifts the focus of neural network design from traditional dimensions like depth and width to the "non-linear degree" of the network. By providing a unified theory and a learnable mechanism for activation, Meta-ACON enables significant performance boosts across a wide range of computer vision tasks. Future work may explore more complex meta-learner designs and applications in other domains such as Natural Language Processing.
Summary updated