SAU: Smooth Activation Function Using Convolution with Approximate Identities

Koushik Biswas, Sandeep Kumar, Shilpak Banerjee, Ashish Kumar PandeyECCV 2022

Introduction

In the landscape of deep learning, the Rectified Linear Unit (ReLU) remains the most widely used activation function due to its simplicity and computational efficiency. However, ReLU possesses a significant mathematical drawback: it is non-differentiable at the origin. This "sharp edge," combined with the "dying ReLU" problem—where neurons become permanently inactive—has led researchers to develop smoother alternatives like Swish, GELU, and Mish.

This paper introduces the Smooth Activation Unit (SAU), a novel, fully differentiable activation function. By applying classical mathematical smoothing techniques to the Leaky ReLU, the authors have created a function that not only eliminates the non-differentiable kink but also allows the network to learn the optimal level of smoothness during training.

Methodology: Principled Smoothing

The Smooth Activation Unit is derived using a concept from mathematical analysis known as convolution with approximate identities (or mollifiers).

  1. The Foundation: The process starts with the Leaky ReLU function, which has a slope of 1 for positive values and a small slope $\alpha$ for negative values.
  2. The Smoothing Mechanism: This function is convolved with a Gaussian kernel. This effectively "blurs" the sharp corner of the Leaky ReLU, resulting in a smooth, differentiable curve.
  3. Trainable Parameters: Unlike standard fixed-shape activations, SAU introduces a parameter $n$ that controls the transition's sharpness at zero. Crucially, $n$ is a trainable parameter, allowing the neural network to use backpropagation to decide exactly how smooth the activation should be for a given task or layer.
Comparison of SAU and Leaky ReLU near the origin, illustrating the smooth transition achieved through Gaussian convolution.

Experimental Results

The researchers conducted an exhaustive evaluation of SAU across diverse benchmarks, including image classification (MNIST, CIFAR, ImageNet), object detection (Pascal VOC), and machine translation (WMT 2014).

Performance Highlights

SAU consistently outperformed traditional activation functions, with particularly notable gains in challenging datasets and lightweight architectures:

  • CIFAR-100: Replacing ReLU with SAU improved ShuffleNet V2 accuracy by a staggering 5.63% and ResNet-50 by 2.50%.
  • ImageNet-1k: SAU achieved a 2.31% improvement on ShuffleNet V2 (1.0x).
  • Object Detection: On Pascal VOC, SAU reached a mean Average Precision (mAP) of 77.7, outperforming both ReLU (77.2) and GELU (77.3).
  • Machine Translation: In Transformer models, SAU achieved a BLEU score of 26.7, the highest among all compared activations.
Accuracy curves over 200 epochs, demonstrating that SAU (red line) consistently achieves higher training and testing accuracy compared to standard alternatives.

Discussion and Conclusion

The Smooth Activation Unit (SAU) represents a mathematically elegant and empirically robust advancement in activation function design. Its primary advantage is its ability to adapt its smoothness to the specific needs of a model architecture through its trainable parameter $n$.

While SAU involves more complex calculations (such as the Gaussian error function) compared to the nearly-free ReLU, the significant accuracy boosts—especially for compact models—make it a highly effective drop-in replacement. Future work may focus on optimizing the computational implementation of SAU to minimize training overhead while maintaining its superior performance characteristics.

Summary updated

BibTeX
@inproceedings{biswas2022sau,
  author = {Koushik Biswas and Sandeep Kumar and Shilpak Banerjee and Ashish Kumar Pandey},
  title = {{SAU: Smooth Activation Function Using Convolution with Approximate Identities}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19803-8\_19},
}
Figure